ode-explorer 1.3.1 → 1.3.2-dev.202312191844

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var cr=(e,t,n)=>(Ty(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as Y,APP as ho,FOLDER as Xe,ACTION as $e,TransportFrameworkFactory as _y}from"/assets/js/edifice-ts-client/index.js";function sm(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Iy="modulepreload",Ay=function(e){return"/"+e},vf={},ye=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Ay(i),i in vf)return;vf[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const d=s[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Iy,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var im={exports:{}},Oa={},om={exports:{}},Q={};/**
1
+ var Bb=Object.defineProperty;var zb=(e,t,n)=>t in e?Bb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var us=(e,t,n)=>(zb(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as ne,APP as Ps,FOLDER as Ct,ACTION as ct}from"/assets/js/edifice-ts-client/index.js";function J1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Vb="modulepreload",Ub=function(e){return"/"+e},Up={},$e=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Ub(i),i in Up)return;Up[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let d=s.length-1;d>=0;d--){const f=s[d];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Vb,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z1={exports:{}},uu={},ev={exports:{}},ie={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Si=Symbol.for("react.element"),Ly=Symbol.for("react.portal"),My=Symbol.for("react.fragment"),Dy=Symbol.for("react.strict_mode"),Fy=Symbol.for("react.profiler"),$y=Symbol.for("react.provider"),zy=Symbol.for("react.context"),Uy=Symbol.for("react.forward_ref"),By=Symbol.for("react.suspense"),Vy=Symbol.for("react.memo"),Hy=Symbol.for("react.lazy"),yf=Symbol.iterator;function qy(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var am={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lm=Object.assign,um={};function Gr(e,t,n){this.props=e,this.context=t,this.refs=um,this.updater=n||am}Gr.prototype.isReactComponent={};Gr.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")};Gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cm(){}cm.prototype=Gr.prototype;function Lc(e,t,n){this.props=e,this.context=t,this.refs=um,this.updater=n||am}var Mc=Lc.prototype=new cm;Mc.constructor=Lc;lm(Mc,Gr.prototype);Mc.isPureReactComponent=!0;var wf=Array.isArray,dm=Object.prototype.hasOwnProperty,Dc={current:null},fm={key:!0,ref:!0,__self:!0,__source:!0};function hm(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)dm.call(t,r)&&!fm.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Si,type:e,key:i,ref:o,props:s,_owner:Dc.current}}function Qy(e,t){return{$$typeof:Si,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Si}function Wy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xf=/\/+/g;function xl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wy(""+e.key):t.toString(36)}function po(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Si:case Ly:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+xl(o,0):r,wf(s)?(n="",e!=null&&(n=e.replace(xf,"$&/")+"/"),po(s,t,n,"",function(u){return u})):s!=null&&(Fc(s)&&(s=Qy(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(xf,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",wf(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+xl(i,a);o+=po(i,t,n,l,s)}else if(l=qy(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+xl(i,a++),o+=po(i,t,n,l,s);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 o}function $i(e,t,n){if(e==null)return e;var r=[],s=0;return po(e,r,"","",function(i){return t.call(n,i,s++)}),r}function Ky(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 Le={current:null},mo={transition:null},Gy={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:mo,ReactCurrentOwner:Dc};Q.Children={map:$i,forEach:function(e,t,n){$i(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $i(e,function(){t++}),t},toArray:function(e){return $i(e,function(t){return t})||[]},only:function(e){if(!Fc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Gr;Q.Fragment=My;Q.Profiler=Fy;Q.PureComponent=Lc;Q.StrictMode=Dy;Q.Suspense=By;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gy;Q.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=lm({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Dc.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)dm.call(t,l)&&!fm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Si,type:e.type,key:s,ref:i,props:r,_owner:o}};Q.createContext=function(e){return e={$$typeof:zy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$y,_context:e},e.Consumer=e};Q.createElement=hm;Q.createFactory=function(e){var t=hm.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Uy,render:e}};Q.isValidElement=Fc;Q.lazy=function(e){return{$$typeof:Hy,_payload:{_status:-1,_result:e},_init:Ky}};Q.memo=function(e,t){return{$$typeof:Vy,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=mo.transition;mo.transition={};try{e()}finally{mo.transition=t}};Q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Q.useCallback=function(e,t){return Le.current.useCallback(e,t)};Q.useContext=function(e){return Le.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return Le.current.useDeferredValue(e)};Q.useEffect=function(e,t){return Le.current.useEffect(e,t)};Q.useId=function(){return Le.current.useId()};Q.useImperativeHandle=function(e,t,n){return Le.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return Le.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return Le.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return Le.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return Le.current.useReducer(e,t,n)};Q.useRef=function(e){return Le.current.useRef(e)};Q.useState=function(e){return Le.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return Le.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return Le.current.useTransition()};Q.version="18.2.0";om.exports=Q;var x=om.exports;const pm=Pa(x),mm=sm({__proto__:null,default:pm},[x]);/**
9
+ */var Bo=Symbol.for("react.element"),Hb=Symbol.for("react.portal"),qb=Symbol.for("react.fragment"),Qb=Symbol.for("react.strict_mode"),Wb=Symbol.for("react.profiler"),Kb=Symbol.for("react.provider"),Gb=Symbol.for("react.context"),Xb=Symbol.for("react.forward_ref"),Yb=Symbol.for("react.suspense"),Jb=Symbol.for("react.memo"),Zb=Symbol.for("react.lazy"),Hp=Symbol.iterator;function eS(e){return e===null||typeof e!="object"?null:(e=Hp&&e[Hp]||e["@@iterator"],typeof e=="function"?e:null)}var tv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nv=Object.assign,rv={};function ni(e,t,n){this.props=e,this.context=t,this.refs=rv,this.updater=n||tv}ni.prototype.isReactComponent={};ni.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")};ni.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sv(){}sv.prototype=ni.prototype;function Tf(e,t,n){this.props=e,this.context=t,this.refs=rv,this.updater=n||tv}var If=Tf.prototype=new sv;If.constructor=Tf;nv(If,ni.prototype);If.isPureReactComponent=!0;var qp=Array.isArray,iv=Object.prototype.hasOwnProperty,Df={current:null},ov={key:!0,ref:!0,__self:!0,__source:!0};function av(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)iv.call(t,r)&&!ov.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Bo,type:e,key:i,ref:o,props:s,_owner:Df.current}}function tS(e,t){return{$$typeof:Bo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Mf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bo}function nS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qp=/\/+/g;function fc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nS(""+e.key):t.toString(36)}function Fa(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Bo:case Hb:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+fc(o,0):r,qp(s)?(n="",e!=null&&(n=e.replace(Qp,"$&/")+"/"),Fa(s,t,n,"",function(u){return u})):s!=null&&(Mf(s)&&(s=tS(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Qp,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",qp(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+fc(i,a);o+=Fa(i,t,n,l,s)}else if(l=eS(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+fc(i,a++),o+=Fa(i,t,n,l,s);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 o}function ua(e,t,n){if(e==null)return e;var r=[],s=0;return Fa(e,r,"","",function(i){return t.call(n,i,s++)}),r}function rS(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 st={current:null},$a={transition:null},sS={ReactCurrentDispatcher:st,ReactCurrentBatchConfig:$a,ReactCurrentOwner:Df};ie.Children={map:ua,forEach:function(e,t,n){ua(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ua(e,function(){t++}),t},toArray:function(e){return ua(e,function(t){return t})||[]},only:function(e){if(!Mf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=ni;ie.Fragment=qb;ie.Profiler=Wb;ie.PureComponent=Tf;ie.StrictMode=Qb;ie.Suspense=Yb;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sS;ie.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=nv({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Df.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)iv.call(t,l)&&!ov.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Bo,type:e.type,key:s,ref:i,props:r,_owner:o}};ie.createContext=function(e){return e={$$typeof:Gb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Kb,_context:e},e.Consumer=e};ie.createElement=av;ie.createFactory=function(e){var t=av.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:Xb,render:e}};ie.isValidElement=Mf;ie.lazy=function(e){return{$$typeof:Zb,_payload:{_status:-1,_result:e},_init:rS}};ie.memo=function(e,t){return{$$typeof:Jb,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=$a.transition;$a.transition={};try{e()}finally{$a.transition=t}};ie.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ie.useCallback=function(e,t){return st.current.useCallback(e,t)};ie.useContext=function(e){return st.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return st.current.useDeferredValue(e)};ie.useEffect=function(e,t){return st.current.useEffect(e,t)};ie.useId=function(){return st.current.useId()};ie.useImperativeHandle=function(e,t,n){return st.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return st.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return st.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return st.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return st.current.useReducer(e,t,n)};ie.useRef=function(e){return st.current.useRef(e)};ie.useState=function(e){return st.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return st.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return st.current.useTransition()};ie.version="18.2.0";ev.exports=ie;var b=ev.exports;const fe=$o(b),lv=J1({__proto__:null,default:fe},[b]);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,8 +14,8 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Xy=x,Yy=Symbol.for("react.element"),Zy=Symbol.for("react.fragment"),Jy=Object.prototype.hasOwnProperty,e2=Xy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t2={key:!0,ref:!0,__self:!0,__source:!0};function gm(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Jy.call(t,r)&&!t2.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Yy,type:e,key:i,ref:o,props:s,_owner:e2.current}}Oa.Fragment=Zy;Oa.jsx=gm;Oa.jsxs=gm;im.exports=Oa;var f=im.exports;const n2={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Io{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||n2,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Io(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Io(this.logger,t)}}var $t=new Io;class Na{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function ss(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Sf(e){return e==null?"":""+e}function r2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function $c(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function bf(e,t,n){const{obj:r,k:s}=$c(e,t,Object);r[s]=n}function s2(e,t,n,r){const{obj:s,k:i}=$c(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Ao(e,t){const{obj:n,k:r}=$c(e,t);if(n)return n[r]}function i2(e,t,n){const r=Ao(e,n);return r!==void 0?r:Ao(t,n)}function vm(e,t,n){for(const 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]):vm(e[r],t[r],n):e[r]=t[r]);return e}function dr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function a2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>o2[t]):e}const l2=[" ",",","?","!",";"];function u2(e,t,n){t=t||"",n=n||"";const r=l2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function Lo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(i+o).join(n);return u?Lo(l,u,n):void 0}s=s[r[i]]}return s}function Mo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Cf extends Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=Ao(this.data,a);return l||!o||typeof r!="string"?l:Lo(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),bf(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=Ao(this.data,a)||{};s?vm(l,r,i):l={...l,...r},bf(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var ym={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Ef={};class Do extends Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),r2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=$t.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!u2(t,r,s);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${b}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const d=this.resolve(t,n);let h=d&&d.res;const p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),S=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&S.indexOf(y)<0&&!(typeof g=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(d.res=b,d.usedParams=this.getUsedParamsDetails(n),d):b}if(i){const b=y==="[object Array]",E=b?[]:{},R=b?m:p;for(const k in h)if(Object.prototype.hasOwnProperty.call(h,k)){const P=`${R}${i}${k}`;E[k]=this.translate(P,{...n,joinArrays:!1,ns:a}),E[k]===P&&(E[k]=h[k])}h=E}}else if(v&&typeof g=="string"&&y==="[object Array]")h=h.join(g),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,E=!1;const R=n.count!==void 0&&typeof n.count!="string",k=Do.hasDefaultValue(n),P=R?this.pluralResolver.getSuffix(u,n.count,n):"",_=n.ordinal&&R?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",F=n[`defaultValue${P}`]||n[`defaultValue${_}`]||n.defaultValue;!this.isValidLookup(h)&&k&&(b=!0,h=F),this.isValidLookup(h)||(E=!0,h=o);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:h,U=k&&F!==h&&this.options.updateMissing;if(E||b||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,o,U?F:h),i){const L=this.resolve(o,{...n,keySeparator:!1});L&&L.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.")}let $=[];const C=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&C&&C[0])for(let L=0;L<C.length;L++)$.push(C[L]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const O=(L,N,D)=>{const M=k&&D!==h?D:I;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,N,M,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,N,M,U,n),this.emit("missingKey",L,l,N,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?$.forEach(L=>{this.pluralResolver.getSuffixes(L,n).forEach(N=>{O([L],o+N,n[`defaultValue${N}`]||F)})}):O($,o,F))}h=this.extendTranslation(h,t,n,d,r),E&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,b?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),p=h&&h.length;c<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return i&&i[0]===p[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):o.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=ym.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;s=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",p=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!Ef[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Ef[`${y[0]}-${S}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),y.forEach(g=>{if(this.isValidLookup(r))return;o=g;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,g,S,n);else{let b;h&&(b=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+b),n.ordinal&&b.indexOf(R)===0&&v.push(c+b.replace(R,this.options.pluralSeparator)),p&&v.push(c+E)),m){const k=`${c}${this.options.contextSeparator}${n.context}`;v.push(k),h&&(v.push(k+b),n.ordinal&&b.indexOf(R)===0&&v.push(k+b.replace(R,this.options.pluralSeparator)),p&&v.push(k+E))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(i=w,r=this.getResource(g,S,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Sl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Rf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$t.create("languageUtils")}getScriptPartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Mo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Sl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let c2=[{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}],d2={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const f2=["v1","v2","v3"],h2=["v4"],kf={zero:0,one:1,two:2,few:3,many:4,other:5};function p2(){const e={};return c2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:d2[t.fc]}})}),e}class m2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=$t.create("pluralResolver"),(!this.options.compatibilityJSON||h2.includes(this.options.compatibilityJSON))&&(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=p2()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mo(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>kf[s]-kf[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!f2.includes(this.options.compatibilityJSON)}}function Pf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=i2(e,t,n);return!i&&s&&typeof n=="string"&&(i=Lo(e,n,r),i===void 0&&(i=Lo(t,n,r))),i}class g2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:a2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?dr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?dr(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?dr(n.nestingPrefix):n.nestingPrefixEscaped||dr("$t("),this.nestingSuffix=n.nestingSuffix?dr(n.nestingSuffix):n.nestingSuffixEscaped||dr(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(m){return m.replace(/\$/g,"$$$$")}const c=m=>{if(m.indexOf(this.formatSeparator)<0){const v=Pf(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:m}):v}const y=m.split(this.formatSeparator),S=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Pf(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...s,...n,interpolationkey:S})};this.resetRegExp();const d=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>u(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?u(this.escape(m)):u(m)}].forEach(m=>{for(a=0;i=m.regex.exec(t);){const y=i[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const g=d(t,i,s);o=typeof g=="string"?g:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Sf(o));const S=m.safeValue(o);if(t=t.replace(i[0],S),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const p=h.match(/'/g),m=h.match(/"/g);(p&&p.length%2===0&&!m||m.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${h}`}return delete o.defaultValue,l}for(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Sf(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function v2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function fr(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(Mo(s),i),t[o]=a),a(r)}}class y2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.create("formatter"),this.options=t,this.formats={number:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:fr((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:fr((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:fr((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=fr(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=v2(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},p=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,p,{...c,...s,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function w2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class x2 extends Na{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=$t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{s2(l.loaded,[i],o),w2(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,l):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Of(){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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nf(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 zi(){}function S2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Bs extends Na{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nf(t),this.services={},this.logger=$t,this.modules={external:[]},S2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Of();this.options={...s,...this.options,...Nf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?$t.init(i(this.modules.logger),this.options):$t.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=y2);const d=new Rf(this.options);this.store=new Cf(this.options.resources,this.options);const h=this.services;h.logger=$t,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new m2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=i(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new g2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new x2(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),S=1;S<m;S++)y[S-1]=arguments[S];t.emit(p,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Do(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),S=1;S<m;S++)y[S-1]=arguments[S];t.emit(p,...y)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=zi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ss(),u=()=>{const c=(d,h)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=ss();return t||(t=this.languages),n||(n=this.options.ns),r||(r=zi),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ym.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=ss();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),s}getFixedT(t,n,r){var s=this;const i=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=s.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix=l.keyPrefix||r||i.keyPrefix;const h=s.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(o)?p=o.map(m=>`${l.keyPrefix}${h}${m}`):p=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(p,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=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;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=ss();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ss();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new Rf(Of());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Bs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new Bs(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Cf(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Do(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ne=Bs.createInstance();Ne.createInstance=Bs.createInstance;Ne.createInstance;Ne.dir;Ne.init;Ne.loadResources;Ne.reloadResources;Ne.use;Ne.changeLanguage;Ne.getFixedT;const qt=Ne.t;Ne.exists;Ne.setDefaultNamespace;Ne.hasLoadedNamespace;Ne.loadNamespaces;Ne.loadLanguages;function uu(e){"@babel/helpers - typeof";return uu=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},uu(e)}var wm=[],b2=wm.forEach,C2=wm.slice;function cu(e){return b2.call(C2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function xm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":uu(XMLHttpRequest))==="object"}function E2(e){return!!e&&typeof e.then=="function"}function R2(e){return E2(e)?e:Promise.resolve(e)}function k2(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var du={exports:{}},Ui={exports:{}},jf;function P2(){return jf||(jf=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof _e<"u"&&_e,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a=typeof i<"u"&&i||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(C){return C&&DataView.prototype.isPrototypeOf(C)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(C){return C&&c.indexOf(Object.prototype.toString.call(C))>-1};function h(C){if(typeof C!="string"&&(C=String(C)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(C)||C==="")throw new TypeError('Invalid character in header field name: "'+C+'"');return C.toLowerCase()}function p(C){return typeof C!="string"&&(C=String(C)),C}function m(C){var O={next:function(){var L=C.shift();return{done:L===void 0,value:L}}};return l.iterable&&(O[Symbol.iterator]=function(){return O}),O}function y(C){this.map={},C instanceof y?C.forEach(function(O,L){this.append(L,O)},this):Array.isArray(C)?C.forEach(function(O){this.append(O[0],O[1])},this):C&&Object.getOwnPropertyNames(C).forEach(function(O){this.append(O,C[O])},this)}y.prototype.append=function(C,O){C=h(C),O=p(O);var L=this.map[C];this.map[C]=L?L+", "+O:O},y.prototype.delete=function(C){delete this.map[h(C)]},y.prototype.get=function(C){return C=h(C),this.has(C)?this.map[C]:null},y.prototype.has=function(C){return this.map.hasOwnProperty(h(C))},y.prototype.set=function(C,O){this.map[h(C)]=p(O)},y.prototype.forEach=function(C,O){for(var L in this.map)this.map.hasOwnProperty(L)&&C.call(O,this.map[L],L,this)},y.prototype.keys=function(){var C=[];return this.forEach(function(O,L){C.push(L)}),m(C)},y.prototype.values=function(){var C=[];return this.forEach(function(O){C.push(O)}),m(C)},y.prototype.entries=function(){var C=[];return this.forEach(function(O,L){C.push([L,O])}),m(C)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(C){if(C.bodyUsed)return Promise.reject(new TypeError("Already read"));C.bodyUsed=!0}function g(C){return new Promise(function(O,L){C.onload=function(){O(C.result)},C.onerror=function(){L(C.error)}})}function v(C){var O=new FileReader,L=g(O);return O.readAsArrayBuffer(C),L}function w(C){var O=new FileReader,L=g(O);return O.readAsText(C),L}function b(C){for(var O=new Uint8Array(C),L=new Array(O.length),N=0;N<O.length;N++)L[N]=String.fromCharCode(O[N]);return L.join("")}function E(C){if(C.slice)return C.slice(0);var O=new Uint8Array(C.byteLength);return O.set(new Uint8Array(C)),O.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(C){this.bodyUsed=this.bodyUsed,this._bodyInit=C,C?typeof C=="string"?this._bodyText=C:l.blob&&Blob.prototype.isPrototypeOf(C)?this._bodyBlob=C:l.formData&&FormData.prototype.isPrototypeOf(C)?this._bodyFormData=C:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)?this._bodyText=C.toString():l.arrayBuffer&&l.blob&&u(C)?(this._bodyArrayBuffer=E(C.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(C)||d(C))?this._bodyArrayBuffer=E(C):this._bodyText=C=Object.prototype.toString.call(C):this._bodyText="",this.headers.get("content-type")||(typeof C=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var C=S(this);if(C)return C;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var C=S(this);return C||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var C=S(this);if(C)return C;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function P(C){var O=C.toUpperCase();return k.indexOf(O)>-1?O:C}function _(C,O){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var L=O.body;if(C instanceof _){if(C.bodyUsed)throw new TypeError("Already read");this.url=C.url,this.credentials=C.credentials,O.headers||(this.headers=new y(C.headers)),this.method=C.method,this.mode=C.mode,this.signal=C.signal,!L&&C._bodyInit!=null&&(L=C._bodyInit,C.bodyUsed=!0)}else this.url=String(C);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new y(O.headers)),this.method=P(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var N=/([?&])_=[^&]*/;if(N.test(this.url))this.url=this.url.replace(N,"$1_="+new Date().getTime());else{var D=/\?/;this.url+=(D.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function F(C){var O=new FormData;return C.trim().split("&").forEach(function(L){if(L){var N=L.split("="),D=N.shift().replace(/\+/g," "),M=N.join("=").replace(/\+/g," ");O.append(decodeURIComponent(D),decodeURIComponent(M))}}),O}function A(C){var O=new y,L=C.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(N){return N.indexOf(`
18
- `)===0?N.substr(1,N.length):N}).forEach(function(N){var D=N.split(":"),M=D.shift().trim();if(M){var K=D.join(":").trim();O.append(M,K)}}),O}R.call(_.prototype);function I(C,O){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new y(O.headers),this.url=O.url||"",this._initBody(C)}R.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},I.error=function(){var C=new I(null,{status:0,statusText:""});return C.type="error",C};var U=[301,302,303,307,308];I.redirect=function(C,O){if(U.indexOf(O)===-1)throw new RangeError("Invalid status code");return new I(null,{status:O,headers:{location:C}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,L){this.message=O,this.name=L;var N=Error(O);this.stack=N.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function $(C,O){return new Promise(function(L,N){var D=new _(C,O);if(D.signal&&D.signal.aborted)return N(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function K(){M.abort()}M.onload=function(){var le={status:M.status,statusText:M.statusText,headers:A(M.getAllResponseHeaders()||"")};le.url="responseURL"in M?M.responseURL:le.headers.get("X-Request-URL");var we="response"in M?M.response:M.responseText;setTimeout(function(){L(new I(we,le))},0)},M.onerror=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.onabort=function(){setTimeout(function(){N(new o.DOMException("Aborted","AbortError"))},0)};function G(le){try{return le===""&&a.location.href?a.location.href:le}catch{return le}}M.open(D.method,G(D.url),!0),D.credentials==="include"?M.withCredentials=!0:D.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(l.blob?M.responseType="blob":l.arrayBuffer&&D.headers.get("Content-Type")&&D.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(M.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof y)?Object.getOwnPropertyNames(O.headers).forEach(function(le){M.setRequestHeader(le,p(O.headers[le]))}):D.headers.forEach(function(le,we){M.setRequestHeader(we,le)}),D.signal&&(D.signal.addEventListener("abort",K),M.onreadystatechange=function(){M.readyState===4&&D.signal.removeEventListener("abort",K)}),M.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return $.polyfill=!0,a.fetch||(a.fetch=$,a.Headers=y,a.Request=_,a.Response=I),o.Headers=y,o.Request=_,o.Response=I,o.fetch=$,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(Ui,Ui.exports)),Ui.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof _e<"u"&&_e.fetch?n=_e.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof k2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||P2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(du,du.exports);var Sm=du.exports;const bm=Pa(Sm),Tf=sm({__proto__:null,default:bm},[Sm]);function Fo(e){"@babel/helpers - typeof";return Fo=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},Fo(e)}var Zt;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Zt=global.fetch:typeof window<"u"&&window.fetch?Zt=window.fetch:Zt=fetch);var Vs;xm()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var $o;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?$o=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&($o=window.ActiveXObject));!Zt&&Tf&&!Vs&&!$o&&(Zt=bm||Tf);typeof Zt!="function"&&(Zt=void 0);var fu=function(t,n){if(n&&Fo(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},_f=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(a){r(null,{status:o.status,data:a})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):Zt(t,n).then(s).catch(r)},If=!1,O2=function(t,n,r,s){t.queryStringParams&&(n=fu(n,t.queryStringParams));var i=cu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=cu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},If?{}:o);try{_f(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),_f(n,a,s),If=!0}catch(u){s(u)}}},N2=function(t,n,r,s){r&&Fo(r)==="object"&&(r=fu("",r).slice(1)),t.queryStringParams&&(n=fu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new $o("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},j2=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Zt&&n.indexOf("file:")!==0)return O2(t,n,r,s);if(xm()||typeof ActiveXObject=="function")return N2(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}function T2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(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,Cm(r.key),r)}}function _2(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I2(e,t,n){return t=Cm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cm(e){var t=A2(e,"string");return Hs(t)==="symbol"?t:String(t)}function A2(e,t){if(Hs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return I2({},r,s||"")},parseLoadPayload:function(n,r){},request:j2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Em=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};T2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return _2(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=cu(s,this.options||{},L2()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,s)),l=R2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(c,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,a=typeof s=="string"?[s]:s,l=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var h,p;try{typeof d.data=="string"?h=o.options.parse(d.data,s,i):h=d.data}catch{p="failed parsing "+n+" to json"}if(p)return r(p,!1);r(null,h)})}},{key:"create",value:function(n,r,s,i,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,s,i),u=0,c=[],d=[];n.forEach(function(h){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(h,r));var m=a.services.interpolator.interpolate(p,{lng:h,ns:r});a.options.request(a.options,m,l,function(y,S){u+=1,c.push(y),d.push(S),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=i.toResolveHierarchy(d);h.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){s.read(c,d,"read",null,null,function(h,p){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&p&&o.log("loaded namespace ".concat(d," for language ").concat(c),p),s.loaded("".concat(c,"|").concat(d),h,p)})})})}}}]),e}();Em.type="backend";function M2(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Lf={};function hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Lf[t[0]]||(typeof t[0]=="string"&&(Lf[t[0]]=new Date),M2(...t))}const Rm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Mf(e,t,n){e.loadNamespaces(t,Rm(e,n))}function Df(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Rm(e,r))}function D2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}function F2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(hu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):D2(e,t,n)}const $2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},U2=e=>z2[e],B2=e=>e.replace($2,U2);let pu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:B2};function V2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pu={...pu,...e}}function H2(){return pu}let km;function q2(e){km=e}function Q2(){return km}const W2={type:"3rdParty",init(e){V2(e.options.react),q2(e)}},K2=x.createContext();class G2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const X2=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function pe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=x.useContext(K2)||{},i=n||r||Q2();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new G2),!i){hu("You will need to pass in an i18next instance by using initReactI18next");const w=(E,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(E)?E[E.length-1]:E,b=[w,{},!1];return b.t=w,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&hu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...H2(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(w=>F2(w,i,o));function d(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,p]=x.useState(d);let m=u.join();t.lng&&(m=`${t.lng}${m}`);const y=X2(m),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Df(i,t.lng,u,()=>{S.current&&p(d)}):Mf(i,u,()=>{S.current&&p(d)})),c&&y&&y!==m&&S.current&&p(d);function E(){S.current&&p(d)}return w&&i&&i.on(w,E),b&&i&&i.store.on(b,E),()=>{S.current=!1,w&&i&&w.split(" ").forEach(R=>i.off(R,E)),b&&i&&b.split(" ").forEach(R=>i.store.off(R,E))}},[i,m]);const g=x.useRef(!0);x.useEffect(()=>{S.current&&!g.current&&p(d),g.current=!1},[i,l]);const v=[h,i,c];if(v.t=h,v.i18n=i,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?Df(i,t.lng,u,()=>w()):Mf(i,u,()=>w())})}Ne.use(Em).use(W2).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class Xr{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const qs=typeof window>"u"||"Deno"in window;function at(){}function Y2(e,t){return typeof e=="function"?e(t):e}function mu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gr(e,t,n){return bi(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Z2(e,t,n){return bi(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function fn(e,t,n){return bi(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ff(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(bi(o)){if(r){if(t.queryHash!==zc(o,t.options))return!1}else if(!zo(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function $f(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(bi(i)){if(!t.options.mutationKey)return!1;if(n){if(Qn(t.options.mutationKey)!==Qn(i))return!1}else if(!zo(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function zc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qn)(e)}function Qn(e){return JSON.stringify(e,(t,n)=>gu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function zo(e,t){return Om(e,t)}function Om(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Om(e[n],t[n])):!1}function Nm(e,t){if(e===t)return e;const n=zf(e)&&zf(t);if(n||gu(e)&&gu(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let l=0;l<i;l++){const u=n?l:s[l];o[u]=Nm(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function Uo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gu(e){if(!Uf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Uf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Uf(e){return Object.prototype.toString.call(e)==="[object Object]"}function bi(e){return Array.isArray(e)}function jm(e){return new Promise(t=>{setTimeout(t,e)})}function Bf(e){jm(0).then(e)}function J2(){if(typeof AbortController=="function")return new AbortController}function vu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Nm(e,t):t}class ew extends Xr{constructor(){super(),this.setup=t=>{if(!qs&&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&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Bo=new ew,Vf=["online","offline"];class tw extends Xr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return Vf.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Vf.forEach(r=>{window.removeEventListener(r,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&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Vo=new tw;function nw(e){return Math.min(1e3*2**e,3e4)}function ja(e){return(e??"online")==="online"?Vo.isOnline():!0}class Tm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function go(e){return e instanceof Tm}function _m(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((S,g)=>{i=S,o=g}),l=S=>{r||(p(new Tm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Bo.isFocused()||e.networkMode!=="always"&&!Vo.isOnline(),h=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),s==null||s(),i(S))},p=S=>{r||(r=!0,e.onError==null||e.onError(S),s==null||s(),o(S))},m=()=>new Promise(S=>{s=g=>{const v=r||!d();return v&&S(g),v},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let S;try{S=e.fn()}catch(g){S=Promise.reject(g)}Promise.resolve(S).then(h).catch(g=>{var v,w;if(r)return;const b=(v=e.retry)!=null?v:3,E=(w=e.retryDelay)!=null?w:nw,R=typeof E=="function"?E(n,g):E,k=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,g);if(t||!k){p(g);return}n++,e.onFail==null||e.onFail(n,g),jm(R).then(()=>{if(d())return m()}).then(()=>{t?p(g):y()})})};return ja(e.networkMode)?y():m().then(y),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Uc=console;function rw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},i=c=>{t?e.push(c):Bf(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&Bf(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ae=rw();class Im{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(qs?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class sw extends Im{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Uc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||iw(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=vu(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(at).catch(at):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||!Pm(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.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(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,s;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 p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const o=J2(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),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!==((s=c.fetchOptions)==null?void 0:s.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=p=>{if(go(p)&&p.silent||this.dispatch({type:"error",error:p}),!go(p)){var m,y,S,g;(m=(y=this.cache.config).onError)==null||m.call(y,p,this),(S=(g=this.cache.config).onSettled)==null||S.call(g,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=_m({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:p=>{var m,y,S,g;if(typeof p>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(m=(y=this.cache.config).onSuccess)==null||m.call(y,p,this),(S=(g=this.cache.config).onSettled)==null||S.call(g,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(p,m)=>{this.dispatch({type:"failed",failureCount:p,error:m})},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 s,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:(s=t.meta)!=null?s:null,fetchStatus:ja(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 o=t.error;return go(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function iw(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 Am extends Xr{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:zc(i,n);let a=this.get(o);return a||(a=new sw({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}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(){ae.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=fn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Ff(r,s))}findAll(t,n){const[r]=fn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>Ff(r,s)):this.queries}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ae.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class ow extends Im{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Uc,this.observers=[],this.state=t.state||Lm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(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(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var k;return this.retryer=_m({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(P,_)=>{this.dispatch({type:"failed",failureCount:P,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,s,i,o,a,l,u,c;if(!n){var d,h,p,m;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(h=this.mutationCache.config).onMutate)==null?void 0:d.call(h,this.state.variables,this));const P=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,this.state.variables));P!==this.state.context&&this.dispatch({type:"loading",context:P,variables:this.state.variables})}const k=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,k,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,k,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,k,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var y,S,g,v,w,b,E,R;throw await((y=(S=this.mutationCache.config).onError)==null?void 0:y.call(S,k,this.state.variables,this.state.context,this)),await((g=(v=this.options).onError)==null?void 0:g.call(v,k,this.state.variables,this.state.context)),await((w=(b=this.mutationCache.config).onSettled)==null?void 0:w.call(b,void 0,k,this.state.variables,this.state.context,this)),await((E=(R=this.options).onSettled)==null?void 0:E.call(R,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}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:!ja(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),ae.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Lm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class aw extends Xr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new ow({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(s),s}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(){ae.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=>$f(t,n))}findAll(t){return this.mutations.filter(n=>$f(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ae.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(at)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function yu(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((i=e.state.data)==null?void 0:i.pages)||[],p=((o=e.state.data)==null?void 0:o.pageParams)||[];let m=p,y=!1;const S=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var k;if((k=e.signal)!=null&&k.aborted)y=!0;else{var P;(P=e.signal)==null||P.addEventListener("abort",()=>{y=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(R,k,P,_)=>(m=_?[k,...m]:[...m,k],_?[P,...R]:[...R,P]),w=(R,k,P,_)=>{if(y)return Promise.reject("Cancelled");if(typeof P>"u"&&!k&&R.length)return Promise.resolve(R);const F={queryKey:e.queryKey,pageParam:P,meta:e.options.meta};S(F);const A=g(F);return Promise.resolve(A).then(U=>v(R,P,U,_))};let b;if(!h.length)b=w([]);else if(c){const R=typeof u<"u",k=R?u:wu(e.options,h);b=w(h,R,k)}else if(d){const R=typeof u<"u",k=R?u:Mm(e.options,h);b=w(h,R,k,!0)}else{m=[];const R=typeof e.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?w([],R,p[0]):Promise.resolve(v([],p[0],h[0]));for(let P=1;P<h.length;P++)b=b.then(_=>{if(a&&h[P]?a(h[P],P,h):!0){const A=R?p[P]:wu(e.options,_);return w(_,R,A)}return Promise.resolve(v(_,p[P],h[P]))})}return b.then(R=>({pages:R,pageParams:m}))}}}}function wu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Mm(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function lw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=wu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function uw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Mm(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class cw{constructor(t={}){this.queryCache=t.queryCache||new Am,this.mutationCache=t.mutationCache||new aw,this.logger=t.logger||Uc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Bo.subscribe(()=>{Bo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Vo.subscribe(()=>{Vo.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]=fn(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 s=gr(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=Y2(n,i);if(typeof o>"u")return;const a=gr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ae.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=fn(t,n),s=this.queryCache;ae.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=fn(t,n,r),o=this.queryCache,a={type:"active",...s};return ae.batch(()=>(o.findAll(s).forEach(l=>{l.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,n,r){const[s,i={}]=fn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ae.batch(()=>this.queryCache.findAll(s).map(a=>a.cancel(i)));return Promise.all(o).then(at).catch(at)}invalidateQueries(t,n,r){const[s,i]=fn(t,n,r);return ae.batch(()=>{var o,a;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const l={...s,type:(o=(a=s.refetchType)!=null?a:s.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[s,i]=fn(t,n,r),o=ae.batch(()=>this.queryCache.findAll(s).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:s.refetchPage}})}));let a=Promise.all(o).then(at);return i!=null&&i.throwOnError||(a=a.catch(at)),a}fetchQuery(t,n,r){const s=gr(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(at).catch(at)}fetchInfiniteQuery(t,n,r){const s=gr(t,n,r);return s.behavior=yu(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(at).catch(at)}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(s=>Qn(t)===Qn(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>zo(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>Qn(t)===Qn(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>zo(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=zc(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 Dm extends Xr{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.size===1&&(this.currentQuery.addObserver(this),Hf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Uo(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&&qf(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return fw(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}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(at)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),qs||this.currentResult.isStale||!mu(this.options.staleTime))return;const n=Pm(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,!(qs||this.options.enabled===!1||!mu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Bo.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,s=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:h,error:p,errorUpdatedAt:m,fetchStatus:y,status:S}=d,g=!1,v=!1,w;if(n._optimisticResults){const P=this.hasListeners(),_=!P&&Hf(t,n),F=P&&qf(t,r,n,s);(_||F)&&(y=ja(t.options.networkMode)?"fetching":"paused",h||(S="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&S!=="error")w=c.data,h=c.dataUpdatedAt,S=c.status,g=!0;else if(n.select&&typeof d.data<"u")if(i&&d.data===(o==null?void 0:o.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=vu(i==null?void 0:i.data,w,n),this.selectResult=w,this.selectError=null}catch(P){this.selectError=P}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&S==="loading"){let P;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))P=i.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof P<"u")try{P=n.select(P),this.selectError=null}catch(_){this.selectError=_}typeof P<"u"&&(S="success",w=vu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(p=this.selectError,w=this.selectResult,m=Date.now(),S="error");const b=y==="fetching",E=S==="loading",R=S==="error";return{status:S,fetchStatus:y,isLoading:E,isSuccess:S==="success",isError:R,isInitialLoading:E&&b,data:w,dataUpdatedAt:h,error:p,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!E,isLoadingError:R&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:g,isRefetchError:R&&d.dataUpdatedAt!==0,isStale:Bc(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,Uo(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...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"&&!go(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ae.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function dw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return dw(e,t)||e.state.dataUpdatedAt>0&&xu(e,t,t.refetchOnMount)}function xu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bc(e,t)}return!1}function qf(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Bc(e,n)}function Bc(e,t){return e.isStaleByTime(t.staleTime)}function fw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Uo(e.getCurrentResult(),t)}class hw extends Dm{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:yu()},n)}getOptimisticResult(t){return t.behavior=yu(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,s,i,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,p=d&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",m=d&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:lw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:uw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:p,isFetchingPreviousPage:m,isRefetching:h&&!p&&!m}}}let pw=class extends Xr{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Uo(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Lm(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){ae.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,s,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(s=(i=this.mutateOptions).onSettled)==null||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,u;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var Fm={exports:{}},rt={},$m={exports:{}},zm={};/**
17
+ */var iS=b,oS=Symbol.for("react.element"),aS=Symbol.for("react.fragment"),lS=Object.prototype.hasOwnProperty,uS=iS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cS={key:!0,ref:!0,__self:!0,__source:!0};function uv(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lS.call(t,r)&&!cS.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:oS,type:e,key:i,ref:o,props:s,_owner:uS.current}}uu.Fragment=aS;uu.jsx=uv;uu.jsxs=uv;Z1.exports=uu;var c=Z1.exports;const dS={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||dS,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new al(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new al(this.logger,t)}}var xn=new al;class cu{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function mi(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Wp(e){return e==null?"":""+e}function fS(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Lf(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function Kp(e,t,n){const{obj:r,k:s}=Lf(e,t,Object);r[s]=n}function hS(e,t,n,r){const{obj:s,k:i}=Lf(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function ll(e,t){const{obj:n,k:r}=Lf(e,t);if(n)return n[r]}function pS(e,t,n){const r=ll(e,n);return r!==void 0?r:ll(t,n)}function cv(e,t,n){for(const 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]):cv(e[r],t[r],n):e[r]=t[r]);return e}function cs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var mS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function gS(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>mS[t]):e}const vS=[" ",",","?","!",";"];function yS(e,t,n){t=t||"",n=n||"";const r=vS.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function ul(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(i+o).join(n);return u?ul(l,u,n):void 0}s=s[r[i]]}return s}function cl(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Gp extends cu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=ll(this.data,a);return l||!o||typeof r!="string"?l:ul(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),Kp(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=ll(this.data,a)||{};s?cv(l,r,i):l={...l,...r},Kp(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var dv={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Xp={};class dl extends cu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),fS(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!yS(t,r,s);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const S=n.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let h=f&&f.res;const p=f&&f.usedKey||o,m=f&&f.exactUsedKey||o,y=Object.prototype.toString.apply(h),w=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&w.indexOf(y)<0&&!(typeof g=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(f.res=S,f.usedParams=this.getUsedParamsDetails(n),f):S}if(i){const S=y==="[object Array]",C=S?[]:{},j=S?m:p;for(const k in h)if(Object.prototype.hasOwnProperty.call(h,k)){const O=`${j}${i}${k}`;C[k]=this.translate(O,{...n,joinArrays:!1,ns:a}),C[k]===O&&(C[k]=h[k])}h=C}}else if(v&&typeof g=="string"&&y==="[object Array]")h=h.join(g),h&&(h=this.extendTranslation(h,t,n,r));else{let S=!1,C=!1;const j=n.count!==void 0&&typeof n.count!="string",k=dl.hasDefaultValue(n),O=j?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&j?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=n[`defaultValue${O}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(h)&&k&&(S=!0,h=_),this.isValidLookup(h)||(C=!0,h=o);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,$=k&&_!==h&&this.options.updateMissing;if(C||S||$){if(this.logger.log($?"updateKey":"missingKey",u,l,o,$?_:h),i){const L=this.resolve(o,{...n,keySeparator:!1});L&&L.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.")}let D=[];const E=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&E&&E[0])for(let L=0;L<E.length;L++)D.push(E[L]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);const N=(L,P,B)=>{const z=k&&B!==h?B:T;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,P,z,$,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,P,z,$,n),this.emit("missingKey",L,l,P,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?D.forEach(L=>{this.pluralResolver.getSuffixes(L,n).forEach(P=>{N([L],o+P,n[`defaultValue${P}`]||_)})}):N(D,o,_))}h=this.extendTranslation(h,t,n,f,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(f.res=h,f.usedParams=this.getUsedParamsDetails(n),f):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),p=h&&h.length;d<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return i&&i[0]===p[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):o.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=dv.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),d=u.key;s=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",p=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(w=>{this.isValidLookup(r)||(a=w,!Xp[`${y[0]}-${w}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Xp[`${y[0]}-${w}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),y.forEach(g=>{if(this.isValidLookup(r))return;o=g;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,g,w,n);else{let S;h&&(S=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,j=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(d+S),n.ordinal&&S.indexOf(j)===0&&v.push(d+S.replace(j,this.options.pluralSeparator)),p&&v.push(d+C)),m){const k=`${d}${this.options.contextSeparator}${n.context}`;v.push(k),h&&(v.push(k+S),n.ordinal&&S.indexOf(j)===0&&v.push(k+S.replace(j,this.options.pluralSeparator)),p&&v.push(k+C))}}let x;for(;x=v.pop();)this.isValidLookup(r)||(i=x,r=this.getResource(g,w,x,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function hc(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Yp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xn.create("languageUtils")}getScriptPartFromCode(t){if(t=cl(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=cl(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=hc(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=hc(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=hc(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let xS=[{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}],wS={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const bS=["v1","v2","v3"],SS=["v4"],Jp={zero:0,one:1,two:2,few:3,many:4,other:5};function CS(){const e={};return xS.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:wS[t.fc]}})}),e}class ES{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xn.create("pluralResolver"),(!this.options.compatibilityJSON||SS.includes(this.options.compatibilityJSON))&&(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=CS()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(cl(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>Jp[s]-Jp[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!bS.includes(this.options.compatibilityJSON)}}function Zp(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=pS(e,t,n);return!i&&s&&typeof n=="string"&&(i=ul(e,n,r),i===void 0&&(i=ul(t,n,r))),i}class kS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:gS,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?cs(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?cs(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?cs(n.nestingPrefix):n.nestingPrefixEscaped||cs("$t("),this.nestingSuffix=n.nestingSuffix?cs(n.nestingSuffix):n.nestingSuffixEscaped||cs(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(m){return m.replace(/\$/g,"$$$$")}const d=m=>{if(m.indexOf(this.formatSeparator)<0){const v=Zp(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:m}):v}const y=m.split(this.formatSeparator),w=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Zp(n,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...s,...n,interpolationkey:w})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>u(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?u(this.escape(m)):u(m)}].forEach(m=>{for(a=0;i=m.regex.exec(t);){const y=i[1].trim();if(o=d(y),o===void 0)if(typeof f=="function"){const g=f(t,i,s);o=typeof g=="string"?g:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Wp(o));const w=m.safeValue(o);if(t=t.replace(i[0],w),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function a(l,u){const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let h=`{${f[1]}`;l=f[0],h=this.interpolate(h,o);const p=h.match(/'/g),m=h.match(/"/g);(p&&p.length%2===0&&!m||m.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${d}${h}`}return delete o.defaultValue,l}for(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const d=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=d.shift(),l=d,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Wp(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function jS(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function ds(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(cl(s),i),t[o]=a),a(r)}}class RS{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xn.create("formatter"),this.options=t,this.formats={number:ds((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:ds((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:ds((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:ds((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:ds((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ds(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:d}=jS(l);if(this.formats[u]){let f=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},p=h.locale||h.lng||s.locale||s.lng||r;f=this.formats[u](a,p,{...d,...s,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function OS(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class NS extends cu{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=xn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},a={},l={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const h=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,d=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(a[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{hS(l.loaded,[i],o),OS(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const d=l.loaded[u];d.length&&d.forEach(f=>{a[u][f]===void 0&&(a[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,s,l):d=u(t,n,r,s),d&&typeof d.then=="function"?d.then(f=>a(null,f)).catch(a):a(null,d)}catch(d){a(d)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function em(){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:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tm(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 ca(){}function PS(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class no extends cu{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=tm(t),this.services={},this.logger=xn,this.modules={external:[]},PS(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=em();this.options={...s,...this.options,...tm(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?xn.init(i(this.modules.logger),this.options):xn.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=RS);const f=new Yp(this.options);this.store=new Gp(this.options.resources,this.options);const h=this.services;h.logger=xn,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new ES(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=i(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new kS(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new NS(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),w=1;w<m;w++)y[w-1]=arguments[w];t.emit(p,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new dl(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),w=1;w<m;w++)y[w-1]=arguments[w];t.emit(p,...y)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ca),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=mi(),u=()=>{const d=(f,h)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),r(f,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=mi();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ca),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&dv.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=mi();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{o(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),s}getFixedT(t,n,r){var s=this;const i=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];l=s.options.overloadTranslationOptionHandler([o,a].concat(d))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix=l.keyPrefix||r||i.keyPrefix;const h=s.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(o)?p=o.map(m=>`${l.keyPrefix}${h}${m}`):p=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(p,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=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;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=mi();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=mi();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new Yp(em());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new no(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ca;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new no(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Gp(this.store.data,s),i.services.resourceStore=i.store),i.translator=new dl(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Xe=no.createInstance();Xe.createInstance=no.createInstance;Xe.createInstance;Xe.dir;Xe.init;Xe.loadResources;Xe.reloadResources;Xe.use;Xe.changeLanguage;Xe.getFixedT;const bt=Xe.t;Xe.exists;Xe.setDefaultNamespace;Xe.hasLoadedNamespace;Xe.loadNamespaces;Xe.loadLanguages;function od(e){"@babel/helpers - typeof";return od=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},od(e)}var fv=[],AS=fv.forEach,_S=fv.slice;function ad(e){return AS.call(_S.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function hv(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":od(XMLHttpRequest))==="object"}function TS(e){return!!e&&typeof e.then=="function"}function IS(e){return TS(e)?e:Promise.resolve(e)}function DS(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ld={exports:{}},da={exports:{}},nm;function MS(){return nm||(nm=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof tt<"u"&&tt,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a=typeof i<"u"&&i||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(E){return E&&DataView.prototype.isPrototypeOf(E)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(E){return E&&d.indexOf(Object.prototype.toString.call(E))>-1};function h(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(E)||E==="")throw new TypeError('Invalid character in header field name: "'+E+'"');return E.toLowerCase()}function p(E){return typeof E!="string"&&(E=String(E)),E}function m(E){var N={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return l.iterable&&(N[Symbol.iterator]=function(){return N}),N}function y(E){this.map={},E instanceof y?E.forEach(function(N,L){this.append(L,N)},this):Array.isArray(E)?E.forEach(function(N){this.append(N[0],N[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(N){this.append(N,E[N])},this)}y.prototype.append=function(E,N){E=h(E),N=p(N);var L=this.map[E];this.map[E]=L?L+", "+N:N},y.prototype.delete=function(E){delete this.map[h(E)]},y.prototype.get=function(E){return E=h(E),this.has(E)?this.map[E]:null},y.prototype.has=function(E){return this.map.hasOwnProperty(h(E))},y.prototype.set=function(E,N){this.map[h(E)]=p(N)},y.prototype.forEach=function(E,N){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(N,this.map[L],L,this)},y.prototype.keys=function(){var E=[];return this.forEach(function(N,L){E.push(L)}),m(E)},y.prototype.values=function(){var E=[];return this.forEach(function(N){E.push(N)}),m(E)},y.prototype.entries=function(){var E=[];return this.forEach(function(N,L){E.push([L,N])}),m(E)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function w(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function g(E){return new Promise(function(N,L){E.onload=function(){N(E.result)},E.onerror=function(){L(E.error)}})}function v(E){var N=new FileReader,L=g(N);return N.readAsArrayBuffer(E),L}function x(E){var N=new FileReader,L=g(N);return N.readAsText(E),L}function S(E){for(var N=new Uint8Array(E),L=new Array(N.length),P=0;P<N.length;P++)L[P]=String.fromCharCode(N[P]);return L.join("")}function C(E){if(E.slice)return E.slice(0);var N=new Uint8Array(E.byteLength);return N.set(new Uint8Array(E)),N.buffer}function j(){return this.bodyUsed=!1,this._initBody=function(E){this.bodyUsed=this.bodyUsed,this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:l.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:l.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():l.arrayBuffer&&l.blob&&u(E)?(this._bodyArrayBuffer=C(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||f(E))?this._bodyArrayBuffer=C(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var E=w(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var E=w(this);return E||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var E=w(this);if(E)return E;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(E){var N=E.toUpperCase();return k.indexOf(N)>-1?N:E}function A(E,N){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N=N||{};var L=N.body;if(E instanceof A){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,N.headers||(this.headers=new y(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!L&&E._bodyInit!=null&&(L=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=N.credentials||this.credentials||"same-origin",(N.headers||!this.headers)&&(this.headers=new y(N.headers)),this.method=O(N.method||this.method||"GET"),this.mode=N.mode||this.mode||null,this.signal=N.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(N.cache==="no-store"||N.cache==="no-cache")){var P=/([?&])_=[^&]*/;if(P.test(this.url))this.url=this.url.replace(P,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function _(E){var N=new FormData;return E.trim().split("&").forEach(function(L){if(L){var P=L.split("="),B=P.shift().replace(/\+/g," "),z=P.join("=").replace(/\+/g," ");N.append(decodeURIComponent(B),decodeURIComponent(z))}}),N}function F(E){var N=new y,L=E.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(P){return P.indexOf(`
18
+ `)===0?P.substr(1,P.length):P}).forEach(function(P){var B=P.split(":"),z=B.shift().trim();if(z){var ee=B.join(":").trim();N.append(z,ee)}}),N}j.call(A.prototype);function T(E,N){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N||(N={}),this.type="default",this.status=N.status===void 0?200:N.status,this.ok=this.status>=200&&this.status<300,this.statusText=N.statusText===void 0?"":""+N.statusText,this.headers=new y(N.headers),this.url=N.url||"",this._initBody(E)}j.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},T.error=function(){var E=new T(null,{status:0,statusText:""});return E.type="error",E};var $=[301,302,303,307,308];T.redirect=function(E,N){if($.indexOf(N)===-1)throw new RangeError("Invalid status code");return new T(null,{status:N,headers:{location:E}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(N,L){this.message=N,this.name=L;var P=Error(N);this.stack=P.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function D(E,N){return new Promise(function(L,P){var B=new A(E,N);if(B.signal&&B.signal.aborted)return P(new o.DOMException("Aborted","AbortError"));var z=new XMLHttpRequest;function ee(){z.abort()}z.onload=function(){var le={status:z.status,statusText:z.statusText,headers:F(z.getAllResponseHeaders()||"")};le.url="responseURL"in z?z.responseURL:le.headers.get("X-Request-URL");var te="response"in z?z.response:z.responseText;setTimeout(function(){L(new T(te,le))},0)},z.onerror=function(){setTimeout(function(){P(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){P(new TypeError("Network request failed"))},0)},z.onabort=function(){setTimeout(function(){P(new o.DOMException("Aborted","AbortError"))},0)};function J(le){try{return le===""&&a.location.href?a.location.href:le}catch{return le}}z.open(B.method,J(B.url),!0),B.credentials==="include"?z.withCredentials=!0:B.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(l.blob?z.responseType="blob":l.arrayBuffer&&B.headers.get("Content-Type")&&B.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(z.responseType="arraybuffer")),N&&typeof N.headers=="object"&&!(N.headers instanceof y)?Object.getOwnPropertyNames(N.headers).forEach(function(le){z.setRequestHeader(le,p(N.headers[le]))}):B.headers.forEach(function(le,te){z.setRequestHeader(te,le)}),B.signal&&(B.signal.addEventListener("abort",ee),z.onreadystatechange=function(){z.readyState===4&&B.signal.removeEventListener("abort",ee)}),z.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return D.polyfill=!0,a.fetch||(a.fetch=D,a.Headers=y,a.Request=A,a.Response=T),o.Headers=y,o.Request=A,o.Response=T,o.fetch=D,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(da,da.exports)),da.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof tt<"u"&&tt.fetch?n=tt.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof DS<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||MS();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(ld,ld.exports);var pv=ld.exports;const mv=$o(pv),rm=J1({__proto__:null,default:mv},[pv]);function fl(e){"@babel/helpers - typeof";return fl=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},fl(e)}var Ln;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Ln=global.fetch:typeof window<"u"&&window.fetch?Ln=window.fetch:Ln=fetch);var ro;hv()&&(typeof global<"u"&&global.XMLHttpRequest?ro=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ro=window.XMLHttpRequest));var hl;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?hl=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(hl=window.ActiveXObject));!Ln&&rm&&!ro&&!hl&&(Ln=mv||rm);typeof Ln!="function"&&(Ln=void 0);var ud=function(t,n){if(n&&fl(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},sm=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(a){r(null,{status:o.status,data:a})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):Ln(t,n).then(s).catch(r)},im=!1,LS=function(t,n,r,s){t.queryStringParams&&(n=ud(n,t.queryStringParams));var i=ad({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=ad({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},im?{}:o);try{sm(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),sm(n,a,s),im=!0}catch(u){s(u)}}},FS=function(t,n,r,s){r&&fl(r)==="object"&&(r=ud("",r).slice(1)),t.queryStringParams&&(n=ud(n,t.queryStringParams));try{var i;ro?i=new ro:i=new hl("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},$S=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Ln&&n.indexOf("file:")!==0)return LS(t,n,r,s);if(hv()||typeof ActiveXObject=="function")return FS(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function so(e){"@babel/helpers - typeof";return so=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},so(e)}function BS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function om(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,gv(r.key),r)}}function zS(e,t,n){return t&&om(e.prototype,t),n&&om(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VS(e,t,n){return t=gv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gv(e){var t=US(e,"string");return so(t)==="symbol"?t:String(t)}function US(e,t){if(so(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(so(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HS=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return VS({},r,s||"")},parseLoadPayload:function(n,r){},request:$S,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},vv=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};BS(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return zS(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=ad(s,this.options||{},HS()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,s)),l=IS(l),l.then(function(u){if(!u)return o(null,{});var d=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(d,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,a=typeof s=="string"?[s]:s,l=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(d,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&d&&d.message&&d.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+d.message,!0);if(d)return r(d,!1);var h,p;try{typeof f.data=="string"?h=o.options.parse(f.data,s,i):h=f.data}catch{p="failed parsing "+n+" to json"}if(p)return r(p,!1);r(null,h)})}},{key:"create",value:function(n,r,s,i,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,s,i),u=0,d=[],f=[];n.forEach(function(h){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(h,r));var m=a.services.interpolator.interpolate(p,{lng:h,ns:r});a.options.request(a.options,m,l,function(y,w){u+=1,d.push(y),f.push(w),u===n.length&&typeof o=="function"&&o(d,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(f){var h=i.toResolveHierarchy(f);h.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),l.forEach(function(d){n.allOptions.ns.forEach(function(f){s.read(d,f,"read",null,null,function(h,p){h&&o.warn("loading namespace ".concat(f," for language ").concat(d," failed"),h),!h&&p&&o.log("loaded namespace ".concat(f," for language ").concat(d),p),s.loaded("".concat(d,"|").concat(f),h,p)})})})}}}]),e}();vv.type="backend";function qS(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const am={};function cd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&am[t[0]]||(typeof t[0]=="string"&&(am[t[0]]=new Date),qS(...t))}const yv=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function lm(e,t,n){e.loadNamespaces(t,yv(e,n))}function um(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,yv(e,r))}function QS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}function WS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(cd("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):QS(e,t,n)}const KS=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,GS={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},XS=e=>GS[e],YS=e=>e.replace(KS,XS);let dd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:YS};function JS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dd={...dd,...e}}function ZS(){return dd}let xv;function e4(e){xv=e}function t4(){return xv}const n4={type:"3rdParty",init(e){JS(e.options.react),e4(e)}},r4=b.createContext();class s4{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const i4=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function re(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=b.useContext(r4)||{},i=n||r||t4();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new s4),!i){cd("You will need to pass in an i18next instance by using initReactI18next");const x=(C,j)=>typeof j=="string"?j:j&&typeof j=="object"&&typeof j.defaultValue=="string"?j.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[x,{},!1];return S.t=x,S.i18n={},S.ready=!1,S}i.options.react&&i.options.react.wait!==void 0&&cd("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...ZS(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const d=(i.isInitialized||i.initializedStoreOnce)&&u.every(x=>WS(x,i,o));function f(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,p]=b.useState(f);let m=u.join();t.lng&&(m=`${t.lng}${m}`);const y=i4(m),w=b.useRef(!0);b.useEffect(()=>{const{bindI18n:x,bindI18nStore:S}=o;w.current=!0,!d&&!a&&(t.lng?um(i,t.lng,u,()=>{w.current&&p(f)}):lm(i,u,()=>{w.current&&p(f)})),d&&y&&y!==m&&w.current&&p(f);function C(){w.current&&p(f)}return x&&i&&i.on(x,C),S&&i&&i.store.on(S,C),()=>{w.current=!1,x&&i&&x.split(" ").forEach(j=>i.off(j,C)),S&&i&&S.split(" ").forEach(j=>i.store.off(j,C))}},[i,m]);const g=b.useRef(!0);b.useEffect(()=>{w.current&&!g.current&&p(f),g.current=!1},[i,l]);const v=[h,i,d];if(v.t=h,v.i18n=i,v.ready=d,d||!d&&!a)return v;throw new Promise(x=>{t.lng?um(i,t.lng,u,()=>x()):lm(i,u,()=>x())})}Xe.use(vv).use(n4).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class ri{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const io=typeof window>"u"||"Deno"in window;function Dt(){}function o4(e,t){return typeof e=="function"?e(t):e}function fd(e){return typeof e=="number"&&e>=0&&e!==1/0}function wv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ms(e,t,n){return zo(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function a4(e,t,n){return zo(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Jn(e,t,n){return zo(e)?[{...t,queryKey:e},n]:[e||{},t]}function cm(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(zo(o)){if(r){if(t.queryHash!==Ff(o,t.options))return!1}else if(!pl(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function dm(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(zo(i)){if(!t.options.mutationKey)return!1;if(n){if($r(t.options.mutationKey)!==$r(i))return!1}else if(!pl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function Ff(e,t){return((t==null?void 0:t.queryKeyHashFn)||$r)(e)}function $r(e){return JSON.stringify(e,(t,n)=>hd(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function pl(e,t){return bv(e,t)}function bv(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!bv(e[n],t[n])):!1}function Sv(e,t){if(e===t)return e;const n=fm(e)&&fm(t);if(n||hd(e)&&hd(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let l=0;l<i;l++){const u=n?l:s[l];o[u]=Sv(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function ml(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hd(e){if(!hm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!hm(n)||!n.hasOwnProperty("isPrototypeOf"))}function hm(e){return Object.prototype.toString.call(e)==="[object Object]"}function zo(e){return Array.isArray(e)}function Cv(e){return new Promise(t=>{setTimeout(t,e)})}function pm(e){Cv(0).then(e)}function l4(){if(typeof AbortController=="function")return new AbortController}function pd(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Sv(e,t):t}class u4 extends ri{constructor(){super(),this.setup=t=>{if(!io&&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&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const gl=new u4,mm=["online","offline"];class c4 extends ri{constructor(){super(),this.setup=t=>{if(!io&&window.addEventListener){const n=()=>t();return mm.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{mm.forEach(r=>{window.removeEventListener(r,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&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const vl=new c4;function d4(e){return Math.min(1e3*2**e,3e4)}function du(e){return(e??"online")==="online"?vl.isOnline():!0}class Ev{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ba(e){return e instanceof Ev}function kv(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((w,g)=>{i=w,o=g}),l=w=>{r||(p(new Ev(w)),e.abort==null||e.abort())},u=()=>{t=!0},d=()=>{t=!1},f=()=>!gl.isFocused()||e.networkMode!=="always"&&!vl.isOnline(),h=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),s==null||s(),i(w))},p=w=>{r||(r=!0,e.onError==null||e.onError(w),s==null||s(),o(w))},m=()=>new Promise(w=>{s=g=>{const v=r||!f();return v&&w(g),v},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let w;try{w=e.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(h).catch(g=>{var v,x;if(r)return;const S=(v=e.retry)!=null?v:3,C=(x=e.retryDelay)!=null?x:d4,j=typeof C=="function"?C(n,g):C,k=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,g);if(t||!k){p(g);return}n++,e.onFail==null||e.onFail(n,g),Cv(j).then(()=>{if(f())return m()}).then(()=>{t?p(g):y()})})};return du(e.networkMode)?y():m().then(y),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:d}}const $f=console;function f4(){let e=[],t=0,n=d=>{d()},r=d=>{d()};const s=d=>{let f;t++;try{f=d()}finally{t--,t||a()}return f},i=d=>{t?e.push(d):pm(()=>{n(d)})},o=d=>(...f)=>{i(()=>{d(...f)})},a=()=>{const d=e;e=[],d.length&&pm(()=>{r(()=>{d.forEach(f=>{n(f)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d}}}const ke=f4();class jv{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fd(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(io?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class h4 extends jv{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||$f,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||p4(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=pd(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(Dt).catch(Dt):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||!wv(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.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(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,s;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 p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const o=l4(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),d={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(d),(r=this.options.behavior)==null||r.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=d.fetchOptions)==null?void 0:s.meta)){var f;this.dispatch({type:"fetch",meta:(f=d.fetchOptions)==null?void 0:f.meta})}const h=p=>{if(Ba(p)&&p.silent||this.dispatch({type:"error",error:p}),!Ba(p)){var m,y,w,g;(m=(y=this.cache.config).onError)==null||m.call(y,p,this),(w=(g=this.cache.config).onSettled)==null||w.call(g,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=kv({fn:d.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:p=>{var m,y,w,g;if(typeof p>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(m=(y=this.cache.config).onSuccess)==null||m.call(y,p,this),(w=(g=this.cache.config).onSettled)==null||w.call(g,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(p,m)=>{this.dispatch({type:"failed",failureCount:p,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var s,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:(s=t.meta)!=null?s:null,fetchStatus:du(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 o=t.error;return Ba(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function p4(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 Rv extends ri{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:Ff(i,n);let a=this.get(o);return a||(a=new h4({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}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(){ke.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Jn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>cm(r,s))}findAll(t,n){const[r]=Jn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>cm(r,s)):this.queries}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ke.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class m4 extends jv{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||$f,this.observers=[],this.state=t.state||Ov(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(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(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var k;return this.retryer=kv({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,A)=>{this.dispatch({type:"failed",failureCount:O,error:A})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,s,i,o,a,l,u,d;if(!n){var f,h,p,m;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(h=this.mutationCache.config).onMutate)==null?void 0:f.call(h,this.state.variables,this));const O=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,this.state.variables));O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const k=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,k,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,k,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,k,null,this.state.variables,this.state.context,this)),await((u=(d=this.options).onSettled)==null?void 0:u.call(d,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var y,w,g,v,x,S,C,j;throw await((y=(w=this.mutationCache.config).onError)==null?void 0:y.call(w,k,this.state.variables,this.state.context,this)),await((g=(v=this.options).onError)==null?void 0:g.call(v,k,this.state.variables,this.state.context)),await((x=(S=this.mutationCache.config).onSettled)==null?void 0:x.call(S,void 0,k,this.state.variables,this.state.context,this)),await((C=(j=this.options).onSettled)==null?void 0:C.call(j,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}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:!du(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),ke.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Ov(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class g4 extends ri{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new m4({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(s),s}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(){ke.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=>dm(t,n))}findAll(t){return this.mutations.filter(n=>dm(t,n))}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ke.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(Dt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function md(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.fetchMore,u=l==null?void 0:l.pageParam,d=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",h=((i=e.state.data)==null?void 0:i.pages)||[],p=((o=e.state.data)==null?void 0:o.pageParams)||[];let m=p,y=!1;const w=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>{var k;if((k=e.signal)!=null&&k.aborted)y=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{y=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(j,k,O,A)=>(m=A?[k,...m]:[...m,k],A?[O,...j]:[...j,O]),x=(j,k,O,A)=>{if(y)return Promise.reject("Cancelled");if(typeof O>"u"&&!k&&j.length)return Promise.resolve(j);const _={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};w(_);const F=g(_);return Promise.resolve(F).then($=>v(j,O,$,A))};let S;if(!h.length)S=x([]);else if(d){const j=typeof u<"u",k=j?u:gd(e.options,h);S=x(h,j,k)}else if(f){const j=typeof u<"u",k=j?u:Nv(e.options,h);S=x(h,j,k,!0)}else{m=[];const j=typeof e.options.getNextPageParam>"u";S=(a&&h[0]?a(h[0],0,h):!0)?x([],j,p[0]):Promise.resolve(v([],p[0],h[0]));for(let O=1;O<h.length;O++)S=S.then(A=>{if(a&&h[O]?a(h[O],O,h):!0){const F=j?p[O]:gd(e.options,A);return x(A,j,F)}return Promise.resolve(v(A,p[O],h[O]))})}return S.then(j=>({pages:j,pageParams:m}))}}}}function gd(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Nv(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function v4(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=gd(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function y4(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Nv(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class x4{constructor(t={}){this.queryCache=t.queryCache||new Rv,this.mutationCache=t.mutationCache||new g4,this.logger=t.logger||$f,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=gl.subscribe(()=>{gl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=vl.subscribe(()=>{vl.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]=Jn(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 s=ms(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=o4(n,i);if(typeof o>"u")return;const a=ms(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ke.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Jn(t,n),s=this.queryCache;ke.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=Jn(t,n,r),o=this.queryCache,a={type:"active",...s};return ke.batch(()=>(o.findAll(s).forEach(l=>{l.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,n,r){const[s,i={}]=Jn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ke.batch(()=>this.queryCache.findAll(s).map(a=>a.cancel(i)));return Promise.all(o).then(Dt).catch(Dt)}invalidateQueries(t,n,r){const[s,i]=Jn(t,n,r);return ke.batch(()=>{var o,a;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const l={...s,type:(o=(a=s.refetchType)!=null?a:s.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[s,i]=Jn(t,n,r),o=ke.batch(()=>this.queryCache.findAll(s).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:s.refetchPage}})}));let a=Promise.all(o).then(Dt);return i!=null&&i.throwOnError||(a=a.catch(Dt)),a}fetchQuery(t,n,r){const s=ms(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Dt).catch(Dt)}fetchInfiniteQuery(t,n,r){const s=ms(t,n,r);return s.behavior=md(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Dt).catch(Dt)}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(s=>$r(t)===$r(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>pl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>$r(t)===$r(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>pl(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=Ff(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 Pv extends ri{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.size===1&&(this.currentQuery.addObserver(this),gm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vd(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),ml(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&&vm(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return b4(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}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(Dt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),io||this.currentResult.isStale||!fd(this.options.staleTime))return;const n=wv(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,!(io||this.options.enabled===!1||!fd(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||gl.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,s=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:h,error:p,errorUpdatedAt:m,fetchStatus:y,status:w}=f,g=!1,v=!1,x;if(n._optimisticResults){const O=this.hasListeners(),A=!O&&gm(t,n),_=O&&vm(t,r,n,s);(A||_)&&(y=du(t.options.networkMode)?"fetching":"paused",h||(w="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&d!=null&&d.isSuccess&&w!=="error")x=d.data,h=d.dataUpdatedAt,w=d.status,g=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(o==null?void 0:o.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(f.data),x=pd(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(O){this.selectError=O}else x=f.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&w==="loading"){let O;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))O=i.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof O<"u")try{O=n.select(O),this.selectError=null}catch(A){this.selectError=A}typeof O<"u"&&(w="success",x=pd(i==null?void 0:i.data,O,n),v=!0)}this.selectError&&(p=this.selectError,x=this.selectResult,m=Date.now(),w="error");const S=y==="fetching",C=w==="loading",j=w==="error";return{status:w,fetchStatus:y,isLoading:C,isSuccess:w==="success",isError:j,isInitialLoading:C&&S,data:x,dataUpdatedAt:h,error:p,errorUpdatedAt:m,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:S,isRefetching:S&&!C,isLoadingError:j&&f.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:g,isRefetchError:j&&f.dataUpdatedAt!==0,isStale:Bf(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,ml(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const d=u;return this.currentResult[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...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"&&!Ba(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ke.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function w4(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gm(e,t){return w4(e,t)||e.state.dataUpdatedAt>0&&vd(e,t,t.refetchOnMount)}function vd(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bf(e,t)}return!1}function vm(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Bf(e,n)}function Bf(e,t){return e.isStaleByTime(t.staleTime)}function b4(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!ml(e.getCurrentResult(),t)}class S4 extends Pv{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:md()},n)}getOptimisticResult(t){return t.behavior=md(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,s,i,o,a,l;const{state:u}=t,d=super.createResult(t,n),{isFetching:f,isRefetching:h}=d,p=f&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",m=f&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...d,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v4(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:y4(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:p,isFetchingPreviousPage:m,isRefetching:h&&!p&&!m}}}let C4=class extends ri{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),ml(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Ov(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){ke.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,s,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(s=(i=this.mutateOptions).onSettled)==null||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,u;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)})})}};var Av={exports:{}},At={},_v={exports:{}},Tv={};/**
19
19
  * @license React
20
20
  * scheduler.production.min.js
21
21
  *
@@ -23,7 +23,7 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */(function(e){function t(N,D){var M=N.length;N.push(D);e:for(;0<M;){var K=M-1>>>1,G=N[K];if(0<s(G,D))N[K]=D,N[M]=G,M=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var D=N[0],M=N.pop();if(M!==D){N[0]=M;e:for(var K=0,G=N.length,le=G>>>1;K<le;){var we=2*(K+1)-1,xe=N[we],X=we+1,me=N[X];if(0>s(xe,M))X<G&&0>s(me,xe)?(N[K]=me,N[X]=M,K=X):(N[K]=xe,N[we]=M,K=we);else if(X<G&&0>s(me,M))N[K]=me,N[X]=M,K=X;else break e}}return D}function s(N,D){var M=N.sortIndex-D.sortIndex;return M!==0?M:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,p=!1,m=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=N)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function b(N){if(y=!1,w(N),!m)if(n(l)!==null)m=!0,O(E);else{var D=n(u);D!==null&&L(b,D.startTime-N)}}function E(N,D){m=!1,y&&(y=!1,g(P),P=-1),p=!0;var M=h;try{for(w(D),d=n(l);d!==null&&(!(d.expirationTime>D)||N&&!A());){var K=d.callback;if(typeof K=="function"){d.callback=null,h=d.priorityLevel;var G=K(d.expirationTime<=D);D=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),w(D)}else r(l);d=n(l)}if(d!==null)var le=!0;else{var we=n(u);we!==null&&L(b,we.startTime-D),le=!1}return le}finally{d=null,h=M,p=!1}}var R=!1,k=null,P=-1,_=5,F=-1;function A(){return!(e.unstable_now()-F<_)}function I(){if(k!==null){var N=e.unstable_now();F=N;var D=!0;try{D=k(!0,N)}finally{D?U():(R=!1,k=null)}}else R=!1}var U;if(typeof v=="function")U=function(){v(I)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,C=$.port2;$.port1.onmessage=I,U=function(){C.postMessage(null)}}else U=function(){S(I,0)};function O(N){k=N,R||(R=!0,U())}function L(N,D){P=S(function(){N(e.unstable_now())},D)}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(N){N.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,O(E))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var D=3;break;default:D=h}var M=h;h=D;try{return N()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,D){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var M=h;h=N;try{return D()}finally{h=M}},e.unstable_scheduleCallback=function(N,D,M){var K=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?K+M:K):M=K,N){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=M+G,N={id:c++,callback:D,priorityLevel:N,startTime:M,expirationTime:G,sortIndex:-1},M>K?(N.sortIndex=M,t(u,N),n(l)===null&&N===n(u)&&(y?(g(P),P=-1):y=!0,L(b,M-K))):(N.sortIndex=G,t(l,N),m||p||(m=!0,O(E))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var D=h;return function(){var M=h;h=D;try{return N.apply(this,arguments)}finally{h=M}}}})(zm);$m.exports=zm;var mw=$m.exports;/**
26
+ */(function(e){function t(P,B){var z=P.length;P.push(B);e:for(;0<z;){var ee=z-1>>>1,J=P[ee];if(0<s(J,B))P[ee]=B,P[z]=J,z=ee;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var B=P[0],z=P.pop();if(z!==B){P[0]=z;e:for(var ee=0,J=P.length,le=J>>>1;ee<le;){var te=2*(ee+1)-1,ae=P[te],de=te+1,ye=P[de];if(0>s(ae,z))de<J&&0>s(ye,ae)?(P[ee]=ye,P[de]=z,ee=de):(P[ee]=ae,P[te]=z,ee=te);else if(de<J&&0>s(ye,z))P[ee]=ye,P[de]=z,ee=de;else break e}}return B}function s(P,B){var z=P.sortIndex-B.sortIndex;return z!==0?z:P.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,h=3,p=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=P)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function S(P){if(y=!1,x(P),!m)if(n(l)!==null)m=!0,N(C);else{var B=n(u);B!==null&&L(S,B.startTime-P)}}function C(P,B){m=!1,y&&(y=!1,g(O),O=-1),p=!0;var z=h;try{for(x(B),f=n(l);f!==null&&(!(f.expirationTime>B)||P&&!F());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,h=f.priorityLevel;var J=ee(f.expirationTime<=B);B=e.unstable_now(),typeof J=="function"?f.callback=J:f===n(l)&&r(l),x(B)}else r(l);f=n(l)}if(f!==null)var le=!0;else{var te=n(u);te!==null&&L(S,te.startTime-B),le=!1}return le}finally{f=null,h=z,p=!1}}var j=!1,k=null,O=-1,A=5,_=-1;function F(){return!(e.unstable_now()-_<A)}function T(){if(k!==null){var P=e.unstable_now();_=P;var B=!0;try{B=k(!0,P)}finally{B?$():(j=!1,k=null)}}else j=!1}var $;if(typeof v=="function")$=function(){v(T)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,E=D.port2;D.port1.onmessage=T,$=function(){E.postMessage(null)}}else $=function(){w(T,0)};function N(P){k=P,j||(j=!0,$())}function L(P,B){O=w(function(){P(e.unstable_now())},B)}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(){m||p||(m=!0,N(C))},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"):A=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var z=h;h=B;try{return P()}finally{h=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,B){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var z=h;h=P;try{return B()}finally{h=z}},e.unstable_scheduleCallback=function(P,B,z){var ee=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?ee+z:ee):z=ee,P){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=z+J,P={id:d++,callback:B,priorityLevel:P,startTime:z,expirationTime:J,sortIndex:-1},z>ee?(P.sortIndex=z,t(u,P),n(l)===null&&P===n(u)&&(y?(g(O),O=-1):y=!0,L(S,z-ee))):(P.sortIndex=J,t(l,P),m||p||(m=!0,N(C))),P},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(P){var B=h;return function(){var z=h;h=B;try{return P.apply(this,arguments)}finally{h=z}}}})(Tv);_v.exports=Tv;var E4=_v.exports;/**
27
27
  * @license React
28
28
  * react-dom.production.min.js
29
29
  *
@@ -31,14 +31,14 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var Um=x,nt=mw;function T(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 Bm=new Set,Qs={};function ar(e,t){$r(e,t),$r(e+"Capture",t)}function $r(e,t){for(Qs[e]=t,e=0;e<t.length;e++)Bm.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=Object.prototype.hasOwnProperty,gw=/^[: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]*$/,Qf={},Wf={};function vw(e){return Su.call(Wf,e)?!0:Su.call(Qf,e)?!1:gw.test(e)?Wf[e]=!0:(Qf[e]=!0,!1)}function yw(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 ww(e,t,n,r){if(t===null||typeof t>"u"||yw(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 Me(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Me(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){Ce[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vc=/[\-:]([a-z])/g;function Hc(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(Vc,Hc);Ce[t]=new Me(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(Vc,Hc);Ce[t]=new Me(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(Vc,Hc);Ce[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function qc(e,t,n,r){var s=Ce.hasOwnProperty(t)?Ce[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ww(t,n,s,r)&&(n=null),r||s===null?vw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var on=Um.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bi=Symbol.for("react.element"),vr=Symbol.for("react.portal"),yr=Symbol.for("react.fragment"),Qc=Symbol.for("react.strict_mode"),bu=Symbol.for("react.profiler"),Vm=Symbol.for("react.provider"),Hm=Symbol.for("react.context"),Wc=Symbol.for("react.forward_ref"),Cu=Symbol.for("react.suspense"),Eu=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),hn=Symbol.for("react.lazy"),qm=Symbol.for("react.offscreen"),Kf=Symbol.iterator;function is(e){return e===null||typeof e!="object"?null:(e=Kf&&e[Kf]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,bl;function ws(e){if(bl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bl=t&&t[1]||""}return`
35
- `+bl+e}var Cl=!1;function El(e,t){if(!e||Cl)return"";Cl=!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 s=u.stack.split(`
34
+ */var Iv=b,Nt=E4;function U(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 Dv=new Set,oo={};function ss(e,t){Vs(e,t),Vs(e+"Capture",t)}function Vs(e,t){for(oo[e]=t,e=0;e<t.length;e++)Dv.add(t[e])}var $n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yd=Object.prototype.hasOwnProperty,k4=/^[: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]*$/,ym={},xm={};function j4(e){return yd.call(xm,e)?!0:yd.call(ym,e)?!1:k4.test(e)?xm[e]=!0:(ym[e]=!0,!1)}function R4(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 O4(e,t,n,r){if(t===null||typeof t>"u"||R4(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 it(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new it(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){He[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var zf=/[\-:]([a-z])/g;function Vf(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(zf,Vf);He[t]=new it(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(zf,Vf);He[t]=new it(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(zf,Vf);He[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uf(e,t,n,r){var s=He.hasOwnProperty(t)?He[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(O4(t,n,s,r)&&(n=null),r||s===null?j4(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Qn=Iv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fa=Symbol.for("react.element"),gs=Symbol.for("react.portal"),vs=Symbol.for("react.fragment"),Hf=Symbol.for("react.strict_mode"),xd=Symbol.for("react.profiler"),Mv=Symbol.for("react.provider"),Lv=Symbol.for("react.context"),qf=Symbol.for("react.forward_ref"),wd=Symbol.for("react.suspense"),bd=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),Zn=Symbol.for("react.lazy"),Fv=Symbol.for("react.offscreen"),wm=Symbol.iterator;function gi(e){return e===null||typeof e!="object"?null:(e=wm&&e[wm]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,pc;function _i(e){if(pc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pc=t&&t[1]||""}return`
35
+ `+pc+e}var mc=!1;function gc(e,t){if(!e||mc)return"";mc=!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 s=u.stack.split(`
36
36
  `),i=r.stack.split(`
37
37
  `),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
38
- `+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Cl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function xw(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Ru(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 yr:return"Fragment";case vr:return"Portal";case bu:return"Profiler";case Qc:return"StrictMode";case Cu:return"Suspense";case Eu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Wc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kc:return t=e.displayName||null,t!==null?t:Ru(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Ru(e(t))}catch{}}return null}function Sw(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 Ru(t);case 8:return t===Qc?"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 _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bw(e){var t=Qm(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vi(e){e._valueTracker||(e._valueTracker=bw(e))}function Wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ho(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 ku(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(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 Km(e,t){t=t.checked,t!=null&&qc(e,"checked",t,!1)}function Pu(e,t){Km(e,t);var n=_n(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")?Ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ou(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xf(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 Ou(e,t,n){(t!=="number"||Ho(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Nu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(xs(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function Gm(e,t){var n=_n(t.value),r=_n(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 Zf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xm(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 ju(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hi,Ym=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ws(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={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},Cw=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){Cw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Zm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function Jm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Zm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Ew=ie({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 Tu(e,t){if(t){if(Ew[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function _u(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 Iu=null;function Gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Au=null,Tr=null,_r=null;function Jf(e){if(e=Ri(e)){if(typeof Au!="function")throw Error(T(280));var t=e.stateNode;t&&(t=La(t),Au(e.stateNode,e.type,t))}}function e1(e){Tr?_r?_r.push(e):_r=[e]:Tr=e}function t1(){if(Tr){var e=Tr,t=_r;if(_r=Tr=null,Jf(e),t)for(e=0;e<t.length;e++)Jf(t[e])}}function n1(e,t){return e(t)}function r1(){}var Rl=!1;function s1(e,t,n){if(Rl)return e(t,n);Rl=!0;try{return n1(e,t,n)}finally{Rl=!1,(Tr!==null||_r!==null)&&(r1(),t1())}}function Ks(e,t){var n=e.stateNode;if(n===null)return null;var r=La(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(T(231,t,typeof n));return n}var Lu=!1;if(en)try{var os={};Object.defineProperty(os,"passive",{get:function(){Lu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Lu=!1}function Rw(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ps=!1,qo=null,Qo=!1,Mu=null,kw={onError:function(e){Ps=!0,qo=e}};function Pw(e,t,n,r,s,i,o,a,l){Ps=!1,qo=null,Rw.apply(kw,arguments)}function Ow(e,t,n,r,s,i,o,a,l){if(Pw.apply(this,arguments),Ps){if(Ps){var u=qo;Ps=!1,qo=null}else throw Error(T(198));Qo||(Qo=!0,Mu=u)}}function lr(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 i1(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 eh(e){if(lr(e)!==e)throw Error(T(188))}function Nw(e){var t=e.alternate;if(!t){if(t=lr(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return eh(s),e;if(i===r)return eh(s),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function o1(e){return e=Nw(e),e!==null?a1(e):null}function a1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=a1(e);if(t!==null)return t;e=e.sibling}return null}var l1=nt.unstable_scheduleCallback,th=nt.unstable_cancelCallback,jw=nt.unstable_shouldYield,Tw=nt.unstable_requestPaint,ue=nt.unstable_now,_w=nt.unstable_getCurrentPriorityLevel,Xc=nt.unstable_ImmediatePriority,u1=nt.unstable_UserBlockingPriority,Wo=nt.unstable_NormalPriority,Iw=nt.unstable_LowPriority,c1=nt.unstable_IdlePriority,Ta=null,zt=null;function Aw(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Ta,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:Dw,Lw=Math.log,Mw=Math.LN2;function Dw(e){return e>>>=0,e===0?32:31-(Lw(e)/Mw|0)|0}var qi=64,Qi=4194304;function Ss(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 Ko(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ss(a):(i&=o,i!==0&&(r=Ss(i)))}else o=n&~s,o!==0?r=Ss(o):i!==0&&(r=Ss(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===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-kt(t),s=1<<n,r|=e[n],t&=~s;return r}function Fw(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 $w(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-kt(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=Fw(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Du(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function d1(){var e=qi;return qi<<=1,!(qi&4194240)&&(qi=64),e}function kl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ci(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function zw(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 s=31-kt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Yc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Z=0;function f1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h1,Zc,p1,m1,g1,Fu=!1,Wi=[],Cn=null,En=null,Rn=null,Gs=new Map,Xs=new Map,mn=[],Uw="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 nh(e,t){switch(e){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":En=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(t.pointerId)}}function as(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ri(t),t!==null&&Zc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Bw(e,t,n,r,s){switch(t){case"focusin":return Cn=as(Cn,e,t,n,r,s),!0;case"dragenter":return En=as(En,e,t,n,r,s),!0;case"mouseover":return Rn=as(Rn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Gs.set(i,as(Gs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Xs.set(i,as(Xs.get(i)||null,e,t,n,r,s)),!0}return!1}function v1(e){var t=Wn(e.target);if(t!==null){var n=lr(t);if(n!==null){if(t=n.tag,t===13){if(t=i1(n),t!==null){e.blockedOn=t,g1(e.priority,function(){p1(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 vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$u(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Iu=r,n.target.dispatchEvent(r),Iu=null}else return t=Ri(n),t!==null&&Zc(t),e.blockedOn=n,!1;t.shift()}return!0}function rh(e,t,n){vo(e)&&n.delete(t)}function Vw(){Fu=!1,Cn!==null&&vo(Cn)&&(Cn=null),En!==null&&vo(En)&&(En=null),Rn!==null&&vo(Rn)&&(Rn=null),Gs.forEach(rh),Xs.forEach(rh)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Fu||(Fu=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,Vw)))}function Ys(e){function t(s){return ls(s,e)}if(0<Wi.length){ls(Wi[0],e);for(var n=1;n<Wi.length;n++){var r=Wi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Cn!==null&&ls(Cn,e),En!==null&&ls(En,e),Rn!==null&&ls(Rn,e),Gs.forEach(t),Xs.forEach(t),n=0;n<mn.length;n++)r=mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mn.length&&(n=mn[0],n.blockedOn===null);)v1(n),n.blockedOn===null&&mn.shift()}var Ir=on.ReactCurrentBatchConfig,Go=!0;function Hw(e,t,n,r){var s=Z,i=Ir.transition;Ir.transition=null;try{Z=1,Jc(e,t,n,r)}finally{Z=s,Ir.transition=i}}function qw(e,t,n,r){var s=Z,i=Ir.transition;Ir.transition=null;try{Z=4,Jc(e,t,n,r)}finally{Z=s,Ir.transition=i}}function Jc(e,t,n,r){if(Go){var s=$u(e,t,n,r);if(s===null)Ml(e,t,r,Xo,n),nh(e,r);else if(Bw(s,e,t,n,r))r.stopPropagation();else if(nh(e,r),t&4&&-1<Uw.indexOf(e)){for(;s!==null;){var i=Ri(s);if(i!==null&&h1(i),i=$u(e,t,n,r),i===null&&Ml(e,t,r,Xo,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ml(e,t,r,null,n)}}var Xo=null;function $u(e,t,n,r){if(Xo=null,e=Gc(r),e=Wn(e),e!==null)if(t=lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=i1(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 Xo=e,null}function y1(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(_w()){case Xc:return 1;case u1:return 4;case Wo:case Iw:return 16;case c1:return 536870912;default:return 16}default:return 16}}var yn=null,ed=null,yo=null;function w1(){if(yo)return yo;var e,t=ed,n=t.length,r,s="value"in yn?yn.value:yn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return yo=s.slice(e,1<r?1-r:void 0)}function wo(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 Ki(){return!0}function sh(){return!1}function st(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ki:sh,this.isPropagationStopped=sh,this}return ie(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=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var Yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=st(Yr),Ei=ie({},Yr,{view:0,detail:0}),Qw=st(Ei),Pl,Ol,us,_a=ie({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nd,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!==us&&(us&&e.type==="mousemove"?(Pl=e.screenX-us.screenX,Ol=e.screenY-us.screenY):Ol=Pl=0,us=e),Pl)},movementY:function(e){return"movementY"in e?e.movementY:Ol}}),ih=st(_a),Ww=ie({},_a,{dataTransfer:0}),Kw=st(Ww),Gw=ie({},Ei,{relatedTarget:0}),Nl=st(Gw),Xw=ie({},Yr,{animationName:0,elapsedTime:0,pseudoElement:0}),Yw=st(Xw),Zw=ie({},Yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jw=st(Zw),ex=ie({},Yr,{data:0}),oh=st(ex),tx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nx={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"},rx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rx[e])?!!t[e]:!1}function nd(){return sx}var ix=ie({},Ei,{key:function(e){if(e.key){var t=tx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nd,charCode:function(e){return e.type==="keypress"?wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ox=st(ix),ax=ie({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=st(ax),lx=ie({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nd}),ux=st(lx),cx=ie({},Yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),dx=st(cx),fx=ie({},_a,{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}),hx=st(fx),px=[9,13,27,32],rd=en&&"CompositionEvent"in window,Os=null;en&&"documentMode"in document&&(Os=document.documentMode);var mx=en&&"TextEvent"in window&&!Os,x1=en&&(!rd||Os&&8<Os&&11>=Os),lh=String.fromCharCode(32),uh=!1;function S1(e,t){switch(e){case"keyup":return px.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function gx(e,t){switch(e){case"compositionend":return b1(t);case"keypress":return t.which!==32?null:(uh=!0,lh);case"textInput":return e=t.data,e===lh&&uh?null:e;default:return null}}function vx(e,t){if(wr)return e==="compositionend"||!rd&&S1(e,t)?(e=w1(),yo=ed=yn=null,wr=!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 x1&&t.locale!=="ko"?null:t.data;default:return null}}var yx={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 ch(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yx[e.type]:t==="textarea"}function C1(e,t,n,r){e1(r),t=Yo(t,"onChange"),0<t.length&&(n=new td("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Zs=null;function wx(e){A1(e,0)}function Ia(e){var t=br(e);if(Wm(t))return e}function xx(e,t){if(e==="change")return t}var E1=!1;if(en){var jl;if(en){var Tl="oninput"in document;if(!Tl){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),Tl=typeof dh.oninput=="function"}jl=Tl}else jl=!1;E1=jl&&(!document.documentMode||9<document.documentMode)}function fh(){Ns&&(Ns.detachEvent("onpropertychange",R1),Zs=Ns=null)}function R1(e){if(e.propertyName==="value"&&Ia(Zs)){var t=[];C1(t,Zs,e,Gc(e)),s1(wx,t)}}function Sx(e,t,n){e==="focusin"?(fh(),Ns=t,Zs=n,Ns.attachEvent("onpropertychange",R1)):e==="focusout"&&fh()}function bx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Zs)}function Cx(e,t){if(e==="click")return Ia(t)}function Ex(e,t){if(e==="input"||e==="change")return Ia(t)}function Rx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Rx;function Js(e,t){if(Ot(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 s=n[r];if(!Su.call(t,s)||!Ot(e[s],t[s]))return!1}return!0}function hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ph(e,t){var n=hh(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=hh(n)}}function k1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?k1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function P1(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ho(e.document)}return t}function sd(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 kx(e){var t=P1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&k1(n.ownerDocument.documentElement,n)){if(r!==null&&sd(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ph(n,i);var o=ph(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 Px=en&&"documentMode"in document&&11>=document.documentMode,xr=null,zu=null,js=null,Uu=!1;function mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uu||xr==null||xr!==Ho(r)||(r=xr,"selectionStart"in r&&sd(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}),js&&Js(js,r)||(js=r,r=Yo(zu,"onSelect"),0<r.length&&(t=new td("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionend:Gi("Transition","TransitionEnd")},_l={},O1={};en&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function Aa(e){if(_l[e])return _l[e];if(!Sr[e])return e;var t=Sr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in O1)return _l[e]=t[n];return e}var N1=Aa("animationend"),j1=Aa("animationiteration"),T1=Aa("animationstart"),_1=Aa("transitionend"),I1=new Map,gh="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 Mn(e,t){I1.set(e,t),ar(t,[e])}for(var Il=0;Il<gh.length;Il++){var Al=gh[Il],Ox=Al.toLowerCase(),Nx=Al[0].toUpperCase()+Al.slice(1);Mn(Ox,"on"+Nx)}Mn(N1,"onAnimationEnd");Mn(j1,"onAnimationIteration");Mn(T1,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(_1,"onTransitionEnd");$r("onMouseEnter",["mouseout","mouseover"]);$r("onMouseLeave",["mouseout","mouseover"]);$r("onPointerEnter",["pointerout","pointerover"]);$r("onPointerLeave",["pointerout","pointerover"]);ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),jx=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function vh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ow(r,t,void 0,e),e.currentTarget=null}function A1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}}}if(Qo)throw e=Mu,Qo=!1,Mu=null,e}function ee(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(L1(t,e,2,!1),n.add(r))}function Ll(e,t,n){var r=0;t&&(r|=4),L1(n,e,r,t)}var Xi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Xi]){e[Xi]=!0,Bm.forEach(function(n){n!=="selectionchange"&&(jx.has(n)||Ll(n,!1,e),Ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xi]||(t[Xi]=!0,Ll("selectionchange",!1,t))}}function L1(e,t,n,r){switch(y1(t)){case 1:var s=Hw;break;case 4:s=qw;break;default:s=Jc}n=s.bind(null,t,n,e),s=void 0,!Lu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ml(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Wn(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}s1(function(){var u=i,c=Gc(n),d=[];e:{var h=I1.get(e);if(h!==void 0){var p=td,m=e;switch(e){case"keypress":if(wo(n)===0)break e;case"keydown":case"keyup":p=ox;break;case"focusin":m="focus",p=Nl;break;case"focusout":m="blur",p=Nl;break;case"beforeblur":case"afterblur":p=Nl;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":p=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Kw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=ux;break;case N1:case j1:case T1:p=Yw;break;case _1:p=dx;break;case"scroll":p=Qw;break;case"wheel":p=hx;break;case"copy":case"cut":case"paste":p=Jw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ah}var y=(t&4)!==0,S=!y&&e==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var b=w.stateNode;if(w.tag===5&&b!==null&&(w=b,g!==null&&(b=Ks(v,g),b!=null&&y.push(ti(v,b,w)))),S)break;v=v.return}0<y.length&&(h=new p(h,m,null,n,c),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Iu&&(m=n.relatedTarget||n.fromElement)&&(Wn(m)||m[tn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Wn(m):null,m!==null&&(S=lr(m),m!==S||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=ih,b="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=ah,b="onPointerLeave",g="onPointerEnter",v="pointer"),S=p==null?h:br(p),w=m==null?h:br(m),h=new y(b,v+"leave",p,n,c),h.target=S,h.relatedTarget=w,b=null,Wn(c)===u&&(y=new y(g,v+"enter",m,n,c),y.target=w,y.relatedTarget=S,b=y),S=b,p&&m)t:{for(y=p,g=m,v=0,w=y;w;w=hr(w))v++;for(w=0,b=g;b;b=hr(b))w++;for(;0<v-w;)y=hr(y),v--;for(;0<w-v;)g=hr(g),w--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=hr(y),g=hr(g)}y=null}else y=null;p!==null&&yh(d,h,p,y,!1),m!==null&&S!==null&&yh(d,S,m,y,!0)}}e:{if(h=u?br(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var E=xx;else if(ch(h))if(E1)E=Ex;else{E=bx;var R=Sx}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Cx);if(E&&(E=E(e,u))){C1(d,E,n,c);break e}R&&R(e,h,u),e==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&Ou(h,"number",h.value)}switch(R=u?br(u):window,e){case"focusin":(ch(R)||R.contentEditable==="true")&&(xr=R,zu=u,js=null);break;case"focusout":js=zu=xr=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,mh(d,n,c);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":mh(d,n,c)}var k;if(rd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else wr?S1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(x1&&n.locale!=="ko"&&(wr||P!=="onCompositionStart"?P==="onCompositionEnd"&&wr&&(k=w1()):(yn=c,ed="value"in yn?yn.value:yn.textContent,wr=!0)),R=Yo(u,P),0<R.length&&(P=new oh(P,e,null,n,c),d.push({event:P,listeners:R}),k?P.data=k:(k=b1(n),k!==null&&(P.data=k)))),(k=mx?gx(e,n):vx(e,n))&&(u=Yo(u,"onBeforeInput"),0<u.length&&(c=new oh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}A1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ks(e,n),i!=null&&r.unshift(ti(e,i,s)),i=Ks(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yh(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Ks(n,i),l!=null&&o.unshift(ti(n,l,a))):s||(l=Ks(n,i),l!=null&&o.push(ti(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Tx=/\r\n?/g,_x=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(Tx,`
39
- `).replace(_x,"")}function Yi(e,t,n){if(t=wh(t),wh(e)!==t&&n)throw Error(T(425))}function Zo(){}var Bu=null,Vu=null;function Hu(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 qu=typeof setTimeout=="function"?setTimeout:void 0,Ix=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(Lx)}:qu;function Lx(e){setTimeout(function(){throw e})}function Dl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Ys(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Ys(t)}function kn(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 Sh(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 Zr=Math.random().toString(36).slice(2),Ft="__reactFiber$"+Zr,ni="__reactProps$"+Zr,tn="__reactContainer$"+Zr,Qu="__reactEvents$"+Zr,Mx="__reactListeners$"+Zr,Dx="__reactHandles$"+Zr;function Wn(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sh(e);e!==null;){if(n=e[Ft])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Ri(e){return e=e[Ft]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function La(e){return e[ni]||null}var Wu=[],Cr=-1;function Dn(e){return{current:e}}function te(e){0>Cr||(e.current=Wu[Cr],Wu[Cr]=null,Cr--)}function J(e,t){Cr++,Wu[Cr]=e.current,e.current=t}var In={},Oe=Dn(In),qe=Dn(!1),Jn=In;function zr(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Qe(e){return e=e.childContextTypes,e!=null}function Jo(){te(qe),te(Oe)}function bh(e,t,n){if(Oe.current!==In)throw Error(T(168));J(Oe,t),J(qe,n)}function M1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(T(108,Sw(e)||"Unknown",s));return ie({},n,r)}function ea(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Jn=Oe.current,J(Oe,e),J(qe,qe.current),!0}function Ch(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=M1(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,te(qe),te(Oe),J(Oe,e)):te(qe),J(qe,n)}var Gt=null,Ma=!1,Fl=!1;function D1(e){Gt===null?Gt=[e]:Gt.push(e)}function Fx(e){Ma=!0,D1(e)}function Fn(){if(!Fl&&Gt!==null){Fl=!0;var e=0,t=Z;try{var n=Gt;for(Z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Gt=null,Ma=!1}catch(s){throw Gt!==null&&(Gt=Gt.slice(e+1)),l1(Xc,Fn),s}finally{Z=t,Fl=!1}}return null}var Er=[],Rr=0,ta=null,na=0,lt=[],ut=0,er=null,Xt=1,Yt="";function Vn(e,t){Er[Rr++]=na,Er[Rr++]=ta,ta=e,na=t}function F1(e,t,n){lt[ut++]=Xt,lt[ut++]=Yt,lt[ut++]=er,er=e;var r=Xt;e=Yt;var s=32-kt(r)-1;r&=~(1<<s),n+=1;var i=32-kt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Xt=1<<32-kt(t)+s|n<<s|r,Yt=i+e}else Xt=1<<i|n<<s|r,Yt=e}function id(e){e.return!==null&&(Vn(e,1),F1(e,1,0))}function od(e){for(;e===ta;)ta=Er[--Rr],Er[Rr]=null,na=Er[--Rr],Er[Rr]=null;for(;e===er;)er=lt[--ut],lt[ut]=null,Yt=lt[--ut],lt[ut]=null,Xt=lt[--ut],lt[ut]=null}var et=null,Ye=null,ne=!1,Ct=null;function $1(e,t){var n=ht(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 Eh(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,et=e,Ye=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=er!==null?{id:Xt,overflow:Yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,Ye=null,!0):!1;default:return!1}}function Ku(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gu(e){if(ne){var t=Ye;if(t){var n=t;if(!Eh(e,t)){if(Ku(e))throw Error(T(418));t=kn(n.nextSibling);var r=et;t&&Eh(e,t)?$1(r,n):(e.flags=e.flags&-4097|2,ne=!1,et=e)}}else{if(Ku(e))throw Error(T(418));e.flags=e.flags&-4097|2,ne=!1,et=e}}}function Rh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function Zi(e){if(e!==et)return!1;if(!ne)return Rh(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hu(e.type,e.memoizedProps)),t&&(t=Ye)){if(Ku(e))throw z1(),Error(T(418));for(;t;)$1(e,t),t=kn(t.nextSibling)}if(Rh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=et?kn(e.stateNode.nextSibling):null;return!0}function z1(){for(var e=Ye;e;)e=kn(e.nextSibling)}function Ur(){Ye=et=null,ne=!1}function ad(e){Ct===null?Ct=[e]:Ct.push(e)}var $x=on.ReactCurrentBatchConfig;function St(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ra=Dn(null),sa=null,kr=null,ld=null;function ud(){ld=kr=sa=null}function cd(e){var t=ra.current;te(ra),e._currentValue=t}function Xu(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 Ar(e,t){sa=e,ld=kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(ld!==e)if(e={context:e,memoizedValue:t,next:null},kr===null){if(sa===null)throw Error(T(308));kr=e,sa.dependencies={lanes:0,firstContext:e}}else kr=kr.next=e;return t}var Kn=null;function dd(e){Kn===null?Kn=[e]:Kn.push(e)}function U1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,dd(t)):(n.next=s.next,s.next=n),t.interleaved=n,nn(e,r)}function nn(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 pn=!1;function fd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B1(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 Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,nn(e,n)}return s=r.interleaved,s===null?(t.next=t,dd(r)):(t.next=s.next,s.next=t),r.interleaved=t,nn(e,n)}function xo(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,Yc(e,n)}}function kh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,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 ia(e,t,n,r){var s=e.updateQueue;pn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(h=t,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(p,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(p,d,h):m,h==null)break e;d=ie({},d,h);break e;case 2:pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);nr|=o,e.lanes=o,e.memoizedState=d}}function Ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(T(191,s));s.call(r)}}}var V1=new Um.Component().refs;function Yu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Da={isMounted:function(e){return(e=e._reactInternals)?lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=Nn(e),s=Jt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Pn(e,s,r),t!==null&&(Pt(t,e,r,n),xo(t,e,r))}};function Oh(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Js(n,r)||!Js(s,i):!0}function H1(e,t,n){var r=!1,s=In,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(s=Qe(t)?Jn:Oe.current,r=t.contextTypes,i=(r=r!=null)?zr(e,s):In),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Da,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nh(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&&Da.enqueueReplaceState(t,t.state,null)}function Zu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=V1,fd(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=mt(i):(i=Qe(t)?Jn:Oe.current,s.context=zr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Yu(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Da.enqueueReplaceState(s,s.state,null),ia(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cs(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(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===V1&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Ji(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jh(e){var t=e._init;return t(e._payload)}function q1(e){function t(g,v){if(e){var w=g.deletions;w===null?(g.deletions=[v],g.flags|=16):w.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function s(g,v){return g=jn(g,v),g.index=0,g.sibling=null,g}function i(g,v,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<v?(g.flags|=2,v):w):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,w,b){return v===null||v.tag!==6?(v=ql(w,g.mode,b),v.return=g,v):(v=s(v,w),v.return=g,v)}function l(g,v,w,b){var E=w.type;return E===yr?c(g,v,w.props.children,b,w.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===hn&&jh(E)===v.type)?(b=s(v,w.props),b.ref=cs(g,v,w),b.return=g,b):(b=ko(w.type,w.key,w.props,null,g.mode,b),b.ref=cs(g,v,w),b.return=g,b)}function u(g,v,w,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Ql(w,g.mode,b),v.return=g,v):(v=s(v,w.children||[]),v.return=g,v)}function c(g,v,w,b,E){return v===null||v.tag!==7?(v=Zn(w,g.mode,b,E),v.return=g,v):(v=s(v,w),v.return=g,v)}function d(g,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=ql(""+v,g.mode,w),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Bi:return w=ko(v.type,v.key,v.props,null,g.mode,w),w.ref=cs(g,null,v),w.return=g,w;case vr:return v=Ql(v,g.mode,w),v.return=g,v;case hn:var b=v._init;return d(g,b(v._payload),w)}if(xs(v)||is(v))return v=Zn(v,g.mode,w,null),v.return=g,v;Ji(g,v)}return null}function h(g,v,w,b){var E=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:a(g,v,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:return w.key===E?l(g,v,w,b):null;case vr:return w.key===E?u(g,v,w,b):null;case hn:return E=w._init,h(g,v,E(w._payload),b)}if(xs(w)||is(w))return E!==null?null:c(g,v,w,b,null);Ji(g,w)}return null}function p(g,v,w,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(w)||null,a(v,g,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Bi:return g=g.get(b.key===null?w:b.key)||null,l(v,g,b,E);case vr:return g=g.get(b.key===null?w:b.key)||null,u(v,g,b,E);case hn:var R=b._init;return p(g,v,w,R(b._payload),E)}if(xs(b)||is(b))return g=g.get(w)||null,c(v,g,b,E,null);Ji(v,b)}return null}function m(g,v,w,b){for(var E=null,R=null,k=v,P=v=0,_=null;k!==null&&P<w.length;P++){k.index>P?(_=k,k=null):_=k.sibling;var F=h(g,k,w[P],b);if(F===null){k===null&&(k=_);break}e&&k&&F.alternate===null&&t(g,k),v=i(F,v,P),R===null?E=F:R.sibling=F,R=F,k=_}if(P===w.length)return n(g,k),ne&&Vn(g,P),E;if(k===null){for(;P<w.length;P++)k=d(g,w[P],b),k!==null&&(v=i(k,v,P),R===null?E=k:R.sibling=k,R=k);return ne&&Vn(g,P),E}for(k=r(g,k);P<w.length;P++)_=p(k,g,P,w[P],b),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?P:_.key),v=i(_,v,P),R===null?E=_:R.sibling=_,R=_);return e&&k.forEach(function(A){return t(g,A)}),ne&&Vn(g,P),E}function y(g,v,w,b){var E=is(w);if(typeof E!="function")throw Error(T(150));if(w=E.call(w),w==null)throw Error(T(151));for(var R=E=null,k=v,P=v=0,_=null,F=w.next();k!==null&&!F.done;P++,F=w.next()){k.index>P?(_=k,k=null):_=k.sibling;var A=h(g,k,F.value,b);if(A===null){k===null&&(k=_);break}e&&k&&A.alternate===null&&t(g,k),v=i(A,v,P),R===null?E=A:R.sibling=A,R=A,k=_}if(F.done)return n(g,k),ne&&Vn(g,P),E;if(k===null){for(;!F.done;P++,F=w.next())F=d(g,F.value,b),F!==null&&(v=i(F,v,P),R===null?E=F:R.sibling=F,R=F);return ne&&Vn(g,P),E}for(k=r(g,k);!F.done;P++,F=w.next())F=p(k,g,P,F.value,b),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?P:F.key),v=i(F,v,P),R===null?E=F:R.sibling=F,R=F);return e&&k.forEach(function(I){return t(g,I)}),ne&&Vn(g,P),E}function S(g,v,w,b){if(typeof w=="object"&&w!==null&&w.type===yr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:e:{for(var E=w.key,R=v;R!==null;){if(R.key===E){if(E=w.type,E===yr){if(R.tag===7){n(g,R.sibling),v=s(R,w.props.children),v.return=g,g=v;break e}}else if(R.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===hn&&jh(E)===R.type){n(g,R.sibling),v=s(R,w.props),v.ref=cs(g,R,w),v.return=g,g=v;break e}n(g,R);break}else t(g,R);R=R.sibling}w.type===yr?(v=Zn(w.props.children,g.mode,b,w.key),v.return=g,g=v):(b=ko(w.type,w.key,w.props,null,g.mode,b),b.ref=cs(g,v,w),b.return=g,g=b)}return o(g);case vr:e:{for(R=w.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(g,v.sibling),v=s(v,w.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Ql(w,g.mode,b),v.return=g,g=v}return o(g);case hn:return R=w._init,S(g,v,R(w._payload),b)}if(xs(w))return m(g,v,w,b);if(is(w))return y(g,v,w,b);Ji(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(g,v.sibling),v=s(v,w),v.return=g,g=v):(n(g,v),v=ql(w,g.mode,b),v.return=g,g=v),o(g)):n(g,v)}return S}var Br=q1(!0),Q1=q1(!1),ki={},Ut=Dn(ki),ri=Dn(ki),si=Dn(ki);function Gn(e){if(e===ki)throw Error(T(174));return e}function hd(e,t){switch(J(si,t),J(ri,e),J(Ut,ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ju(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ju(t,e)}te(Ut),J(Ut,t)}function Vr(){te(Ut),te(ri),te(si)}function W1(e){Gn(si.current);var t=Gn(Ut.current),n=ju(t,e.type);t!==n&&(J(ri,e),J(Ut,n))}function pd(e){ri.current===e&&(te(Ut),te(ri))}var re=Dn(0);function oa(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 $l=[];function md(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var So=on.ReactCurrentDispatcher,zl=on.ReactCurrentBatchConfig,tr=0,se=null,fe=null,ge=null,aa=!1,Ts=!1,ii=0,zx=0;function Re(){throw Error(T(321))}function gd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function vd(e,t,n,r,s,i){if(tr=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,So.current=e===null||e.memoizedState===null?Hx:qx,e=n(r,s),Ts){i=0;do{if(Ts=!1,ii=0,25<=i)throw Error(T(301));i+=1,ge=fe=null,t.updateQueue=null,So.current=Qx,e=n(r,s)}while(Ts)}if(So.current=la,t=fe!==null&&fe.next!==null,tr=0,ge=fe=se=null,aa=!1,t)throw Error(T(300));return e}function yd(){var e=ii!==0;return ii=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?se.memoizedState=ge=e:ge=ge.next=e,ge}function gt(){if(fe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=ge===null?se.memoizedState:ge.next;if(t!==null)ge=t,fe=e;else{if(e===null)throw Error(T(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},ge===null?se.memoizedState=ge=e:ge=ge.next=e}return ge}function oi(e,t){return typeof t=="function"?t(e):t}function Ul(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=fe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((tr&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 d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,se.lanes|=c,nr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Ot(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,se.lanes|=i,nr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bl(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Ot(i,t.memoizedState)||(He=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function K1(){}function G1(e,t){var n=se,r=gt(),s=t(),i=!Ot(r.memoizedState,s);if(i&&(r.memoizedState=s,He=!0),r=r.queue,wd(Z1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,ai(9,Y1.bind(null,n,r,s,t),void 0,null),ve===null)throw Error(T(349));tr&30||X1(n,t,s)}return s}function X1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Y1(e,t,n,r){t.value=n,t.getSnapshot=r,J1(t)&&eg(e)}function Z1(e,t,n){return n(function(){J1(t)&&eg(e)})}function J1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function eg(e){var t=nn(e,1);t!==null&&Pt(t,e,1,-1)}function Th(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=Vx.bind(null,se,e),[t.memoizedState,e]}function ai(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.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 tg(){return gt().memoizedState}function bo(e,t,n,r){var s=Mt();se.flags|=e,s.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Fa(e,t,n,r){var s=gt();r=r===void 0?null:r;var i=void 0;if(fe!==null){var o=fe.memoizedState;if(i=o.destroy,r!==null&&gd(r,o.deps)){s.memoizedState=ai(t,n,i,r);return}}se.flags|=e,s.memoizedState=ai(1|t,n,i,r)}function _h(e,t){return bo(8390656,8,e,t)}function wd(e,t){return Fa(2048,8,e,t)}function ng(e,t){return Fa(4,2,e,t)}function rg(e,t){return Fa(4,4,e,t)}function sg(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 ig(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4,4,sg.bind(null,t,e),n)}function xd(){}function og(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ag(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lg(e,t,n){return tr&21?(Ot(n,t)||(n=d1(),se.lanes|=n,nr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function Ux(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{Z=n,zl.transition=r}}function ug(){return gt().memoizedState}function Bx(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cg(e))dg(t,n);else if(n=U1(e,t,n,r),n!==null){var s=Ae();Pt(n,e,r,s),fg(n,t,r)}}function Vx(e,t,n){var r=Nn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cg(e))dg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Ot(a,o)){var l=t.interleaved;l===null?(s.next=s,dd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=U1(e,t,s,r),n!==null&&(s=Ae(),Pt(n,e,r,s),fg(n,t,r))}}function cg(e){var t=e.alternate;return e===se||t!==null&&t===se}function dg(e,t){Ts=aa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yc(e,n)}}var la={readContext:mt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Hx={readContext:mt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:_h,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bo(4194308,4,sg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return bo(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();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=Bx.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:xd,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=Ux.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=Mt();if(ne){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ve===null)throw Error(T(349));tr&30||X1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,_h(Z1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,Y1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mt(),t=ve.identifierPrefix;if(ne){var n=Yt,r=Xt;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Ul,useRef:tg,useState:function(){return Ul(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return lg(t,fe.memoizedState,e)},useTransition:function(){var e=Ul(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:G1,useId:ug,unstable_isNewReconciler:!1},Qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Bl,useRef:tg,useState:function(){return Bl(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return fe===null?t.memoizedState=e:lg(t,fe.memoizedState,e)},useTransition:function(){var e=Bl(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:G1,useId:ug,unstable_isNewReconciler:!1};function Hr(e,t){try{var n="",r=t;do n+=xw(r),r=r.return;while(r);var s=n}catch(i){s=`
38
+ `+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{mc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_i(e):""}function N4(e){switch(e.tag){case 5:return _i(e.type);case 16:return _i("Lazy");case 13:return _i("Suspense");case 19:return _i("SuspenseList");case 0:case 2:case 15:return e=gc(e.type,!1),e;case 11:return e=gc(e.type.render,!1),e;case 1:return e=gc(e.type,!0),e;default:return""}}function Sd(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 vs:return"Fragment";case gs:return"Portal";case xd:return"Profiler";case Hf:return"StrictMode";case wd:return"Suspense";case bd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lv:return(e.displayName||"Context")+".Consumer";case Mv:return(e._context.displayName||"Context")+".Provider";case qf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qf:return t=e.displayName||null,t!==null?t:Sd(e.type)||"Memo";case Zn:t=e._payload,e=e._init;try{return Sd(e(t))}catch{}}return null}function P4(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 Sd(t);case 8:return t===Hf?"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 wr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $v(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function A4(e){var t=$v(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ha(e){e._valueTracker||(e._valueTracker=A4(e))}function Bv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$v(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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 Cd(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wr(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 zv(e,t){t=t.checked,t!=null&&Uf(e,"checked",t,!1)}function Ed(e,t){zv(e,t);var n=wr(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")?kd(e,t.type,n):t.hasOwnProperty("defaultValue")&&kd(e,t.type,wr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sm(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 kd(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ti=Array.isArray;function As(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+wr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function jd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(Ti(n)){if(1<n.length)throw Error(U(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:wr(n)}}function Vv(e,t){var n=wr(t.value),r=wr(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 Em(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Uv(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 Rd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Uv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pa,Hv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pa=pa||document.createElement("div"),pa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},_4=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){_4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function qv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function Qv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=qv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var T4=Se({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 Od(e,t){if(t){if(T4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Nd(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 Pd=null;function Wf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ad=null,_s=null,Ts=null;function km(e){if(e=Ho(e)){if(typeof Ad!="function")throw Error(U(280));var t=e.stateNode;t&&(t=gu(t),Ad(e.stateNode,e.type,t))}}function Wv(e){_s?Ts?Ts.push(e):Ts=[e]:_s=e}function Kv(){if(_s){var e=_s,t=Ts;if(Ts=_s=null,km(e),t)for(e=0;e<t.length;e++)km(t[e])}}function Gv(e,t){return e(t)}function Xv(){}var vc=!1;function Yv(e,t,n){if(vc)return e(t,n);vc=!0;try{return Gv(e,t,n)}finally{vc=!1,(_s!==null||Ts!==null)&&(Xv(),Kv())}}function lo(e,t){var n=e.stateNode;if(n===null)return null;var r=gu(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(U(231,t,typeof n));return n}var _d=!1;if($n)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){_d=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{_d=!1}function I4(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Bi=!1,xl=null,wl=!1,Td=null,D4={onError:function(e){Bi=!0,xl=e}};function M4(e,t,n,r,s,i,o,a,l){Bi=!1,xl=null,I4.apply(D4,arguments)}function L4(e,t,n,r,s,i,o,a,l){if(M4.apply(this,arguments),Bi){if(Bi){var u=xl;Bi=!1,xl=null}else throw Error(U(198));wl||(wl=!0,Td=u)}}function is(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 Jv(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 jm(e){if(is(e)!==e)throw Error(U(188))}function F4(e){var t=e.alternate;if(!t){if(t=is(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return jm(s),e;if(i===r)return jm(s),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function Zv(e){return e=F4(e),e!==null?e0(e):null}function e0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=e0(e);if(t!==null)return t;e=e.sibling}return null}var t0=Nt.unstable_scheduleCallback,Rm=Nt.unstable_cancelCallback,$4=Nt.unstable_shouldYield,B4=Nt.unstable_requestPaint,Ne=Nt.unstable_now,z4=Nt.unstable_getCurrentPriorityLevel,Kf=Nt.unstable_ImmediatePriority,n0=Nt.unstable_UserBlockingPriority,bl=Nt.unstable_NormalPriority,V4=Nt.unstable_LowPriority,r0=Nt.unstable_IdlePriority,fu=null,bn=null;function U4(e){if(bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(fu,e,void 0,(e.current.flags&128)===128)}catch{}}var ln=Math.clz32?Math.clz32:Q4,H4=Math.log,q4=Math.LN2;function Q4(e){return e>>>=0,e===0?32:31-(H4(e)/q4|0)|0}var ma=64,ga=4194304;function Ii(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 Sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ii(a):(i&=o,i!==0&&(r=Ii(i)))}else o=n&~s,o!==0?r=Ii(o):i!==0&&(r=Ii(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===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-ln(t),s=1<<n,r|=e[n],t&=~s;return r}function W4(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 K4(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ln(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=W4(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Id(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function s0(){var e=ma;return ma<<=1,!(ma&4194240)&&(ma=64),e}function yc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function G4(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 s=31-ln(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Gf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ln(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var ce=0;function i0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var o0,Xf,a0,l0,u0,Dd=!1,va=[],cr=null,dr=null,fr=null,uo=new Map,co=new Map,tr=[],X4="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 Om(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":dr=null;break;case"mouseover":case"mouseout":fr=null;break;case"pointerover":case"pointerout":uo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":co.delete(t.pointerId)}}function yi(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ho(t),t!==null&&Xf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Y4(e,t,n,r,s){switch(t){case"focusin":return cr=yi(cr,e,t,n,r,s),!0;case"dragenter":return dr=yi(dr,e,t,n,r,s),!0;case"mouseover":return fr=yi(fr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return uo.set(i,yi(uo.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,co.set(i,yi(co.get(i)||null,e,t,n,r,s)),!0}return!1}function c0(e){var t=Br(e.target);if(t!==null){var n=is(t);if(n!==null){if(t=n.tag,t===13){if(t=Jv(n),t!==null){e.blockedOn=t,u0(e.priority,function(){a0(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 za(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Md(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Pd=r,n.target.dispatchEvent(r),Pd=null}else return t=Ho(n),t!==null&&Xf(t),e.blockedOn=n,!1;t.shift()}return!0}function Nm(e,t,n){za(e)&&n.delete(t)}function J4(){Dd=!1,cr!==null&&za(cr)&&(cr=null),dr!==null&&za(dr)&&(dr=null),fr!==null&&za(fr)&&(fr=null),uo.forEach(Nm),co.forEach(Nm)}function xi(e,t){e.blockedOn===t&&(e.blockedOn=null,Dd||(Dd=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,J4)))}function fo(e){function t(s){return xi(s,e)}if(0<va.length){xi(va[0],e);for(var n=1;n<va.length;n++){var r=va[n];r.blockedOn===e&&(r.blockedOn=null)}}for(cr!==null&&xi(cr,e),dr!==null&&xi(dr,e),fr!==null&&xi(fr,e),uo.forEach(t),co.forEach(t),n=0;n<tr.length;n++)r=tr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tr.length&&(n=tr[0],n.blockedOn===null);)c0(n),n.blockedOn===null&&tr.shift()}var Is=Qn.ReactCurrentBatchConfig,Cl=!0;function Z4(e,t,n,r){var s=ce,i=Is.transition;Is.transition=null;try{ce=1,Yf(e,t,n,r)}finally{ce=s,Is.transition=i}}function e3(e,t,n,r){var s=ce,i=Is.transition;Is.transition=null;try{ce=4,Yf(e,t,n,r)}finally{ce=s,Is.transition=i}}function Yf(e,t,n,r){if(Cl){var s=Md(e,t,n,r);if(s===null)Oc(e,t,r,El,n),Om(e,r);else if(Y4(s,e,t,n,r))r.stopPropagation();else if(Om(e,r),t&4&&-1<X4.indexOf(e)){for(;s!==null;){var i=Ho(s);if(i!==null&&o0(i),i=Md(e,t,n,r),i===null&&Oc(e,t,r,El,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Oc(e,t,r,null,n)}}var El=null;function Md(e,t,n,r){if(El=null,e=Wf(r),e=Br(e),e!==null)if(t=is(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Jv(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 El=e,null}function d0(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(z4()){case Kf:return 1;case n0:return 4;case bl:case V4:return 16;case r0:return 536870912;default:return 16}default:return 16}}var sr=null,Jf=null,Va=null;function f0(){if(Va)return Va;var e,t=Jf,n=t.length,r,s="value"in sr?sr.value:sr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Va=s.slice(e,1<r?1-r:void 0)}function Ua(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 ya(){return!0}function Pm(){return!1}function _t(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ya:Pm,this.isPropagationStopped=Pm,this}return Se(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=ya)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ya)},persist:function(){},isPersistent:ya}),t}var si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zf=_t(si),Uo=Se({},si,{view:0,detail:0}),t3=_t(Uo),xc,wc,wi,hu=Se({},Uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,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!==wi&&(wi&&e.type==="mousemove"?(xc=e.screenX-wi.screenX,wc=e.screenY-wi.screenY):wc=xc=0,wi=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:wc}}),Am=_t(hu),n3=Se({},hu,{dataTransfer:0}),r3=_t(n3),s3=Se({},Uo,{relatedTarget:0}),bc=_t(s3),i3=Se({},si,{animationName:0,elapsedTime:0,pseudoElement:0}),o3=_t(i3),a3=Se({},si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),l3=_t(a3),u3=Se({},si,{data:0}),_m=_t(u3),c3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d3={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"},f3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=f3[e])?!!t[e]:!1}function eh(){return h3}var p3=Se({},Uo,{key:function(e){if(e.key){var t=c3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?d3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(e){return e.type==="keypress"?Ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m3=_t(p3),g3=Se({},hu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tm=_t(g3),v3=Se({},Uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),y3=_t(v3),x3=Se({},si,{propertyName:0,elapsedTime:0,pseudoElement:0}),w3=_t(x3),b3=Se({},hu,{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}),S3=_t(b3),C3=[9,13,27,32],th=$n&&"CompositionEvent"in window,zi=null;$n&&"documentMode"in document&&(zi=document.documentMode);var E3=$n&&"TextEvent"in window&&!zi,h0=$n&&(!th||zi&&8<zi&&11>=zi),Im=String.fromCharCode(32),Dm=!1;function p0(e,t){switch(e){case"keyup":return C3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function k3(e,t){switch(e){case"compositionend":return m0(t);case"keypress":return t.which!==32?null:(Dm=!0,Im);case"textInput":return e=t.data,e===Im&&Dm?null:e;default:return null}}function j3(e,t){if(ys)return e==="compositionend"||!th&&p0(e,t)?(e=f0(),Va=Jf=sr=null,ys=!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 h0&&t.locale!=="ko"?null:t.data;default:return null}}var R3={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 Mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!R3[e.type]:t==="textarea"}function g0(e,t,n,r){Wv(r),t=kl(t,"onChange"),0<t.length&&(n=new Zf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vi=null,ho=null;function O3(e){R0(e,0)}function pu(e){var t=bs(e);if(Bv(t))return e}function N3(e,t){if(e==="change")return t}var v0=!1;if($n){var Sc;if($n){var Cc="oninput"in document;if(!Cc){var Lm=document.createElement("div");Lm.setAttribute("oninput","return;"),Cc=typeof Lm.oninput=="function"}Sc=Cc}else Sc=!1;v0=Sc&&(!document.documentMode||9<document.documentMode)}function Fm(){Vi&&(Vi.detachEvent("onpropertychange",y0),ho=Vi=null)}function y0(e){if(e.propertyName==="value"&&pu(ho)){var t=[];g0(t,ho,e,Wf(e)),Yv(O3,t)}}function P3(e,t,n){e==="focusin"?(Fm(),Vi=t,ho=n,Vi.attachEvent("onpropertychange",y0)):e==="focusout"&&Fm()}function A3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pu(ho)}function _3(e,t){if(e==="click")return pu(t)}function T3(e,t){if(e==="input"||e==="change")return pu(t)}function I3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:I3;function po(e,t){if(cn(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 s=n[r];if(!yd.call(t,s)||!cn(e[s],t[s]))return!1}return!0}function $m(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bm(e,t){var n=$m(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=$m(n)}}function x0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?x0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w0(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function nh(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 D3(e){var t=w0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&x0(n.ownerDocument.documentElement,n)){if(r!==null&&nh(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Bm(n,i);var o=Bm(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 M3=$n&&"documentMode"in document&&11>=document.documentMode,xs=null,Ld=null,Ui=null,Fd=!1;function zm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fd||xs==null||xs!==yl(r)||(r=xs,"selectionStart"in r&&nh(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}),Ui&&po(Ui,r)||(Ui=r,r=kl(Ld,"onSelect"),0<r.length&&(t=new Zf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xs)))}function xa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ws={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionend:xa("Transition","TransitionEnd")},Ec={},b0={};$n&&(b0=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function mu(e){if(Ec[e])return Ec[e];if(!ws[e])return e;var t=ws[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in b0)return Ec[e]=t[n];return e}var S0=mu("animationend"),C0=mu("animationiteration"),E0=mu("animationstart"),k0=mu("transitionend"),j0=new Map,Vm="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 Rr(e,t){j0.set(e,t),ss(t,[e])}for(var kc=0;kc<Vm.length;kc++){var jc=Vm[kc],L3=jc.toLowerCase(),F3=jc[0].toUpperCase()+jc.slice(1);Rr(L3,"on"+F3)}Rr(S0,"onAnimationEnd");Rr(C0,"onAnimationIteration");Rr(E0,"onAnimationStart");Rr("dblclick","onDoubleClick");Rr("focusin","onFocus");Rr("focusout","onBlur");Rr(k0,"onTransitionEnd");Vs("onMouseEnter",["mouseout","mouseover"]);Vs("onMouseLeave",["mouseout","mouseover"]);Vs("onPointerEnter",["pointerout","pointerover"]);Vs("onPointerLeave",["pointerout","pointerover"]);ss("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ss("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ss("onBeforeInput",["compositionend","keypress","textInput","paste"]);ss("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ss("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ss("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(" "),$3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Di));function Um(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,L4(r,t,void 0,e),e.currentTarget=null}function R0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Um(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Um(s,a,u),i=l}}}if(wl)throw e=Td,wl=!1,Td=null,e}function me(e,t){var n=t[Ud];n===void 0&&(n=t[Ud]=new Set);var r=e+"__bubble";n.has(r)||(O0(t,e,2,!1),n.add(r))}function Rc(e,t,n){var r=0;t&&(r|=4),O0(n,e,r,t)}var wa="_reactListening"+Math.random().toString(36).slice(2);function mo(e){if(!e[wa]){e[wa]=!0,Dv.forEach(function(n){n!=="selectionchange"&&($3.has(n)||Rc(n,!1,e),Rc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wa]||(t[wa]=!0,Rc("selectionchange",!1,t))}}function O0(e,t,n,r){switch(d0(t)){case 1:var s=Z4;break;case 4:s=e3;break;default:s=Yf}n=s.bind(null,t,n,e),s=void 0,!_d||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Oc(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Br(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Yv(function(){var u=i,d=Wf(n),f=[];e:{var h=j0.get(e);if(h!==void 0){var p=Zf,m=e;switch(e){case"keypress":if(Ua(n)===0)break e;case"keydown":case"keyup":p=m3;break;case"focusin":m="focus",p=bc;break;case"focusout":m="blur",p=bc;break;case"beforeblur":case"afterblur":p=bc;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":p=Am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=r3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=y3;break;case S0:case C0:case E0:p=o3;break;case k0:p=w3;break;case"scroll":p=t3;break;case"wheel":p=S3;break;case"copy":case"cut":case"paste":p=l3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Tm}var y=(t&4)!==0,w=!y&&e==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,x;v!==null;){x=v;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,g!==null&&(S=lo(v,g),S!=null&&y.push(go(v,S,x)))),w)break;v=v.return}0<y.length&&(h=new p(h,m,null,n,d),f.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Pd&&(m=n.relatedTarget||n.fromElement)&&(Br(m)||m[Bn]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Br(m):null,m!==null&&(w=is(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=Am,S="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Tm,S="onPointerLeave",g="onPointerEnter",v="pointer"),w=p==null?h:bs(p),x=m==null?h:bs(m),h=new y(S,v+"leave",p,n,d),h.target=w,h.relatedTarget=x,S=null,Br(d)===u&&(y=new y(g,v+"enter",m,n,d),y.target=x,y.relatedTarget=w,S=y),w=S,p&&m)t:{for(y=p,g=m,v=0,x=y;x;x=fs(x))v++;for(x=0,S=g;S;S=fs(S))x++;for(;0<v-x;)y=fs(y),v--;for(;0<x-v;)g=fs(g),x--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=fs(y),g=fs(g)}y=null}else y=null;p!==null&&Hm(f,h,p,y,!1),m!==null&&w!==null&&Hm(f,w,m,y,!0)}}e:{if(h=u?bs(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var C=N3;else if(Mm(h))if(v0)C=T3;else{C=A3;var j=P3}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=_3);if(C&&(C=C(e,u))){g0(f,C,n,d);break e}j&&j(e,h,u),e==="focusout"&&(j=h._wrapperState)&&j.controlled&&h.type==="number"&&kd(h,"number",h.value)}switch(j=u?bs(u):window,e){case"focusin":(Mm(j)||j.contentEditable==="true")&&(xs=j,Ld=u,Ui=null);break;case"focusout":Ui=Ld=xs=null;break;case"mousedown":Fd=!0;break;case"contextmenu":case"mouseup":case"dragend":Fd=!1,zm(f,n,d);break;case"selectionchange":if(M3)break;case"keydown":case"keyup":zm(f,n,d)}var k;if(th)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else ys?p0(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(h0&&n.locale!=="ko"&&(ys||O!=="onCompositionStart"?O==="onCompositionEnd"&&ys&&(k=f0()):(sr=d,Jf="value"in sr?sr.value:sr.textContent,ys=!0)),j=kl(u,O),0<j.length&&(O=new _m(O,e,null,n,d),f.push({event:O,listeners:j}),k?O.data=k:(k=m0(n),k!==null&&(O.data=k)))),(k=E3?k3(e,n):j3(e,n))&&(u=kl(u,"onBeforeInput"),0<u.length&&(d=new _m("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=k))}R0(f,t)})}function go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=lo(e,n),i!=null&&r.unshift(go(e,i,s)),i=lo(e,t),i!=null&&r.push(go(e,i,s))),e=e.return}return r}function fs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hm(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=lo(n,i),l!=null&&o.unshift(go(n,l,a))):s||(l=lo(n,i),l!=null&&o.push(go(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var B3=/\r\n?/g,z3=/\u0000|\uFFFD/g;function qm(e){return(typeof e=="string"?e:""+e).replace(B3,`
39
+ `).replace(z3,"")}function ba(e,t,n){if(t=qm(t),qm(e)!==t&&n)throw Error(U(425))}function jl(){}var $d=null,Bd=null;function zd(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 Vd=typeof setTimeout=="function"?setTimeout:void 0,V3=typeof clearTimeout=="function"?clearTimeout:void 0,Qm=typeof Promise=="function"?Promise:void 0,U3=typeof queueMicrotask=="function"?queueMicrotask:typeof Qm<"u"?function(e){return Qm.resolve(null).then(e).catch(H3)}:Vd;function H3(e){setTimeout(function(){throw e})}function Nc(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),fo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);fo(t)}function hr(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 Wm(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 ii=Math.random().toString(36).slice(2),yn="__reactFiber$"+ii,vo="__reactProps$"+ii,Bn="__reactContainer$"+ii,Ud="__reactEvents$"+ii,q3="__reactListeners$"+ii,Q3="__reactHandles$"+ii;function Br(e){var t=e[yn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[yn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wm(e);e!==null;){if(n=e[yn])return n;e=Wm(e)}return t}e=n,n=e.parentNode}return null}function Ho(e){return e=e[yn]||e[Bn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function gu(e){return e[vo]||null}var Hd=[],Ss=-1;function Or(e){return{current:e}}function ge(e){0>Ss||(e.current=Hd[Ss],Hd[Ss]=null,Ss--)}function pe(e,t){Ss++,Hd[Ss]=e.current,e.current=t}var br={},Ge=Or(br),mt=Or(!1),Gr=br;function Us(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function gt(e){return e=e.childContextTypes,e!=null}function Rl(){ge(mt),ge(Ge)}function Km(e,t,n){if(Ge.current!==br)throw Error(U(168));pe(Ge,t),pe(mt,n)}function N0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(U(108,P4(e)||"Unknown",s));return Se({},n,r)}function Ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Gr=Ge.current,pe(Ge,e),pe(mt,mt.current),!0}function Gm(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=N0(e,t,Gr),r.__reactInternalMemoizedMergedChildContext=e,ge(mt),ge(Ge),pe(Ge,e)):ge(mt),pe(mt,n)}var Tn=null,vu=!1,Pc=!1;function P0(e){Tn===null?Tn=[e]:Tn.push(e)}function W3(e){vu=!0,P0(e)}function Nr(){if(!Pc&&Tn!==null){Pc=!0;var e=0,t=ce;try{var n=Tn;for(ce=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tn=null,vu=!1}catch(s){throw Tn!==null&&(Tn=Tn.slice(e+1)),t0(Kf,Nr),s}finally{ce=t,Pc=!1}}return null}var Cs=[],Es=0,Nl=null,Pl=0,Lt=[],Ft=0,Xr=null,In=1,Dn="";function Mr(e,t){Cs[Es++]=Pl,Cs[Es++]=Nl,Nl=e,Pl=t}function A0(e,t,n){Lt[Ft++]=In,Lt[Ft++]=Dn,Lt[Ft++]=Xr,Xr=e;var r=In;e=Dn;var s=32-ln(r)-1;r&=~(1<<s),n+=1;var i=32-ln(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,In=1<<32-ln(t)+s|n<<s|r,Dn=i+e}else In=1<<i|n<<s|r,Dn=e}function rh(e){e.return!==null&&(Mr(e,1),A0(e,1,0))}function sh(e){for(;e===Nl;)Nl=Cs[--Es],Cs[Es]=null,Pl=Cs[--Es],Cs[Es]=null;for(;e===Xr;)Xr=Lt[--Ft],Lt[Ft]=null,Dn=Lt[--Ft],Lt[Ft]=null,In=Lt[--Ft],Lt[Ft]=null}var Rt=null,Et=null,ve=!1,rn=null;function _0(e,t){var n=Ut(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 Xm(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,Rt=e,Et=hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Xr!==null?{id:In,overflow:Dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Et=null,!0):!1;default:return!1}}function qd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qd(e){if(ve){var t=Et;if(t){var n=t;if(!Xm(e,t)){if(qd(e))throw Error(U(418));t=hr(n.nextSibling);var r=Rt;t&&Xm(e,t)?_0(r,n):(e.flags=e.flags&-4097|2,ve=!1,Rt=e)}}else{if(qd(e))throw Error(U(418));e.flags=e.flags&-4097|2,ve=!1,Rt=e}}}function Ym(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Sa(e){if(e!==Rt)return!1;if(!ve)return Ym(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zd(e.type,e.memoizedProps)),t&&(t=Et)){if(qd(e))throw T0(),Error(U(418));for(;t;)_0(e,t),t=hr(t.nextSibling)}if(Ym(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Et=hr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=Rt?hr(e.stateNode.nextSibling):null;return!0}function T0(){for(var e=Et;e;)e=hr(e.nextSibling)}function Hs(){Et=Rt=null,ve=!1}function ih(e){rn===null?rn=[e]:rn.push(e)}var K3=Qn.ReactCurrentBatchConfig;function en(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Al=Or(null),_l=null,ks=null,oh=null;function ah(){oh=ks=_l=null}function lh(e){var t=Al.current;ge(Al),e._currentValue=t}function Wd(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 Ds(e,t){_l=e,oh=ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pt=!0),e.firstContext=null)}function Wt(e){var t=e._currentValue;if(oh!==e)if(e={context:e,memoizedValue:t,next:null},ks===null){if(_l===null)throw Error(U(308));ks=e,_l.dependencies={lanes:0,firstContext:e}}else ks=ks.next=e;return t}var zr=null;function uh(e){zr===null?zr=[e]:zr.push(e)}function I0(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,uh(t)):(n.next=s.next,s.next=n),t.interleaved=n,zn(e,r)}function zn(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 er=!1;function ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function D0(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 Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,zn(e,n)}return s=r.interleaved,s===null?(t.next=t,uh(r)):(t.next=s.next,s.next=t),r.interleaved=t,zn(e,n)}function Ha(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,Gf(e,n)}}function Jm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,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 Tl(e,t,n,r){var s=e.updateQueue;er=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,d=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(h=t,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(p,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(p,f,h):m,h==null)break e;f=Se({},f,h);break e;case 2:er=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Jr|=o,e.lanes=o,e.memoizedState=f}}function Zm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(U(191,s));s.call(r)}}}var M0=new Iv.Component().refs;function Kd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yu={isMounted:function(e){return(e=e._reactInternals)?is(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),s=gr(e),i=Fn(r,s);i.payload=t,n!=null&&(i.callback=n),t=pr(e,i,s),t!==null&&(un(t,e,s,r),Ha(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),s=gr(e),i=Fn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=pr(e,i,s),t!==null&&(un(t,e,s,r),Ha(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=gr(e),s=Fn(n,r);s.tag=2,t!=null&&(s.callback=t),t=pr(e,s,r),t!==null&&(un(t,e,r,n),Ha(t,e,r))}};function eg(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!po(n,r)||!po(s,i):!0}function L0(e,t,n){var r=!1,s=br,i=t.contextType;return typeof i=="object"&&i!==null?i=Wt(i):(s=gt(t)?Gr:Ge.current,r=t.contextTypes,i=(r=r!=null)?Us(e,s):br),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function tg(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&&yu.enqueueReplaceState(t,t.state,null)}function Gd(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=M0,ch(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Wt(i):(i=gt(t)?Gr:Ge.current,s.context=Us(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Kd(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&yu.enqueueReplaceState(s,s.state,null),Tl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function bi(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(U(309));var r=n.stateNode}if(!r)throw Error(U(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===M0&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function Ca(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ng(e){var t=e._init;return t(e._payload)}function F0(e){function t(g,v){if(e){var x=g.deletions;x===null?(g.deletions=[v],g.flags|=16):x.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function s(g,v){return g=vr(g,v),g.index=0,g.sibling=null,g}function i(g,v,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<v?(g.flags|=2,v):x):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,x,S){return v===null||v.tag!==6?(v=Lc(x,g.mode,S),v.return=g,v):(v=s(v,x),v.return=g,v)}function l(g,v,x,S){var C=x.type;return C===vs?d(g,v,x.props.children,S,x.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Zn&&ng(C)===v.type)?(S=s(v,x.props),S.ref=bi(g,v,x),S.return=g,S):(S=Xa(x.type,x.key,x.props,null,g.mode,S),S.ref=bi(g,v,x),S.return=g,S)}function u(g,v,x,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Fc(x,g.mode,S),v.return=g,v):(v=s(v,x.children||[]),v.return=g,v)}function d(g,v,x,S,C){return v===null||v.tag!==7?(v=Qr(x,g.mode,S,C),v.return=g,v):(v=s(v,x),v.return=g,v)}function f(g,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Lc(""+v,g.mode,x),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case fa:return x=Xa(v.type,v.key,v.props,null,g.mode,x),x.ref=bi(g,null,v),x.return=g,x;case gs:return v=Fc(v,g.mode,x),v.return=g,v;case Zn:var S=v._init;return f(g,S(v._payload),x)}if(Ti(v)||gi(v))return v=Qr(v,g.mode,x,null),v.return=g,v;Ca(g,v)}return null}function h(g,v,x,S){var C=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:a(g,v,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case fa:return x.key===C?l(g,v,x,S):null;case gs:return x.key===C?u(g,v,x,S):null;case Zn:return C=x._init,h(g,v,C(x._payload),S)}if(Ti(x)||gi(x))return C!==null?null:d(g,v,x,S,null);Ca(g,x)}return null}function p(g,v,x,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(x)||null,a(v,g,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case fa:return g=g.get(S.key===null?x:S.key)||null,l(v,g,S,C);case gs:return g=g.get(S.key===null?x:S.key)||null,u(v,g,S,C);case Zn:var j=S._init;return p(g,v,x,j(S._payload),C)}if(Ti(S)||gi(S))return g=g.get(x)||null,d(v,g,S,C,null);Ca(v,S)}return null}function m(g,v,x,S){for(var C=null,j=null,k=v,O=v=0,A=null;k!==null&&O<x.length;O++){k.index>O?(A=k,k=null):A=k.sibling;var _=h(g,k,x[O],S);if(_===null){k===null&&(k=A);break}e&&k&&_.alternate===null&&t(g,k),v=i(_,v,O),j===null?C=_:j.sibling=_,j=_,k=A}if(O===x.length)return n(g,k),ve&&Mr(g,O),C;if(k===null){for(;O<x.length;O++)k=f(g,x[O],S),k!==null&&(v=i(k,v,O),j===null?C=k:j.sibling=k,j=k);return ve&&Mr(g,O),C}for(k=r(g,k);O<x.length;O++)A=p(k,g,O,x[O],S),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?O:A.key),v=i(A,v,O),j===null?C=A:j.sibling=A,j=A);return e&&k.forEach(function(F){return t(g,F)}),ve&&Mr(g,O),C}function y(g,v,x,S){var C=gi(x);if(typeof C!="function")throw Error(U(150));if(x=C.call(x),x==null)throw Error(U(151));for(var j=C=null,k=v,O=v=0,A=null,_=x.next();k!==null&&!_.done;O++,_=x.next()){k.index>O?(A=k,k=null):A=k.sibling;var F=h(g,k,_.value,S);if(F===null){k===null&&(k=A);break}e&&k&&F.alternate===null&&t(g,k),v=i(F,v,O),j===null?C=F:j.sibling=F,j=F,k=A}if(_.done)return n(g,k),ve&&Mr(g,O),C;if(k===null){for(;!_.done;O++,_=x.next())_=f(g,_.value,S),_!==null&&(v=i(_,v,O),j===null?C=_:j.sibling=_,j=_);return ve&&Mr(g,O),C}for(k=r(g,k);!_.done;O++,_=x.next())_=p(k,g,O,_.value,S),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?O:_.key),v=i(_,v,O),j===null?C=_:j.sibling=_,j=_);return e&&k.forEach(function(T){return t(g,T)}),ve&&Mr(g,O),C}function w(g,v,x,S){if(typeof x=="object"&&x!==null&&x.type===vs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fa:e:{for(var C=x.key,j=v;j!==null;){if(j.key===C){if(C=x.type,C===vs){if(j.tag===7){n(g,j.sibling),v=s(j,x.props.children),v.return=g,g=v;break e}}else if(j.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Zn&&ng(C)===j.type){n(g,j.sibling),v=s(j,x.props),v.ref=bi(g,j,x),v.return=g,g=v;break e}n(g,j);break}else t(g,j);j=j.sibling}x.type===vs?(v=Qr(x.props.children,g.mode,S,x.key),v.return=g,g=v):(S=Xa(x.type,x.key,x.props,null,g.mode,S),S.ref=bi(g,v,x),S.return=g,g=S)}return o(g);case gs:e:{for(j=x.key;v!==null;){if(v.key===j)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(g,v.sibling),v=s(v,x.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Fc(x,g.mode,S),v.return=g,g=v}return o(g);case Zn:return j=x._init,w(g,v,j(x._payload),S)}if(Ti(x))return m(g,v,x,S);if(gi(x))return y(g,v,x,S);Ca(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(g,v.sibling),v=s(v,x),v.return=g,g=v):(n(g,v),v=Lc(x,g.mode,S),v.return=g,g=v),o(g)):n(g,v)}return w}var qs=F0(!0),$0=F0(!1),qo={},Sn=Or(qo),yo=Or(qo),xo=Or(qo);function Vr(e){if(e===qo)throw Error(U(174));return e}function dh(e,t){switch(pe(xo,t),pe(yo,e),pe(Sn,qo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rd(t,e)}ge(Sn),pe(Sn,t)}function Qs(){ge(Sn),ge(yo),ge(xo)}function B0(e){Vr(xo.current);var t=Vr(Sn.current),n=Rd(t,e.type);t!==n&&(pe(yo,e),pe(Sn,n))}function fh(e){yo.current===e&&(ge(Sn),ge(yo))}var xe=Or(0);function Il(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 Ac=[];function hh(){for(var e=0;e<Ac.length;e++)Ac[e]._workInProgressVersionPrimary=null;Ac.length=0}var qa=Qn.ReactCurrentDispatcher,_c=Qn.ReactCurrentBatchConfig,Yr=0,be=null,Te=null,Me=null,Dl=!1,Hi=!1,wo=0,G3=0;function Qe(){throw Error(U(321))}function ph(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}function mh(e,t,n,r,s,i){if(Yr=i,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qa.current=e===null||e.memoizedState===null?Z3:eC,e=n(r,s),Hi){i=0;do{if(Hi=!1,wo=0,25<=i)throw Error(U(301));i+=1,Me=Te=null,t.updateQueue=null,qa.current=tC,e=n(r,s)}while(Hi)}if(qa.current=Ml,t=Te!==null&&Te.next!==null,Yr=0,Me=Te=be=null,Dl=!1,t)throw Error(U(300));return e}function gh(){var e=wo!==0;return wo=0,e}function mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?be.memoizedState=Me=e:Me=Me.next=e,Me}function Kt(){if(Te===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Me===null?be.memoizedState:Me.next;if(t!==null)Me=t,Te=e;else{if(e===null)throw Error(U(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Me===null?be.memoizedState=Me=e:Me=Me.next=e}return Me}function bo(e,t){return typeof t=="function"?t(e):t}function Tc(e){var t=Kt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=Te,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var d=u.lane;if((Yr&d)===d)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:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,be.lanes|=d,Jr|=d}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,cn(r,t.memoizedState)||(pt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,be.lanes|=i,Jr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ic(e){var t=Kt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);cn(i,t.memoizedState)||(pt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function z0(){}function V0(e,t){var n=be,r=Kt(),s=t(),i=!cn(r.memoizedState,s);if(i&&(r.memoizedState=s,pt=!0),r=r.queue,vh(q0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Me!==null&&Me.memoizedState.tag&1){if(n.flags|=2048,So(9,H0.bind(null,n,r,s,t),void 0,null),Le===null)throw Error(U(349));Yr&30||U0(n,t,s)}return s}function U0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function H0(e,t,n,r){t.value=n,t.getSnapshot=r,Q0(t)&&W0(e)}function q0(e,t,n){return n(function(){Q0(t)&&W0(e)})}function Q0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cn(e,n)}catch{return!0}}function W0(e){var t=zn(e,1);t!==null&&un(t,e,1,-1)}function rg(e){var t=mn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bo,lastRenderedState:e},t.queue=e,e=e.dispatch=J3.bind(null,be,e),[t.memoizedState,e]}function So(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=be.updateQueue,t===null?(t={lastEffect:null,stores:null},be.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 K0(){return Kt().memoizedState}function Qa(e,t,n,r){var s=mn();be.flags|=e,s.memoizedState=So(1|t,n,void 0,r===void 0?null:r)}function xu(e,t,n,r){var s=Kt();r=r===void 0?null:r;var i=void 0;if(Te!==null){var o=Te.memoizedState;if(i=o.destroy,r!==null&&ph(r,o.deps)){s.memoizedState=So(t,n,i,r);return}}be.flags|=e,s.memoizedState=So(1|t,n,i,r)}function sg(e,t){return Qa(8390656,8,e,t)}function vh(e,t){return xu(2048,8,e,t)}function G0(e,t){return xu(4,2,e,t)}function X0(e,t){return xu(4,4,e,t)}function Y0(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 J0(e,t,n){return n=n!=null?n.concat([e]):null,xu(4,4,Y0.bind(null,t,e),n)}function yh(){}function Z0(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ph(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ey(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ph(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ty(e,t,n){return Yr&21?(cn(n,t)||(n=s0(),be.lanes|=n,Jr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pt=!0),e.memoizedState=n)}function X3(e,t){var n=ce;ce=n!==0&&4>n?n:4,e(!0);var r=_c.transition;_c.transition={};try{e(!1),t()}finally{ce=n,_c.transition=r}}function ny(){return Kt().memoizedState}function Y3(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ry(e))sy(t,n);else if(n=I0(e,t,n,r),n!==null){var s=rt();un(n,e,r,s),iy(n,t,r)}}function J3(e,t,n){var r=gr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ry(e))sy(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,cn(a,o)){var l=t.interleaved;l===null?(s.next=s,uh(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=I0(e,t,s,r),n!==null&&(s=rt(),un(n,e,r,s),iy(n,t,r))}}function ry(e){var t=e.alternate;return e===be||t!==null&&t===be}function sy(e,t){Hi=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function iy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gf(e,n)}}var Ml={readContext:Wt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Z3={readContext:Wt,useCallback:function(e,t){return mn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:sg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qa(4194308,4,Y0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qa(4,2,e,t)},useMemo:function(e,t){var n=mn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mn();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=Y3.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=mn();return e={current:e},t.memoizedState=e},useState:rg,useDebugValue:yh,useDeferredValue:function(e){return mn().memoizedState=e},useTransition:function(){var e=rg(!1),t=e[0];return e=X3.bind(null,e[1]),mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=be,s=mn();if(ve){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Le===null)throw Error(U(349));Yr&30||U0(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,sg(q0.bind(null,r,i,e),[e]),r.flags|=2048,So(9,H0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=mn(),t=Le.identifierPrefix;if(ve){var n=Dn,r=In;n=(r&~(1<<32-ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=G3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eC={readContext:Wt,useCallback:Z0,useContext:Wt,useEffect:vh,useImperativeHandle:J0,useInsertionEffect:G0,useLayoutEffect:X0,useMemo:ey,useReducer:Tc,useRef:K0,useState:function(){return Tc(bo)},useDebugValue:yh,useDeferredValue:function(e){var t=Kt();return ty(t,Te.memoizedState,e)},useTransition:function(){var e=Tc(bo)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:z0,useSyncExternalStore:V0,useId:ny,unstable_isNewReconciler:!1},tC={readContext:Wt,useCallback:Z0,useContext:Wt,useEffect:vh,useImperativeHandle:J0,useInsertionEffect:G0,useLayoutEffect:X0,useMemo:ey,useReducer:Ic,useRef:K0,useState:function(){return Ic(bo)},useDebugValue:yh,useDeferredValue:function(e){var t=Kt();return Te===null?t.memoizedState=e:ty(t,Te.memoizedState,e)},useTransition:function(){var e=Ic(bo)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:z0,useSyncExternalStore:V0,useId:ny,unstable_isNewReconciler:!1};function Ws(e,t){try{var n="",r=t;do n+=N4(r),r=r.return;while(r);var s=n}catch(i){s=`
40
40
  Error generating stack: `+i.message+`
41
- `+i.stack}return{value:e,source:t,stack:s,digest:null}}function Vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wx=typeof WeakMap=="function"?WeakMap:Map;function hg(e,t,n){n=Jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ca||(ca=!0,uc=r),Ju(e,t)},n}function pg(e,t,n){n=Jt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ju(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ju(e,t),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ih(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wx;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=aS.bind(null,e,t,n),t.then(e,e))}function Ah(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 Lh(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Jt(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var Kx=on.ReactCurrentOwner,He=!1;function Te(e,t,n,r){t.child=e===null?Q1(t,null,n,r):Br(t,e.child,n,r)}function Mh(e,t,n,r,s){n=n.render;var i=t.ref;return Ar(t,s),r=vd(e,t,n,r,i,s),n=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&n&&id(t),t.flags|=1,Te(e,t,r,s),t.child)}function Dh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Od(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,mg(e,t,i,r,s)):(e=ko(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Js,n(o,r)&&e.ref===t.ref)return rn(e,t,s)}return t.flags|=1,e=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function mg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Js(i,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,rn(e,t,s)}return ec(e,t,n,r,s)}function gg(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(Or,Ge),Ge|=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,J(Or,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,J(Or,Ge),Ge|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,J(Or,Ge),Ge|=r;return Te(e,t,s,n),t.child}function vg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ec(e,t,n,r,s){var i=Qe(n)?Jn:Oe.current;return i=zr(t,i),Ar(t,s),n=vd(e,t,n,r,i,s),r=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&r&&id(t),t.flags|=1,Te(e,t,n,s),t.child)}function Fh(e,t,n,r,s){if(Qe(n)){var i=!0;ea(t)}else i=!1;if(Ar(t,s),t.stateNode===null)Co(e,t),H1(t,n,r),Zu(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=Qe(n)?Jn:Oe.current,u=zr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nh(t,o,r,u),pn=!1;var h=t.memoizedState;o.state=h,ia(t,r,o,s),l=t.memoizedState,a!==r||h!==l||qe.current||pn?(typeof c=="function"&&(Yu(t,n,c,r),l=t.memoizedState),(a=pn||Oh(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,B1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=mt(l):(l=Qe(n)?Jn:Oe.current,l=zr(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,o,r,l),pn=!1,h=t.memoizedState,o.state=h,ia(t,r,o,s);var m=t.memoizedState;a!==d||h!==m||qe.current||pn?(typeof p=="function"&&(Yu(t,n,p,r),m=t.memoizedState),(u=pn||Oh(t,n,u,r,h,m,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return tc(e,t,n,r,i,s)}function tc(e,t,n,r,s,i){vg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Ch(t,n,!1),rn(e,t,i);r=t.stateNode,Kx.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Br(t,e.child,null,i),t.child=Br(t,null,a,i)):Te(e,t,a,i),t.memoizedState=r.state,s&&Ch(t,n,!0),t.child}function yg(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),hd(e,t.containerInfo)}function $h(e,t,n,r,s){return Ur(),ad(s),t.flags|=256,Te(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function wg(e,t,n){var r=t.pendingProps,s=re.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),J(re,s&1),e===null)return Gu(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ua(o,r,0,null),e=Zn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=rc(n),t.memoizedState=nc,e):Sd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Gx(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=jn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=jn(a,i):(i=Zn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return i=e.child,e=i.sibling,r=jn(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 Sd(e,t){return t=Ua({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,r){return r!==null&&ad(r),Br(t,e.child,null,n),e=Sd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Vl(Error(T(422))),eo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Ua({mode:"visible",children:r.children},s,0,null),i=Zn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Br(t,e.child,null,o),t.child.memoizedState=rc(o),t.memoizedState=nc,i);if(!(t.mode&1))return eo(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(T(419)),r=Vl(i,r,void 0),eo(e,t,o,r)}if(a=(o&e.childLanes)!==0,He||a){if(r=ve,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,nn(e,s),Pt(r,e,s,-1))}return Pd(),r=Vl(Error(T(421))),eo(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=lS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ye=kn(s.nextSibling),et=t,ne=!0,Ct=null,e!==null&&(lt[ut++]=Xt,lt[ut++]=Yt,lt[ut++]=er,Xt=e.id,Yt=e.overflow,er=t),t=Sd(t,r.children),t.flags|=4096,t)}function zh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xu(e.return,t,n)}function Hl(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function xg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Te(e,t,r.children,n),r=re.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&&zh(e,n,t);else if(e.tag===19)zh(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(J(re,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&oa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Hl(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&oa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Co(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),nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xx(e,t,n){switch(t.tag){case 3:yg(t),Ur();break;case 5:W1(t);break;case 1:Qe(t.type)&&ea(t);break;case 4:hd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ra,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?wg(e,t,n):(J(re,re.current&1),e=rn(e,t,n),e!==null?e.sibling:null);J(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),J(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,gg(e,t,n)}return rn(e,t,n)}var Sg,sc,bg,Cg;Sg=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}};sc=function(){};bg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Gn(Ut.current);var i=null;switch(n){case"input":s=ku(e,s),r=ku(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=Nu(e,s),r=Nu(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zo)}Tu(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qs.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Cg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ds(e,t){if(!ne)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 s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yx(e,t,n){var r=t.pendingProps;switch(od(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 Qe(t.type)&&Jo(),ke(t),null;case 3:return r=t.stateNode,Vr(),te(qe),te(Oe),md(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Zi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(fc(Ct),Ct=null))),sc(e,t),ke(t),null;case 5:pd(t);var s=Gn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)bg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return ke(t),null}if(e=Gn(Ut.current),Zi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ft]=t,r[ni]=i,e=(t.mode&1)!==0,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":Gf(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Yf(r,i),ee("invalid",r)}Tu(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Yi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Yi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Vi(r),Xf(r,i,!0);break;case"textarea":Vi(r),Zf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Zo)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ft]=t,e[ni]=r,Sg(e,t,!1,!1),t.stateNode=e;e:{switch(o=_u(n,r),n){case"dialog":ee("cancel",e),ee("close",e),s=r;break;case"iframe":case"object":case"embed":ee("load",e),s=r;break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],e);s=r;break;case"source":ee("error",e),s=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),s=r;break;case"details":ee("toggle",e),s=r;break;case"input":Gf(e,r),s=ku(e,r),ee("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),ee("invalid",e);break;case"textarea":Yf(e,r),s=Nu(e,r),ee("invalid",e);break;default:s=r}Tu(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Jm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ym(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ws(e,l):typeof l=="number"&&Ws(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qs.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",e):l!=null&&qc(e,i,l,o))}switch(n){case"input":Vi(e),Xf(e,r,!1);break;case"textarea":Vi(e),Zf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?jr(e,!!r.multiple,i,!1):r.defaultValue!=null&&jr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Zo)}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)Cg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Gn(si.current),Gn(Ut.current),Zi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(i=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:Yi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return ke(t),null;case 13:if(te(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Ye!==null&&t.mode&1&&!(t.flags&128))z1(),Ur(),t.flags|=98560,i=!1;else if(i=Zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Ft]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else Ct!==null&&(fc(Ct),Ct=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||re.current&1?he===0&&(he=3):Pd())),t.updateQueue!==null&&(t.flags|=4),ke(t),null);case 4:return Vr(),sc(e,t),e===null&&ei(t.stateNode.containerInfo),ke(t),null;case 10:return cd(t.type._context),ke(t),null;case 17:return Qe(t.type)&&Jo(),ke(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return ke(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ds(i,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oa(e),o!==null){for(t.flags|=128,ds(i,!1),r=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&ue()>qr&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304)}else{if(!r)if(e=oa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ne)return ke(t),null}else 2*ue()-i.renderingStartTime>qr&&n!==1073741824&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ue(),t.sibling=null,n=re.current,J(re,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return kd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Zx(e,t){switch(od(t),t.tag){case 1:return Qe(t.type)&&Jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),te(qe),te(Oe),md(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pd(t),null;case 13:if(te(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(re),null;case 4:return Vr(),null;case 10:return cd(t.type._context),null;case 22:case 23:return kd(),null;case 24:return null;default:return null}}var to=!1,Pe=!1,Jx=typeof WeakSet=="function"?WeakSet:Set,z=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ic(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Uh=!1;function eS(e,t){if(Bu=Go,e=P1(),sd(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},Go=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,S=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:St(t.type,y),S);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=Uh,Uh=!1,m}function _s(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&ic(t,n,i)}s=s.next}while(s!==r)}}function $a(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 oc(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 Eg(e){var t=e.alternate;t!==null&&(e.alternate=null,Eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[ni],delete t[Qu],delete t[Mx],delete t[Dx])),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 Rg(e){return e.tag===5||e.tag===3||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(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 ac(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=Zo));else if(r!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function lc(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(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var Se=null,bt=!1;function cn(e,t,n){for(n=n.child;n!==null;)kg(e,t,n),n=n.sibling}function kg(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Ta,n)}catch{}switch(n.tag){case 5:Pe||Pr(n,t);case 6:var r=Se,s=bt;Se=null,cn(e,t,n),Se=r,bt=s,Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),Ys(e)):Dl(Se,n.stateNode));break;case 4:r=Se,s=bt,Se=n.stateNode.containerInfo,bt=!0,cn(e,t,n),Se=r,bt=s;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ic(n,t,o),s=s.next}while(s!==r)}cn(e,t,n);break;case 1:if(!Pe&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,cn(e,t,n),Pe=r):cn(e,t,n);break;default:cn(e,t,n)}}function Vh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jx),t.forEach(function(r){var s=uS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,bt=!1;break e;case 3:Se=a.stateNode.containerInfo,bt=!0;break e;case 4:Se=a.stateNode.containerInfo,bt=!0;break e}a=a.return}if(Se===null)throw Error(T(160));kg(i,o,s),Se=null,bt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){oe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),At(e),r&4){try{_s(3,e,e.return),$a(3,e)}catch(y){oe(e,e.return,y)}try{_s(5,e,e.return)}catch(y){oe(e,e.return,y)}}break;case 1:xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return);break;case 5:if(xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return),e.flags&32){var s=e.stateNode;try{Ws(s,"")}catch(y){oe(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Km(s,i),_u(a,o);var u=_u(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Jm(s,d):c==="dangerouslySetInnerHTML"?Ym(s,d):c==="children"?Ws(s,d):qc(s,c,d,u)}switch(a){case"input":Pu(s,i);break;case"textarea":Gm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?jr(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?jr(s,!!i.multiple,i.defaultValue,!0):jr(s,!!i.multiple,i.multiple?[]:"",!1))}s[ni]=i}catch(y){oe(e,e.return,y)}}break;case 6:if(xt(t,e),At(e),r&4){if(e.stateNode===null)throw Error(T(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){oe(e,e.return,y)}}break;case 3:if(xt(t,e),At(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ys(t.containerInfo)}catch(y){oe(e,e.return,y)}break;case 4:xt(t,e),At(e);break;case 13:xt(t,e),At(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Ed=ue())),r&4&&Vh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(u=Pe)||c,xt(t,e),Pe=u):xt(t,e),At(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(h=z,p=h.child,h.tag){case 0:case 11:case 14:case 15:_s(4,h,h.return);break;case 1:Pr(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){oe(r,n,y)}}break;case 5:Pr(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}p!==null?(p.return=h,z=p):qh(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Zm("display",o))}catch(y){oe(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){oe(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:xt(t,e),At(e),r&4&&Vh(e);break;case 21:break;default:xt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rg(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ws(s,""),r.flags&=-33);var i=Bh(e);lc(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bh(e);ac(e,a,o);break;default:throw Error(T(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tS(e,t,n){z=e,Og(e)}function Og(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var s=z,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||to;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Pe;a=to;var u=Pe;if(to=o,(Pe=l)&&!u)for(z=s;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?Qh(s):l!==null?(l.return=o,z=l):Qh(s);for(;i!==null;)z=i,Og(i),i=i.sibling;z=s,to=a,Pe=u}Hh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,z=i):Hh(e)}}function Hh(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||$a(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ph(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ph(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;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 d=c.dehydrated;d!==null&&Ys(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Pe||t.flags&512&&oc(t)}catch(h){oe(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function qh(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Qh(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$a(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){oe(t,s,l)}}var i=t.return;try{oc(t)}catch(l){oe(t,i,l)}break;case 5:var o=t.return;try{oc(t)}catch(l){oe(t,o,l)}}}catch(l){oe(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var nS=Math.ceil,ua=on.ReactCurrentDispatcher,bd=on.ReactCurrentOwner,pt=on.ReactCurrentBatchConfig,W=0,ve=null,de=null,be=0,Ge=0,Or=Dn(0),he=0,li=null,nr=0,za=0,Cd=0,Is=null,Be=null,Ed=0,qr=1/0,Wt=null,ca=!1,uc=null,On=null,no=!1,wn=null,da=0,As=0,cc=null,Eo=-1,Ro=0;function Ae(){return W&6?ue():Eo!==-1?Eo:Eo=ue()}function Nn(e){return e.mode&1?W&2&&be!==0?be&-be:$x.transition!==null?(Ro===0&&(Ro=d1()),Ro):(e=Z,e!==0||(e=window.event,e=e===void 0?16:y1(e.type)),e):1}function Pt(e,t,n,r){if(50<As)throw As=0,cc=null,Error(T(185));Ci(e,n,r),(!(W&2)||e!==ve)&&(e===ve&&(!(W&2)&&(za|=n),he===4&&gn(e,be)),We(e,r),n===1&&W===0&&!(t.mode&1)&&(qr=ue()+500,Ma&&Fn()))}function We(e,t){var n=e.callbackNode;$w(e,t);var r=Ko(e,e===ve?be:0);if(r===0)n!==null&&th(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&th(n),t===1)e.tag===0?Fx(Wh.bind(null,e)):D1(Wh.bind(null,e)),Ax(function(){!(W&6)&&Fn()}),n=null;else{switch(f1(r)){case 1:n=Xc;break;case 4:n=u1;break;case 16:n=Wo;break;case 536870912:n=c1;break;default:n=Wo}n=Mg(n,Ng.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ng(e,t){if(Eo=-1,Ro=0,W&6)throw Error(T(327));var n=e.callbackNode;if(Lr()&&e.callbackNode!==n)return null;var r=Ko(e,e===ve?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=fa(e,r);else{t=r;var s=W;W|=2;var i=Tg();(ve!==e||be!==t)&&(Wt=null,qr=ue()+500,Yn(e,t));do try{iS();break}catch(a){jg(e,a)}while(1);ud(),ua.current=i,W=s,de!==null?t=0:(ve=null,be=0,t=he)}if(t!==0){if(t===2&&(s=Du(e),s!==0&&(r=s,t=dc(e,s))),t===1)throw n=li,Yn(e,0),gn(e,r),We(e,ue()),n;if(t===6)gn(e,r);else{if(s=e.current.alternate,!(r&30)&&!rS(s)&&(t=fa(e,r),t===2&&(i=Du(e),i!==0&&(r=i,t=dc(e,i))),t===1))throw n=li,Yn(e,0),gn(e,r),We(e,ue()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Hn(e,Be,Wt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=Ed+500-ue(),10<t)){if(Ko(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),t);break}Hn(e,Be,Wt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-kt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nS(r/1960))-r,10<r){e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),r);break}Hn(e,Be,Wt);break;case 5:Hn(e,Be,Wt);break;default:throw Error(T(329))}}}return We(e,ue()),e.callbackNode===n?Ng.bind(null,e):null}function dc(e,t){var n=Is;return e.current.memoizedState.isDehydrated&&(Yn(e,t).flags|=256),e=fa(e,t),e!==2&&(t=Be,Be=n,t!==null&&fc(t)),e}function fc(e){Be===null?Be=e:Be.push.apply(Be,e)}function rS(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!Ot(i(),s))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 gn(e,t){for(t&=~Cd,t&=~za,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kt(t),r=1<<n;e[n]=-1,t&=~r}}function Wh(e){if(W&6)throw Error(T(327));Lr();var t=Ko(e,0);if(!(t&1))return We(e,ue()),null;var n=fa(e,t);if(e.tag!==0&&n===2){var r=Du(e);r!==0&&(t=r,n=dc(e,r))}if(n===1)throw n=li,Yn(e,0),gn(e,t),We(e,ue()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e,Be,Wt),We(e,ue()),null}function Rd(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(qr=ue()+500,Ma&&Fn())}}function rr(e){wn!==null&&wn.tag===0&&!(W&6)&&Lr();var t=W;W|=1;var n=pt.transition,r=Z;try{if(pt.transition=null,Z=1,e)return e()}finally{Z=r,pt.transition=n,W=t,!(W&6)&&Fn()}}function kd(){Ge=Or.current,te(Or)}function Yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ix(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(od(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jo();break;case 3:Vr(),te(qe),te(Oe),md();break;case 5:pd(r);break;case 4:Vr();break;case 13:te(re);break;case 19:te(re);break;case 10:cd(r.type._context);break;case 22:case 23:kd()}n=n.return}if(ve=e,de=e=jn(e.current,null),be=Ge=t,he=0,li=null,Cd=za=nr=0,Be=Is=null,Kn!==null){for(t=0;t<Kn.length;t++)if(n=Kn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Kn=null}return e}function jg(e,t){do{var n=de;try{if(ud(),So.current=la,aa){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}aa=!1}if(tr=0,ge=fe=se=null,Ts=!1,ii=0,bd.current=null,n===null||n.return===null){he=1,li=t,de=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Ah(o);if(p!==null){p.flags&=-257,Lh(p,o,a,i,t),p.mode&1&&Ih(i,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){Ih(i,u,t),Pd();break e}l=Error(T(426))}}else if(ne&&a.mode&1){var S=Ah(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Lh(S,o,a,i,t),ad(Hr(l,a));break e}}i=l=Hr(l,a),he!==4&&(he=2),Is===null?Is=[i]:Is.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=hg(i,l,t);kh(i,g);break e;case 1:a=l;var v=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(On===null||!On.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=pg(i,a,t);kh(i,b);break e}}i=i.return}while(i!==null)}Ig(n)}catch(E){t=E,de===n&&n!==null&&(de=n=n.return);continue}break}while(1)}function Tg(){var e=ua.current;return ua.current=la,e===null?la:e}function Pd(){(he===0||he===3||he===2)&&(he=4),ve===null||!(nr&268435455)&&!(za&268435455)||gn(ve,be)}function fa(e,t){var n=W;W|=2;var r=Tg();(ve!==e||be!==t)&&(Wt=null,Yn(e,t));do try{sS();break}catch(s){jg(e,s)}while(1);if(ud(),W=n,ua.current=r,de!==null)throw Error(T(261));return ve=null,be=0,he}function sS(){for(;de!==null;)_g(de)}function iS(){for(;de!==null&&!jw();)_g(de)}function _g(e){var t=Lg(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?Ig(e):de=t,bd.current=null}function Ig(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Zx(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(n=Yx(n,t,Ge),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function Hn(e,t,n){var r=Z,s=pt.transition;try{pt.transition=null,Z=1,oS(e,t,n,r)}finally{pt.transition=s,Z=r}return null}function oS(e,t,n,r){do Lr();while(wn!==null);if(W&6)throw Error(T(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zw(e,i),e===ve&&(de=ve=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||no||(no=!0,Mg(Wo,function(){return Lr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=pt.transition,pt.transition=null;var o=Z;Z=1;var a=W;W|=4,bd.current=null,eS(e,n),Pg(n,e),kx(Vu),Go=!!Bu,Vu=Bu=null,e.current=n,tS(n),Tw(),W=a,Z=o,pt.transition=i}else e.current=n;if(no&&(no=!1,wn=e,da=s),i=e.pendingLanes,i===0&&(On=null),Aw(n.stateNode),We(e,ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ca)throw ca=!1,e=uc,uc=null,e;return da&1&&e.tag!==0&&Lr(),i=e.pendingLanes,i&1?e===cc?As++:(As=0,cc=e):As=0,Fn(),null}function Lr(){if(wn!==null){var e=f1(da),t=pt.transition,n=Z;try{if(pt.transition=null,Z=16>e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,da=0,W&6)throw Error(T(331));var s=W;for(W|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:_s(8,c,i)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var h=c.sibling,p=c.return;if(Eg(c),c===u){z=null;break}if(h!==null){h.return=p,z=h;break}z=p}}}var m=i.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}z=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,z=o;else e:for(;z!==null;){if(i=z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_s(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,z=g;break e}z=i.return}}var v=e.current;for(z=v;z!==null;){o=z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,z=w;else e:for(o=v;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$a(9,a)}}catch(E){oe(a,a.return,E)}if(a===o){z=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,z=b;break e}z=a.return}}if(W=s,Fn(),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Ta,e)}catch{}r=!0}return r}finally{Z=n,pt.transition=t}}return!1}function Kh(e,t,n){t=Hr(n,t),t=hg(e,t,1),e=Pn(e,t,1),t=Ae(),e!==null&&(Ci(e,1,t),We(e,t))}function oe(e,t,n){if(e.tag===3)Kh(e,e,n);else for(;t!==null;){if(t.tag===3){Kh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(On===null||!On.has(r))){e=Hr(n,e),e=pg(t,e,1),t=Pn(t,e,1),e=Ae(),t!==null&&(Ci(t,1,e),We(t,e));break}}t=t.return}}function aS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,ve===e&&(be&n)===n&&(he===4||he===3&&(be&130023424)===be&&500>ue()-Ed?Yn(e,0):Cd|=n),We(e,t)}function Ag(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Ae();e=nn(e,t),e!==null&&(Ci(e,t,n),We(e,n))}function lS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(e,n)}function uS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Ag(e,n)}var Lg;Lg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,Xx(e,t,n);He=!!(e.flags&131072)}else He=!1,ne&&t.flags&1048576&&F1(t,na,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Co(e,t),e=t.pendingProps;var s=zr(t,Oe.current);Ar(t,n),s=vd(null,t,r,e,s,n);var i=yd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,ea(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,fd(t),s.updater=Da,t.stateNode=s,s._reactInternals=t,Zu(t,r,e,n),t=tc(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&id(t),Te(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Co(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=dS(r),e=St(r,e),s){case 0:t=ec(null,t,r,e,n);break e;case 1:t=Fh(null,t,r,e,n);break e;case 11:t=Mh(null,t,r,e,n);break e;case 14:t=Dh(null,t,r,St(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),ec(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Fh(e,t,r,s,n);case 3:e:{if(yg(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,s=i.element,B1(e,t),ia(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Hr(Error(T(423)),t),t=$h(e,t,r,n,s);break e}else if(r!==s){s=Hr(Error(T(424)),t),t=$h(e,t,r,n,s);break e}else for(Ye=kn(t.stateNode.containerInfo.firstChild),et=t,ne=!0,Ct=null,n=Q1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===s){t=rn(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return W1(t),e===null&&Gu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Hu(r,s)?o=null:i!==null&&Hu(r,i)&&(t.flags|=32),vg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Gu(t),null;case 13:return wg(e,t,n);case 4:return hd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Br(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Mh(e,t,r,s,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,J(ra,r._currentValue),r._currentValue=o,i!==null)if(Ot(i.value,o)){if(i.children===s.children&&!qe.current){t=rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Jt(-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),Xu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Xu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ar(t,n),s=mt(s),r=r(s),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,s=St(r,t.pendingProps),s=St(r.type,s),Dh(e,t,r,s,n);case 15:return mg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Co(e,t),t.tag=1,Qe(r)?(e=!0,ea(t)):e=!1,Ar(t,n),H1(t,r,s),Zu(t,r,s,n),tc(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return gg(e,t,n)}throw Error(T(156,t.tag))};function Mg(e,t){return l1(e,t)}function cS(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 ht(e,t,n,r){return new cS(e,t,n,r)}function Od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dS(e){if(typeof e=="function")return Od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wc)return 11;if(e===Kc)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=ht(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 ko(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Od(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case yr:return Zn(n.children,s,i,t);case Qc:o=8,s|=8;break;case bu:return e=ht(12,n,t,s|2),e.elementType=bu,e.lanes=i,e;case Cu:return e=ht(13,n,t,s),e.elementType=Cu,e.lanes=i,e;case Eu:return e=ht(19,n,t,s),e.elementType=Eu,e.lanes=i,e;case qm:return Ua(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:o=10;break e;case Hm:o=9;break e;case Wc:o=11;break e;case Kc:o=14;break e;case hn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ht(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Zn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function Ua(e,t,n,r){return e=ht(22,e,r,t),e.elementType=qm,e.lanes=n,e.stateNode={isHidden:!1},e}function ql(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fS(e,t,n,r,s){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=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Nd(e,t,n,r,s,i,o,a,l){return e=new fS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fd(i),e}function hS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Dg(e){if(!e)return In;e=e._reactInternals;e:{if(lr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Qe(n))return M1(e,n,t)}return t}function Fg(e,t,n,r,s,i,o,a,l){return e=Nd(n,r,!0,e,s,i,o,a,l),e.context=Dg(null),n=e.current,r=Ae(),s=Nn(n),i=Jt(r,s),i.callback=t??null,Pn(n,i,s),e.current.lanes=s,Ci(e,s,r),We(e,r),e}function Ba(e,t,n,r){var s=t.current,i=Ae(),o=Nn(s);return n=Dg(n),t.context===null?t.context=n:t.pendingContext=n,t=Jt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pn(s,t,o),e!==null&&(Pt(e,s,o,i),xo(e,s,o)),o}function ha(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 Gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jd(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function pS(){return null}var $g=typeof reportError=="function"?reportError:function(e){console.error(e)};function Td(e){this._internalRoot=e}Va.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ba(e,t,null,null)};Va.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rr(function(){Ba(null,e,null,null)}),t[tn]=null}};function Va(e){this._internalRoot=e}Va.prototype.unstable_scheduleHydration=function(e){if(e){var t=m1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mn.length&&t!==0&&t<mn[n].priority;n++);mn.splice(n,0,e),n===0&&v1(e)}};function _d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ha(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xh(){}function mS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=ha(o);i.call(u)}}var o=Fg(t,r,e,0,null,!1,!1,"",Xh);return e._reactRootContainer=o,e[tn]=o.current,ei(e.nodeType===8?e.parentNode:e),rr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=ha(l);a.call(u)}}var l=Nd(e,0,!1,null,null,!1,!1,"",Xh);return e._reactRootContainer=l,e[tn]=l.current,ei(e.nodeType===8?e.parentNode:e),rr(function(){Ba(t,l,n,r)}),l}function qa(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=ha(o);a.call(l)}}Ba(t,o,e,s)}else o=mS(n,t,e,s,r);return ha(o)}h1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(Yc(t,n|1),We(t,ue()),!(W&6)&&(qr=ue()+500,Fn()))}break;case 13:rr(function(){var r=nn(e,1);if(r!==null){var s=Ae();Pt(r,e,1,s)}}),jd(e,1)}};Zc=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=Ae();Pt(t,e,134217728,n)}jd(e,134217728)}};p1=function(e){if(e.tag===13){var t=Nn(e),n=nn(e,t);if(n!==null){var r=Ae();Pt(n,e,t,r)}jd(e,t)}};m1=function(){return Z};g1=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};Au=function(e,t,n){switch(t){case"input":if(Pu(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 s=La(r);if(!s)throw Error(T(90));Wm(r),Pu(r,s)}}}break;case"textarea":Gm(e,n);break;case"select":t=n.value,t!=null&&jr(e,!!n.multiple,t,!1)}};n1=Rd;r1=rr;var gS={usingClientEntryPoint:!1,Events:[Ri,br,La,e1,t1,Rd]},fs={findFiberByHostInstance:Wn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vS={bundleType:fs.bundleType,version:fs.version,rendererPackageName:fs.rendererPackageName,rendererConfig:fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=o1(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||pS,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 ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ro.isDisabled&&ro.supportsFiber)try{Ta=ro.inject(vS),zt=ro}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gS;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_d(t))throw Error(T(200));return hS(e,t,null,n)};rt.createRoot=function(e,t){if(!_d(e))throw Error(T(299));var n=!1,r="",s=$g;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nd(e,1,!1,null,null,n,!1,r,s),e[tn]=t.current,ei(e.nodeType===8?e.parentNode:e),new Td(t)};rt.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=o1(t),e=e===null?null:e.stateNode,e};rt.flushSync=function(e){return rr(e)};rt.hydrate=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!0,n)};rt.hydrateRoot=function(e,t,n){if(!_d(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=$g;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Fg(t,null,e,1,n??null,s,!1,i,o),e[tn]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Va(t)};rt.render=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!1,n)};rt.unmountComponentAtNode=function(e){if(!Ha(e))throw Error(T(40));return e._reactRootContainer?(rr(function(){qa(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};rt.unstable_batchedUpdates=Rd;rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ha(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return qa(e,t,n,!1,r)};rt.version="18.2.0-next-9e3b772b8-20220608";function zg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zg)}catch(e){console.error(e)}}zg(),Fm.exports=rt;var Pi=Fm.exports,Ug={exports:{}},Bg={};/**
41
+ `+i.stack}return{value:e,source:t,stack:s,digest:null}}function Dc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nC=typeof WeakMap=="function"?WeakMap:Map;function oy(e,t,n){n=Fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fl||(Fl=!0,af=r),Xd(e,t)},n}function ay(e,t,n){n=Fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Xd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Xd(e,t),typeof r!="function"&&(mr===null?mr=new Set([this]):mr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ig(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nC;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=gC.bind(null,e,t,n),t.then(e,e))}function og(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 ag(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Fn(-1,1),t.tag=2,pr(n,t,1))),n.lanes|=1),e)}var rC=Qn.ReactCurrentOwner,pt=!1;function Je(e,t,n,r){t.child=e===null?$0(t,null,n,r):qs(t,e.child,n,r)}function lg(e,t,n,r,s){n=n.render;var i=t.ref;return Ds(t,s),r=mh(e,t,n,r,i,s),n=gh(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Vn(e,t,s)):(ve&&n&&rh(t),t.flags|=1,Je(e,t,r,s),t.child)}function ug(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!jh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ly(e,t,i,r,s)):(e=Xa(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:po,n(o,r)&&e.ref===t.ref)return Vn(e,t,s)}return t.flags|=1,e=vr(i,r),e.ref=t.ref,e.return=t,t.child=e}function ly(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(po(i,r)&&e.ref===t.ref)if(pt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(pt=!0);else return t.lanes=e.lanes,Vn(e,t,s)}return Yd(e,t,n,r,s)}function uy(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(Rs,St),St|=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,pe(Rs,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,pe(Rs,St),St|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,pe(Rs,St),St|=r;return Je(e,t,s,n),t.child}function cy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yd(e,t,n,r,s){var i=gt(n)?Gr:Ge.current;return i=Us(t,i),Ds(t,s),n=mh(e,t,n,r,i,s),r=gh(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Vn(e,t,s)):(ve&&r&&rh(t),t.flags|=1,Je(e,t,n,s),t.child)}function cg(e,t,n,r,s){if(gt(n)){var i=!0;Ol(t)}else i=!1;if(Ds(t,s),t.stateNode===null)Wa(e,t),L0(t,n,r),Gd(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Wt(u):(u=gt(n)?Gr:Ge.current,u=Us(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&tg(t,o,r,u),er=!1;var h=t.memoizedState;o.state=h,Tl(t,r,o,s),l=t.memoizedState,a!==r||h!==l||mt.current||er?(typeof d=="function"&&(Kd(t,n,d,r),l=t.memoizedState),(a=er||eg(t,n,a,r,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,D0(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:en(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Wt(l):(l=gt(n)?Gr:Ge.current,l=Us(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&tg(t,o,r,l),er=!1,h=t.memoizedState,o.state=h,Tl(t,r,o,s);var m=t.memoizedState;a!==f||h!==m||mt.current||er?(typeof p=="function"&&(Kd(t,n,p,r),m=t.memoizedState),(u=er||eg(t,n,u,r,h,m,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Jd(e,t,n,r,i,s)}function Jd(e,t,n,r,s,i){cy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Gm(t,n,!1),Vn(e,t,i);r=t.stateNode,rC.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=qs(t,e.child,null,i),t.child=qs(t,null,a,i)):Je(e,t,a,i),t.memoizedState=r.state,s&&Gm(t,n,!0),t.child}function dy(e){var t=e.stateNode;t.pendingContext?Km(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Km(e,t.context,!1),dh(e,t.containerInfo)}function dg(e,t,n,r,s){return Hs(),ih(s),t.flags|=256,Je(e,t,n,r),t.child}var Zd={dehydrated:null,treeContext:null,retryLane:0};function ef(e){return{baseLanes:e,cachePool:null,transitions:null}}function fy(e,t,n){var r=t.pendingProps,s=xe.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),pe(xe,s&1),e===null)return Qd(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Su(o,r,0,null),e=Qr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ef(n),t.memoizedState=Zd,e):xh(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return sC(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=vr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=vr(a,i):(i=Qr(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?ef(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Zd,r}return i=e.child,e=i.sibling,r=vr(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 xh(e,t){return t=Su({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ea(e,t,n,r){return r!==null&&ih(r),qs(t,e.child,null,n),e=xh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sC(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Dc(Error(U(422))),Ea(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Su({mode:"visible",children:r.children},s,0,null),i=Qr(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&qs(t,e.child,null,o),t.child.memoizedState=ef(o),t.memoizedState=Zd,i);if(!(t.mode&1))return Ea(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(U(419)),r=Dc(i,r,void 0),Ea(e,t,o,r)}if(a=(o&e.childLanes)!==0,pt||a){if(r=Le,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,zn(e,s),un(r,e,s,-1))}return kh(),r=Dc(Error(U(421))),Ea(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=vC.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Et=hr(s.nextSibling),Rt=t,ve=!0,rn=null,e!==null&&(Lt[Ft++]=In,Lt[Ft++]=Dn,Lt[Ft++]=Xr,In=e.id,Dn=e.overflow,Xr=t),t=xh(t,r.children),t.flags|=4096,t)}function fg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wd(e.return,t,n)}function Mc(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function hy(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=xe.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&&fg(e,n,t);else if(e.tag===19)fg(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(pe(xe,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Il(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Mc(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Il(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Mc(t,!0,n,null,i);break;case"together":Mc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=vr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iC(e,t,n){switch(t.tag){case 3:dy(t),Hs();break;case 5:B0(t);break;case 1:gt(t.type)&&Ol(t);break;case 4:dh(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;pe(Al,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(xe,xe.current&1),t.flags|=128,null):n&t.child.childLanes?fy(e,t,n):(pe(xe,xe.current&1),e=Vn(e,t,n),e!==null?e.sibling:null);pe(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hy(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),pe(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,uy(e,t,n)}return Vn(e,t,n)}var py,tf,my,gy;py=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}};tf=function(){};my=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Vr(Sn.current);var i=null;switch(n){case"input":s=Cd(e,s),r=Cd(e,r),i=[];break;case"select":s=Se({},s,{value:void 0}),r=Se({},r,{value:void 0}),i=[];break;case"textarea":s=jd(e,s),r=jd(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}Od(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&me("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};gy=function(e,t,n,r){n!==r&&(t.flags|=4)};function Si(e,t){if(!ve)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 We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oC(e,t,n){var r=t.pendingProps;switch(sh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return gt(t.type)&&Rl(),We(t),null;case 3:return r=t.stateNode,Qs(),ge(mt),ge(Ge),hh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Sa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rn!==null&&(cf(rn),rn=null))),tf(e,t),We(t),null;case 5:fh(t);var s=Vr(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)my(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return We(t),null}if(e=Vr(Sn.current),Sa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[yn]=t,r[vo]=i,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(s=0;s<Di.length;s++)me(Di[s],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":bm(r,i),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},me("invalid",r);break;case"textarea":Cm(r,i),me("invalid",r)}Od(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&ba(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&ba(r.textContent,a,e),s=["children",""+a]):oo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&me("scroll",r)}switch(n){case"input":ha(r),Sm(r,i,!0);break;case"textarea":ha(r),Em(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=jl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Uv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[yn]=t,e[vo]=r,py(e,t,!1,!1),t.stateNode=e;e:{switch(o=Nd(n,r),n){case"dialog":me("cancel",e),me("close",e),s=r;break;case"iframe":case"object":case"embed":me("load",e),s=r;break;case"video":case"audio":for(s=0;s<Di.length;s++)me(Di[s],e);s=r;break;case"source":me("error",e),s=r;break;case"img":case"image":case"link":me("error",e),me("load",e),s=r;break;case"details":me("toggle",e),s=r;break;case"input":bm(e,r),s=Cd(e,r),me("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Se({},r,{value:void 0}),me("invalid",e);break;case"textarea":Cm(e,r),s=jd(e,r),me("invalid",e);break;default:s=r}Od(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Qv(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Hv(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ao(e,l):typeof l=="number"&&ao(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(oo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&me("scroll",e):l!=null&&Uf(e,i,l,o))}switch(n){case"input":ha(e),Sm(e,r,!1);break;case"textarea":ha(e),Em(e);break;case"option":r.value!=null&&e.setAttribute("value",""+wr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?As(e,!!r.multiple,i,!1):r.defaultValue!=null&&As(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=jl)}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 We(t),null;case 6:if(e&&t.stateNode!=null)gy(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=Vr(xo.current),Vr(Sn.current),Sa(t)){if(r=t.stateNode,n=t.memoizedProps,r[yn]=t,(i=r.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:ba(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ba(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yn]=t,t.stateNode=r}return We(t),null;case 13:if(ge(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&Et!==null&&t.mode&1&&!(t.flags&128))T0(),Hs(),t.flags|=98560,i=!1;else if(i=Sa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(U(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(U(317));i[yn]=t}else Hs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else rn!==null&&(cf(rn),rn=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||xe.current&1?Ie===0&&(Ie=3):kh())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Qs(),tf(e,t),e===null&&mo(t.stateNode.containerInfo),We(t),null;case 10:return lh(t.type._context),We(t),null;case 17:return gt(t.type)&&Rl(),We(t),null;case 19:if(ge(xe),i=t.memoizedState,i===null)return We(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Si(i,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Il(e),o!==null){for(t.flags|=128,Si(i,!1),r=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ne()>Ks&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304)}else{if(!r)if(e=Il(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ve)return We(t),null}else 2*Ne()-i.renderingStartTime>Ks&&n!==1073741824&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ne(),t.sibling=null,n=xe.current,pe(xe,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Eh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function aC(e,t){switch(sh(t),t.tag){case 1:return gt(t.type)&&Rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qs(),ge(mt),ge(Ge),hh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fh(t),null;case 13:if(ge(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(xe),null;case 4:return Qs(),null;case 10:return lh(t.type._context),null;case 22:case 23:return Eh(),null;case 24:return null;default:return null}}var ka=!1,Ke=!1,lC=typeof WeakSet=="function"?WeakSet:Set,K=null;function js(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function nf(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var hg=!1;function uC(e,t){if($d=Cl,e=w0(),nh(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++d===r&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},Cl=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:en(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(S){Ce(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return m=hg,hg=!1,m}function qi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&nf(t,n,i)}s=s.next}while(s!==r)}}function wu(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 rf(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 vy(e){var t=e.alternate;t!==null&&(e.alternate=null,vy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[vo],delete t[Ud],delete t[q3],delete t[Q3])),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 yy(e){return e.tag===5||e.tag===3||e.tag===4}function pg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yy(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 sf(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=jl));else if(r!==4&&(e=e.child,e!==null))for(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}function of(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(of(e,t,n),e=e.sibling;e!==null;)of(e,t,n),e=e.sibling}var ze=null,nn=!1;function Xn(e,t,n){for(n=n.child;n!==null;)xy(e,t,n),n=n.sibling}function xy(e,t,n){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(fu,n)}catch{}switch(n.tag){case 5:Ke||js(n,t);case 6:var r=ze,s=nn;ze=null,Xn(e,t,n),ze=r,nn=s,ze!==null&&(nn?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(nn?(e=ze,n=n.stateNode,e.nodeType===8?Nc(e.parentNode,n):e.nodeType===1&&Nc(e,n),fo(e)):Nc(ze,n.stateNode));break;case 4:r=ze,s=nn,ze=n.stateNode.containerInfo,nn=!0,Xn(e,t,n),ze=r,nn=s;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&nf(n,t,o),s=s.next}while(s!==r)}Xn(e,t,n);break;case 1:if(!Ke&&(js(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ce(n,t,a)}Xn(e,t,n);break;case 21:Xn(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,Xn(e,t,n),Ke=r):Xn(e,t,n);break;default:Xn(e,t,n)}}function mg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lC),t.forEach(function(r){var s=yC.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ze=a.stateNode,nn=!1;break e;case 3:ze=a.stateNode.containerInfo,nn=!0;break e;case 4:ze=a.stateNode.containerInfo,nn=!0;break e}a=a.return}if(ze===null)throw Error(U(160));xy(i,o,s),ze=null,nn=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){Ce(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wy(t,e),t=t.sibling}function wy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zt(t,e),hn(e),r&4){try{qi(3,e,e.return),wu(3,e)}catch(y){Ce(e,e.return,y)}try{qi(5,e,e.return)}catch(y){Ce(e,e.return,y)}}break;case 1:Zt(t,e),hn(e),r&512&&n!==null&&js(n,n.return);break;case 5:if(Zt(t,e),hn(e),r&512&&n!==null&&js(n,n.return),e.flags&32){var s=e.stateNode;try{ao(s,"")}catch(y){Ce(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&zv(s,i),Nd(a,o);var u=Nd(a,i);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?Qv(s,f):d==="dangerouslySetInnerHTML"?Hv(s,f):d==="children"?ao(s,f):Uf(s,d,f,u)}switch(a){case"input":Ed(s,i);break;case"textarea":Vv(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?As(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?As(s,!!i.multiple,i.defaultValue,!0):As(s,!!i.multiple,i.multiple?[]:"",!1))}s[vo]=i}catch(y){Ce(e,e.return,y)}}break;case 6:if(Zt(t,e),hn(e),r&4){if(e.stateNode===null)throw Error(U(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){Ce(e,e.return,y)}}break;case 3:if(Zt(t,e),hn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fo(t.containerInfo)}catch(y){Ce(e,e.return,y)}break;case 4:Zt(t,e),hn(e);break;case 13:Zt(t,e),hn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Sh=Ne())),r&4&&mg(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ke=(u=Ke)||d,Zt(t,e),Ke=u):Zt(t,e),hn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(K=e,d=e.child;d!==null;){for(f=K=d;K!==null;){switch(h=K,p=h.child,h.tag){case 0:case 11:case 14:case 15:qi(4,h,h.return);break;case 1:js(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Ce(r,n,y)}}break;case 5:js(h,h.return);break;case 22:if(h.memoizedState!==null){vg(f);continue}}p!==null?(p.return=h,K=p):vg(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=qv("display",o))}catch(y){Ce(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){Ce(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;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Zt(t,e),hn(e),r&4&&mg(e);break;case 21:break;default:Zt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yy(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ao(s,""),r.flags&=-33);var i=pg(e);of(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=pg(e);sf(e,a,o);break;default:throw Error(U(161))}}catch(l){Ce(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cC(e,t,n){K=e,by(e)}function by(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var s=K,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||ka;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ke;a=ka;var u=Ke;if(ka=o,(Ke=l)&&!u)for(K=s;K!==null;)o=K,l=o.child,o.tag===22&&o.memoizedState!==null?yg(s):l!==null?(l.return=o,K=l):yg(s);for(;i!==null;)K=i,by(i),i=i.sibling;K=s,ka=a,Ke=u}gg(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,K=i):gg(e)}}function gg(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ke||wu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ke)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Zm(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Zm(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;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 d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&fo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Ke||t.flags&512&&rf(t)}catch(h){Ce(t,t.return,h)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function vg(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function yg(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wu(4,t)}catch(l){Ce(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Ce(t,s,l)}}var i=t.return;try{rf(t)}catch(l){Ce(t,i,l)}break;case 5:var o=t.return;try{rf(t)}catch(l){Ce(t,o,l)}}}catch(l){Ce(t,t.return,l)}if(t===e){K=null;break}var a=t.sibling;if(a!==null){a.return=t.return,K=a;break}K=t.return}}var dC=Math.ceil,Ll=Qn.ReactCurrentDispatcher,wh=Qn.ReactCurrentOwner,Ht=Qn.ReactCurrentBatchConfig,oe=0,Le=null,Ae=null,Ve=0,St=0,Rs=Or(0),Ie=0,Co=null,Jr=0,bu=0,bh=0,Qi=null,ht=null,Sh=0,Ks=1/0,An=null,Fl=!1,af=null,mr=null,ja=!1,ir=null,$l=0,Wi=0,lf=null,Ka=-1,Ga=0;function rt(){return oe&6?Ne():Ka!==-1?Ka:Ka=Ne()}function gr(e){return e.mode&1?oe&2&&Ve!==0?Ve&-Ve:K3.transition!==null?(Ga===0&&(Ga=s0()),Ga):(e=ce,e!==0||(e=window.event,e=e===void 0?16:d0(e.type)),e):1}function un(e,t,n,r){if(50<Wi)throw Wi=0,lf=null,Error(U(185));Vo(e,n,r),(!(oe&2)||e!==Le)&&(e===Le&&(!(oe&2)&&(bu|=n),Ie===4&&nr(e,Ve)),vt(e,r),n===1&&oe===0&&!(t.mode&1)&&(Ks=Ne()+500,vu&&Nr()))}function vt(e,t){var n=e.callbackNode;K4(e,t);var r=Sl(e,e===Le?Ve:0);if(r===0)n!==null&&Rm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Rm(n),t===1)e.tag===0?W3(xg.bind(null,e)):P0(xg.bind(null,e)),U3(function(){!(oe&6)&&Nr()}),n=null;else{switch(i0(r)){case 1:n=Kf;break;case 4:n=n0;break;case 16:n=bl;break;case 536870912:n=r0;break;default:n=bl}n=Ny(n,Sy.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sy(e,t){if(Ka=-1,Ga=0,oe&6)throw Error(U(327));var n=e.callbackNode;if(Ms()&&e.callbackNode!==n)return null;var r=Sl(e,e===Le?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bl(e,r);else{t=r;var s=oe;oe|=2;var i=Ey();(Le!==e||Ve!==t)&&(An=null,Ks=Ne()+500,qr(e,t));do try{pC();break}catch(a){Cy(e,a)}while(1);ah(),Ll.current=i,oe=s,Ae!==null?t=0:(Le=null,Ve=0,t=Ie)}if(t!==0){if(t===2&&(s=Id(e),s!==0&&(r=s,t=uf(e,s))),t===1)throw n=Co,qr(e,0),nr(e,r),vt(e,Ne()),n;if(t===6)nr(e,r);else{if(s=e.current.alternate,!(r&30)&&!fC(s)&&(t=Bl(e,r),t===2&&(i=Id(e),i!==0&&(r=i,t=uf(e,i))),t===1))throw n=Co,qr(e,0),nr(e,r),vt(e,Ne()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:Lr(e,ht,An);break;case 3:if(nr(e,r),(r&130023424)===r&&(t=Sh+500-Ne(),10<t)){if(Sl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Vd(Lr.bind(null,e,ht,An),t);break}Lr(e,ht,An);break;case 4:if(nr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-ln(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dC(r/1960))-r,10<r){e.timeoutHandle=Vd(Lr.bind(null,e,ht,An),r);break}Lr(e,ht,An);break;case 5:Lr(e,ht,An);break;default:throw Error(U(329))}}}return vt(e,Ne()),e.callbackNode===n?Sy.bind(null,e):null}function uf(e,t){var n=Qi;return e.current.memoizedState.isDehydrated&&(qr(e,t).flags|=256),e=Bl(e,t),e!==2&&(t=ht,ht=n,t!==null&&cf(t)),e}function cf(e){ht===null?ht=e:ht.push.apply(ht,e)}function fC(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!cn(i(),s))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 nr(e,t){for(t&=~bh,t&=~bu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ln(t),r=1<<n;e[n]=-1,t&=~r}}function xg(e){if(oe&6)throw Error(U(327));Ms();var t=Sl(e,0);if(!(t&1))return vt(e,Ne()),null;var n=Bl(e,t);if(e.tag!==0&&n===2){var r=Id(e);r!==0&&(t=r,n=uf(e,r))}if(n===1)throw n=Co,qr(e,0),nr(e,t),vt(e,Ne()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Lr(e,ht,An),vt(e,Ne()),null}function Ch(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Ks=Ne()+500,vu&&Nr())}}function Zr(e){ir!==null&&ir.tag===0&&!(oe&6)&&Ms();var t=oe;oe|=1;var n=Ht.transition,r=ce;try{if(Ht.transition=null,ce=1,e)return e()}finally{ce=r,Ht.transition=n,oe=t,!(oe&6)&&Nr()}}function Eh(){St=Rs.current,ge(Rs)}function qr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V3(n)),Ae!==null)for(n=Ae.return;n!==null;){var r=n;switch(sh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rl();break;case 3:Qs(),ge(mt),ge(Ge),hh();break;case 5:fh(r);break;case 4:Qs();break;case 13:ge(xe);break;case 19:ge(xe);break;case 10:lh(r.type._context);break;case 22:case 23:Eh()}n=n.return}if(Le=e,Ae=e=vr(e.current,null),Ve=St=t,Ie=0,Co=null,bh=bu=Jr=0,ht=Qi=null,zr!==null){for(t=0;t<zr.length;t++)if(n=zr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}zr=null}return e}function Cy(e,t){do{var n=Ae;try{if(ah(),qa.current=Ml,Dl){for(var r=be.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Dl=!1}if(Yr=0,Me=Te=be=null,Hi=!1,wo=0,wh.current=null,n===null||n.return===null){Ie=1,Co=t,Ae=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Ve,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=og(o);if(p!==null){p.flags&=-257,ag(p,o,a,i,t),p.mode&1&&ig(i,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){ig(i,u,t),kh();break e}l=Error(U(426))}}else if(ve&&a.mode&1){var w=og(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),ag(w,o,a,i,t),ih(Ws(l,a));break e}}i=l=Ws(l,a),Ie!==4&&(Ie=2),Qi===null?Qi=[i]:Qi.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=oy(i,l,t);Jm(i,g);break e;case 1:a=l;var v=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(mr===null||!mr.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=ay(i,a,t);Jm(i,S);break e}}i=i.return}while(i!==null)}jy(n)}catch(C){t=C,Ae===n&&n!==null&&(Ae=n=n.return);continue}break}while(1)}function Ey(){var e=Ll.current;return Ll.current=Ml,e===null?Ml:e}function kh(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Le===null||!(Jr&268435455)&&!(bu&268435455)||nr(Le,Ve)}function Bl(e,t){var n=oe;oe|=2;var r=Ey();(Le!==e||Ve!==t)&&(An=null,qr(e,t));do try{hC();break}catch(s){Cy(e,s)}while(1);if(ah(),oe=n,Ll.current=r,Ae!==null)throw Error(U(261));return Le=null,Ve=0,Ie}function hC(){for(;Ae!==null;)ky(Ae)}function pC(){for(;Ae!==null&&!$4();)ky(Ae)}function ky(e){var t=Oy(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?jy(e):Ae=t,wh.current=null}function jy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aC(n,t),n!==null){n.flags&=32767,Ae=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Ae=null;return}}else if(n=oC(n,t,St),n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Ie===0&&(Ie=5)}function Lr(e,t,n){var r=ce,s=Ht.transition;try{Ht.transition=null,ce=1,mC(e,t,n,r)}finally{Ht.transition=s,ce=r}return null}function mC(e,t,n,r){do Ms();while(ir!==null);if(oe&6)throw Error(U(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(G4(e,i),e===Le&&(Ae=Le=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ja||(ja=!0,Ny(bl,function(){return Ms(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ht.transition,Ht.transition=null;var o=ce;ce=1;var a=oe;oe|=4,wh.current=null,uC(e,n),wy(n,e),D3(Bd),Cl=!!$d,Bd=$d=null,e.current=n,cC(n),B4(),oe=a,ce=o,Ht.transition=i}else e.current=n;if(ja&&(ja=!1,ir=e,$l=s),i=e.pendingLanes,i===0&&(mr=null),U4(n.stateNode),vt(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Fl)throw Fl=!1,e=af,af=null,e;return $l&1&&e.tag!==0&&Ms(),i=e.pendingLanes,i&1?e===lf?Wi++:(Wi=0,lf=e):Wi=0,Nr(),null}function Ms(){if(ir!==null){var e=i0($l),t=Ht.transition,n=ce;try{if(Ht.transition=null,ce=16>e?16:e,ir===null)var r=!1;else{if(e=ir,ir=null,$l=0,oe&6)throw Error(U(331));var s=oe;for(oe|=4,K=e.current;K!==null;){var i=K,o=i.child;if(K.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(K=u;K!==null;){var d=K;switch(d.tag){case 0:case 11:case 15:qi(8,d,i)}var f=d.child;if(f!==null)f.return=d,K=f;else for(;K!==null;){d=K;var h=d.sibling,p=d.return;if(vy(d),d===u){K=null;break}if(h!==null){h.return=p,K=h;break}K=p}}}var m=i.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}K=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,K=o;else e:for(;K!==null;){if(i=K,i.flags&2048)switch(i.tag){case 0:case 11:case 15:qi(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,K=g;break e}K=i.return}}var v=e.current;for(K=v;K!==null;){o=K;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,K=x;else e:for(o=v;K!==null;){if(a=K,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:wu(9,a)}}catch(C){Ce(a,a.return,C)}if(a===o){K=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,K=S;break e}K=a.return}}if(oe=s,Nr(),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(fu,e)}catch{}r=!0}return r}finally{ce=n,Ht.transition=t}}return!1}function wg(e,t,n){t=Ws(n,t),t=oy(e,t,1),e=pr(e,t,1),t=rt(),e!==null&&(Vo(e,1,t),vt(e,t))}function Ce(e,t,n){if(e.tag===3)wg(e,e,n);else for(;t!==null;){if(t.tag===3){wg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mr===null||!mr.has(r))){e=Ws(n,e),e=ay(t,e,1),t=pr(t,e,1),e=rt(),t!==null&&(Vo(t,1,e),vt(t,e));break}}t=t.return}}function gC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ve&n)===n&&(Ie===4||Ie===3&&(Ve&130023424)===Ve&&500>Ne()-Sh?qr(e,0):bh|=n),vt(e,t)}function Ry(e,t){t===0&&(e.mode&1?(t=ga,ga<<=1,!(ga&130023424)&&(ga=4194304)):t=1);var n=rt();e=zn(e,t),e!==null&&(Vo(e,t,n),vt(e,n))}function vC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function yC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Ry(e,n)}var Oy;Oy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,iC(e,t,n);pt=!!(e.flags&131072)}else pt=!1,ve&&t.flags&1048576&&A0(t,Pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wa(e,t),e=t.pendingProps;var s=Us(t,Ge.current);Ds(t,n),s=mh(null,t,r,e,s,n);var i=gh();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,Ol(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ch(t),s.updater=yu,t.stateNode=s,s._reactInternals=t,Gd(t,r,e,n),t=Jd(null,t,r,!0,i,n)):(t.tag=0,ve&&i&&rh(t),Je(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=wC(r),e=en(r,e),s){case 0:t=Yd(null,t,r,e,n);break e;case 1:t=cg(null,t,r,e,n);break e;case 11:t=lg(null,t,r,e,n);break e;case 14:t=ug(null,t,r,en(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Yd(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),cg(e,t,r,s,n);case 3:e:{if(dy(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,s=i.element,D0(e,t),Tl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ws(Error(U(423)),t),t=dg(e,t,r,n,s);break e}else if(r!==s){s=Ws(Error(U(424)),t),t=dg(e,t,r,n,s);break e}else for(Et=hr(t.stateNode.containerInfo.firstChild),Rt=t,ve=!0,rn=null,n=$0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hs(),r===s){t=Vn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return B0(t),e===null&&Qd(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,zd(r,s)?o=null:i!==null&&zd(r,i)&&(t.flags|=32),cy(e,t),Je(e,t,o,n),t.child;case 6:return e===null&&Qd(t),null;case 13:return fy(e,t,n);case 4:return dh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qs(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),lg(e,t,r,s,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,pe(Al,r._currentValue),r._currentValue=o,i!==null)if(cn(i.value,o)){if(i.children===s.children&&!mt.current){t=Vn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Fn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Wd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(U(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Wd(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Je(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ds(t,n),s=Wt(s),r=r(s),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,s=en(r,t.pendingProps),s=en(r.type,s),ug(e,t,r,s,n);case 15:return ly(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:en(r,s),Wa(e,t),t.tag=1,gt(r)?(e=!0,Ol(t)):e=!1,Ds(t,n),L0(t,r,s),Gd(t,r,s,n),Jd(null,t,r,!0,e,n);case 19:return hy(e,t,n);case 22:return uy(e,t,n)}throw Error(U(156,t.tag))};function Ny(e,t){return t0(e,t)}function xC(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 Ut(e,t,n,r){return new xC(e,t,n,r)}function jh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wC(e){if(typeof e=="function")return jh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qf)return 11;if(e===Qf)return 14}return 2}function vr(e,t){var n=e.alternate;return n===null?(n=Ut(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 Xa(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")jh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vs:return Qr(n.children,s,i,t);case Hf:o=8,s|=8;break;case xd:return e=Ut(12,n,t,s|2),e.elementType=xd,e.lanes=i,e;case wd:return e=Ut(13,n,t,s),e.elementType=wd,e.lanes=i,e;case bd:return e=Ut(19,n,t,s),e.elementType=bd,e.lanes=i,e;case Fv:return Su(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mv:o=10;break e;case Lv:o=9;break e;case qf:o=11;break e;case Qf:o=14;break e;case Zn:o=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Ut(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Qr(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function Su(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=Fv,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Fc(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bC(e,t,n,r,s){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=yc(0),this.expirationTimes=yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Rh(e,t,n,r,s,i,o,a,l){return e=new bC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ch(i),e}function SC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Py(e){if(!e)return br;e=e._reactInternals;e:{if(is(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(gt(n))return N0(e,n,t)}return t}function Ay(e,t,n,r,s,i,o,a,l){return e=Rh(n,r,!0,e,s,i,o,a,l),e.context=Py(null),n=e.current,r=rt(),s=gr(n),i=Fn(r,s),i.callback=t??null,pr(n,i,s),e.current.lanes=s,Vo(e,s,r),vt(e,r),e}function Cu(e,t,n,r){var s=t.current,i=rt(),o=gr(s);return n=Py(n),t.context===null?t.context=n:t.pendingContext=n,t=Fn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pr(s,t,o),e!==null&&(un(e,s,o,i),Ha(e,s,o)),o}function zl(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 bg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oh(e,t){bg(e,t),(e=e.alternate)&&bg(e,t)}function CC(){return null}var _y=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nh(e){this._internalRoot=e}Eu.prototype.render=Nh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));Cu(e,t,null,null)};Eu.prototype.unmount=Nh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zr(function(){Cu(null,e,null,null)}),t[Bn]=null}};function Eu(e){this._internalRoot=e}Eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=l0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tr.length&&t!==0&&t<tr[n].priority;n++);tr.splice(n,0,e),n===0&&c0(e)}};function Ph(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sg(){}function EC(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=zl(o);i.call(u)}}var o=Ay(t,r,e,0,null,!1,!1,"",Sg);return e._reactRootContainer=o,e[Bn]=o.current,mo(e.nodeType===8?e.parentNode:e),Zr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=zl(l);a.call(u)}}var l=Rh(e,0,!1,null,null,!1,!1,"",Sg);return e._reactRootContainer=l,e[Bn]=l.current,mo(e.nodeType===8?e.parentNode:e),Zr(function(){Cu(t,l,n,r)}),l}function ju(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=zl(o);a.call(l)}}Cu(t,o,e,s)}else o=EC(n,t,e,s,r);return zl(o)}o0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ii(t.pendingLanes);n!==0&&(Gf(t,n|1),vt(t,Ne()),!(oe&6)&&(Ks=Ne()+500,Nr()))}break;case 13:Zr(function(){var r=zn(e,1);if(r!==null){var s=rt();un(r,e,1,s)}}),Oh(e,1)}};Xf=function(e){if(e.tag===13){var t=zn(e,134217728);if(t!==null){var n=rt();un(t,e,134217728,n)}Oh(e,134217728)}};a0=function(e){if(e.tag===13){var t=gr(e),n=zn(e,t);if(n!==null){var r=rt();un(n,e,t,r)}Oh(e,t)}};l0=function(){return ce};u0=function(e,t){var n=ce;try{return ce=e,t()}finally{ce=n}};Ad=function(e,t,n){switch(t){case"input":if(Ed(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 s=gu(r);if(!s)throw Error(U(90));Bv(r),Ed(r,s)}}}break;case"textarea":Vv(e,n);break;case"select":t=n.value,t!=null&&As(e,!!n.multiple,t,!1)}};Gv=Ch;Xv=Zr;var kC={usingClientEntryPoint:!1,Events:[Ho,bs,gu,Wv,Kv,Ch]},Ci={findFiberByHostInstance:Br,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},jC={bundleType:Ci.bundleType,version:Ci.version,rendererPackageName:Ci.rendererPackageName,rendererConfig:Ci.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zv(e),e===null?null:e.stateNode},findFiberByHostInstance:Ci.findFiberByHostInstance||CC,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 Ra=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ra.isDisabled&&Ra.supportsFiber)try{fu=Ra.inject(jC),bn=Ra}catch{}}At.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kC;At.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ph(t))throw Error(U(200));return SC(e,t,null,n)};At.createRoot=function(e,t){if(!Ph(e))throw Error(U(299));var n=!1,r="",s=_y;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Rh(e,1,!1,null,null,n,!1,r,s),e[Bn]=t.current,mo(e.nodeType===8?e.parentNode:e),new Nh(t)};At.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Zv(t),e=e===null?null:e.stateNode,e};At.flushSync=function(e){return Zr(e)};At.hydrate=function(e,t,n){if(!ku(t))throw Error(U(200));return ju(null,e,t,!0,n)};At.hydrateRoot=function(e,t,n){if(!Ph(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=_y;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Ay(t,null,e,1,n??null,s,!1,i,o),e[Bn]=t.current,mo(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Eu(t)};At.render=function(e,t,n){if(!ku(t))throw Error(U(200));return ju(null,e,t,!1,n)};At.unmountComponentAtNode=function(e){if(!ku(e))throw Error(U(40));return e._reactRootContainer?(Zr(function(){ju(null,null,e,!1,function(){e._reactRootContainer=null,e[Bn]=null})}),!0):!1};At.unstable_batchedUpdates=Ch;At.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ku(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return ju(e,t,n,!1,r)};At.version="18.2.0-next-9e3b772b8-20220608";function Ty(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ty)}catch(e){console.error(e)}}Ty(),Av.exports=At;var Wn=Av.exports,Iy={exports:{}},Dy={};/**
42
42
  * @license React
43
43
  * use-sync-external-store-shim.production.min.js
44
44
  *
@@ -46,7 +46,7 @@ Error generating stack: `+i.message+`
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Qr=x;function yS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:yS,xS=Qr.useState,SS=Qr.useEffect,bS=Qr.useLayoutEffect,CS=Qr.useDebugValue;function ES(e,t){var n=t(),r=xS({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return bS(function(){s.value=n,s.getSnapshot=t,Wl(s)&&i({inst:s})},[e,n,t]),SS(function(){return Wl(s)&&i({inst:s}),e(function(){Wl(s)&&i({inst:s})})},[e]),CS(n),n}function Wl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wS(e,n)}catch{return!0}}function RS(e,t){return t()}var kS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RS:ES;Bg.useSyncExternalStore=Qr.useSyncExternalStore!==void 0?Qr.useSyncExternalStore:kS;Ug.exports=Bg;var Vg=Ug.exports;const Hg=Vg.useSyncExternalStore,Yh=x.createContext(void 0),qg=x.createContext(!1);function Qg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Yh),window.ReactQueryClientContext):Yh)}const it=({context:e}={})=>{const t=x.useContext(Qg(e,x.useContext(qg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PS=({client:e,children:t,context:n,contextSharing:r=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=Qg(n,r);return x.createElement(qg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},Wg=x.createContext(!1),OS=()=>x.useContext(Wg);Wg.Provider;function NS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const jS=x.createContext(NS()),TS=()=>x.useContext(jS);function Kg(e,t){return typeof e=="function"?e(...t):!!e}const _S=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},IS=e=>{x.useEffect(()=>{e.clearReset()},[e])},AS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Kg(n,[e.error,r]),LS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},MS=(e,t)=>e.isLoading&&e.isFetching&&!t,DS=(e,t,n)=>(e==null?void 0:e.suspense)&&MS(t,n),FS=(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 Gg(e,t){const n=it({context:e.context}),r=OS(),s=TS(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ae.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ae.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ae.batchCalls(i.onSettled)),LS(i),_S(i,s),IS(s);const[o]=x.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Hg(x.useCallback(l=>{const u=r?()=>{}:o.subscribe(ae.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),x.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),DS(i,a,r))throw FS(i,o,s);if(AS({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function Id(e,t,n){const r=gr(e,t,n);return Gg(r,Dm)}function an(e,t,n){const r=Z2(e,t,n),s=it({context:r.context}),[i]=x.useState(()=>new pw(s,r));x.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Hg(x.useCallback(l=>i.subscribe(ae.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=x.useCallback((l,u)=>{i.mutate(l,u).catch($S)},[i]);if(o.error&&Kg(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function $S(){}function zS(e,t,n){const r=gr(e,t,n);return Gg(r,hw)}function US(){return Id({queryKey:["session"],queryFn:async()=>await Y.session().getSession(),suspense:!0})}function Xg({appCode:e}){return Id({queryKey:["conf"],queryFn:async()=>await Y.conf().getConf(e),suspense:!0})}const Yg=x.createContext(null);function BS({children:e,params:t}){const n=t.app,{t:r}=pe(),s=r(n),i=US(),o=Xg({appCode:n}),a=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);x.useEffect(()=>{var u,c;(c=document.querySelector("html"))==null||c.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),x.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const l=x.useMemo(()=>{var u,c,d,h,p,m;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(c=o==null?void 0:o.data)==null?void 0:c.currentApp,currentLanguage:(d=i==null?void 0:i.data)==null?void 0:d.currentLanguage,init:a,sessionQuery:i,user:(h=i==null?void 0:i.data)==null?void 0:h.user,userDescription:(p=i==null?void 0:i.data)==null?void 0:p.userDescription,userProfile:(m=i==null?void 0:i.data)==null?void 0:m.userProfile}},[n,o,a,i]);return f.jsx(Yg.Provider,{value:l,children:e})}function yt(){const e=x.useContext(Yg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function VS(){var r;const{sessionQuery:e}=yt(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(s=>{const i=t.has(s.displayName);return t.add(s.displayName),!i})}function Ls(e){const[t,n]=x.useState();return x.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await Y.rights().sessionHasWorkflowRight(e):await Y.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function HS(){const e=typeof document<"u",[t,n]=x.useState(()=>document.title);return x.useEffect(()=>{e&&n(document.title)},[e]),t}function Zg(){const[e,t]=x.useState(!1),n=x.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return x.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function qS({user:e,avatar:t}){const{t:n}=pe(),r=HS(),[s,i]=x.useState(!0),[o,a]=Zg(),l=x.useId(),u=x.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.firstName}),p=VS(),m=Ls("net.atos.entng.community.controllers.CommunityController|view"),y=Ls("org.entcore.conversation.controllers.ConversationController|view"),S=Ls("fr.openent.searchengine.controllers.SearchEngineController|view"),g=x.useCallback(()=>{i(!s)},[s]),v=async()=>{await Y.session().logout(),window.location.href="/auth/login"};return x.useMemo(()=>({title:r,bookmarkedApps:p,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:m,conversationWorflow:y,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:g,handleLogout:v}),[o,p,m,y,a,s,l,u,S,r,g,c,d,h])}function Jg(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(a){let l="";switch(l=(a==null?void 0:a.icon)!==void 0?a==null?void 0:a.icon.trim().toLowerCase():"placeholder",l&&l.length>0?l.endsWith("-large")&&(l=l.replace("-large","")):l=(a==null?void 0:a.displayName)!==void 0?a==null?void 0:a.displayName.trim().toLowerCase():"",l){case"admin.title":l="admin";break;case"banques des savoirs":l="banquesavoir";break;case"collaborativewall":l="collaborative-wall";break;case"communautés":l="community";break;case"directory.user":l="userbook";break;case"emploi du temps":l="edt";break;case"messagerie":l="conversation";break;case"news":l="actualites";break;case"homeworks":case"cahier de texte":l="cahier-de-texte";break;case"diary":case"cahier de texte 2d":l="cahier-textes";break}return l}function n(a){return a&&(a.startsWith("/")||a.startsWith("http://")||a.startsWith("https://"))}function r(a){const l=t(a);return l?`color-app-${l}`:"color-app-placeholder"}function s(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function i(a){const l=t(a);return l?`bg-light-${l}`:"bg-light-placeholder"}function o(a){return e[a.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Qa(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const e0=x.createContext(null);function QS({children:e}){var s;const{appCode:t}=yt(),n=Xg({appCode:t});x.useEffect(()=>{var u,c,d,h,p,m,y,S,g;const i=document.getElementById("favicon");i.href=`${(c=(u=n==null?void 0:n.data)==null?void 0:u.theme)==null?void 0:c.basePath}/img/illustrations/favicon.ico`;const o=(p=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:p.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(y=(m=n==null?void 0:n.data)==null?void 0:m.theme)==null?void 0:y.skinName},{data:"data-theme",value:(g=(S=n==null?void 0:n.data)==null?void 0:S.theme)==null?void 0:g.themeName},{data:"data-product",value:a}].forEach(v=>{var w;return(w=document.querySelector("html"))==null?void 0:w.setAttribute(v.data,v.value)})},[n==null?void 0:n.data]);const r=x.useMemo(()=>{var i;return{theme:(i=n==null?void 0:n.data)==null?void 0:i.theme}},[(s=n==null?void 0:n.data)==null?void 0:s.theme]);return f.jsx(e0.Provider,{value:r,children:e})}function Ad(){const e=x.useContext(e0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Ld(){const{user:e,userDescription:t,userProfile:n}=yt(),{theme:r}=Ad();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function WS(){const[e,t]=x.useState("pending"),{currentApp:n}=yt();x.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await Y.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const Zh=["mousedown","touchstart"];function t0(e,t,n){const r=x.useRef();return x.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||Zh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Zh).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}let KS={data:""},GS=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||KS,XS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,YS=/\/\*[^]*?\*\/| +/g,Jh=/\n+/g,vn=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?vn(o,i):i+"{"+vn(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=vn(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=vn.p?vn.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Qt={},n0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+n0(e[n]);return t}return e},ZS=(e,t,n,r,s)=>{let i=n0(e),o=Qt[i]||(Qt[i]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Qt[o]){let l=i!==e?e:(u=>{let c,d,h=[{}];for(;c=XS.exec(u.replace(YS,""));)c[4]?h.shift():c[3]?(d=c[3].replace(Jh," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(Jh," ").trim();return h[0]})(e);Qt[o]=vn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Qt.g?Qt.g:null;return n&&(Qt.g=Qt[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Qt[o],t,r,a),o},JS=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":vn(a,""):a===!1?"":a}return r+s+(o??"")},"");function Wa(e){let t=this||{},n=e.call?e(t.p):e;return ZS(n.unshift?n.raw?JS(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,GS(t.target),t.g,t.o,t.k)}let r0,hc,pc;Wa.bind({g:1});let sn=Wa.bind({k:1});function e4(e,t,n,r){vn.p=t,r0=e,hc=n,pc=r}function $n(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let a=Object.assign({},i),l=a.className||s.className;n.p=Object.assign({theme:hc&&hc()},a),n.o=/ *go\d+/.test(l),a.className=Wa.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),pc&&u[0]&&pc(a),r0(u,a)}return t?t(s):s}}var t4=e=>typeof e=="function",pa=(e,t)=>t4(e)?e(t):e,n4=(()=>{let e=0;return()=>(++e).toString()})(),s0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),r4=20,Po=new Map,s4=1e3,ep=e=>{if(Po.has(e))return;let t=setTimeout(()=>{Po.delete(e),ur({type:4,toastId:e})},s4);Po.set(e,t)},i4=e=>{let t=Po.get(e);t&&clearTimeout(t)},mc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r4)};case 1:return t.toast.id&&i4(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?mc(e,{type:1,toast:n}):mc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ep(r):e.toasts.forEach(i=>{ep(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},Oo=[],No={toasts:[],pausedAt:void 0},ur=e=>{No=mc(No,e),Oo.forEach(t=>{t(No)})},o4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},a4=(e={})=>{let[t,n]=x.useState(No);x.useEffect(()=>(Oo.push(n),()=>{let s=Oo.indexOf(n);s>-1&&Oo.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||o4[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},l4=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||n4()}),Oi=e=>(t,n)=>{let r=l4(t,e,n);return ur({type:2,toast:r}),r.id},Ze=(e,t)=>Oi("blank")(e,t);Ze.error=Oi("error");Ze.success=Oi("success");Ze.loading=Oi("loading");Ze.custom=Oi("custom");Ze.dismiss=e=>{ur({type:3,toastId:e})};Ze.remove=e=>ur({type:4,toastId:e});Ze.promise=(e,t,n)=>{let r=Ze.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Ze.success(pa(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ze.error(pa(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var u4=(e,t)=>{ur({type:1,toast:{id:e,height:t}})},c4=()=>{ur({type:5,time:Date.now()})},d4=e=>{let{toasts:t,pausedAt:n}=a4(e);x.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&Ze.dismiss(a.id);return}return setTimeout(()=>Ze.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&ur({type:6,time:Date.now()})},[n]),s=x.useCallback((i,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(p=>(p.position||u)===(i.position||u)&&p.height),d=c.findIndex(p=>p.id===i.id),h=c.filter((p,m)=>m<d&&p.visible).length;return c.filter(p=>p.visible).slice(...a?[h+1]:[0,h]).reduce((p,m)=>p+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:u4,startPause:c4,endPause:r,calculateOffset:s}}},f4=sn`
49
+ */var Gs=b;function RC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OC=typeof Object.is=="function"?Object.is:RC,NC=Gs.useState,PC=Gs.useEffect,AC=Gs.useLayoutEffect,_C=Gs.useDebugValue;function TC(e,t){var n=t(),r=NC({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return AC(function(){s.value=n,s.getSnapshot=t,$c(s)&&i({inst:s})},[e,n,t]),PC(function(){return $c(s)&&i({inst:s}),e(function(){$c(s)&&i({inst:s})})},[e]),_C(n),n}function $c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OC(e,n)}catch{return!0}}function IC(e,t){return t()}var DC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IC:TC;Dy.useSyncExternalStore=Gs.useSyncExternalStore!==void 0?Gs.useSyncExternalStore:DC;Iy.exports=Dy;var My=Iy.exports;const Ly=My.useSyncExternalStore,Cg=b.createContext(void 0),Fy=b.createContext(!1);function $y(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Cg),window.ReactQueryClientContext):Cg)}const Tt=({context:e}={})=>{const t=b.useContext($y(e,b.useContext(Fy)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MC=({client:e,children:t,context:n,contextSharing:r=!1})=>{b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=$y(n,r);return b.createElement(Fy.Provider,{value:!n&&r},b.createElement(s.Provider,{value:e},t))},By=b.createContext(!1),LC=()=>b.useContext(By);By.Provider;function FC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $C=b.createContext(FC()),BC=()=>b.useContext($C);function zy(e,t){return typeof e=="function"?e(...t):!!e}const zC=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},VC=e=>{b.useEffect(()=>{e.clearReset()},[e])},UC=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&zy(n,[e.error,r]),HC=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qC=(e,t)=>e.isLoading&&e.isFetching&&!t,QC=(e,t,n)=>(e==null?void 0:e.suspense)&&qC(t,n),WC=(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 Vy(e,t){const n=Tt({context:e.context}),r=LC(),s=BC(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ke.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ke.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ke.batchCalls(i.onSettled)),HC(i),zC(i,s),VC(s);const[o]=b.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Ly(b.useCallback(l=>{const u=r?()=>{}:o.subscribe(ke.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),b.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),QC(i,a,r))throw WC(i,o,s);if(UC({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function Ah(e,t,n){const r=ms(e,t,n);return Vy(r,Pv)}function Kn(e,t,n){const r=a4(e,t,n),s=Tt({context:r.context}),[i]=b.useState(()=>new C4(s,r));b.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Ly(b.useCallback(l=>i.subscribe(ke.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=b.useCallback((l,u)=>{i.mutate(l,u).catch(KC)},[i]);if(o.error&&zy(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function KC(){}function GC(e,t,n){const r=ms(e,t,n);return Vy(r,S4)}var Qo=e=>e.type==="checkbox",Os=e=>e instanceof Date,Ze=e=>e==null;const Uy=e=>typeof e=="object";var De=e=>!Ze(e)&&!Array.isArray(e)&&Uy(e)&&!Os(e),Hy=e=>De(e)&&e.target?Qo(e.target)?e.target.checked:e.target.value:e,XC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,qy=(e,t)=>e.has(XC(t)),YC=e=>{const t=e.constructor&&e.constructor.prototype;return De(t)&&t.hasOwnProperty("isPrototypeOf")},_h=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function tn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(_h&&(e instanceof Blob||e instanceof FileList))&&(n||De(e)))if(t=n?[]:{},!n&&!YC(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=tn(e[r]));else return e;return t}var Wo=e=>Array.isArray(e)?e.filter(Boolean):[],Ee=e=>e===void 0,Q=(e,t,n)=>{if(!t||!De(e))return n;const r=Wo(t.split(/[,[\].]+?/)).reduce((s,i)=>Ze(s)?s:s[i],e);return Ee(r)||r===e?Ee(e[t])?n:e[t]:r},$t=e=>typeof e=="boolean";const Vl={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},on={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},JC=fe.createContext(null),Th=()=>fe.useContext(JC);var Qy=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==on.all&&(t._proxyFormState[o]=!r||on.all),n&&(n[o]=!0),e[o]}});return s},Mt=e=>De(e)&&!Object.keys(e).length,Wy=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Mt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||on.all))},Ya=e=>Array.isArray(e)?e:[e],Ky=(e,t,n)=>!e||!t||e===t||Ya(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Ih(e){const t=fe.useRef(e);t.current=e,fe.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function ZC(e){const t=Th(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=fe.useState(n._formState),l=fe.useRef(!0),u=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=fe.useRef(s);return d.current=s,Ih({disabled:r,next:f=>l.current&&Ky(d.current,f.name,i)&&Wy(f,u.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),fe.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Qy(o,n,u.current,!1)}var wn=e=>typeof e=="string",Gy=(e,t,n,r,s)=>wn(e)?(r&&t.watch.add(e),Q(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Q(n,i))):(r&&(t.watchAll=!0),n);function eE(e){const t=Th(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=fe.useRef(r);a.current=r,Ih({disabled:i,subject:n._subjects.values,next:d=>{Ky(a.current,d.name,o)&&u(tn(Gy(a.current,n._names,d.values||n._formValues,!1,s)))}});const[l,u]=fe.useState(n._getWatch(r,s));return fe.useEffect(()=>n._removeUnmounted()),l}var Dh=e=>/^\w*$/.test(e),Xy=e=>Wo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,n)=>{let r=-1;const s=Dh(t)?[t]:Xy(t),i=s.length,o=i-1;for(;++r<i;){const a=s[r];let l=n;if(r!==o){const u=e[a];l=De(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}e[a]=l,e=e[a]}return e};function tE(e){const t=Th(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=qy(s._names.array,n),a=eE({control:s,name:n,defaultValue:Q(s._formValues,n,Q(s._defaultValues,n,e.defaultValue)),exact:!0}),l=ZC({control:s,name:n}),u=fe.useRef(s.register(n,{...e.rules,value:a,...$t(e.disabled)?{disabled:e.disabled}:{}}));return fe.useEffect(()=>{const d=s._options.shouldUnregister||i,f=(h,p)=>{const m=Q(s._fields,h);m&&(m._f.mount=p)};if(f(n,!0),d){const h=tn(Q(s._options.defaultValues,n));he(s._defaultValues,n,h),Ee(Q(s._formValues,n))&&he(s._formValues,n,h)}return()=>{(o?d&&!s._state.action:d)?s.unregister(n):f(n,!1)}},[n,s,o,i]),fe.useEffect(()=>{Q(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:Q(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:a,...$t(r)||$t(l.disabled)?{disabled:l.disabled||r}:{},onChange:fe.useCallback(d=>u.current.onChange({target:{value:Hy(d),name:n},type:Vl.CHANGE}),[n]),onBlur:fe.useCallback(()=>u.current.onBlur({target:{value:Q(s._formValues,n),name:n},type:Vl.BLUR}),[n,s]),ref:d=>{const f=Q(s._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:h=>d.setCustomValidity(h),reportValidity:()=>d.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Q(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Q(l.touchedFields,n)},error:{enumerable:!0,get:()=>Q(l.errors,n)}})}}const Ru=e=>e.render(tE(e));var nE=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Eg=e=>({isOnSubmit:!e||e===on.onSubmit,isOnBlur:e===on.onBlur,isOnChange:e===on.onChange,isOnAll:e===on.all,isOnTouch:e===on.onTouched}),kg=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ki=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=Q(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)break;if(o.ref&&t(o.ref,o.name)&&!r)break;Ki(a,t)}else De(a)&&Ki(a,t)}}};var rE=(e,t,n)=>{const r=Wo(Q(e,n));return he(r,"root",t[n]),he(e,n,r),e},Mh=e=>e.type==="file",or=e=>typeof e=="function",Ul=e=>{if(!_h)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ja=e=>wn(e),Lh=e=>e.type==="radio",Hl=e=>e instanceof RegExp;const jg={value:!1,isValid:!1},Rg={value:!0,isValid:!0};var Yy=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ee(e[0].attributes.value)?Ee(e[0].value)||e[0].value===""?Rg:{value:e[0].value,isValid:!0}:Rg:jg}return jg};const Og={isValid:!1,value:null};var Jy=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Og):Og;function Ng(e,t,n="validate"){if(Ja(e)||Array.isArray(e)&&e.every(Ja)||$t(e)&&!e)return{type:n,message:Ja(e)?e:"",ref:t}}var hs=e=>De(e)&&!Hl(e)?e:{value:e,message:""},Pg=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:a,maxLength:l,minLength:u,min:d,max:f,pattern:h,validate:p,name:m,valueAsNumber:y,mount:w,disabled:g}=e._f,v=Q(t,m);if(!w||g)return{};const x=o?o[0]:i,S=T=>{r&&x.reportValidity&&(x.setCustomValidity($t(T)?"":T||""),x.reportValidity())},C={},j=Lh(i),k=Qo(i),O=j||k,A=(y||Mh(i))&&Ee(i.value)&&Ee(v)||Ul(i)&&i.value===""||v===""||Array.isArray(v)&&!v.length,_=nE.bind(null,m,n,C),F=(T,$,D,E=Nn.maxLength,N=Nn.minLength)=>{const L=T?$:D;C[m]={type:T?E:N,message:L,ref:i,..._(T?E:N,L)}};if(s?!Array.isArray(v)||!v.length:a&&(!O&&(A||Ze(v))||$t(v)&&!v||k&&!Yy(o).isValid||j&&!Jy(o).isValid)){const{value:T,message:$}=Ja(a)?{value:!!a,message:a}:hs(a);if(T&&(C[m]={type:Nn.required,message:$,ref:x,..._(Nn.required,$)},!n))return S($),C}if(!A&&(!Ze(d)||!Ze(f))){let T,$;const D=hs(f),E=hs(d);if(!Ze(v)&&!isNaN(v)){const N=i.valueAsNumber||v&&+v;Ze(D.value)||(T=N>D.value),Ze(E.value)||($=N<E.value)}else{const N=i.valueAsDate||new Date(v),L=z=>new Date(new Date().toDateString()+" "+z),P=i.type=="time",B=i.type=="week";wn(D.value)&&v&&(T=P?L(v)>L(D.value):B?v>D.value:N>new Date(D.value)),wn(E.value)&&v&&($=P?L(v)<L(E.value):B?v<E.value:N<new Date(E.value))}if((T||$)&&(F(!!T,D.message,E.message,Nn.max,Nn.min),!n))return S(C[m].message),C}if((l||u)&&!A&&(wn(v)||s&&Array.isArray(v))){const T=hs(l),$=hs(u),D=!Ze(T.value)&&v.length>+T.value,E=!Ze($.value)&&v.length<+$.value;if((D||E)&&(F(D,T.message,$.message),!n))return S(C[m].message),C}if(h&&!A&&wn(v)){const{value:T,message:$}=hs(h);if(Hl(T)&&!v.match(T)&&(C[m]={type:Nn.pattern,message:$,ref:i,..._(Nn.pattern,$)},!n))return S($),C}if(p){if(or(p)){const T=await p(v,t),$=Ng(T,x);if($&&(C[m]={...$,..._(Nn.validate,$.message)},!n))return S($.message),C}else if(De(p)){let T={};for(const $ in p){if(!Mt(T)&&!n)break;const D=Ng(await p[$](v,t),x,$);D&&(T={...D,..._($,D.message)},S(D.message),n&&(C[m]=T))}if(!Mt(T)&&(C[m]={ref:x,...T},!n))return C}}return S(!0),C};function sE(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ee(e)?r++:e[t[r++]];return e}function iE(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ee(e[t]))return!1;return!0}function Be(e,t){const n=Array.isArray(t)?t:Dh(t)?[t]:Xy(t),r=n.length===1?e:sE(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(De(r)&&Mt(r)||Array.isArray(r)&&iE(r))&&Be(e,n.slice(0,-1)),e}var Bc=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},ql=e=>Ze(e)||!Uy(e);function Ur(e,t){if(ql(e)||ql(t))return e===t;if(Os(e)&&Os(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Os(i)&&Os(o)||De(i)&&De(o)||Array.isArray(i)&&Array.isArray(o)?!Ur(i,o):i!==o)return!1}}return!0}var Zy=e=>e.type==="select-multiple",oE=e=>Lh(e)||Qo(e),zc=e=>Ul(e)&&e.isConnected,ex=e=>{for(const t in e)if(or(e[t]))return!0;return!1};function Ql(e,t={}){const n=Array.isArray(e);if(De(e)||n)for(const r in e)Array.isArray(e[r])||De(e[r])&&!ex(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ql(e[r],t[r])):Ze(e[r])||(t[r]=!0);return t}function tx(e,t,n){const r=Array.isArray(e);if(De(e)||r)for(const s in e)Array.isArray(e[s])||De(e[s])&&!ex(e[s])?Ee(t)||ql(n[s])?n[s]=Array.isArray(e[s])?Ql(e[s],[]):{...Ql(e[s])}:tx(e[s],Ze(t)?{}:t[s],n[s]):n[s]=!Ur(e[s],t[s]);return n}var Vc=(e,t)=>tx(e,t,Ql(t)),nx=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ee(e)?e:t?e===""?NaN:e&&+e:n&&wn(e)?new Date(e):r?r(e):e;function Uc(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Mh(t)?t.files:Lh(t)?Jy(e.refs).value:Zy(t)?[...t.selectedOptions].map(({value:n})=>n):Qo(t)?Yy(e.refs).value:nx(Ee(t.value)?e.ref.value:t.value,e)}var aE=(e,t,n,r)=>{const s={};for(const i of e){const o=Q(t,i);o&&he(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Ei=e=>Ee(e)?e:Hl(e)?e.source:De(e)?Hl(e.value)?e.value.source:e.value:e,lE=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ag(e,t,n){const r=Q(e,n);if(r||Dh(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=Q(t,i),a=Q(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var uE=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,cE=(e,t)=>!Wo(Q(e,t)).length&&Be(e,t);const dE={mode:on.onSubmit,reValidateMode:on.onChange,shouldFocusError:!0};function fE(e={},t){let n={...dE,...e},r={submitCount:0,isDirty:!1,isLoading:or(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},s={},i=De(n.defaultValues)||De(n.values)?tn(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:tn(i),a={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,d=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Bc(),array:Bc(),state:Bc()},p=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Eg(n.mode),y=Eg(n.reValidateMode),w=n.criteriaMode===on.all,g=R=>I=>{clearTimeout(d),d=setTimeout(R,I)},v=async R=>{if(f.isValid||R){const I=n.resolver?Mt((await _()).errors):await T(s,!0);I!==r.isValid&&h.state.next({isValid:I})}},x=R=>f.isValidating&&h.state.next({isValidating:R}),S=(R,I=[],M,W,q=!0,H=!0)=>{if(W&&M){if(a.action=!0,H&&Array.isArray(Q(s,R))){const X=M(Q(s,R),W.argA,W.argB);q&&he(s,R,X)}if(H&&Array.isArray(Q(r.errors,R))){const X=M(Q(r.errors,R),W.argA,W.argB);q&&he(r.errors,R,X),cE(r.errors,R)}if(f.touchedFields&&H&&Array.isArray(Q(r.touchedFields,R))){const X=M(Q(r.touchedFields,R),W.argA,W.argB);q&&he(r.touchedFields,R,X)}f.dirtyFields&&(r.dirtyFields=Vc(i,o)),h.state.next({name:R,isDirty:D(R,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else he(o,R,I)},C=(R,I)=>{he(r.errors,R,I),h.state.next({errors:r.errors})},j=R=>{r.errors=R,h.state.next({errors:r.errors,isValid:!1})},k=(R,I,M,W)=>{const q=Q(s,R);if(q){const H=Q(o,R,Ee(M)?Q(i,R):M);Ee(H)||W&&W.defaultChecked||I?he(o,R,I?H:Uc(q._f)):L(R,H),a.mount&&v()}},O=(R,I,M,W,q)=>{let H=!1,X=!1;const ue={name:R},Oe=!!(Q(s,R)&&Q(s,R)._f.disabled);if(!M||W){f.isDirty&&(X=r.isDirty,r.isDirty=ue.isDirty=D(),H=X!==ue.isDirty);const fn=Oe||Ur(Q(i,R),I);X=!!(!Oe&&Q(r.dirtyFields,R)),fn||Oe?Be(r.dirtyFields,R):he(r.dirtyFields,R,!0),ue.dirtyFields=r.dirtyFields,H=H||f.dirtyFields&&X!==!fn}if(M){const fn=Q(r.touchedFields,R);fn||(he(r.touchedFields,R,M),ue.touchedFields=r.touchedFields,H=H||f.touchedFields&&fn!==M)}return H&&q&&h.state.next(ue),H?ue:{}},A=(R,I,M,W)=>{const q=Q(r.errors,R),H=f.isValid&&$t(I)&&r.isValid!==I;if(e.delayError&&M?(u=g(()=>C(R,M)),u(e.delayError)):(clearTimeout(d),u=null,M?he(r.errors,R,M):Be(r.errors,R)),(M?!Ur(q,M):q)||!Mt(W)||H){const X={...W,...H&&$t(I)?{isValid:I}:{},errors:r.errors,name:R};r={...r,...X},h.state.next(X)}x(!1)},_=async R=>n.resolver(o,n.context,aE(R||l.mount,s,n.criteriaMode,n.shouldUseNativeValidation)),F=async R=>{const{errors:I}=await _(R);if(R)for(const M of R){const W=Q(I,M);W?he(r.errors,M,W):Be(r.errors,M)}else r.errors=I;return I},T=async(R,I,M={valid:!0})=>{for(const W in R){const q=R[W];if(q){const{_f:H,...X}=q;if(H){const ue=l.array.has(H.name),Oe=await Pg(q,o,w,n.shouldUseNativeValidation&&!I,ue);if(Oe[H.name]&&(M.valid=!1,I))break;!I&&(Q(Oe,H.name)?ue?rE(r.errors,Oe,H.name):he(r.errors,H.name,Oe[H.name]):Be(r.errors,H.name))}X&&await T(X,I,M)}}return M.valid},$=()=>{for(const R of l.unMount){const I=Q(s,R);I&&(I._f.refs?I._f.refs.every(M=>!zc(M)):!zc(I._f.ref))&&Re(R)}l.unMount=new Set},D=(R,I)=>(R&&I&&he(o,R,I),!Ur(le(),i)),E=(R,I,M)=>Gy(R,l,{...a.mount?o:Ee(I)?i:wn(R)?{[R]:I}:I},M,I),N=R=>Wo(Q(a.mount?o:i,R,e.shouldUnregister?Q(i,R,[]):[])),L=(R,I,M={})=>{const W=Q(s,R);let q=I;if(W){const H=W._f;H&&(!H.disabled&&he(o,R,nx(I,H)),q=Ul(H.ref)&&Ze(I)?"":I,Zy(H.ref)?[...H.ref.options].forEach(X=>X.selected=q.includes(X.value)):H.refs?Qo(H.ref)?H.refs.length>1?H.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(q)?!!q.find(ue=>ue===X.value):q===X.value)):H.refs[0]&&(H.refs[0].checked=!!q):H.refs.forEach(X=>X.checked=X.value===q):Mh(H.ref)?H.ref.value="":(H.ref.value=q,H.ref.type||h.values.next({name:R,values:{...o}})))}(M.shouldDirty||M.shouldTouch)&&O(R,q,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&J(R)},P=(R,I,M)=>{for(const W in I){const q=I[W],H=`${R}.${W}`,X=Q(s,H);(l.array.has(R)||!ql(q)||X&&!X._f)&&!Os(q)?P(H,q,M):L(H,q,M)}},B=(R,I,M={})=>{const W=Q(s,R),q=l.array.has(R),H=tn(I);he(o,R,H),q?(h.array.next({name:R,values:{...o}}),(f.isDirty||f.dirtyFields)&&M.shouldDirty&&h.state.next({name:R,dirtyFields:Vc(i,o),isDirty:D(R,H)})):W&&!W._f&&!Ze(H)?P(R,H,M):L(R,H,M),kg(R,l)&&h.state.next({...r}),h.values.next({name:R,values:{...o}}),!a.mount&&t()},z=async R=>{const I=R.target;let M=I.name,W=!0;const q=Q(s,M),H=()=>I.type?Uc(q._f):Hy(R),X=ue=>{W=Number.isNaN(ue)||ue===Q(o,M,ue)};if(q){let ue,Oe;const fn=H(),ls=R.type===Vl.BLUR||R.type===Vl.FOCUS_OUT,Lb=!lE(q._f)&&!n.resolver&&!Q(r.errors,M)&&!q._f.deps||uE(ls,Q(r.touchedFields,M),r.isSubmitted,y,m),cc=kg(M,l,ls);he(o,M,fn),ls?(q._f.onBlur&&q._f.onBlur(R),u&&u(0)):q._f.onChange&&q._f.onChange(R);const dc=O(M,fn,ls,!1),Fb=!Mt(dc)||cc;if(!ls&&h.values.next({name:M,type:R.type,values:{...o}}),Lb)return f.isValid&&v(),Fb&&h.state.next({name:M,...cc?{}:dc});if(!ls&&cc&&h.state.next({...r}),x(!0),n.resolver){const{errors:zp}=await _([M]);if(X(fn),W){const $b=Ag(r.errors,s,M),Vp=Ag(zp,s,$b.name||M);ue=Vp.error,M=Vp.name,Oe=Mt(zp)}}else ue=(await Pg(q,o,w,n.shouldUseNativeValidation))[M],X(fn),W&&(ue?Oe=!1:f.isValid&&(Oe=await T(s,!0)));W&&(q._f.deps&&J(q._f.deps),A(M,Oe,ue,dc))}},ee=(R,I)=>{if(Q(r.errors,I)&&R.focus)return R.focus(),1},J=async(R,I={})=>{let M,W;const q=Ya(R);if(x(!0),n.resolver){const H=await F(Ee(R)?R:q);M=Mt(H),W=R?!q.some(X=>Q(H,X)):M}else R?(W=(await Promise.all(q.map(async H=>{const X=Q(s,H);return await T(X&&X._f?{[H]:X}:X)}))).every(Boolean),!(!W&&!r.isValid)&&v()):W=M=await T(s);return h.state.next({...!wn(R)||f.isValid&&M!==r.isValid?{}:{name:R},...n.resolver||!R?{isValid:M}:{},errors:r.errors,isValidating:!1}),I.shouldFocus&&!W&&Ki(s,ee,R?q:l.mount),W},le=R=>{const I={...i,...a.mount?o:{}};return Ee(R)?I:wn(R)?Q(I,R):R.map(M=>Q(I,M))},te=(R,I)=>({invalid:!!Q((I||r).errors,R),isDirty:!!Q((I||r).dirtyFields,R),isTouched:!!Q((I||r).touchedFields,R),error:Q((I||r).errors,R)}),ae=R=>{R&&Ya(R).forEach(I=>Be(r.errors,I)),h.state.next({errors:R?r.errors:{}})},de=(R,I,M)=>{const W=(Q(s,R,{_f:{}})._f||{}).ref;he(r.errors,R,{...I,ref:W}),h.state.next({name:R,errors:r.errors,isValid:!1}),M&&M.shouldFocus&&W&&W.focus&&W.focus()},ye=(R,I)=>or(R)?h.values.subscribe({next:M=>R(E(void 0,I),M)}):E(R,I,!0),Re=(R,I={})=>{for(const M of R?Ya(R):l.mount)l.mount.delete(M),l.array.delete(M),I.keepValue||(Be(s,M),Be(o,M)),!I.keepError&&Be(r.errors,M),!I.keepDirty&&Be(r.dirtyFields,M),!I.keepTouched&&Be(r.touchedFields,M),!n.shouldUnregister&&!I.keepDefaultValue&&Be(i,M);h.values.next({values:{...o}}),h.state.next({...r,...I.keepDirty?{isDirty:D()}:{}}),!I.keepIsValid&&v()},ut=({disabled:R,name:I,field:M,fields:W,value:q})=>{if($t(R)){const H=R?void 0:Ee(q)?Uc(M?M._f:Q(W,I)._f):q;he(o,I,H),O(I,H,!1,!1,!0)}},On=(R,I={})=>{let M=Q(s,R);const W=$t(I.disabled);return he(s,R,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:R}},name:R,mount:!0,...I}}),l.mount.add(R),M?ut({field:M,disabled:I.disabled,name:R,value:I.value}):k(R,!0,I.value),{...W?{disabled:I.disabled}:{},...n.progressive?{required:!!I.required,min:Ei(I.min),max:Ei(I.max),minLength:Ei(I.minLength),maxLength:Ei(I.maxLength),pattern:Ei(I.pattern)}:{},name:R,onChange:z,onBlur:z,ref:q=>{if(q){On(R,I),M=Q(s,R);const H=Ee(q.value)&&q.querySelectorAll&&q.querySelectorAll("input,select,textarea")[0]||q,X=oE(H),ue=M._f.refs||[];if(X?ue.find(Oe=>Oe===H):H===M._f.ref)return;he(s,R,{_f:{...M._f,...X?{refs:[...ue.filter(zc),H,...Array.isArray(Q(i,R))?[{}]:[]],ref:{type:H.type,name:R}}:{ref:H}}}),k(R,!1,void 0,H)}else M=Q(s,R,{}),M._f&&(M._f.mount=!1),(n.shouldUnregister||I.shouldUnregister)&&!(qy(l.array,R)&&a.action)&&l.unMount.add(R)}}},as=()=>n.shouldFocusError&&Ki(s,ee,l.mount),ac=R=>{$t(R)&&(h.state.next({disabled:R}),Ki(s,(I,M)=>{let W=R;const q=Q(s,M);q&&$t(q._f.disabled)&&(W||(W=q._f.disabled)),I.disabled=W},0,!1))},hi=(R,I)=>async M=>{M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let W=tn(o);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:q,values:H}=await _();r.errors=q,W=H}else await T(s);Be(r.errors,"root"),Mt(r.errors)?(h.state.next({errors:{}}),await R(W,M)):(I&&await I({...r.errors},M),as(),setTimeout(as)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Mt(r.errors),submitCount:r.submitCount+1,errors:r.errors})},lc=(R,I={})=>{Q(s,R)&&(Ee(I.defaultValue)?B(R,Q(i,R)):(B(R,I.defaultValue),he(i,R,I.defaultValue)),I.keepTouched||Be(r.touchedFields,R),I.keepDirty||(Be(r.dirtyFields,R),r.isDirty=I.defaultValue?D(R,Q(i,R)):D()),I.keepError||(Be(r.errors,R),f.isValid&&v()),h.state.next({...r}))},la=(R,I={})=>{const M=R?tn(R):i,W=tn(M),q=R&&!Mt(R)?W:i;if(I.keepDefaultValues||(i=M),!I.keepValues){if(I.keepDirtyValues||p)for(const H of l.mount)Q(r.dirtyFields,H)?he(q,H,Q(o,H)):B(H,Q(q,H));else{if(_h&&Ee(R))for(const H of l.mount){const X=Q(s,H);if(X&&X._f){const ue=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(Ul(ue)){const Oe=ue.closest("form");if(Oe){Oe.reset();break}}}}s={}}o=e.shouldUnregister?I.keepDefaultValues?tn(i):{}:tn(q),h.array.next({values:{...q}}),h.values.next({values:{...q}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!f.isValid||!!I.keepIsValid,a.watch=!!e.shouldUnregister,h.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!Ur(R,i)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:I.keepDirtyValues?r.dirtyFields:I.keepDefaultValues&&R?Vc(i,R):{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},pi=(R,I)=>la(or(R)?R(o):R,I);return{control:{register:On,unregister:Re,getFieldState:te,handleSubmit:hi,setError:de,_executeSchema:_,_getWatch:E,_getDirty:D,_updateValid:v,_removeUnmounted:$,_updateFieldArray:S,_updateDisabledField:ut,_getFieldArray:N,_reset:la,_resetDefaultValues:()=>or(n.defaultValues)&&n.defaultValues().then(R=>{pi(R,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:R=>{r={...r,...R}},_disableForm:ac,_subjects:h,_proxyFormState:f,_setErrors:j,get _fields(){return s},get _formValues(){return o},get _state(){return a},set _state(R){a=R},get _defaultValues(){return i},get _names(){return l},set _names(R){l=R},get _formState(){return r},set _formState(R){r=R},get _options(){return n},set _options(R){n={...n,...R}}},trigger:J,register:On,handleSubmit:hi,watch:ye,setValue:B,getValues:le,reset:pi,resetField:lc,clearErrors:ae,unregister:Re,setError:de,setFocus:(R,I={})=>{const M=Q(s,R),W=M&&M._f;if(W){const q=W.refs?W.refs[0]:W.ref;q.focus&&(q.focus(),I.shouldSelect&&q.select())}},getFieldState:te}}function rx(e={}){const t=fe.useRef(),n=fe.useRef(),[r,s]=fe.useState({isDirty:!1,isValidating:!1,isLoading:or(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:or(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...fE(e,()=>s(o=>({...o}))),formState:r});const i=t.current.control;return i._options=e,Ih({subject:i._subjects.state,next:o=>{Wy(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),fe.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),fe.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),fe.useEffect(()=>{e.values&&!Ur(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),fe.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),fe.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Qy(r,i),t.current}function sx(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=sx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function G(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=sx(e))&&(r&&(r+=" "),r+=t);return r}const hE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),pE=hE,mE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0",clipRule:"evenodd"})]}),gE=mE,vE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414",clipRule:"evenodd"})]}),yE=vE,xE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12"})]}),Fh=xE,wE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",clipRule:"evenodd"})]}),bE=wE,SE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0",clipRule:"evenodd"})]}),ix=SE,CE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916M3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923z",clipRule:"evenodd"})]}),EE=CE,kE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),ox=kE,jE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465z",clipRule:"evenodd"})]}),RE=jE,OE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0",clipRule:"evenodd"})]}),NE=OE,PE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32",clipRule:"evenodd"})]}),AE=PE,_E=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z",clipRule:"evenodd"})]}),TE=_E,IE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374zM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2z",clipRule:"evenodd"})]}),DE=IE,ME=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),LE=ME,FE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),ax=FE,$E=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655",clipRule:"evenodd"})]}),BE=$E,zE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),c.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),c.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),VE=zE,UE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z",clipRule:"evenodd"})]}),HE=UE,qE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117",clipRule:"evenodd"})]}),Eo=qE,QE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141",clipRule:"evenodd"})]}),WE=QE,KE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141",clipRule:"evenodd"})]}),_g=KE,GE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117",clipRule:"evenodd"})]}),XE=GE,YE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),JE=YE,ZE=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0m7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1",clipRule:"evenodd"})]}),e5=ZE,t5=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219",clipRule:"evenodd"})]}),n5=t5,r5=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:c.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036M1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),c.jsx("defs",{children:c.jsx("clipPath",{id:"users_svg__a",children:c.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),s5=r5;function Sr(e){return lx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gn(e){var t;return(t=(lx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lx(e){return e instanceof Node||e instanceof Ot(e).Node}function kt(e){return e instanceof Element||e instanceof Ot(e).Element}function En(e){return e instanceof HTMLElement||e instanceof Ot(e).HTMLElement}function Tg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function Ko(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function i5(e){return["table","td","th"].includes(Sr(e))}function $h(e){const t=Bh(),n=Gt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function o5(e){let t=Xs(e);for(;En(t)&&!Ou(t);){if($h(t))return t;t=Xs(t)}return null}function Bh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ou(e){return["html","body","#document"].includes(Sr(e))}function Gt(e){return Ot(e).getComputedStyle(e)}function Nu(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xs(e){if(Sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tg(e)&&e.host||Gn(e);return Tg(t)?t.host:t}function ux(e){const t=Xs(e);return Ou(t)?e.ownerDocument?e.ownerDocument.body:e.body:En(t)&&Ko(t)?t:ux(t)}function ko(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=ux(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ot(s);return i?t.concat(o,o.visualViewport||[],Ko(s)?s:[],o.frameElement&&n?ko(o.frameElement):[]):t.concat(s,ko(s,[],n))}const jo=Math.min,Bt=Math.max,Wl=Math.round,Oa=Math.floor,Cr=e=>({x:e,y:e}),a5={left:"right",right:"left",bottom:"top",top:"bottom"},l5={start:"end",end:"start"};function Pu(e,t){return typeof e=="function"?e(t):e}function es(e){return e.split("-")[0]}function Go(e){return e.split("-")[1]}function u5(e){return e==="x"?"y":"x"}function cx(e){return e==="y"?"height":"width"}function Au(e){return["top","bottom"].includes(es(e))?"y":"x"}function dx(e){return u5(Au(e))}function c5(e,t,n){n===void 0&&(n=!1);const r=Go(e),s=dx(e),i=cx(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Kl(o)),[o,Kl(o)]}function d5(e){const t=Kl(e);return[df(e),t,df(t)]}function df(e){return e.replace(/start|end/g,t=>l5[t])}function f5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function h5(e,t,n,r){const s=Go(e);let i=f5(es(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(df)))),i}function Kl(e){return e.replace(/left|right|bottom|top/g,t=>a5[t])}function p5(e){return{top:0,right:0,bottom:0,left:0,...e}}function m5(e){return typeof e!="number"?p5(e):{top:e,right:e,bottom:e,left:e}}function Gl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ig(e,t,n){let{reference:r,floating:s}=e;const i=Au(t),o=dx(t),a=cx(o),l=es(t),u=i==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-s.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-s.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Go(t)){case"start":p[o]-=h*(n&&u?-1:1);break;case"end":p[o]+=h*(n&&u?-1:1);break}return p}const g5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=Ig(u,r,l),h=r,p={},m=0;for(let y=0;y<a.length;y++){const{name:w,fn:g}=a[y],{x:v,y:x,data:S,reset:C}=await g({x:d,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});if(d=v??d,f=x??f,p={...p,[w]:{...p[w],...S}},C&&m<=50){m++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:d,y:f}=Ig(u,h,l)),y=-1;continue}}return{x:d,y:f,placement:h,strategy:s,middlewareData:p}};async function fx(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=Pu(t,e),m=m5(p),w=a[h?f==="floating"?"reference":"floating":f],g=Gl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),v=f==="floating"?{...o.floating,x:r,y:s}:o.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Gl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:x,strategy:l}):v);return{top:(g.top-C.top+m.top)/S.y,bottom:(C.bottom-g.bottom+m.bottom)/S.y,left:(g.left-C.left+m.left)/S.x,right:(C.right-g.right+m.right)/S.x}}const v5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...w}=Pu(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=es(s),v=es(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(v||!y?[Kl(a)]:d5(a));!h&&m!=="none"&&S.push(...h5(a,y,m,x));const C=[a,...S],j=await fx(t,w),k=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&k.push(j[g]),f){const T=c5(s,o,x);k.push(j[T[0]],j[T[1]])}if(O=[...O,{placement:s,overflows:k}],!k.every(T=>T<=0)){var A,_;const T=(((A=i.flip)==null?void 0:A.index)||0)+1,$=C[T];if($)return{data:{index:T,overflows:O},reset:{placement:$}};let D=(_=O.filter(E=>E.overflows[0]<=0).sort((E,N)=>E.overflows[1]-N.overflows[1])[0])==null?void 0:_.placement;if(!D)switch(p){case"bestFit":{var F;const E=(F=O.map(N=>[N.placement,N.overflows.filter(L=>L>0).reduce((L,P)=>L+P,0)]).sort((N,L)=>N[1]-L[1])[0])==null?void 0:F[0];E&&(D=E);break}case"initialPlacement":D=a;break}if(s!==D)return{reset:{placement:D}}}return{}}}};async function y5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=es(n),a=Go(n),l=Au(n)==="y",u=["left","top"].includes(o)?-1:1,d=i&&l?-1:1,f=Pu(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const x5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await y5(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},w5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...a}=Pu(e,t),l=await fx(t,a),u=es(n),d=Go(n),f=Au(n)==="y",{width:h,height:p}=r.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=d===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m=d==="end"?"top":"bottom");const w=p-l[m],g=h-l[y],v=!t.middlewareData.shift;let x=w,S=g;if(f){const j=h-l.left-l.right;S=d||v?jo(g,j):j}else{const j=p-l.top-l.bottom;x=d||v?jo(w,j):j}if(v&&!d){const j=Bt(l.left,0),k=Bt(l.right,0),O=Bt(l.top,0),A=Bt(l.bottom,0);f?S=h-2*(j!==0||k!==0?j+k:Bt(l.left,l.right)):x=p-2*(O!==0||A!==0?O+A:Bt(l.top,l.bottom))}await o({...t,availableWidth:S,availableHeight:x});const C=await s.getDimensions(i.floating);return h!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function hx(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=En(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Wl(n)!==i||Wl(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function zh(e){return kt(e)?e:e.contextElement}function Ls(e){const t=zh(e);if(!En(t))return Cr(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=hx(t);let o=(i?Wl(n.width):n.width)/r,a=(i?Wl(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const b5=Cr(0);function px(e){const t=Ot(e);return!Bh()||!t.visualViewport?b5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function S5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function ts(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=zh(e);let o=Cr(1);t&&(r?kt(r)&&(o=Ls(r)):o=Ls(e));const a=S5(i,n,r)?px(i):Cr(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(i){const h=Ot(i),p=r&&kt(r)?Ot(r):r;let m=h.frameElement;for(;m&&r&&p!==h;){const y=Ls(m),w=m.getBoundingClientRect(),g=Gt(m),v=w.left+(m.clientLeft+parseFloat(g.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,u*=y.y,d*=y.x,f*=y.y,l+=v,u+=x,m=Ot(m).frameElement}}return Gl({width:d,height:f,x:l,y:u})}function C5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=En(n),i=Gn(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=Cr(1);const l=Cr(0);if((s||!s&&r!=="fixed")&&((Sr(n)!=="body"||Ko(i))&&(o=Nu(n)),En(n))){const u=ts(n);a=Ls(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function E5(e){return Array.from(e.getClientRects())}function mx(e){return ts(Gn(e)).left+Nu(e).scrollLeft}function k5(e){const t=Gn(e),n=Nu(e),r=e.ownerDocument.body,s=Bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+mx(e);const a=-n.scrollTop;return Gt(r).direction==="rtl"&&(o+=Bt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function j5(e,t){const n=Ot(e),r=Gn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Bh();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function R5(e,t){const n=ts(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=En(e)?Ls(e):Cr(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function Dg(e,t,n){let r;if(t==="viewport")r=j5(e,n);else if(t==="document")r=k5(Gn(e));else if(kt(t))r=R5(t,n);else{const s=px(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Gl(r)}function gx(e,t){const n=Xs(e);return n===t||!kt(n)||Ou(n)?!1:Gt(n).position==="fixed"||gx(n,t)}function O5(e,t){const n=t.get(e);if(n)return n;let r=ko(e,[],!1).filter(a=>kt(a)&&Sr(a)!=="body"),s=null;const i=Gt(e).position==="fixed";let o=i?Xs(e):e;for(;kt(o)&&!Ou(o);){const a=Gt(o),l=$h(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ko(o)&&!l&&gx(e,o))?r=r.filter(d=>d!==o):s=a,o=Xs(o)}return t.set(e,r),r}function N5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?O5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,d)=>{const f=Dg(t,d,s);return u.top=Bt(f.top,u.top),u.right=jo(f.right,u.right),u.bottom=jo(f.bottom,u.bottom),u.left=Bt(f.left,u.left),u},Dg(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function P5(e){return hx(e)}function A5(e,t,n){const r=En(t),s=Gn(t),i=n==="fixed",o=ts(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Cr(0);if(r||!r&&!i)if((Sr(t)!=="body"||Ko(s))&&(a=Nu(t)),r){const u=ts(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=mx(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Mg(e,t){return!En(e)||Gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function vx(e,t){const n=Ot(e);if(!En(e))return n;let r=Mg(e,t);for(;r&&i5(r)&&Gt(r).position==="static";)r=Mg(r,t);return r&&(Sr(r)==="html"||Sr(r)==="body"&&Gt(r).position==="static"&&!$h(r))?n:r||o5(e)||n}const _5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||vx,i=this.getDimensions;return{reference:A5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function T5(e){return Gt(e).direction==="rtl"}const I5={convertOffsetParentRelativeRectToViewportRelativeRect:C5,getDocumentElement:Gn,getClippingRect:N5,getOffsetParent:vx,getElementRects:_5,getClientRects:E5,getDimensions:P5,getScale:Ls,isElement:kt,isRTL:T5};function D5(e,t){let n=null,r;const s=Gn(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const p=Oa(d),m=Oa(s.clientWidth-(u+f)),y=Oa(s.clientHeight-(d+h)),w=Oa(u),v={rootMargin:-p+"px "+-m+"px "+-y+"px "+-w+"px",threshold:Bt(0,jo(1,l))||1};let x=!0;function S(C){const j=C[0].intersectionRatio;if(j!==l){if(!x)return o();j?o(!1,j):r=setTimeout(()=>{o(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(S,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return o(!0),i}function M5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=zh(e),d=s||i?[...u?ko(u):[],...ko(t)]:[];d.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=u&&a?D5(u,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let m,y=l?ts(e):null;l&&w();function w(){const g=ts(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(w)}return n(),()=>{d.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),f&&f(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const L5=(e,t,n)=>{const r=new Map,s={platform:I5,...n},i={...s.platform,_c:r};return g5(e,t,{...s,platform:i})};var Za=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Xl(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Xl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lg(e,t){const n=yx(e);return Math.round(t*n)/n}function Fg(e){const t=b.useRef(e);return Za(()=>{t.current=e}),t}function F5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=b.useState(r);Xl(h,r)||p(r);const[m,y]=b.useState(null),[w,g]=b.useState(null),v=b.useCallback(N=>{N!=j.current&&(j.current=N,y(N))},[y]),x=b.useCallback(N=>{N!==k.current&&(k.current=N,g(N))},[g]),S=i||m,C=o||w,j=b.useRef(null),k=b.useRef(null),O=b.useRef(d),A=Fg(l),_=Fg(s),F=b.useCallback(()=>{if(!j.current||!k.current)return;const N={placement:t,strategy:n,middleware:h};_.current&&(N.platform=_.current),L5(j.current,k.current,N).then(L=>{const P={...L,isPositioned:!0};T.current&&!Xl(O.current,P)&&(O.current=P,Wn.flushSync(()=>{f(P)}))})},[h,t,n,_]);Za(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[u]);const T=b.useRef(!1);Za(()=>(T.current=!0,()=>{T.current=!1}),[]),Za(()=>{if(S&&(j.current=S),C&&(k.current=C),S&&C){if(A.current)return A.current(S,C,F);F()}},[S,C,F,A]);const $=b.useMemo(()=>({reference:j,floating:k,setReference:v,setFloating:x}),[v,x]),D=b.useMemo(()=>({reference:S,floating:C}),[S,C]),E=b.useMemo(()=>{const N={position:n,left:0,top:0};if(!D.floating)return N;const L=Lg(D.floating,d.x),P=Lg(D.floating,d.y);return a?{...N,transform:"translate("+L+"px, "+P+"px)",...yx(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:P}},[n,a,D.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:F,refs:$,elements:D,floatingStyles:E}),[d,F,$,D,E])}var xx=typeof document<"u"?b.useLayoutEffect:b.useEffect;let Hc=!1,$5=0;const $g=()=>"floating-ui-"+$5++;function B5(){const[e,t]=b.useState(()=>Hc?$g():void 0);return xx(()=>{e==null&&t($g())},[]),b.useEffect(()=>{Hc||(Hc=!0)},[]),e}const z5=lv["useId".toString()],V5=z5||B5;function U5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const H5=b.createContext(null),q5=()=>b.useContext(H5),Q5=lv["useInsertionEffect".toString()],W5=Q5||(e=>e());function K5(e){const t=b.useRef(()=>{});return W5(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function G5(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=b.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=F5(e),u=q5(),d=K5((S,C)=>{S&&(h.current.openEvent=C),r==null||r(S,C)}),f=b.useRef(null),h=b.useRef({}),p=b.useState(()=>U5())[0],m=V5(),y=b.useCallback(S=>{const C=kt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;l.refs.setReference(C)},[l.refs]),w=b.useCallback(S=>{(kt(S)||S===null)&&(f.current=S,o(S)),(kt(l.refs.reference.current)||l.refs.reference.current===null||S!==null&&!kt(S))&&l.refs.setReference(S)},[l.refs]),g=b.useMemo(()=>({...l.refs,setReference:w,setPositionReference:y,domReference:f}),[l.refs,w,y]),v=b.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),x=b.useMemo(()=>({...l,refs:g,elements:v,dataRef:h,nodeId:s,floatingId:m,events:p,open:n,onOpenChange:d}),[l,s,m,p,n,d,g,v]);return xx(()=>{const S=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);S&&(S.context=x)}),b.useMemo(()=>({...l,context:x,refs:g,elements:v}),[l,g,v,x])}let X5={data:""},Y5=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||X5,J5=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Z5=/\/\*[^]*?\*\/| +/g,Bg=/\n+/g,rr=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?rr(o,i):i+"{"+rr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=rr(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=rr.p?rr.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Pn={},wx=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+wx(e[n]);return t}return e},ek=(e,t,n,r,s)=>{let i=wx(e),o=Pn[i]||(Pn[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Pn[o]){let l=i!==e?e:(u=>{let d,f,h=[{}];for(;d=J5.exec(u.replace(Z5,""));)d[4]?h.shift():d[3]?(f=d[3].replace(Bg," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][d[1]]=d[2].replace(Bg," ").trim();return h[0]})(e);Pn[o]=rr(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Pn.g?Pn.g:null;return n&&(Pn.g=Pn[o]),((l,u,d,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(Pn[o],t,r,a),o},tk=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":rr(a,""):a===!1?"":a}return r+s+(o??"")},"");function _u(e){let t=this||{},n=e.call?e(t.p):e;return ek(n.unshift?n.raw?tk(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,Y5(t.target),t.g,t.o,t.k)}let bx,ff,hf;_u.bind({g:1});let Un=_u.bind({k:1});function nk(e,t,n,r){rr.p=t,bx=e,ff=n,hf=r}function Pr(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let a=Object.assign({},i),l=a.className||s.className;n.p=Object.assign({theme:ff&&ff()},a),n.o=/ *go\d+/.test(l),a.className=_u.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),hf&&u[0]&&hf(a),bx(u,a)}return t?t(s):s}}var rk=e=>typeof e=="function",Yl=(e,t)=>rk(e)?e(t):e,sk=(()=>{let e=0;return()=>(++e).toString()})(),Sx=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ik=20,el=new Map,ok=1e3,zg=e=>{if(el.has(e))return;let t=setTimeout(()=>{el.delete(e),os({type:4,toastId:e})},ok);el.set(e,t)},ak=e=>{let t=el.get(e);t&&clearTimeout(t)},pf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,ik)};case 1:return t.toast.id&&ak(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?pf(e,{type:1,toast:n}):pf(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?zg(r):e.toasts.forEach(i=>{zg(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},tl=[],nl={toasts:[],pausedAt:void 0},os=e=>{nl=pf(nl,e),tl.forEach(t=>{t(nl)})},lk={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},uk=(e={})=>{let[t,n]=b.useState(nl);b.useEffect(()=>(tl.push(n),()=>{let s=tl.indexOf(n);s>-1&&tl.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||lk[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},ck=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||sk()}),Xo=e=>(t,n)=>{let r=ck(t,e,n);return os({type:2,toast:r}),r.id},jt=(e,t)=>Xo("blank")(e,t);jt.error=Xo("error");jt.success=Xo("success");jt.loading=Xo("loading");jt.custom=Xo("custom");jt.dismiss=e=>{os({type:3,toastId:e})};jt.remove=e=>os({type:4,toastId:e});jt.promise=(e,t,n)=>{let r=jt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(jt.success(Yl(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{jt.error(Yl(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var dk=(e,t)=>{os({type:1,toast:{id:e,height:t}})},fk=()=>{os({type:5,time:Date.now()})},hk=e=>{let{toasts:t,pausedAt:n}=uk(e);b.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&jt.dismiss(a.id);return}return setTimeout(()=>jt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=b.useCallback(()=>{n&&os({type:6,time:Date.now()})},[n]),s=b.useCallback((i,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},d=t.filter(p=>(p.position||u)===(i.position||u)&&p.height),f=d.findIndex(p=>p.id===i.id),h=d.filter((p,m)=>m<f&&p.visible).length;return d.filter(p=>p.visible).slice(...a?[h+1]:[0,h]).reduce((p,m)=>p+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:dk,startPause:fk,endPause:r,calculateOffset:s}}},pk=Un`
50
50
  from {
51
51
  transform: scale(0) rotate(45deg);
52
52
  opacity: 0;
@@ -54,7 +54,7 @@ from {
54
54
  to {
55
55
  transform: scale(1) rotate(45deg);
56
56
  opacity: 1;
57
- }`,h4=sn`
57
+ }`,mk=Un`
58
58
  from {
59
59
  transform: scale(0);
60
60
  opacity: 0;
@@ -62,7 +62,7 @@ from {
62
62
  to {
63
63
  transform: scale(1);
64
64
  opacity: 1;
65
- }`,p4=sn`
65
+ }`,gk=Un`
66
66
  from {
67
67
  transform: scale(0) rotate(90deg);
68
68
  opacity: 0;
@@ -70,7 +70,7 @@ from {
70
70
  to {
71
71
  transform: scale(1) rotate(90deg);
72
72
  opacity: 1;
73
- }`,m4=$n("div")`
73
+ }`,vk=Pr("div")`
74
74
  width: 20px;
75
75
  opacity: 0;
76
76
  height: 20px;
@@ -79,14 +79,14 @@ to {
79
79
  position: relative;
80
80
  transform: rotate(45deg);
81
81
 
82
- animation: ${f4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
82
+ animation: ${pk} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
83
83
  forwards;
84
84
  animation-delay: 100ms;
85
85
 
86
86
  &:after,
87
87
  &:before {
88
88
  content: '';
89
- animation: ${h4} 0.15s ease-out forwards;
89
+ animation: ${mk} 0.15s ease-out forwards;
90
90
  animation-delay: 150ms;
91
91
  position: absolute;
92
92
  border-radius: 3px;
@@ -99,18 +99,18 @@ to {
99
99
  }
100
100
 
101
101
  &:before {
102
- animation: ${p4} 0.15s ease-out forwards;
102
+ animation: ${gk} 0.15s ease-out forwards;
103
103
  animation-delay: 180ms;
104
104
  transform: rotate(90deg);
105
105
  }
106
- `,g4=sn`
106
+ `,yk=Un`
107
107
  from {
108
108
  transform: rotate(0deg);
109
109
  }
110
110
  to {
111
111
  transform: rotate(360deg);
112
112
  }
113
- `,v4=$n("div")`
113
+ `,xk=Pr("div")`
114
114
  width: 12px;
115
115
  height: 12px;
116
116
  box-sizing: border-box;
@@ -118,8 +118,8 @@ to {
118
118
  border-radius: 100%;
119
119
  border-color: ${e=>e.secondary||"#e0e0e0"};
120
120
  border-right-color: ${e=>e.primary||"#616161"};
121
- animation: ${g4} 1s linear infinite;
122
- `,y4=sn`
121
+ animation: ${yk} 1s linear infinite;
122
+ `,wk=Un`
123
123
  from {
124
124
  transform: scale(0) rotate(45deg);
125
125
  opacity: 0;
@@ -127,7 +127,7 @@ from {
127
127
  to {
128
128
  transform: scale(1) rotate(45deg);
129
129
  opacity: 1;
130
- }`,w4=sn`
130
+ }`,bk=Un`
131
131
  0% {
132
132
  height: 0;
133
133
  width: 0;
@@ -141,7 +141,7 @@ to {
141
141
  100% {
142
142
  opacity: 1;
143
143
  height: 10px;
144
- }`,x4=$n("div")`
144
+ }`,Sk=Pr("div")`
145
145
  width: 20px;
146
146
  opacity: 0;
147
147
  height: 20px;
@@ -150,13 +150,13 @@ to {
150
150
  position: relative;
151
151
  transform: rotate(45deg);
152
152
 
153
- animation: ${y4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
153
+ animation: ${wk} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
154
154
  forwards;
155
155
  animation-delay: 100ms;
156
156
  &:after {
157
157
  content: '';
158
158
  box-sizing: border-box;
159
- animation: ${w4} 0.2s ease-out forwards;
159
+ animation: ${bk} 0.2s ease-out forwards;
160
160
  opacity: 0;
161
161
  animation-delay: 200ms;
162
162
  position: absolute;
@@ -168,16 +168,16 @@ to {
168
168
  height: 10px;
169
169
  width: 6px;
170
170
  }
171
- `,S4=$n("div")`
171
+ `,Ck=Pr("div")`
172
172
  position: absolute;
173
- `,b4=$n("div")`
173
+ `,Ek=Pr("div")`
174
174
  position: relative;
175
175
  display: flex;
176
176
  justify-content: center;
177
177
  align-items: center;
178
178
  min-width: 20px;
179
179
  min-height: 20px;
180
- `,C4=sn`
180
+ `,kk=Un`
181
181
  from {
182
182
  transform: scale(0.6);
183
183
  opacity: 0.4;
@@ -185,20 +185,20 @@ from {
185
185
  to {
186
186
  transform: scale(1);
187
187
  opacity: 1;
188
- }`,E4=$n("div")`
188
+ }`,jk=Pr("div")`
189
189
  position: relative;
190
190
  transform: scale(0.6);
191
191
  opacity: 0.4;
192
192
  min-width: 20px;
193
- animation: ${C4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
193
+ animation: ${kk} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
194
194
  forwards;
195
- `,R4=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?x.createElement(E4,null,t):t:n==="blank"?null:x.createElement(b4,null,x.createElement(v4,{...r}),n!=="loading"&&x.createElement(S4,null,n==="error"?x.createElement(m4,{...r}):x.createElement(x4,{...r})))},k4=e=>`
195
+ `,Rk=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?b.createElement(jk,null,t):t:n==="blank"?null:b.createElement(Ek,null,b.createElement(xk,{...r}),n!=="loading"&&b.createElement(Ck,null,n==="error"?b.createElement(vk,{...r}):b.createElement(Sk,{...r})))},Ok=e=>`
196
196
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
197
197
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
198
- `,P4=e=>`
198
+ `,Nk=e=>`
199
199
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
200
200
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
201
- `,O4="0%{opacity:0;} 100%{opacity:1;}",N4="0%{opacity:1;} 100%{opacity:0;}",j4=$n("div")`
201
+ `,Pk="0%{opacity:0;} 100%{opacity:1;}",Ak="0%{opacity:1;} 100%{opacity:0;}",_k=Pr("div")`
202
202
  display: flex;
203
203
  align-items: center;
204
204
  background: #fff;
@@ -210,21 +210,27 @@ to {
210
210
  pointer-events: auto;
211
211
  padding: 8px 10px;
212
212
  border-radius: 8px;
213
- `,T4=$n("div")`
213
+ `,Tk=Pr("div")`
214
214
  display: flex;
215
215
  justify-content: center;
216
216
  margin: 4px 10px;
217
217
  color: inherit;
218
218
  flex: 1 1 auto;
219
219
  white-space: pre-line;
220
- `,_4=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=s0()?[O4,N4]:[k4(n),P4(n)];return{animation:t?`${sn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${sn(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},I4=x.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?_4(e.position||t||"top-center",e.visible):{opacity:0},i=x.createElement(R4,{toast:e}),o=x.createElement(T4,{...e.ariaProps},pa(e.message,e));return x.createElement(j4,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):x.createElement(x.Fragment,null,i,o))});e4(x.createElement);var A4=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let i=x.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return x.createElement("div",{ref:i,className:t,style:n},s)},L4=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:s0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},M4=Wa`
220
+ `,Ik=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=Sx()?[Pk,Ak]:[Ok(n),Nk(n)];return{animation:t?`${Un(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Un(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Dk=b.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?Ik(e.position||t||"top-center",e.visible):{opacity:0},i=b.createElement(Rk,{toast:e}),o=b.createElement(Tk,{...e.ariaProps},Yl(e.message,e));return b.createElement(_k,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):b.createElement(b.Fragment,null,i,o))});nk(b.createElement);var Mk=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let i=b.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return b.createElement("div",{ref:i,className:t,style:n},s)},Lk=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Sx()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},Fk=_u`
221
221
  z-index: 9999;
222
222
  > * {
223
223
  pointer-events: auto;
224
224
  }
225
- `,so=16,D4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=d4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:so,left:so,right:so,bottom:so,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=L4(c,d);return x.createElement(A4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?M4:"",style:h},u.type==="custom"?pa(u.message,u):s?s(u):x.createElement(I4,{toast:u,position:c}))}))},hs=Ze;function jt(e){return{hotToast:{success:(n,r)=>hs.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>hs.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>hs.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>hs.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:hs.loading}}}function F4({src:e,placeholder:t}){const[n,r]=x.useState(e||t),s=x.useCallback(()=>{r(t)},[t]);return x.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function $4(e,t){const n=x.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);x.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function z4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function U4(){const e=x.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return x.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function B4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const i0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));i0.displayName="ActionBar";const V4=i0,H4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),q4=H4,Q4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0",clipRule:"evenodd"})]}),W4=Q4,K4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414",clipRule:"evenodd"})]}),Jk=K4,G4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12"})]}),e8=G4,X4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",clipRule:"evenodd"})]}),Y4=X4,Z4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0",clipRule:"evenodd"})]}),J4=Z4,e3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916M3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),t8=e3,t3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),n3=t3,r3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),n8=r3,s3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0",clipRule:"evenodd"})]}),i3=s3,o3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),r8=o3,a3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155",clipRule:"evenodd"})]}),l3=a3,u3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557",clipRule:"evenodd"})]}),c3=u3,d3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884m-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),s8=d3,f3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),h3=f3,p3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655",clipRule:"evenodd"})]}),m3=p3,g3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),i8=g3,v3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z",clipRule:"evenodd"})]}),y3=v3,w3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117",clipRule:"evenodd"})]}),gc=w3,x3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141",clipRule:"evenodd"})]}),S3=x3,b3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141",clipRule:"evenodd"})]}),tp=b3,C3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117",clipRule:"evenodd"})]}),E3=C3,R3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),o8=R3,k3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0m7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1",clipRule:"evenodd"})]}),P3=k3,O3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219",clipRule:"evenodd"})]}),N3=O3,j3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036M1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),a8=j3;function o0(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=o0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function V(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o0(e))&&(r&&(r+=" "),r+=t);return r}const a0=x.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=x.useState(!0),p=x.useRef(null),m=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:m,...p.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{m()},a)},[o,a,m,d]);const y=()=>{h(!0)},S={success:{icon:f.jsx(N3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(q4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(h3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(i3,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},v=V("alert gap-12",S[e].classModifier,g,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:p,className:v,role:"alert",children:[S[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),s&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:m})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});a0.displayName="Alert";const Tt=a0,l0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=V("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});l0.displayName="AppHeader";const T3=l0,u0=x.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=Qa(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=F4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},p={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},m=V({...h}),y=V({...p},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:m,children:S}):S});u0.displayName="Image";const c0=u0,d0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Jg(),[,a]=Qa(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",p={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},m={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},S=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=i(S),b=v||"placeholder",E=V("app-icon",{...p,...m,...y,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return w?f.jsx(c0,{src:S,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:E,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${b}`})})})});d0.displayName="AppIcon";const vc=d0,f0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Qa(),u=s||`${l}/avatar/no-avatar.svg`,y=V("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return f.jsx("div",{ref:a,className:y,children:f.jsx(c0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});f0.displayName="Avatar";const np=f0,h0=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("breadcrumb-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});h0.displayName="BreadcrumbItem";const Kl=h0,p0=x.forwardRef(({children:e,className:t},n)=>{const r=V("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});p0.displayName="BreadcrumbList";const _3=p0,m0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=pe(),{getIconClass:i}=Jg(),o=V("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});m0.displayName="BreadcrumbNav";const I3=m0,g0=x.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=V(t,r);return f.jsx(e,{ref:i,className:o,...s,children:n})});g0.displayName="Heading";const rp=g0,v0=x.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(m3,{...o,"aria-label":"Loading"}),u},l=V("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});v0.displayName="Loading";const A3=v0,y0=x.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const p=V("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:p,type:t,...d,children:s?f.jsx(A3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});y0.displayName="Button";const Jr=y0,w0=x.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:V("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});w0.displayName="IconButton";const Ka=w0,x0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=pe();return f.jsx(I3,{app:e,ref:n,className:"mw-100",children:f.jsx(_3,{className:"gap-12 mw-100",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Kl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(Ka,{variant:"ghost",color:"tertiary",icon:f.jsx(S3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(vc,{app:e,size:"40"})]})}),f.jsx(Kl,{className:"text-truncate",children:f.jsx(rp,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):f.jsxs(Kl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(vc,{app:e,size:"40"}),f.jsx(rp,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x0.displayName="Breadcrumb";const L3=x0,S0=x.forwardRef(({icon:e=f.jsx(P3,{}),onClick:t,...n},r)=>{const s=V("btn-search");return f.jsx(Ka,{ref:r,className:s,icon:e,...n,onClick:t})});S0.displayName="SearchButton";const b0=S0,M3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.805c.49.704.733 1.473.733 2.306 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624"})]}),D3=M3,F3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M22.996 13.153c0 1.393-.291 2.722-.873 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.153c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589M13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),sp=F3,$3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111m3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363"})]}),z3=$3,U3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216m7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216m-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216m7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216zM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24m7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24"})]}),ip=U3,B3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03",clipRule:"evenodd"})]}),V3=B3,H3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5m0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.024v3.387l-11.512 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415"})]}),op=H3,q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53zm0 4.4v-2.2h-2.14v2.2zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),Q3=q3,W3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),K3=W3,G3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334m10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.996 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837",clipRule:"evenodd"})]}),X3=G3,Y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51m0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),Z3=Y3,J3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628m2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486"})]}),e5=J3,t5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),n5=t5,C0=x.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=x.useRef(null);x.useImperativeHandle(i,()=>({...o.current})),x.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=x.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:V(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return f.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[f.jsx("input",{...u}),e&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});C0.displayName="Checkbox";const r5=C0,E0=x.createContext(null),Ni=()=>{const e=x.useContext(E0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},R0=x.createContext(null),Md=()=>{const e=x.useContext(R0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},k0=x.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=Md(),d=V({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...i})});k0.displayName="Input";const P0=k0,O0=({children:e})=>{const{status:t}=Md(),n=V("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};O0.displayName="Text";const s5=O0,N0=x.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=Md(),u=V("form-label",{"has-icon":e},s),c=a&&!l,d=l&&!a;return x.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});N0.displayName="Label";const i5=N0,j0=x.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=x.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return f.jsx(R0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),o5=Object.assign(j0,{Label:i5,Input:P0,Text:s5});j0.displayName="FormControl";const yc=o5,T0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:c?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(r5,{...d})]})})};T0.displayName="Dropdown.CheckboxItem";const a5=T0,_0=({type:e="action",icon:t,onClick:n,children:r,...s})=>{const{itemProps:i,itemRefs:o,isFocused:a}=Ni(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:u,onMenuItemClick:c}=i,d=()=>{n==null||n(),e==="action"&&c()},h=x.useId(),p=V("dropdown-item",{focus:a===h});return f.jsx("div",{id:h,role:"menuitem",ref:m=>o.current[h]=m,tabIndex:a===h?0:-1,className:p,"aria-current":a===h,onClick:d,onMouseEnter:u,onKeyDown:m=>l(m,n),...s,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[t,r]})})};_0.displayName="Dropdown.Item";const l5=_0,I0=x.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=Ni(),{className:o,...a}=s,l={...a,...n},u=V({"w-100":t},o);return i?f.jsx("div",{ref:r,className:u,...l,children:e}):null});I0.displayName="Dropdown.Menu";const u5=I0,A0=x.forwardRef(({label:e,children:t},n)=>f.jsxs("div",{ref:n,role:"group",children:[f.jsx("span",{className:"small px-4",children:f.jsx("strong",{children:e})}),t]}));A0.displayName="Dropdown.MenuGroup";const c5=A0,L0=x.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=x.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:V(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return f.jsxs("div",{className:V("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[f.jsx("input",{...u}),t&&f.jsx("label",{htmlFor:u.id,className:V("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});L0.displayName="Radio";const d5=L0,M0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(d5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};M0.displayName="Dropdown.RadioItem";const f5=M0,D0=()=>f.jsx("div",{role:"separator",className:"px-4",children:f.jsx("hr",{className:"m-0"})});D0.displayName="Dropdown.Separator";const h5=D0,F0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},a)=>{const{triggerProps:l,block:u}=Ni(),{className:c,...d}=l,h={...d,...o},p=V(s,n,{"w-100":u},c);return f.jsxs("button",{ref:a,className:p,disabled:r,...h,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(E3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});F0.displayName="Dropdown.Trigger";const p5=F0;function An(e){return $0(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ln(e){var t;return(t=($0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $0(e){return e instanceof Node||e instanceof tt(e).Node}function Je(e){return e instanceof Element||e instanceof tt(e).Element}function Bt(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function ap(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function m5(e){return["table","td","th"].includes(An(e))}function Dd(e){const t=Fd(),n=vt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function g5(e){let t=Wr(e);for(;Bt(t)&&!Ga(t);){if(Dd(t))return t;t=Wr(t)}return null}function Fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ga(e){return["html","body","#document"].includes(An(e))}function vt(e){return tt(e).getComputedStyle(e)}function Xa(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wr(e){if(An(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||ln(e);return ap(t)?t.host:t}function z0(e){const t=Wr(e);return Ga(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&ji(t)?t:z0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=z0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=tt(s);return i?t.concat(o,o.visualViewport||[],ji(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const ci=Math.min,ct=Math.max,ma=Math.round,io=Math.floor,Ln=e=>({x:e,y:e}),v5={left:"right",right:"left",bottom:"top",top:"bottom"},y5={start:"end",end:"start"};function Ya(e,t){return typeof e=="function"?e(t):e}function sr(e){return e.split("-")[0]}function Ti(e){return e.split("-")[1]}function w5(e){return e==="x"?"y":"x"}function U0(e){return e==="y"?"height":"width"}function Za(e){return["top","bottom"].includes(sr(e))?"y":"x"}function B0(e){return w5(Za(e))}function x5(e,t,n){n===void 0&&(n=!1);const r=Ti(e),s=B0(e),i=U0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ga(o)),[o,ga(o)]}function S5(e){const t=ga(e);return[wc(e),t,wc(t)]}function wc(e){return e.replace(/start|end/g,t=>y5[t])}function b5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function C5(e,t,n,r){const s=Ti(e);let i=b5(sr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(wc)))),i}function ga(e){return e.replace(/left|right|bottom|top/g,t=>v5[t])}function E5(e){return{top:0,right:0,bottom:0,left:0,...e}}function R5(e){return typeof e!="number"?E5(e):{top:e,right:e,bottom:e,left:e}}function va(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lp(e,t,n){let{reference:r,floating:s}=e;const i=Za(t),o=B0(t),a=U0(o),l=sr(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-s.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ti(t)){case"start":p[o]-=h*(n&&u?-1:1);break;case"end":p[o]+=h*(n&&u?-1:1);break}return p}const k5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=lp(u,r,l),h=r,p={},m=0;for(let y=0;y<a.length;y++){const{name:S,fn:g}=a[y],{x:v,y:w,data:b,reset:E}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=w??d,p={...p,[S]:{...p[S],...b}},E&&m<=50){m++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:c,y:d}=lp(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:p}};async function V0(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Ya(t,e),m=R5(p),S=a[h?d==="floating"?"reference":"floating":d],g=va(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=va(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-E.top+m.top)/b.y,bottom:(E.bottom-g.bottom+m.bottom)/b.y,left:(g.left-E.left+m.left)/b.x,right:(E.right-g.right+m.right)/b.x}}const P5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...S}=Ya(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=sr(s),v=sr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[ga(a)]:S5(a));!h&&m!=="none"&&b.push(...C5(a,y,m,w));const E=[a,...b],R=await V0(t,S),k=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&k.push(R[g]),d){const I=x5(s,o,w);k.push(R[I[0]],R[I[1]])}if(P=[...P,{placement:s,overflows:k}],!k.every(I=>I<=0)){var _,F;const I=(((_=i.flip)==null?void 0:_.index)||0)+1,U=E[I];if(U)return{data:{index:I,overflows:P},reset:{placement:U}};let $=(F=P.filter(C=>C.overflows[0]<=0).sort((C,O)=>C.overflows[1]-O.overflows[1])[0])==null?void 0:F.placement;if(!$)switch(p){case"bestFit":{var A;const C=(A=P.map(O=>[O.placement,O.overflows.filter(L=>L>0).reduce((L,N)=>L+N,0)]).sort((O,L)=>O[1]-L[1])[0])==null?void 0:A[0];C&&($=C);break}case"initialPlacement":$=a;break}if(s!==$)return{reset:{placement:$}}}return{}}}};async function O5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=sr(n),a=Ti(n),l=Za(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Ya(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}const N5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await O5(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},j5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...a}=Ya(e,t),l=await V0(t,a),u=sr(n),c=Ti(n),d=Za(n)==="y",{width:h,height:p}=r.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m=c==="end"?"top":"bottom");const S=p-l[m],g=h-l[y],v=!t.middlewareData.shift;let w=S,b=g;if(d){const R=h-l.left-l.right;b=c||v?ci(g,R):R}else{const R=p-l.top-l.bottom;w=c||v?ci(S,R):R}if(v&&!c){const R=ct(l.left,0),k=ct(l.right,0),P=ct(l.top,0),_=ct(l.bottom,0);d?b=h-2*(R!==0||k!==0?R+k:ct(l.left,l.right)):w=p-2*(P!==0||_!==0?P+_:ct(l.top,l.bottom))}await o({...t,availableWidth:b,availableHeight:w});const E=await s.getDimensions(i.floating);return h!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function H0(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Bt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ma(n)!==i||ma(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function $d(e){return Je(e)?e:e.contextElement}function Mr(e){const t=$d(e);if(!Bt(t))return Ln(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=H0(t);let o=(i?ma(n.width):n.width)/r,a=(i?ma(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const T5=Ln(0);function q0(e){const t=tt(e);return!Fd()||!t.visualViewport?T5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tt(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=$d(e);let o=Ln(1);t&&(r?Je(r)&&(o=Mr(r)):o=Mr(e));const a=_5(i,n,r)?q0(i):Ln(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=tt(i),p=r&&Je(r)?tt(r):r;let m=h.frameElement;for(;m&&r&&p!==h;){const y=Mr(m),S=m.getBoundingClientRect(),g=vt(m),v=S.left+(m.clientLeft+parseFloat(g.paddingLeft))*y.x,w=S.top+(m.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,m=tt(m).frameElement}}return va({width:c,height:d,x:l,y:u})}function I5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Bt(n),i=ln(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=Ln(1);const l=Ln(0);if((s||!s&&r!=="fixed")&&((An(n)!=="body"||ji(i))&&(o=Xa(n)),Bt(n))){const u=ir(n);a=Mr(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function A5(e){return Array.from(e.getClientRects())}function Q0(e){return ir(ln(e)).left+Xa(e).scrollLeft}function L5(e){const t=ln(e),n=Xa(e),r=e.ownerDocument.body,s=ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Q0(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(o+=ct(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function M5(e,t){const n=tt(e),r=ln(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Fd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function D5(e,t){const n=ir(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Bt(e)?Mr(e):Ln(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function up(e,t,n){let r;if(t==="viewport")r=M5(e,n);else if(t==="document")r=L5(ln(e));else if(Je(t))r=D5(t,n);else{const s=q0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return va(r)}function W0(e,t){const n=Wr(e);return n===t||!Je(n)||Ga(n)?!1:vt(n).position==="fixed"||W0(n,t)}function F5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Je(a)&&An(a)!=="body"),s=null;const i=vt(e).position==="fixed";let o=i?Wr(e):e;for(;Je(o)&&!Ga(o);){const a=vt(o),l=Dd(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!l&&W0(e,o))?r=r.filter(c=>c!==o):s=a,o=Wr(o)}return t.set(e,r),r}function $5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?F5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=up(t,c,s);return u.top=ct(d.top,u.top),u.right=ci(d.right,u.right),u.bottom=ci(d.bottom,u.bottom),u.left=ct(d.left,u.left),u},up(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function z5(e){return H0(e)}function U5(e,t,n){const r=Bt(t),s=ln(t),i=n==="fixed",o=ir(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ln(0);if(r||!r&&!i)if((An(t)!=="body"||ji(s))&&(a=Xa(t)),r){const u=ir(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=Q0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function cp(e,t){return!Bt(e)||vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function K0(e,t){const n=tt(e);if(!Bt(e))return n;let r=cp(e,t);for(;r&&m5(r)&&vt(r).position==="static";)r=cp(r,t);return r&&(An(r)==="html"||An(r)==="body"&&vt(r).position==="static"&&!Dd(r))?n:r||g5(e)||n}const B5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||K0,i=this.getDimensions;return{reference:U5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function V5(e){return vt(e).direction==="rtl"}const H5={convertOffsetParentRelativeRectToViewportRelativeRect:I5,getDocumentElement:ln,getClippingRect:$5,getOffsetParent:K0,getElementRects:B5,getClientRects:A5,getDimensions:z5,getScale:Mr,isElement:Je,isRTL:V5};function q5(e,t){let n=null,r;const s=ln(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=io(c),m=io(s.clientWidth-(u+d)),y=io(s.clientHeight-(c+h)),S=io(u),v={rootMargin:-p+"px "+-m+"px "+-y+"px "+-S+"px",threshold:ct(0,ci(1,l))||1};let w=!0;function b(E){const R=E[0].intersectionRatio;if(R!==l){if(!w)return o();R?o(!1,R):r=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function Q5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=$d(e),c=s||i?[...u?ui(u):[],...ui(t)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&a?q5(u,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let m,y=l?ir(e):null;l&&S();function S(){const g=ir(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(S)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const W5=(e,t,n)=>{const r=new Map,s={platform:H5,...n},i={...s.platform,_c:r};return k5(e,t,{...s,platform:i})};var jo=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ya(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ya(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!ya(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function G0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const n=G0(e);return Math.round(t*n)/n}function fp(e){const t=x.useRef(e);return jo(()=>{t.current=e}),t}function K5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=x.useState(r);ya(h,r)||p(r);const[m,y]=x.useState(null),[S,g]=x.useState(null),v=x.useCallback(O=>{O!=R.current&&(R.current=O,y(O))},[y]),w=x.useCallback(O=>{O!==k.current&&(k.current=O,g(O))},[g]),b=i||m,E=o||S,R=x.useRef(null),k=x.useRef(null),P=x.useRef(c),_=fp(l),F=fp(s),A=x.useCallback(()=>{if(!R.current||!k.current)return;const O={placement:t,strategy:n,middleware:h};F.current&&(O.platform=F.current),W5(R.current,k.current,O).then(L=>{const N={...L,isPositioned:!0};I.current&&!ya(P.current,N)&&(P.current=N,Pi.flushSync(()=>{d(N)}))})},[h,t,n,F]);jo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);const I=x.useRef(!1);jo(()=>(I.current=!0,()=>{I.current=!1}),[]),jo(()=>{if(b&&(R.current=b),E&&(k.current=E),b&&E){if(_.current)return _.current(b,E,A);A()}},[b,E,A,_]);const U=x.useMemo(()=>({reference:R,floating:k,setReference:v,setFloating:w}),[v,w]),$=x.useMemo(()=>({reference:b,floating:E}),[b,E]),C=x.useMemo(()=>{const O={position:n,left:0,top:0};if(!$.floating)return O;const L=dp($.floating,c.x),N=dp($.floating,c.y);return a?{...O,transform:"translate("+L+"px, "+N+"px)",...G0($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:N}},[n,a,$.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:A,refs:U,elements:$,floatingStyles:C}),[c,A,U,$,C])}var X0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Gl=!1,G5=0;const hp=()=>"floating-ui-"+G5++;function X5(){const[e,t]=x.useState(()=>Gl?hp():void 0);return X0(()=>{e==null&&t(hp())},[]),x.useEffect(()=>{Gl||(Gl=!0)},[]),e}const Y5=mm["useId".toString()],Z5=Y5||X5;function J5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const eb=x.createContext(null),tb=()=>x.useContext(eb),nb=mm["useInsertionEffect".toString()],rb=nb||(e=>e());function sb(e){const t=x.useRef(()=>{});return rb(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function ib(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=x.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=K5(e),u=tb(),c=sb((b,E)=>{b&&(h.current.openEvent=E),r==null||r(b,E)}),d=x.useRef(null),h=x.useRef({}),p=x.useState(()=>J5())[0],m=Z5(),y=x.useCallback(b=>{const E=Je(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(E)},[l.refs]),S=x.useCallback(b=>{(Je(b)||b===null)&&(d.current=b,o(b)),(Je(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Je(b))&&l.refs.setReference(b)},[l.refs]),g=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:y,domReference:d}),[l.refs,S,y]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),w=x.useMemo(()=>({...l,refs:g,elements:v,dataRef:h,nodeId:s,floatingId:m,events:p,open:n,onOpenChange:c}),[l,s,m,p,n,c,g,v]);return X0(()=>{const b=u==null?void 0:u.nodesRef.current.find(E=>E.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:g,elements:v}),[l,g,v,w])}const ob=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=ib({placement:e,open:n,onOpenChange:r,whileElementsMounted:Q5,middleware:[N5(4),j5({apply({rects:A,elements:I}){Object.assign(I.floating.style,{minWidth:`${A.reference.width}px`})}}),P5({padding:0})]}),c=x.useRef(null),d=x.useRef(null),h=x.useRef({});x.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),h.current={})},[n]),x.useEffect(()=>{if(s!==-1){const A=Object.values(h.current)[s];if(A){const I=A.getAttribute("id");a(I),A.focus()}}},[s]);const p=()=>{const I=Object.values(h.current).length;i(U=>(U+1)%I)},m=()=>{const I=Object.values(h.current).length;i(U=>(U-1+I)%I)},y=()=>{i(0)},S=()=>{const I=Object.values(h.current).length;i(I-1)},g=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),w=(A,I)=>{A&&(I.stopPropagation(),I.preventDefault())},b=x.useCallback(A=>{let I=!1;switch(A.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),I=!0;break;case"Esc":case"Escape":v(),I=!0;break;case"Up":case"ArrowUp":g(),I=!0;break}w(I,A)},[v,g]),E=A=>{const U=Object.values(h.current).findIndex($=>$.id===A.currentTarget.getAttribute("id"));i(U)},R=x.useCallback((A,I)=>{let U=!1;if(A.shiftKey)A.key==="Tab"&&(v(),U=!0);else{switch(A.code){case"Escape":v();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),I==null||I()),U=!0;break;case"ArrowDown":case"Down":p(),U=!0;break;case"ArrowUp":case"Up":m(),U=!0;break;case"Home":y(),U=!0;break;case"End":S(),U=!0;break}w(U,A)}},[s,v]),k=x.useCallback(A=>{r(n!==!0),A.stopPropagation(),A.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function _(A,...I){I.forEach(U=>{typeof U=="function"?U(A):U!=null&&(U.current=A)})}function F(...A){return I=>{_(I,...A)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:F(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:k,onKeyDown:b,"aria-activedescendant":o},menuProps:{ref:F(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:E,onMenuItemClick:P,onMenuItemKeyDown:R},setVisible:r}},ab=ob,Y0=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=ab(r),d=t0(()=>c(!1)),h=x.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t,setVisible:c}),[s,i,o,a,l,u,t,c]),p=V("dropdown",{"w-100":t,overflow:n});return f.jsx(E0.Provider,{value:h,children:f.jsx("div",{ref:d,className:p,children:typeof e=="function"?e(o,u):e})})};Y0.displayName="Dropdown";const lb=Object.assign(Y0,{Trigger:p5,Menu:u5,Item:l5,Separator:h5,CheckboxItem:a5,RadioItem:f5,MenuGroup:c5}),pr=lb,Ms=({children:e,className:t,...n})=>{const r=V("grid",t);return f.jsx("div",{className:r,...n,children:e})},Z0=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=V({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return f.jsx(l,{className:u,...a,children:s})};Ms.displayName="Grid";Z0.displayName="Grid.Col";Ms.Col=Z0;const J0=x.forwardRef(({position:e=!0},t)=>{const[n]=Qa(),r=`${n}/loading/screen-loading.gif`,s=V("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:s,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});J0.displayName="LoadingScreen";const Ve=J0,ev=x.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=V("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});ev.displayName="Logo";const pp=ev;var ub=Object.defineProperty,cb=(e,t)=>{for(var n in t)ub(e,n,{get:t[n],enumerable:!0})},Nt={};cb(Nt,{assign:()=>hb,colors:()=>Tn,createStringInterpolator:()=>Qd,skipAnimation:()=>av,to:()=>ov,willAdvance:()=>Wd});var zd=Ii(),H=e=>_i(e,zd),Ud=Ii();H.write=e=>_i(e,Ud);var Ja=Ii();H.onStart=e=>_i(e,Ja);var Bd=Ii();H.onFrame=e=>_i(e,Bd);var Vd=Ii();H.onFinish=e=>_i(e,Vd);var Dr=[];H.setTimeout=(e,t)=>{const n=H.now()+t,r=()=>{const i=Dr.findIndex(o=>o.cancel==r);~i&&Dr.splice(i,1),Sn-=~i?1:0},s={time:n,handler:e,cancel:r};return Dr.splice(tv(n),0,s),Sn+=1,nv(),s};var tv=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);H.cancel=e=>{Ja.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};H.sync=e=>{xc=!0,H.batchedUpdates(e),xc=!1};H.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,H.onStart(n)}return r.handler=e,r.cancel=()=>{Ja.delete(n),t=null},r};var Hd=typeof window<"u"?window.requestAnimationFrame:()=>{};H.use=e=>Hd=e;H.now=typeof performance<"u"?()=>performance.now():Date.now;H.batchedUpdates=e=>e();H.catch=console.error;H.frameLoop="always";H.advance=()=>{H.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):sv()};var xn=-1,Sn=0,xc=!1;function _i(e,t){xc?(t.delete(e),e(0)):(t.add(e),nv())}function nv(){xn<0&&(xn=0,H.frameLoop!=="demand"&&Hd(rv))}function db(){xn=-1}function rv(){~xn&&(Hd(rv),H.batchedUpdates(sv))}function sv(){const e=xn;xn=H.now();const t=tv(xn);if(t&&(iv(Dr.splice(0,t),n=>n.handler()),Sn-=t),!Sn){db();return}Ja.flush(),zd.flush(e?Math.min(64,xn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function Ii(){let e=new Set,t=e;return{add(n){Sn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Sn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Sn-=t.size,iv(t,r=>r(n)&&e.add(r)),Sn+=e.size,t=e)}}}function iv(e,t){e.forEach(n=>{try{t(n)}catch(r){H.catch(r)}})}function Sc(){}var fb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Kt(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var B=(e,t)=>e.forEach(t);function Vt(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Ie=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Cs=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,ov,Tn=null,av=!1,Wd=Sc,hb=e=>{e.to&&(ov=e.to),e.now&&(H.now=e.now),e.colors!==void 0&&(Tn=e.colors),e.skipAnimation!=null&&(av=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&H.use(e.requestAnimationFrame),e.batchedUpdates&&(H.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wd=e.willAdvance),e.frameLoop&&(H.frameLoop=e.frameLoop)},Fs=new Set,ft=[],Xl=[],wa=0,el={get idle(){return!Fs.size&&!ft.length},start(e){wa>e.priority?(Fs.add(e),H.onStart(pb)):(lv(e),H(bc))},advance:bc,sort(e){if(wa)H.onFrame(()=>el.sort(e));else{const t=ft.indexOf(e);~t&&(ft.splice(t,1),uv(e))}},clear(){ft=[],Fs.clear()}};function pb(){Fs.forEach(lv),Fs.clear(),H(bc)}function lv(e){ft.includes(e)||uv(e)}function uv(e){ft.splice(mb(ft,t=>t.priority>e.priority),0,e)}function bc(e){const t=Xl;for(let n=0;n<ft.length;n++){const r=ft[n];wa=r.priority,r.idle||(Wd(r),r.advance(e),r.idle||t.push(r))}return wa=0,Xl=ft,Xl.length=0,ft=t,ft.length>0}function mb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var gb=(e,t,n)=>Math.min(Math.max(n,e),t),vb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Rt="[-+]?\\d*\\.?\\d+",xa=Rt+"%";function tl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yb=new RegExp("rgb"+tl(Rt,Rt,Rt)),wb=new RegExp("rgba"+tl(Rt,Rt,Rt,Rt)),xb=new RegExp("hsl"+tl(Rt,xa,xa)),Sb=new RegExp("hsla"+tl(Rt,xa,xa,Rt)),bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Eb=/^#([0-9a-fA-F]{6})$/,Rb=/^#([0-9a-fA-F]{8})$/;function kb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Eb.exec(e))?parseInt(t[1]+"ff",16)>>>0:Tn&&Tn[e]!==void 0?Tn[e]:(t=yb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|255)>>>0:(t=wb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|vp(t[4]))>>>0:(t=bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Rb.exec(e))?parseInt(t[1],16)>>>0:(t=Cb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=xb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|255)>>>0:(t=Sb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|vp(t[4]))>>>0:null}function Yl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Yl(s,r,e+1/3),o=Yl(s,r,e),a=Yl(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function mr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gp(e){return(parseFloat(e)%360+360)%360/360}function vp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function oo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yp(e){let t=kb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var di=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return di({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return Qd(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Ob(u,i);return Pb(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function Pb(e,t,n,r,s,i,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function Ob(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Nb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return gb(0,1,s/e)},Sa=1.70158,ao=Sa*1.525,wp=Sa+1,xp=2*Math.PI/3,Sp=2*Math.PI/4.5,lo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,jb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>wp*e*e*e-Sa*e*e,easeOutBack:e=>1+wp*Math.pow(e-1,3)+Sa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ao+1)*2*e-ao)/2:(Math.pow(2*e-2,2)*((ao+1)*(e*2-2)+ao)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Sp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Sp)/2+1,easeInBounce:e=>1-lo(1-e),easeOutBounce:lo,easeInOutBounce:e=>e<.5?(1-lo(1-2*e))/2:(1+lo(2*e-1))/2,steps:Nb},fi=Symbol.for("FluidValue.get"),Kr=Symbol.for("FluidValue.observers"),dt=e=>!!(e&&e[fi]),ze=e=>e&&e[fi]?e[fi]():e,bp=e=>e[Kr]||null;function Tb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function hi(e,t){const n=e[Kr];n&&n.forEach(r=>{Tb(r,t)})}var cv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");_b(this,e)}},_b=(e,t)=>dv(e,fi,t);function es(e,t){if(e[fi]){let n=e[Kr];n||dv(e,Kr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function pi(e,t){const n=e[Kr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Kr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var dv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),To=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ib=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cp=new RegExp(`(${To.source})(%|[a-z]+)`,"i"),Ab=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,nl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fv=e=>{const[t,n]=Lb(e);if(!t||qd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&nl.test(n))return fv(n);if(n)return n}return e},Lb=e=>{const t=nl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Zl,Mb=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,hv=e=>{Zl||(Zl=Tn?new RegExp(`(${Object.keys(Tn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>ze(i).replace(nl,fv).replace(Ib,yp).replace(Zl,yp)),n=t.map(i=>i.match(To).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>di({...e,output:i}));return i=>{var l;const o=!Cp.test(t[0])&&((l=t.find(u=>Cp.test(u)))==null?void 0:l.replace(To,""));let a=0;return t[0].replace(To,()=>`${s[a++](i)}${o||""}`).replace(Ab,Mb)}},Kd="react-spring: ",pv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Kd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Db=pv(console.warn);function Fb(){Db(`${Kd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $b=pv(console.warn);function zb(){$b(`${Kd}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function rl(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&nl.test(e)||e in(Tn||{}))}var Xn=qd()?x.useEffect:x.useLayoutEffect,Ub=()=>{const e=x.useRef(!1);return Xn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Gd(){const e=x.useState()[1],t=Ub();return()=>{t.current&&e(Math.random())}}function Bb(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Vb(t,i.inputs)||(i={inputs:t,result:e()}):i=n,x.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Vb(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Xd=e=>x.useEffect(e,Hb),Hb=[];function Cc(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var mi=Symbol.for("Animated:node"),qb=e=>!!e&&e[mi]===e,Dt=e=>e&&e[mi],Yd=(e,t)=>fb(e,mi,t),sl=e=>e&&e[mi]&&e[mi].getPayload(),mv=class{constructor(){Yd(this,this)}getPayload(){return this.payload||[]}},Ai=class extends mv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ai(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},gi=class extends Ai{constructor(e){super(0),this._string=null,this._toString=di({output:[e,e]})}static create(e){return new gi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=di({output:[this.getValue(),e]})),this._value=0,super.reset()}},ba={dependencies:null},il=class extends mv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Vt(this.source,(n,r)=>{qb(n)?t[r]=n.getValue(e):dt(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Vt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ba.dependencies&&dt(e)&&ba.dependencies.add(e);const t=sl(e);t&&B(t,n=>this.add(n))}},gv=class extends il{constructor(e){super(e)}static create(e){return new gv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Qb)),!0)}};function Qb(e){return(rl(e)?gi:Ai).create(e)}function Ec(e){const t=Dt(e);return t?t.constructor:j.arr(e)?gv:rl(e)?gi:Ai}var Ep=(e,t)=>{const n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((r,s)=>{const i=x.useRef(null),o=n&&x.useCallback(m=>{i.current=Gb(s,m)},[s]),[a,l]=Kb(r,t),u=Gd(),c=()=>{const m=i.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,a.getValue(!0)):!1)===!1&&u()},d=new Wb(c,l),h=x.useRef();Xn(()=>(h.current=d,B(l,m=>es(m,d)),()=>{h.current&&(B(h.current.deps,m=>pi(m,h.current)),H.cancel(h.current.update))})),x.useEffect(c,[]),Xd(()=>()=>{const m=h.current;B(m.deps,y=>pi(y,m))});const p=t.getComponentProps(a.getValue());return x.createElement(e,{...p,ref:o})})},Wb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&H.write(this.update)}};function Kb(e,t){const n=new Set;return ba.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new il(e),ba.dependencies=null,[e,n]}function Gb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Rp=Symbol.for("AnimatedComponent"),Xb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new il(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=kp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Ep(o,s)):o=o[Rp]||(o[Rp]=Ep(o,s)),o.displayName=`Animated(${a})`,o};return Vt(e,(o,a)=>{j.arr(e)&&(a=kp(o)),i[a]=i(o)}),{animated:i}},kp=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function Ue(e,...t){return j.fun(e)?e(...t):e}var $s=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):Ie(e).includes(t))),vv=(e,t)=>j.obj(e)?t&&e[t]:e,yv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Yb=e=>e,ol=(e,t=Yb)=>{let n=Zb;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);j.und(i)||(r[s]=i)}return r},Zb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Jb={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function eC(e){const t={};let n=0;if(Vt(e,(r,s)=>{Jb[s]||(t[s]=r,n++)}),n)return t}function Zd(e){const t=eC(e);if(t){const n={to:t};return Vt(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function vi(e){return e=ze(e),j.arr(e)?e.map(vi):rl(e)?Nt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wv(e){for(const t in e)return!0;return!1}function Rc(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function kc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function xv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var tC={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Pc={...tC.default,mass:1,damping:1,easing:jb.linear,clamp:!1},nC=class{constructor(){this.velocity=0,Object.assign(this,Pc)}};function rC(e,t,n){n&&(n={...n},Pp(n,t),t={...n,...t}),Pp(e,t),Object.assign(e,t);for(const o in Pc)e[o]==null&&(e[o]=Pc[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return j.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function Pp(e,t){if(!j.und(t.decay))e.duration=void 0;else{const n=!j.und(t.tension)||!j.und(t.friction);(n||!j.und(t.frequency)||!j.und(t.damping)||!j.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Op=[],sC=class{constructor(){this.changed=!1,this.values=Op,this.toValues=null,this.fromValues=Op,this.config=new nC,this.immediate=!1}};function Sv(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,c=$s(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{j.und(n.pause)||(s.paused=$s(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=s.paused||$s(m,t)),l=Ue(n.delay||0,t),m?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-H.now()}function h(){l>0&&!Nt.skipAnimation?(s.delayed=!0,u=H.setTimeout(p,l),s.pauseQueue.add(d),s.timeouts.add(u)):p()}function p(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(m){a(m)}}})}var Jd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fr(e.get()):t.every(n=>n.noop)?bv(e.get()):Et(e.get(),t.every(n=>n.finished)),bv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Et=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fr=e=>({value:e,cancelled:!0,finished:!1});function Cv(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=ol(t,(S,g)=>g==="onRest"?void 0:S);let c,d;const h=new Promise((S,g)=>(c=S,d=g)),p=S=>{const g=s<=(n.cancelId||0)&&Fr(r)||s!==n.asyncId&&Et(r,!1);if(g)throw S.result=g,d(S),S},m=(S,g)=>{const v=new Np,w=new jp;return(async()=>{if(Nt.skipAnimation)throw yi(n),w.result=Et(r,!1),d(w),w;p(v);const b=j.obj(S)?{...S}:{...g,to:S};b.parentId=s,Vt(u,(R,k)=>{j.und(b[k])&&(b[k]=R)});const E=await r.start(b);return p(v),n.paused&&await new Promise(R=>{n.resumeQueue.add(R)}),E})()};let y;if(Nt.skipAnimation)return yi(n),Et(r,!1);try{let S;j.arr(e)?S=(async g=>{for(const v of g)await m(v)})(e):S=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([S.then(c),h]),y=Et(r.get(),!0,!1)}catch(S){if(S instanceof Np)y=S.result;else if(S instanceof jp)y=S.result;else throw S}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return j.fun(o)&&H.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function yi(e,t){Ds(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Np=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},jp=class extends Error{constructor(){super("SkipAnimationSignal")}},Oc=e=>e instanceof ef,iC=1,ef=class extends cv{constructor(){super(...arguments),this.id=iC++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Dt(this);return e&&e.getValue()}to(...e){return Nt.to(this,e)}interpolate(...e){return Fb(),Nt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){hi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||el.sort(this),hi(this,{type:"priority",parent:this,priority:e})}},or=Symbol.for("SpringPhase"),Ev=1,Nc=2,jc=4,Jl=e=>(e[or]&Ev)>0,dn=e=>(e[or]&Nc)>0,ps=e=>(e[or]&jc)>0,Tp=(e,t)=>t?e[or]|=Nc|Ev:e[or]&=~Nc,_p=(e,t)=>t?e[or]|=jc:e[or]&=~jc,oC=class extends ef{constructor(e,t){if(super(),this.animation=new sC,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!j.und(e)||!j.und(t)){const n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(dn(this)||this._state.asyncTo)||ps(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=Dt(this);return e instanceof Ai?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Jl(this)}get isAnimating(){return dn(this)}get isPaused(){return ps(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=sl(r.to);!o&&dt(r.to)&&(s=Ie(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==gi?1:o?o[c].lastPosition:s[c];let h=r.immediate,p=d;if(!h){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let m=u.elapsedTime+=e;const y=r.fromValues[c],S=u.v0!=null?u.v0:u.v0=j.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const v=i.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(j.und(i.duration))if(i.decay){const w=i.decay===!0?.998:i.decay,b=Math.exp(-(1-w)*m);p=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-p)<=v,g=S*b}else{g=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,E=!j.und(b),R=y==d?u.v0>0:y<d;let k,P=!1;const _=1,F=Math.ceil(e/_);for(let A=0;A<F&&(k=Math.abs(g)>w,!(!k&&(h=Math.abs(d-p)<=v,h)));++A){E&&(P=p==d||p>d==R,P&&(g=-g*b,p=d));const I=-i.tension*1e-6*(p-d),U=-i.friction*.001*g,$=(I+U)/i.mass;g=g+$*_,p=p+g*_}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,m=u.elapsedTime+=e)),w=(i.progress||0)+m/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),p=y+i.easing(w)*(d-y),g=(p-u.lastPosition)/e,h=w==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=Dt(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return H.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dn(this)){const{to:e,config:t}=this.animation;H.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Jd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),yi(this._state,e&&this._lastCallId),H.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=j.obj(n)?n[t]:n,(n==null||Rc(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Jl(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),j.und(r)?Dt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ol(e,(o,a)=>/^on/.test(a)?vv(o,n):o)),Ap(this,e,"onProps"),gs(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Sv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(_p(this,!0),Cs(i.pauseQueue),gs(this,"onPause",Et(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(_p(this,!1),dn(this)&&this._resume(),Cs(i.resumeQueue),gs(this,"onResume",Et(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Rv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fr(this));const r=!j.und(e.to),s=!j.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fr(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;s&&!r&&(!t.default||j.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Kt(d,u);h&&(a.from=d),d=ze(d);const p=!Kt(c,l);p&&this._focus(c);const m=Rc(t.to),{config:y}=a,{decay:S,velocity:g}=y;(r||s)&&(y.velocity=0),t.config&&!m&&rC(y,Ue(t.config,i),t.config!==o.config?Ue(o.config,i):void 0);let v=Dt(this);if(!v||j.und(c))return n(Et(this,!0));const w=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=w?d:this.get(),E=vi(c),R=j.num(E)||j.arr(E)||rl(E),k=!m&&(!R||$s(o.immediate||t.immediate,i));if(p){const A=Ec(c);if(A!==v.constructor)if(k)v=this._set(E);else throw Error(`Cannot animate between ${v.constructor.name} and ${A.name}, as the "to" prop suggests`)}const P=v.constructor;let _=dt(c),F=!1;if(!_){const A=w||!Jl(this)&&h;(p||A)&&(F=Kt(vi(b),E),_=!F),(!Kt(a.immediate,k)&&!k||!Kt(y.decay,S)||!Kt(y.velocity,g))&&(_=!0)}if(F&&dn(this)&&(a.changed&&!w?_=!0:_||this._stop(l)),!m&&((_||dt(l))&&(a.values=v.getPayload(),a.toValues=dt(c)?null:P==gi?[1]:Ie(E)),a.immediate!=k&&(a.immediate=k,!k&&!w&&this._set(l)),_)){const{onRest:A}=a;B(lC,U=>Ap(this,t,U));const I=Et(this,ms(this,l));Cs(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&H.batchedUpdates(()=>{var U;a.changed=!w,A==null||A(I,this),w?Ue(o.onRest,I):(U=a.onStart)==null||U.call(a,I,this)})}w&&this._set(b),m?n(Cv(t.to,t,this._state,this)):_?this._start():dn(this)&&!p?this._pendingCalls.add(n):n(bv(b))}_focus(e){const t=this.animation;e!==t.to&&(bp(this)&&this._detach(),t.to=e,bp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;dt(t)&&(es(t,this),Oc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;dt(e)&&pi(e,this)}_set(e,t=!0){const n=ze(e);if(!j.und(n)){const r=Dt(this);if(!r||!Kt(n,r.getValue())){const s=Ec(n);!r||r.constructor!=s?Yd(this,s.create(n)):r.setValue(n),r&&H.batchedUpdates(()=>{this._onChange(n,t)})}}return Dt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gs(this,"onStart",Et(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ue(this.animation.onChange,e,this)),Ue(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Dt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),dn(this)||(Tp(this,!0),ps(this)||this._resume())}_resume(){Nt.skipAnimation?this.finish():el.start(this)}_stop(e,t){if(dn(this)){Tp(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),hi(this,{type:"idle",parent:this});const r=t?Fr(this.get()):Et(this.get(),ms(this,e??n.to));Cs(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=vi(t),r=vi(e.get());return Kt(r,n)}function Rv(e,t=e.loop,n=e.to){const r=Ue(t);if(r){const s=r!==!0&&Zd(r),i=(s||e).reverse,o=!s||s.reset;return wi({...e,loop:t,default:!1,pause:void 0,to:!i||Rc(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function wi(e){const{to:t,from:n}=e=Zd(e),r=new Set;return j.obj(t)&&Ip(t,r),j.obj(n)&&Ip(n,r),e.keys=r.size?Array.from(r):null,e}function aC(e){const t=wi(e);return j.und(t.default)&&(t.default=ol(t)),t}function Ip(e,t){Vt(e,(n,r)=>n!=null&&t.add(r))}var lC=["onStart","onRest","onChange","onPause","onResume"];function Ap(e,t,n){e.animation[n]=t[n]!==yv(t,n)?vv(t[n],e.key):void 0}function gs(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var uC=["onStart","onChange","onRest"],cC=1,kv=class{constructor(e,t){this.id=cC++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(wi(e)),this}start(e){let{queue:t}=this;return e?t=Ie(e).map(wi):this.queue=[],this._flush?this._flush(this,t):(Tv(this,t),Tc(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;B(Ie(t),r=>n[r].stop(!!e))}else yi(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(j.und(e))this.start({pause:!0});else{const t=this.springs;B(Ie(e),n=>t[n].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;B(Ie(e),n=>t[n].resume())}return this}each(e){Vt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Ds(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Ds(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Ds(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;H.onFrame(this._onFrame)}};function Tc(e,t){return Promise.all(t.map(n=>Pv(e,n))).then(n=>Jd(e,n))}async function Pv(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=j.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=j.arr(s)||j.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):B(uC,y=>{const S=t[y];if(j.fun(S)){const g=e._events[y];t[y]=({finished:v,cancelled:w})=>{const b=g.get(S);b?(v||(b.finished=!1),w&&(b.cancelled=!0)):g.set(S,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Cs(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),p=t.cancel===!0||yv(t,"cancel")===!0;(c||p&&d.asyncId)&&h.push(Sv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Sc,resume:Sc,start(y,S){p?(yi(d,e._lastAsyncId),S(Fr(e))):(y.onRest=a,S(Cv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const m=Jd(e,await Promise.all(h));if(o&&m.finished&&!(n&&m.noop)){const y=Rv(t,o,s);if(y)return Tv(e,[y]),Pv(e,y,!0)}return l&&H.batchedUpdates(()=>l(m,e,e.item)),m}function _c(e,t){const n={...e.springs};return t&&B(Ie(t),r=>{j.und(r.keys)&&(r=wi(r)),j.obj(r.to)||(r={...r,to:void 0}),jv(n,r,s=>Nv(s))}),Ov(e,n),n}function Ov(e,t){Vt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Nv(e,t){const n=new oC;return n.key=e,t&&es(n,t),n}function jv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Tv(e,t){B(t,n=>{jv(e.springs,n,r=>Nv(r,e))})}var Li=({children:e,...t})=>{const n=x.useContext(Ca),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Bb(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Ca;return x.createElement(i,{value:t},e)},Ca=dC(Li,{});Li.Provider=Ca.Provider;Li.Consumer=Ca.Consumer;function dC(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var _v=()=>{const e=[],t=function(r){zb();const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return B(e,r=>r.pause(...arguments)),this},t.resume=function(){return B(e,r=>r.resume(...arguments)),this},t.set=function(r){B(e,(s,i)=>{const o=j.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return B(e,r=>r.stop(...arguments)),this},t.update=function(r){return B(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return j.fun(r)?r(i,s):r};return t._getProps=n,t};function fC(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),i=x.useRef(0),o=Gd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const w=_c(g,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(E=>!g.springs[E])?Tc(g,v):new Promise(E=>{Ov(g,w),a.queue.push(()=>{E(Tc(g,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Cc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),g=>{kc(g,s),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,v){for(let w=g;w<v;w++){const b=l.current[w]||(l.current[w]=new kv(null,a.flush)),E=r?r(w,b):t[w];E&&(u[w]=aC(E))}}const h=l.current.map((g,v)=>_c(g,u[v])),p=x.useContext(Li),m=Cc(p),y=p!==m&&wv(p);Xn(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],B(g,v=>v())),B(l.current,(v,w)=>{s==null||s.add(v),y&&v.start({default:p});const b=u[w];b&&(xv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Xd(()=>()=>{B(a.ctrls,g=>g.stop(!0))});const S=h.map(g=>({...g}));return s?[S,s]:S}function l8(e,t){const n=j.fun(e),[[r],s]=fC(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function tf(e,t,n){const r=j.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),p=Ie(e),m=[],y=x.useRef(null),S=s?null:y.current;Xn(()=>{y.current=m}),Xd(()=>(B(m,$=>{h==null||h.add($.ctrl),$.ctrl.ref=h}),()=>{B(y.current,$=>{$.expired&&clearTimeout($.expirationId),kc($.ctrl,h),$.ctrl.stop(!0)})}));const g=pC(p,r?r():t,S),v=s&&y.current||[];Xn(()=>B(v,({ctrl:$,item:C,key:O})=>{kc($,h),Ue(u,C,O)}));const w=[];if(S&&B(S,($,C)=>{$.expired?(clearTimeout($.expirationId),v.push($)):(C=w[C]=g.indexOf($.key),~C&&(m[C]=$))}),B(p,($,C)=>{m[C]||(m[C]={key:g[C],item:$,phase:"mount",ctrl:new kv},m[C].ctrl.item=$)}),w.length){let $=-1;const{leave:C}=r?r():t;B(w,(O,L)=>{const N=S[L];~O?($=m.indexOf(N),m[$]={...N,item:p[O]}):C&&m.splice(++$,0,N)})}j.fun(i)&&m.sort(($,C)=>i($.item,C.item));let b=-o;const E=Gd(),R=ol(t),k=new Map,P=x.useRef(new Map),_=x.useRef(!1);B(m,($,C)=>{const O=$.key,L=$.phase,N=r?r():t;let D,M;const K=Ue(N.delay||0,O);if(L=="mount")D=N.enter,M="enter";else{const xe=g.indexOf(O)<0;if(L!="leave")if(xe)D=N.leave,M="leave";else if(D=N.update)M="update";else return;else if(!xe)D=N.enter,M="enter";else return}if(D=Ue(D,$.item,C),D=j.obj(D)?Zd(D):{to:D},!D.config){const xe=d||R.config;D.config=Ue(xe,$.item,C,M)}b+=o;const G={...R,delay:K+b,ref:c,immediate:N.immediate,reset:!1,...D};if(M=="enter"&&j.und(G.from)){const xe=r?r():t,X=j.und(xe.initial)||S?xe.from:xe.initial;G.from=Ue(X,$.item,C)}const{onResolve:le}=G;G.onResolve=xe=>{Ue(le,xe);const X=y.current,me=X.find(_t=>_t.key===O);if(me&&!(xe.cancelled&&me.phase!="update")&&me.ctrl.idle){const _t=X.every(It=>It.ctrl.idle);if(me.phase=="leave"){const It=Ue(a,me.item);if(It!==!1){const un=It===!0?0:It;if(me.expired=!0,!_t&&un>0){un<=2147483647&&(me.expirationId=setTimeout(E,un));return}}}_t&&X.some(It=>It.expired)&&(P.current.delete(me),l&&(_.current=!0),E())}};const we=_c($.ctrl,G);M==="leave"&&l?P.current.set($,{phase:M,springs:we,payload:G}):k.set($,{phase:M,springs:we,payload:G})});const F=x.useContext(Li),A=Cc(F),I=F!==A&&wv(F);Xn(()=>{I&&B(m,$=>{$.ctrl.start({default:F})})},[F]),B(k,($,C)=>{if(P.current.size){const O=m.findIndex(L=>L.key===C.key);m.splice(O,1)}}),Xn(()=>{B(P.current.size?P.current:k,({phase:$,payload:C},O)=>{const{ctrl:L}=O;O.phase=$,h==null||h.add(L),I&&$=="enter"&&L.start({default:F}),C&&(xv(L,C.ref),(L.ref||h)&&!_.current?L.update(C):(L.start(C),_.current&&(_.current=!1)))})},s?void 0:n);const U=$=>x.createElement(x.Fragment,null,m.map((C,O)=>{const{springs:L}=k.get(C)||C.ctrl,N=$({...L},C.item,C,O);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(C.key)||j.num(C.key)?C.key:C.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var hC=1;function pC(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):hC++})}return j.und(n)?e:j.fun(n)?e.map(n):Ie(n)}var mC=class extends ef{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=di(...t);const n=this._get(),r=Ec(n);Yd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kt(t,n)||(Dt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Lp(this._active)&&eu(this)}_get(){const e=j.arr(this.source)?this.source.map(ze):Ie(ze(this.source));return this.calc(...e)}_start(){this.idle&&!Lp(this._active)&&(this.idle=!1,B(sl(this),e=>{e.done=!1}),Nt.skipAnimation?(H.batchedUpdates(()=>this.advance()),eu(this)):el.start(this))}_attach(){let e=1;B(Ie(this.source),t=>{dt(t)&&es(t,this),Oc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){B(Ie(this.source),e=>{dt(e)&&pi(e,this)}),this._active.clear(),eu(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ie(this.source).reduce((t,n)=>Math.max(t,(Oc(n)?n.priority:0)+1),0))}};function gC(e){return e.idle!==!1}function Lp(e){return!e.size||Array.from(e).every(gC)}function eu(e){e.idle||(e.idle=!0,B(sl(e),t=>{t.done=!0}),hi(e,{type:"idle",parent:e}))}Nt.assign({createStringInterpolator:hv,to:(e,t)=>new mC(e,t)});var Iv=/^--/;function vC(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Iv.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Mp={};function yC(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Mp[d]||(Mp[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const d in r)if(r.hasOwnProperty(d)){const h=vC(d,r[d]);Iv.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var zs={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},wC=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xC=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(xC.forEach(n=>e[wC(n,t)]=e[t]),e),zs);var SC=/^(matrix|translate|scale|rotate|skew)/,bC=/^(translate)/,CC=/^(rotate|skew)/,tu=(e,t)=>j.num(e)&&e!==0?e+t:e,_o=(e,t)=>j.arr(e)?e.every(n=>_o(n,t)):j.num(e)?e===t:parseFloat(e)===t,EC=class extends il{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>tu(a,"px")).join(",")})`,_o(o,0)])),Vt(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(SC.test(a)){if(delete r[a],j.und(o))return;const l=bC.test(a)?"px":CC.test(a)?"deg":"";s.push(Ie(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${tu(h,l)})`,_o(h,0)]:u=>[`${a}(${u.map(c=>tu(c,l)).join(",")})`,_o(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new RC(s,i)),super(r)}},RC=class extends cv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return B(this.inputs,(n,r)=>{const s=ze(n[0]),[i,o]=this.transforms[r](j.arr(s)?s:n.map(ze));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&B(this.inputs,t=>B(t,n=>dt(n)&&es(n,this)))}observerRemoved(e){e==0&&B(this.inputs,t=>B(t,n=>dt(n)&&pi(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),hi(this,e)}},kC=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Nt.assign({batchedUpdates:Pi.unstable_batchedUpdates,createStringInterpolator:hv,colors:vb});var PC=Xb(kC,{applyAnimatedValues:yC,createAnimatedStyle:e=>new EC(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ea=PC.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const Av=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Lv=e=>{const{ariaDescriptionId:t}=Av(),{children:n,className:r}=e,s=V("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Lv.displayName="Modal.Body";const OC=Lv,Mv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Mv.displayName="Modal.Footer";const NC=Mv,Dv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=Av(),i=x.useRef(null);return x.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx(Ka,{ref:i,"aria-label":"Close",color:"tertiary",icon:f.jsx(J4,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Dv.displayName="Modal.Header";const jC=Dv,Fv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Fv.displayName="Modal.Subtitle";const TC=Fv,$v=x.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,c=`aria_label_${n}`,d=`aria_desc_${n}`,h=t0(s),p=U4();$4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const m=V("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=V("modal-dialog"),S={ariaLabelId:c,ariaDescriptionId:d,focusId:l},g=tf(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(nf.Provider,{value:S,children:g((v,w)=>f.jsxs(f.Fragment,{children:[w&&f.jsx(Ea.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:m,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,w&&(p.current=b)},className:y,children:f.jsx("div",{className:"modal-content",children:u})})}),w&&f.jsx(Ea.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),_C=Object.assign($v,{Header:jC,Subtitle:TC,Body:OC,Footer:NC});$v.displayName="Modal";const bn=_C,IC=({children:e,className:t})=>{const n=V("popover-body",t);return f.jsx("div",{className:n,children:e})},AC=({children:e,className:t})=>{const n=V("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=V("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((l,u)=>u&&f.jsx(Ea.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function LC(e,t,n,r,s,i,o,a,l){const u=S=>{S.preventDefault(),s==null||s(e),S.stopPropagation()},c=S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),s==null||s(e),S.stopPropagation())},d=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:S=>{S.preventDefault(),d(),S.stopPropagation()},handleItemFoldUnfoldKeyDown:S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),d(),S.stopPropagation())},handleItemFocus:S=>{S.preventDefault(),a==null||a(e)},handleItemBlur:S=>{S.preventDefault(),l==null||l(e)}}}const zv=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,p]=x.useState(!1),{handleItemClick:m,handleItemKeyDown:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:w}=LC(t,n,h,p,o,a,l,u,c);x.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const R=d[d.length-1];d.some(k=>k===t&&t!==R?(p(!0),k===t):(p(!1),!1))}else p(!1)},[t,d]);const b=s?16:12,E=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:S,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(tp,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(gc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(tp,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:m,onKeyDown:y,onFocus:v,onBlur:w,children:[s&&f.jsx(c3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:E()}):E()};zv.displayName="TreeItem";const MC=zv,Uv=x.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=x.useState("default");x.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=g=>{c(g),r==null||r(g)},h=g=>{s==null||s(g)},p=g=>{i==null||i(g)},m=g=>{o==null||o(g)},y=g=>{a==null||a(g)},S=g=>f.jsx(MC,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:d,onItemFold:h,onItemUnfold:p,onItemFocus:m,onItemBlur:y,children:Array.isArray(g.children)?g.children.map(v=>S(v)):null},g.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});Uv.displayName="TreeView";const DC=Uv,Bv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Bv.displayName="VisuallyHidden";const Es=Bv,FC=()=>{const e=Ls("fr.openent.zimbra.controllers.ZimbraController|view"),t=Ls("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=x.useState(0),[s,i]=x.useState(""),o=x.useCallback(async()=>{if(e)try{const l=await Y.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await Y.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=x.useCallback(()=>{let l="";Y.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),i(l)},[t]);return x.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},$C=FC;function nu({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ru({children:e,className:t,...n}){const r=V("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Dp({children:e,className:t,...n}){const r=V("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ce=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ce.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=V("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Es,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const zC=()=>{const{t:e}=pe();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},UC=({bookmarkedApps:e})=>{const{t}=pe();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(vc,{app:n,size:"32"})},r))]})};var sf={},of={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(of);var q={},zn=_e&&_e.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=_e&&_e.__assign||function(){return Us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Us.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Ke=of,af=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),lf(this,t)},e}();q.Node=af;var al=function(e){zn(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(af);q.DataNode=al;var Vv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(al);q.Text=Vv;var Hv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(al);q.Comment=Hv;var qv=function(e){zn(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=Ke.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(al);q.ProcessingInstruction=qv;var ll=function(e){zn(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(af);q.NodeWithChildren=ll;var Qv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(ll);q.CDATA=Qv;var Wv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(ll);q.Document=Wv;var Kv=function(e){zn(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?Ke.ElementType.Script:n==="style"?Ke.ElementType.Style:Ke.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(ll);q.Element=Kv;function Gv(e){return(0,Ke.isTag)(e)}q.isTag=Gv;function Xv(e){return e.type===Ke.ElementType.CDATA}q.isCDATA=Xv;function Yv(e){return e.type===Ke.ElementType.Text}q.isText=Yv;function Zv(e){return e.type===Ke.ElementType.Comment}q.isComment=Zv;function Jv(e){return e.type===Ke.ElementType.Directive}q.isDirective=Jv;function ey(e){return e.type===Ke.ElementType.Root}q.isDocument=ey;function BC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=BC;function lf(e,t){t===void 0&&(t=!1);var n;if(Yv(e))n=new Vv(e.data);else if(Zv(e))n=new Hv(e.data);else if(Gv(e)){var r=t?su(e.children):[],s=new Kv(e.name,Us({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Us({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Us({},e["x-attribsPrefix"])),n=s}else if(Xv(e)){var r=t?su(e.children):[],i=new Qv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(ey(e)){var r=t?su(e.children):[],o=new Wv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Jv(e)){var a=new qv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=lf;function su(e){for(var t=e.map(function(r){return lf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=_e&&_e.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=_e&&_e.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=of,s=q;n(q,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new s.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new s.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(sf);var Fp="html",$p="head",uo="body",VC=/<([a-zA-Z]+[0-9]?)/,zp=/<head[^]*>/i,Up=/<body[^]*>/i,Ra=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Ic=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Bp=typeof window=="object"&&window.DOMParser;if(typeof Bp=="function"){var HC=new Bp,qC="text/html";Ic=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),HC.parseFromString(e,qC)},Ra=Ic}if(typeof document=="object"&&document.implementation){var co=document.implementation.createHTMLDocument();Ra=function(e,t){if(t){var n=co.documentElement.querySelector(t);return n.innerHTML=e,co}return co.documentElement.innerHTML=e,co}}var iu=typeof document=="object"?document.createElement("template"):{},Ac;iu.content&&(Ac=function(e){return iu.innerHTML=e,iu.content.childNodes});function QC(e){var t,n=e.match(VC);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case Fp:return r=Ic(e),zp.test(e)||(s=r.querySelector($p),s&&s.parentNode.removeChild(s)),Up.test(e)||(s=r.querySelector(uo),s&&s.parentNode.removeChild(s)),r.querySelectorAll(Fp);case $p:case uo:return r=Ra(e),i=r.querySelectorAll(t),Up.test(e)&&zp.test(e)?i[0].parentNode.childNodes:i;default:return Ac?Ac(e):(s=Ra(e,uo).querySelector(uo),s.childNodes)}}var WC=QC,uf={},ty={};ty.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var ul=sf,KC=ty,Vp=KC.CASE_SENSITIVE_TAG_NAMES,GC=ul.Comment,XC=ul.Element,YC=ul.ProcessingInstruction,ZC=ul.Text,ny={},ou;for(var au=0,JC=Vp.length;au<JC;au++)ou=Vp[au],ny[ou.toLowerCase()]=ou;function eE(e){return ny[e]}function ry(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function tE(e){e=e.toLowerCase();var t=eE(e);return t||e}function sy(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=tE(a.nodeName),l=new XC(s,ry(a.attributes)),l.children=sy(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new ZC(a.nodeValue);break;case 8:l=new GC(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new YC(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}uf.formatAttributes=ry;uf.formatDOM=sy;var nE=WC,rE=uf,sE=rE.formatDOM,iE=/<(![a-zA-Z\s]+)>/;function oE(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(iE),n;return t&&t[1]&&(n=t[1]),sE(nE(e),null,n)}var aE=oE,wt={},cl={},lE=0;cl.SAME=lE;var uE=1;cl.CAMELCASE=uE;cl.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(wt,"__esModule",{value:!0});function cE(e,t){return dE(e)||fE(e,t)||hE(e,t)||pE()}function dE(e){if(Array.isArray(e))return e}function fE(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function hE(e,t){if(e){if(typeof e=="string")return Hp(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 Hp(e,t)}}function Hp(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 pE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
226
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var iy=0,Un=1,dl=2,fl=3,cf=4,oy=5,ay=6;function mE(e){return Ee.hasOwnProperty(e)?Ee[e]:null}function De(e,t,n,r,s,i,o){this.acceptsBooleans=t===dl||t===fl||t===cf,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ee={},gE=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];gE.forEach(function(e){Ee[e]=new De(e,iy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=cE(e,2),n=t[0],r=t[1];Ee[n]=new De(n,Un,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ee[e]=new De(e,dl,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ee[e]=new De(e,dl,!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"].forEach(function(e){Ee[e]=new De(e,fl,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ee[e]=new De(e,fl,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ee[e]=new De(e,cf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ee[e]=new De(e,ay,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ee[e]=new De(e,oy,!1,e.toLowerCase(),null,!1,!1)});var df=/[\-\:]([a-z])/g,ff=function(t){return t[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"].forEach(function(e){var t=e.replace(df,ff);Ee[t]=new De(t,Un,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(df,ff);Ee[t]=new De(t,Un,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(df,ff);Ee[t]=new De(t,Un,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ee[e]=new De(e,Un,!1,e.toLowerCase(),null,!1,!1)});var vE="xlinkHref";Ee[vE]=new De("xlinkHref",Un,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ee[e]=new De(e,Un,!1,e.toLowerCase(),null,!0,!0)});var hf=cl,yE=hf.CAMELCASE,wE=hf.SAME,qp=hf.possibleStandardNames,xE=":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",SE=xE+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",bE=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+SE+"]*$")),CE=Object.keys(qp).reduce(function(e,t){var n=qp[t];return n===wE?e[t]=t:n===yE?e[t.toLowerCase()]=t:e[t]=n,e},{});wt.BOOLEAN=fl;wt.BOOLEANISH_STRING=dl;wt.NUMERIC=oy;wt.OVERLOADED_BOOLEAN=cf;wt.POSITIVE_NUMERIC=ay;wt.RESERVED=iy;wt.STRING=Un;wt.getPropertyInfo=mE;wt.isCustomAttribute=bE;wt.possibleStandardNames=CE;var ly={},pf={exports:{}},Qp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EE=/\n/g,RE=/^\s*/,kE=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,PE=/^:\s*/,OE=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,NE=/^[;\s]*/,jE=/^\s+|\s+$/g,TE=`
227
- `,Wp="/",Kp="*",qn="",_E="comment",IE="declaration",AE=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(m){var y=m.match(EE);y&&(n+=y.length);var S=m.lastIndexOf(TE);r=~S?m.length-S:r+m.length}function i(){var m={line:n,column:r};return function(y){return y.position=new o(m),u(),y}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(m){var y=m.exec(e);if(y){var S=y[0];return s(S),e=e.slice(S.length),y}}function u(){l(RE)}function c(m){var y;for(m=m||[];y=d();)y!==!1&&m.push(y);return m}function d(){var m=i();if(!(Wp!=e.charAt(0)||Kp!=e.charAt(1))){for(var y=2;qn!=e.charAt(y)&&(Kp!=e.charAt(y)||Wp!=e.charAt(y+1));)++y;if(y+=2,qn===e.charAt(y-1))return a("End of comment missing");var S=e.slice(2,y-2);return r+=2,s(S),e=e.slice(y),r+=2,m({type:_E,comment:S})}}function h(){var m=i(),y=l(kE);if(y){if(d(),!l(PE))return a("property missing ':'");var S=l(OE),g=m({type:IE,property:Gp(y[0].replace(Qp,qn)),value:S?Gp(S[0].replace(Qp,qn)):qn});return l(NE),g}}function p(){var m=[];c(m);for(var y;y=h();)y!==!1&&(m.push(y),c(m));return m}return u(),p()};function Gp(e){return e?e.replace(jE,qn):qn}var LE=AE;function uy(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=LE(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}pf.exports=uy;pf.exports.default=uy;var ME=pf.exports,hl={};hl.__esModule=!0;hl.camelCase=void 0;var DE=/^--[a-zA-Z0-9-]+$/,FE=/-([a-z])/g,$E=/^[^-]+$/,zE=/^-(webkit|moz|ms|o|khtml)-/,UE=/^-(ms)-/,BE=function(e){return!e||$E.test(e)||DE.test(e)},VE=function(e,t){return t.toUpperCase()},Xp=function(e,t){return"".concat(t,"-")},HE=function(e,t){return t===void 0&&(t={}),BE(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(UE,Xp):e=e.replace(zE,Xp),e.replace(FE,VE))};hl.camelCase=HE;(function(e){var t=_e&&_e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(ME),r=hl;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(ly);var qE=x,QE=ly.default;function WE(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function KE(e,t){if(e.indexOf("-")===-1)return t&&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 GE={reactCompat:!0};function XE(e,t){if(e!=null)try{t.style=QE(e,GE)}catch{t.style={}}}var YE=qE.version.split(".")[0]>=16,cy=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function ZE(e){return!cy.has(e.name)}var dy={PRESERVE_CUSTOM_ATTRIBUTES:YE,invertObject:WE,isCustomComponent:KE,setStyleProp:XE,canTextBeChildOfNode:ZE,elementsWithNoTextChildren:cy},Rs=wt,Yp=dy,JE=["checked","value"],eR=["input","select","textarea"],tR={reset:!0,submit:!0},fy=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&tR[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Zp(s),o){switch(a=Rs.getPropertyInfo(o),JE.indexOf(o)!==-1&&eR.indexOf(n)!==-1&&!u&&(o=Zp("default"+s)),l[o]=i,a&&a.type){case Rs.BOOLEAN:l[o]=!0;break;case Rs.OVERLOADED_BOOLEAN:i===""&&(l[o]=!0);break}continue}Yp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Yp.setStyleProp(t.style,l),l};function Zp(e){return Rs.possibleStandardNames[e]}var nR=x,rR=fy,ka=dy,sR=ka.setStyleProp,iR=ka.canTextBeChildOfNode;function hy(e,t){t=t||{};for(var n=t.library||nR,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,p=t.trim,m=0,y=e.length;m<y;m++){if(a=e[m],u&&(c=t.replace(a),i(c))){y>1&&(c=r(c,{key:c.key||m})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!iR(a.parent)||p&&l)continue;o.push(a.data);continue}switch(d=a.attribs,oR(a)?sR(d.style,d):d&&(d=rR(d,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=hy(a.children,t));break;default:continue}y>1&&(d.key=m),o.push(s(a.name,d,h))}return o.length===1?o[0]:o}function oR(e){return ka.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&ka.isCustomComponent(e.name,e.attribs)}var aR=hy,pl=sf,Nr=aE,lR=fy,py=aR;Nr=typeof Nr.default=="function"?Nr.default:Nr;var uR={lowerCaseAttributeNames:!1};function Ht(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},py(Nr(e,t.htmlparser2||uR),t))}Ht.domToReact=py;Ht.htmlToDOM=Nr;Ht.attributesToProps=lR;Ht.Comment=pl.Comment;Ht.Element=pl.Element;Ht.ProcessingInstruction=pl.ProcessingInstruction;Ht.Text=pl.Text;var cR=Ht;Ht.default=Ht;const Bn=Pa(cR);var fo=Bn.domToReact;Bn.htmlToDOM;var lu=Bn.attributesToProps;Bn.Comment;Bn.Element;Bn.ProcessingInstruction;Bn.Text;function dR(){var y;const{appCode:e}=yt(),{theme:t}=Ad(),[n,r]=x.useState(""),[s,i]=x.useState(!0),[o,a]=x.useState(!1),[l,u]=x.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";x.useEffect(()=>{(async()=>{let S="";S=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?S=c+"/application/portal/":window.location.pathname==="/adapter"?S=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?S=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(S=c+"/application/userbook/");try{const g=await fetch(S),v=await g.text();if(g.status===404){u(!0);return}r(v),u(!1)}catch(g){u(!0),console.error(g)}})()},[e,c]);const h=Bn(n,{replace:S=>{const g=S;if(g.attribs&&g.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(Jr,{onClick:()=>{i(!s)},children:f.jsx(Y4,{})}),fo(g.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:s?"block":"none"},children:fo(w.children,{replace:b=>{const E=b;if(E.attribs&&E.name==="a")return f.jsx("a",{...lu(E.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:fo(E.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const v=lu(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:fo(g.children,{replace:w=>{const b=w;if(b.attribs&&b.name==="img"){const E=w.attribs.src;return f.jsx("img",{...lu(b.attribs),src:`${c}/${E}`,alt:""})}}})})}}}),p=(y=h==null?void 0:h.props)==null?void 0:y.children.find(S=>S.type==="body").props.children,m=p==null?void 0:p.find(S=>S.type==="p").props.children;return{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:p,parsedHeadline:m,error:l}}const my=()=>{const[e,t]=Zg(),n=x.useRef(null),r=x.useId(),{t:s}=pe();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(ce,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[f.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[f.jsx(e5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),f.jsx(rf,{id:r,isVisible:t,className:"d-none d-md-flex",children:f.jsxs(yc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(yc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(b0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};my.displayName="SearchEngine";const fR=my;function Jp({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=pe(),o=()=>{t(!1)};return e?Pi.createPortal(f.jsxs(bn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[f.jsx(bn.Header,{onModalClose:o,children:i("navbar.help")}),f.jsx(bn.Subtitle,{children:s?i("help.notfound.title"):n}),f.jsx(bn.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}const gy=({is1d:e=!1,src:t=""})=>{const{t:n}=pe(),{messages:r,msgLink:s,zimbraWorkflow:i}=$C(),{user:o,avatar:a}=Ld(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=dR(),p=V("header",{"no-2d":e,"no-1d":!e}),{title:m,bookmarkedApps:y,appsRef:S,isAppsHovered:g,popoverAppsId:v,userAvatar:w,userName:b,welcomeUser:E,communityWorkflow:R,conversationWorflow:k,searchWorkflow:P,isCollapsed:_,toggleCollapsedNav:F,handleLogout:A}=qS({user:o,avatar:a}),I=r>0;return f.jsx("header",{className:p,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ru,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:m}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:E})]}),f.jsxs(Dp,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[k&&f.jsx(ce,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(X3,{className:"icon notification"}),I&&f.jsx(nu,{children:r}),f.jsx(Es,{children:n("navbar.messages")})]})}),f.jsx(ce,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(Z3,{className:"icon user"})})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(K3,{className:"icon help"}),f.jsx(Es,{children:n("navbar.help")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{children:f.jsxs("button",{className:"nav-link",onClick:A,children:[f.jsx(sp,{className:"icon logout"}),f.jsx(Es,{children:n("navbar.disconnect")})]})}),f.jsx(ce,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!_,"aria-label":n("navbar.secondary.navigation"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ru,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${_?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(pp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Dp,{className:"gap-8",children:[f.jsx(ce,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(Q3,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(n5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(ip,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ru,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(pp,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:m}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(ce,{children:f.jsx(vs,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(z3,{color:"#fff"})})}),f.jsxs(ce,{className:"position-relative",ref:S,id:v,"aria-haspopup":"true","aria-expanded":g,children:[f.jsx(vs,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(ip,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:g,children:[f.jsx(IC,{children:f.jsx(UC,{bookmarkedApps:y})}),f.jsx(AC,{className:"widget-footer border-top border-ghost",children:f.jsx(zC,{})})]})]}),k&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),i&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:s,translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(V3,{color:"#fff"}),f.jsx(Es,{children:n("support")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{children:f.jsxs("div",{className:"dropdown",children:[f.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!_,"aria-label":n("navbar.open.menu"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${_?"":"show"}`,id:"dropdown-navbar",children:[R&&f.jsx(ce,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(D3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(fR,{}):null,f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(ce,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(ce,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(sp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};gy.displayName="Header";const hR=gy;function vy({children:e,className:t,...n}){const r=V("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}vy.displayName="Main";const yy=({children:e,...t})=>{const{theme:n}=Ad();return f.jsxs(f.Fragment,{children:[f.jsx(hR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(vy,{className:V("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),f.jsx(D4,{toastOptions:{position:"top-right"}})]})};yy.displayName="Layout";const pR=yy,mR=function(){return null};var wy,em=Pi;wy=em.createRoot,em.hydrateRoot;const Lt=document.querySelector("[data-ode-app]");let ys;function ml(){var e;if(ys)return ys;if(ys={app:ho.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Lt==null?void 0:Lt.dataset)!=null&&e.odeApp){const{odeApp:t}=Lt.dataset;try{const n=JSON.parse(t);Object.assign(ys,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Lt==null?void 0:Lt.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Lt==null?void 0:Lt.dataset);return ys}const tm=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},s=()=>t,a={setState:r,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,s,a),a},gR=e=>e?tm(e):tm;var xy={exports:{}},Sy={};/**
225
+ `,Na=16,$k=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=hk(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:Na,left:Na,right:Na,bottom:Na,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let d=u.position||t,f=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=Lk(d,f);return b.createElement(Mk,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Fk:"",style:h},u.type==="custom"?Yl(u.message,u):s?s(u):b.createElement(Dk,{toast:u,position:d}))}))},ki=jt,Bk=Object.defineProperty,zk=(e,t)=>{for(var n in t)Bk(e,n,{get:t[n],enumerable:!0})},dn={};zk(dn,{assign:()=>Hk,colors:()=>yr,createStringInterpolator:()=>Kh,skipAnimation:()=>Nx,to:()=>Ox,willAdvance:()=>Gh});var Vh=Jo(),Z=e=>Yo(e,Vh),Uh=Jo();Z.write=e=>Yo(e,Uh);var Tu=Jo();Z.onStart=e=>Yo(e,Tu);var Hh=Jo();Z.onFrame=e=>Yo(e,Hh);var qh=Jo();Z.onFinish=e=>Yo(e,qh);var Fs=[];Z.setTimeout=(e,t)=>{const n=Z.now()+t,r=()=>{const i=Fs.findIndex(o=>o.cancel==r);~i&&Fs.splice(i,1),lr-=~i?1:0},s={time:n,handler:e,cancel:r};return Fs.splice(Cx(n),0,s),lr+=1,Ex(),s};var Cx=e=>~(~Fs.findIndex(t=>t.time>e)||~Fs.length);Z.cancel=e=>{Tu.delete(e),Hh.delete(e),qh.delete(e),Vh.delete(e),Uh.delete(e)};Z.sync=e=>{mf=!0,Z.batchedUpdates(e),mf=!1};Z.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,Z.onStart(n)}return r.handler=e,r.cancel=()=>{Tu.delete(n),t=null},r};var Qh=typeof window<"u"?window.requestAnimationFrame:()=>{};Z.use=e=>Qh=e;Z.now=typeof performance<"u"?()=>performance.now():Date.now;Z.batchedUpdates=e=>e();Z.catch=console.error;Z.frameLoop="always";Z.advance=()=>{Z.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):jx()};var ar=-1,lr=0,mf=!1;function Yo(e,t){mf?(t.delete(e),e(0)):(t.add(e),Ex())}function Ex(){ar<0&&(ar=0,Z.frameLoop!=="demand"&&Qh(kx))}function Vk(){ar=-1}function kx(){~ar&&(Qh(kx),Z.batchedUpdates(jx))}function jx(){const e=ar;ar=Z.now();const t=Cx(ar);if(t&&(Rx(Fs.splice(0,t),n=>n.handler()),lr-=t),!lr){Vk();return}Tu.flush(),Vh.flush(e?Math.min(64,ar-e):16.667),Hh.flush(),Uh.flush(),qh.flush()}function Jo(){let e=new Set,t=e;return{add(n){lr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return lr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,lr-=t.size,Rx(t,r=>r(n)&&e.add(r)),lr+=e.size,t=e)}}}function Rx(e,t){e.forEach(n=>{try{t(n)}catch(r){Z.catch(r)}})}function gf(){}var Uk=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),V={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function _n(e,t){if(V.arr(e)){if(!V.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Y=(e,t)=>e.forEach(t);function kn(e,t,n){if(V.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var nt=e=>V.und(e)?[]:V.arr(e)?e:[e];function Gi(e,t){if(e.size){const n=Array.from(e);e.clear(),Y(n,t)}}var Mi=(e,...t)=>Gi(e,n=>n(...t)),Wh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Kh,Ox,yr=null,Nx=!1,Gh=gf,Hk=e=>{e.to&&(Ox=e.to),e.now&&(Z.now=e.now),e.colors!==void 0&&(yr=e.colors),e.skipAnimation!=null&&(Nx=e.skipAnimation),e.createStringInterpolator&&(Kh=e.createStringInterpolator),e.requestAnimationFrame&&Z.use(e.requestAnimationFrame),e.batchedUpdates&&(Z.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Gh=e.willAdvance),e.frameLoop&&(Z.frameLoop=e.frameLoop)},Xi=new Set,Vt=[],qc=[],Jl=0,Iu={get idle(){return!Xi.size&&!Vt.length},start(e){Jl>e.priority?(Xi.add(e),Z.onStart(qk)):(Px(e),Z(vf))},advance:vf,sort(e){if(Jl)Z.onFrame(()=>Iu.sort(e));else{const t=Vt.indexOf(e);~t&&(Vt.splice(t,1),Ax(e))}},clear(){Vt=[],Xi.clear()}};function qk(){Xi.forEach(Px),Xi.clear(),Z(vf)}function Px(e){Vt.includes(e)||Ax(e)}function Ax(e){Vt.splice(Qk(Vt,t=>t.priority>e.priority),0,e)}function vf(e){const t=qc;for(let n=0;n<Vt.length;n++){const r=Vt[n];Jl=r.priority,r.idle||(Gh(r),r.advance(e),r.idle||t.push(r))}return Jl=0,qc=Vt,qc.length=0,Vt=t,Vt.length>0}function Qk(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Wk=(e,t,n)=>Math.min(Math.max(n,e),t),Kk={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},an="[-+]?\\d*\\.?\\d+",Zl=an+"%";function Du(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Gk=new RegExp("rgb"+Du(an,an,an)),Xk=new RegExp("rgba"+Du(an,an,an,an)),Yk=new RegExp("hsl"+Du(an,Zl,Zl)),Jk=new RegExp("hsla"+Du(an,Zl,Zl,an)),Zk=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ej=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,tj=/^#([0-9a-fA-F]{6})$/,nj=/^#([0-9a-fA-F]{8})$/;function rj(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=tj.exec(e))?parseInt(t[1]+"ff",16)>>>0:yr&&yr[e]!==void 0?yr[e]:(t=Gk.exec(e))?(ps(t[1])<<24|ps(t[2])<<16|ps(t[3])<<8|255)>>>0:(t=Xk.exec(e))?(ps(t[1])<<24|ps(t[2])<<16|ps(t[3])<<8|Hg(t[4]))>>>0:(t=Zk.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=nj.exec(e))?parseInt(t[1],16)>>>0:(t=ej.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Yk.exec(e))?(Vg(Ug(t[1]),Pa(t[2]),Pa(t[3]))|255)>>>0:(t=Jk.exec(e))?(Vg(Ug(t[1]),Pa(t[2]),Pa(t[3]))|Hg(t[4]))>>>0:null}function Qc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Vg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Qc(s,r,e+1/3),o=Qc(s,r,e),a=Qc(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function ps(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ug(e){return(parseFloat(e)%360+360)%360/360}function Hg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Pa(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function qg(e){let t=rj(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var Ro=(e,t,n)=>{if(V.fun(e))return e;if(V.arr(e))return Ro({range:e,output:t,extrapolate:n});if(V.str(e.output[0]))return Kh(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const d=ij(u,i);return sj(u,i[d],i[d+1],s[d],s[d+1],l,o,a,r.map)}};function sj(e,t,n,r,s,i,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function ij(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var oj=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return Wk(0,1,s/e)},eu=1.70158,Aa=eu*1.525,Qg=eu+1,Wg=2*Math.PI/3,Kg=2*Math.PI/4.5,_a=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,aj={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Qg*e*e*e-eu*e*e,easeOutBack:e=>1+Qg*Math.pow(e-1,3)+eu*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Aa+1)*2*e-Aa)/2:(Math.pow(2*e-2,2)*((Aa+1)*(e*2-2)+Aa)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Wg),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Wg)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Kg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Kg)/2+1,easeInBounce:e=>1-_a(1-e),easeOutBounce:_a,easeInOutBounce:e=>e<.5?(1-_a(1-2*e))/2:(1+_a(2*e-1))/2,steps:oj},Oo=Symbol.for("FluidValue.get"),Ys=Symbol.for("FluidValue.observers"),zt=e=>!!(e&&e[Oo]),dt=e=>e&&e[Oo]?e[Oo]():e,Gg=e=>e[Ys]||null;function lj(e,t){e.eventObserved?e.eventObserved(t):e(t)}function No(e,t){const n=e[Ys];n&&n.forEach(r=>{lj(r,t)})}var _x=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");uj(this,e)}},uj=(e,t)=>Tx(e,Oo,t);function oi(e,t){if(e[Oo]){let n=e[Ys];n||Tx(e,Ys,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Po(e,t){const n=e[Ys];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ys]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Tx=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),rl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,cj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Xg=new RegExp(`(${rl.source})(%|[a-z]+)`,"i"),dj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ix=e=>{const[t,n]=fj(e);if(!t||Wh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&Mu.test(n))return Ix(n);if(n)return n}return e},fj=e=>{const t=Mu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Wc,hj=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,Dx=e=>{Wc||(Wc=yr?new RegExp(`(${Object.keys(yr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>dt(i).replace(Mu,Ix).replace(cj,qg).replace(Wc,qg)),n=t.map(i=>i.match(rl).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>Ro({...e,output:i}));return i=>{var l;const o=!Xg.test(t[0])&&((l=t.find(u=>Xg.test(u)))==null?void 0:l.replace(rl,""));let a=0;return t[0].replace(rl,()=>`${s[a++](i)}${o||""}`).replace(dj,hj)}},Xh="react-spring: ",Mx=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Xh}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},pj=Mx(console.warn);function mj(){pj(`${Xh}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var gj=Mx(console.warn);function vj(){gj(`${Xh}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Lu(e){return V.str(e)&&(e[0]=="#"||/\d/.test(e)||!Wh()&&Mu.test(e)||e in(yr||{}))}var Hr=Wh()?b.useEffect:b.useLayoutEffect,yj=()=>{const e=b.useRef(!1);return Hr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Yh(){const e=b.useState()[1],t=yj();return()=>{t.current&&e(Math.random())}}function xj(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&wj(t,i.inputs)||(i={inputs:t,result:e()}):i=n,b.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function wj(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Jh=e=>b.useEffect(e,bj),bj=[];function yf(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Ao=Symbol.for("Animated:node"),Sj=e=>!!e&&e[Ao]===e,gn=e=>e&&e[Ao],Zh=(e,t)=>Uk(e,Ao,t),Fu=e=>e&&e[Ao]&&e[Ao].getPayload(),Lx=class{constructor(){Zh(this,this)}getPayload(){return this.payload||[]}},Zo=class extends Lx{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,V.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Zo(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return V.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},_o=class extends Zo{constructor(e){super(0),this._string=null,this._toString=Ro({output:[e,e]})}static create(e){return new _o(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(V.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=Ro({output:[this.getValue(),e]})),this._value=0,super.reset()}},tu={dependencies:null},$u=class extends Lx{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return kn(this.source,(n,r)=>{Sj(n)?t[r]=n.getValue(e):zt(n)?t[r]=dt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Y(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){tu.dependencies&&zt(e)&&tu.dependencies.add(e);const t=Fu(e);t&&Y(t,n=>this.add(n))}},Fx=class extends $u{constructor(e){super(e)}static create(e){return new Fx(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(Cj)),!0)}};function Cj(e){return(Lu(e)?_o:Zo).create(e)}function xf(e){const t=gn(e);return t?t.constructor:V.arr(e)?Fx:Lu(e)?_o:Zo}var Yg=(e,t)=>{const n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,s)=>{const i=b.useRef(null),o=n&&b.useCallback(m=>{i.current=jj(s,m)},[s]),[a,l]=kj(r,t),u=Yh(),d=()=>{const m=i.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,a.getValue(!0)):!1)===!1&&u()},f=new Ej(d,l),h=b.useRef();Hr(()=>(h.current=f,Y(l,m=>oi(m,f)),()=>{h.current&&(Y(h.current.deps,m=>Po(m,h.current)),Z.cancel(h.current.update))})),b.useEffect(d,[]),Jh(()=>()=>{const m=h.current;Y(m.deps,y=>Po(y,m))});const p=t.getComponentProps(a.getValue());return b.createElement(e,{...p,ref:o})})},Ej=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Z.write(this.update)}};function kj(e,t){const n=new Set;return tu.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new $u(e),tu.dependencies=null,[e,n]}function jj(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}var Jg=Symbol.for("AnimatedComponent"),Rj=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new $u(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=Zg(o)||"Anonymous";return V.str(o)?o=i[o]||(i[o]=Yg(o,s)):o=o[Jg]||(o[Jg]=Yg(o,s)),o.displayName=`Animated(${a})`,o};return kn(e,(o,a)=>{V.arr(e)&&(a=Zg(o)),i[a]=i(o)}),{animated:i}},Zg=e=>V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null;function ft(e,...t){return V.fun(e)?e(...t):e}var Yi=(e,t)=>e===!0||!!(t&&e&&(V.fun(e)?e(t):nt(e).includes(t))),$x=(e,t)=>V.obj(e)?t&&e[t]:e,Bx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Oj=e=>e,Bu=(e,t=Oj)=>{let n=Nj;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);V.und(i)||(r[s]=i)}return r},Nj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Pj={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Aj(e){const t={};let n=0;if(kn(e,(r,s)=>{Pj[s]||(t[s]=r,n++)}),n)return t}function ep(e){const t=Aj(e);if(t){const n={to:t};return kn(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function To(e){return e=dt(e),V.arr(e)?e.map(To):Lu(e)?dn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zx(e){for(const t in e)return!0;return!1}function wf(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function bf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Vx(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var _j={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Sf={..._j.default,mass:1,damping:1,easing:aj.linear,clamp:!1},Tj=class{constructor(){this.velocity=0,Object.assign(this,Sf)}};function Ij(e,t,n){n&&(n={...n},e1(n,t),t={...n,...t}),e1(e,t),Object.assign(e,t);for(const o in Sf)e[o]==null&&(e[o]=Sf[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return V.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function e1(e,t){if(!V.und(t.decay))e.duration=void 0;else{const n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var t1=[],Dj=class{constructor(){this.changed=!1,this.values=t1,this.toValues=null,this.fromValues=t1,this.config=new Tj,this.immediate=!1}};function Ux(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,d=Yi(n.cancel??(r==null?void 0:r.cancel),t);if(d)p();else{V.und(n.pause)||(s.paused=Yi(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=s.paused||Yi(m,t)),l=ft(n.delay||0,t),m?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function f(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-Z.now()}function h(){l>0&&!dn.skipAnimation?(s.delayed=!0,u=Z.setTimeout(p,l),s.pauseQueue.add(f),s.timeouts.add(u)):p()}function p(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(f),s.timeouts.delete(u),e<=(s.cancelId||0)&&(d=!0);try{i.start({...n,callId:e,cancel:d},o)}catch(m){a(m)}}})}var tp=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$s(e.get()):t.every(n=>n.noop)?Hx(e.get()):sn(e.get(),t.every(n=>n.finished)),Hx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),sn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$s=e=>({value:e,cancelled:!0,finished:!1});function qx(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=Bu(t,(w,g)=>g==="onRest"?void 0:w);let d,f;const h=new Promise((w,g)=>(d=w,f=g)),p=w=>{const g=s<=(n.cancelId||0)&&$s(r)||s!==n.asyncId&&sn(r,!1);if(g)throw w.result=g,f(w),w},m=(w,g)=>{const v=new n1,x=new r1;return(async()=>{if(dn.skipAnimation)throw Io(n),x.result=sn(r,!1),f(x),x;p(v);const S=V.obj(w)?{...w}:{...g,to:w};S.parentId=s,kn(u,(j,k)=>{V.und(S[k])&&(S[k]=j)});const C=await r.start(S);return p(v),n.paused&&await new Promise(j=>{n.resumeQueue.add(j)}),C})()};let y;if(dn.skipAnimation)return Io(n),sn(r,!1);try{let w;V.arr(e)?w=(async g=>{for(const v of g)await m(v)})(e):w=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([w.then(d),h]),y=sn(r.get(),!0,!1)}catch(w){if(w instanceof n1)y=w.result;else if(w instanceof r1)y=w.result;else throw w}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return V.fun(o)&&Z.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function Io(e,t){Gi(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var n1=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},r1=class extends Error{constructor(){super("SkipAnimationSignal")}},Cf=e=>e instanceof np,Mj=1,np=class extends _x{constructor(){super(...arguments),this.id=Mj++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=gn(this);return e&&e.getValue()}to(...e){return dn.to(this,e)}interpolate(...e){return mj(),dn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){No(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Iu.sort(this),No(this,{type:"priority",parent:this,priority:e})}},ns=Symbol.for("SpringPhase"),Qx=1,Ef=2,kf=4,Kc=e=>(e[ns]&Qx)>0,Yn=e=>(e[ns]&Ef)>0,ji=e=>(e[ns]&kf)>0,s1=(e,t)=>t?e[ns]|=Ef|Qx:e[ns]&=~Ef,i1=(e,t)=>t?e[ns]|=kf:e[ns]&=~kf,Lj=class extends np{constructor(e,t){if(super(),this.animation=new Dj,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!V.und(e)||!V.und(t)){const n=V.obj(e)?{...e}:{...t,from:e};V.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Yn(this)||this._state.asyncTo)||ji(this)}get goal(){return dt(this.animation.to)}get velocity(){const e=gn(this);return e instanceof Zo?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Kc(this)}get isAnimating(){return Yn(this)}get isPaused(){return ji(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=Fu(r.to);!o&&zt(r.to)&&(s=nt(dt(r.to))),r.values.forEach((u,d)=>{if(u.done)return;const f=u.constructor==_o?1:o?o[d].lastPosition:s[d];let h=r.immediate,p=f;if(!h){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let m=u.elapsedTime+=e;const y=r.fromValues[d],w=u.v0!=null?u.v0:u.v0=V.arr(i.velocity)?i.velocity[d]:i.velocity;let g;const v=i.precision||(y==f?.005:Math.min(1,Math.abs(f-y)*.001));if(V.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,S=Math.exp(-(1-x)*m);p=y+w/(1-x)*(1-S),h=Math.abs(u.lastPosition-p)<=v,g=w*S}else{g=u.lastVelocity==null?w:u.lastVelocity;const x=i.restVelocity||v/10,S=i.clamp?0:i.bounce,C=!V.und(S),j=y==f?u.v0>0:y<f;let k,O=!1;const A=1,_=Math.ceil(e/A);for(let F=0;F<_&&(k=Math.abs(g)>x,!(!k&&(h=Math.abs(f-p)<=v,h)));++F){C&&(O=p==f||p>f==j,O&&(g=-g*S,p=f));const T=-i.tension*1e-6*(p-f),$=-i.friction*.001*g,D=(T+$)/i.mass;g=g+D*A,p=p+g*A}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,m=u.elapsedTime+=e)),x=(i.progress||0)+m/this._memoizedDuration,x=x>1?1:x<0?0:x,u.durationProgress=x),p=y+i.easing(x)*(f-y),g=(p-u.lastPosition)/e,h=x==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[d].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=gn(this),l=a.getValue();if(t){const u=dt(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Z.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Yn(this)){const{to:e,config:t}=this.animation;Z.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>tp(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Io(this._state,e&&this._lastCallId),Z.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=V.obj(n)?n[t]:n,(n==null||wf(n))&&(n=void 0),r=V.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Kc(this)||(e.reverse&&([n,r]=[r,n]),r=dt(r),V.und(r)?gn(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Bu(e,(o,a)=>/^on/.test(a)?$x(o,n):o)),a1(this,e,"onProps"),Oi(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Ux(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ji(this)||(i1(this,!0),Mi(i.pauseQueue),Oi(this,"onPause",sn(this,Ri(this,this.animation.to)),this))},resume:()=>{ji(this)&&(i1(this,!1),Yn(this)&&this._resume(),Mi(i.resumeQueue),Oi(this,"onResume",sn(this,Ri(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Wx(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($s(this));const r=!V.und(e.to),s=!V.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($s(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:d=l,from:f=u}=e;s&&!r&&(!t.default||V.und(d))&&(d=f),t.reverse&&([d,f]=[f,d]);const h=!_n(f,u);h&&(a.from=f),f=dt(f);const p=!_n(d,l);p&&this._focus(d);const m=wf(t.to),{config:y}=a,{decay:w,velocity:g}=y;(r||s)&&(y.velocity=0),t.config&&!m&&Ij(y,ft(t.config,i),t.config!==o.config?ft(o.config,i):void 0);let v=gn(this);if(!v||V.und(d))return n(sn(this,!0));const x=V.und(t.reset)?s&&!t.default:!V.und(f)&&Yi(t.reset,i),S=x?f:this.get(),C=To(d),j=V.num(C)||V.arr(C)||Lu(C),k=!m&&(!j||Yi(o.immediate||t.immediate,i));if(p){const F=xf(d);if(F!==v.constructor)if(k)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${F.name}, as the "to" prop suggests`)}const O=v.constructor;let A=zt(d),_=!1;if(!A){const F=x||!Kc(this)&&h;(p||F)&&(_=_n(To(S),C),A=!_),(!_n(a.immediate,k)&&!k||!_n(y.decay,w)||!_n(y.velocity,g))&&(A=!0)}if(_&&Yn(this)&&(a.changed&&!x?A=!0:A||this._stop(l)),!m&&((A||zt(l))&&(a.values=v.getPayload(),a.toValues=zt(d)?null:O==_o?[1]:nt(C)),a.immediate!=k&&(a.immediate=k,!k&&!x&&this._set(l)),A)){const{onRest:F}=a;Y($j,$=>a1(this,t,$));const T=sn(this,Ri(this,l));Mi(this._pendingCalls,T),this._pendingCalls.add(n),a.changed&&Z.batchedUpdates(()=>{var $;a.changed=!x,F==null||F(T,this),x?ft(o.onRest,T):($=a.onStart)==null||$.call(a,T,this)})}x&&this._set(S),m?n(qx(t.to,t,this._state,this)):A?this._start():Yn(this)&&!p?this._pendingCalls.add(n):n(Hx(S))}_focus(e){const t=this.animation;e!==t.to&&(Gg(this)&&this._detach(),t.to=e,Gg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;zt(t)&&(oi(t,this),Cf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;zt(e)&&Po(e,this)}_set(e,t=!0){const n=dt(e);if(!V.und(n)){const r=gn(this);if(!r||!_n(n,r.getValue())){const s=xf(n);!r||r.constructor!=s?Zh(this,s.create(n)):r.setValue(n),r&&Z.batchedUpdates(()=>{this._onChange(n,t)})}}return gn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Oi(this,"onStart",sn(this,Ri(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ft(this.animation.onChange,e,this)),ft(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;gn(this).reset(dt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Yn(this)||(s1(this,!0),ji(this)||this._resume())}_resume(){dn.skipAnimation?this.finish():Iu.start(this)}_stop(e,t){if(Yn(this)){s1(this,!1);const n=this.animation;Y(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),No(this,{type:"idle",parent:this});const r=t?$s(this.get()):sn(this.get(),Ri(this,e??n.to));Mi(this._pendingCalls,r),n.changed&&(n.changed=!1,Oi(this,"onRest",r,this))}}};function Ri(e,t){const n=To(t),r=To(e.get());return _n(r,n)}function Wx(e,t=e.loop,n=e.to){const r=ft(t);if(r){const s=r!==!0&&ep(r),i=(s||e).reverse,o=!s||s.reset;return Do({...e,loop:t,default:!1,pause:void 0,to:!i||wf(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function Do(e){const{to:t,from:n}=e=ep(e),r=new Set;return V.obj(t)&&o1(t,r),V.obj(n)&&o1(n,r),e.keys=r.size?Array.from(r):null,e}function Fj(e){const t=Do(e);return V.und(t.default)&&(t.default=Bu(t)),t}function o1(e,t){kn(e,(n,r)=>n!=null&&t.add(r))}var $j=["onStart","onRest","onChange","onPause","onResume"];function a1(e,t,n){e.animation[n]=t[n]!==Bx(t,n)?$x(t[n],e.key):void 0}function Oi(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var Bj=["onStart","onChange","onRest"],zj=1,Kx=class{constructor(e,t){this.id=zj++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];V.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Do(e)),this}start(e){let{queue:t}=this;return e?t=nt(e).map(Do):this.queue=[],this._flush?this._flush(this,t):(Zx(this,t),jf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Y(nt(t),r=>n[r].stop(!!e))}else Io(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(V.und(e))this.start({pause:!0});else{const t=this.springs;Y(nt(e),n=>t[n].pause())}return this}resume(e){if(V.und(e))this.start({pause:!1});else{const t=this.springs;Y(nt(e),n=>t[n].resume())}return this}each(e){kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Gi(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Gi(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Gi(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Z.onFrame(this._onFrame)}};function jf(e,t){return Promise.all(t.map(n=>Gx(e,n))).then(n=>tp(e,n))}async function Gx(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=V.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const d=V.arr(s)||V.fun(s)?s:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Y(Bj,y=>{const w=t[y];if(V.fun(w)){const g=e._events[y];t[y]=({finished:v,cancelled:x})=>{const S=g.get(w);S?(v||(S.finished=!1),x&&(S.cancelled=!0)):g.set(w,{value:null,finished:v||!1,cancelled:x||!1})},u&&(u[y]=t[y])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,Mi(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),p=t.cancel===!0||Bx(t,"cancel")===!0;(d||p&&f.asyncId)&&h.push(Ux(++e._lastAsyncId,{props:t,state:f,actions:{pause:gf,resume:gf,start(y,w){p?(Io(f,e._lastAsyncId),w($s(e))):(y.onRest=a,w(qx(d,y,f,e)))}}})),f.paused&&await new Promise(y=>{f.resumeQueue.add(y)});const m=tp(e,await Promise.all(h));if(o&&m.finished&&!(n&&m.noop)){const y=Wx(t,o,s);if(y)return Zx(e,[y]),Gx(e,y,!0)}return l&&Z.batchedUpdates(()=>l(m,e,e.item)),m}function Rf(e,t){const n={...e.springs};return t&&Y(nt(t),r=>{V.und(r.keys)&&(r=Do(r)),V.obj(r.to)||(r={...r,to:void 0}),Jx(n,r,s=>Yx(s))}),Xx(e,n),n}function Xx(e,t){kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,oi(n,e))})}function Yx(e,t){const n=new Lj;return n.key=e,t&&oi(n,t),n}function Jx(e,t,n){t.keys&&Y(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Zx(e,t){Y(t,n=>{Jx(e.springs,n,r=>Yx(r,e))})}var ea=({children:e,...t})=>{const n=b.useContext(nu),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=xj(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=nu;return b.createElement(i,{value:t},e)},nu=Vj(ea,{});ea.Provider=nu.Provider;ea.Consumer=nu.Consumer;function Vj(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var ew=()=>{const e=[],t=function(r){vj();const s=[];return Y(e,(i,o)=>{if(V.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return Y(e,r=>r.pause(...arguments)),this},t.resume=function(){return Y(e,r=>r.resume(...arguments)),this},t.set=function(r){Y(e,(s,i)=>{const o=V.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return Y(e,(i,o)=>{if(V.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return Y(e,r=>r.stop(...arguments)),this},t.update=function(r){return Y(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return V.fun(r)?r(i,s):r};return t._getProps=n,t};function Uj(e,t,n){const r=V.fun(t)&&t;r&&!n&&(n=[]);const s=b.useMemo(()=>r||arguments.length==3?ew():void 0,[]),i=b.useRef(0),o=Yh(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const x=Rf(g,v);return i.current>0&&!a.queue.length&&!Object.keys(x).some(C=>!g.springs[C])?jf(g,v):new Promise(C=>{Xx(g,x),a.queue.push(()=>{C(jf(g,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],d=yf(e)||0;b.useMemo(()=>{Y(l.current.slice(e,d),g=>{bf(g,s),g.stop(!0)}),l.current.length=e,f(d,e)},[e]),b.useMemo(()=>{f(0,Math.min(d,e))},n);function f(g,v){for(let x=g;x<v;x++){const S=l.current[x]||(l.current[x]=new Kx(null,a.flush)),C=r?r(x,S):t[x];C&&(u[x]=Fj(C))}}const h=l.current.map((g,v)=>Rf(g,u[v])),p=b.useContext(ea),m=yf(p),y=p!==m&&zx(p);Hr(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],Y(g,v=>v())),Y(l.current,(v,x)=>{s==null||s.add(v),y&&v.start({default:p});const S=u[x];S&&(Vx(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),Jh(()=>()=>{Y(a.ctrls,g=>g.stop(!0))});const w=h.map(g=>({...g}));return s?[w,s]:w}function R7(e,t){const n=V.fun(e),[[r],s]=Uj(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function rp(e,t,n){const r=V.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:d,config:f}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?ew():void 0,[]),p=nt(e),m=[],y=b.useRef(null),w=s?null:y.current;Hr(()=>{y.current=m}),Jh(()=>(Y(m,D=>{h==null||h.add(D.ctrl),D.ctrl.ref=h}),()=>{Y(y.current,D=>{D.expired&&clearTimeout(D.expirationId),bf(D.ctrl,h),D.ctrl.stop(!0)})}));const g=qj(p,r?r():t,w),v=s&&y.current||[];Hr(()=>Y(v,({ctrl:D,item:E,key:N})=>{bf(D,h),ft(u,E,N)}));const x=[];if(w&&Y(w,(D,E)=>{D.expired?(clearTimeout(D.expirationId),v.push(D)):(E=x[E]=g.indexOf(D.key),~E&&(m[E]=D))}),Y(p,(D,E)=>{m[E]||(m[E]={key:g[E],item:D,phase:"mount",ctrl:new Kx},m[E].ctrl.item=D)}),x.length){let D=-1;const{leave:E}=r?r():t;Y(x,(N,L)=>{const P=w[L];~N?(D=m.indexOf(P),m[D]={...P,item:p[N]}):E&&m.splice(++D,0,P)})}V.fun(i)&&m.sort((D,E)=>i(D.item,E.item));let S=-o;const C=Yh(),j=Bu(t),k=new Map,O=b.useRef(new Map),A=b.useRef(!1);Y(m,(D,E)=>{const N=D.key,L=D.phase,P=r?r():t;let B,z;const ee=ft(P.delay||0,N);if(L=="mount")B=P.enter,z="enter";else{const ae=g.indexOf(N)<0;if(L!="leave")if(ae)B=P.leave,z="leave";else if(B=P.update)z="update";else return;else if(!ae)B=P.enter,z="enter";else return}if(B=ft(B,D.item,E),B=V.obj(B)?ep(B):{to:B},!B.config){const ae=f||j.config;B.config=ft(ae,D.item,E,z)}S+=o;const J={...j,delay:ee+S,ref:d,immediate:P.immediate,reset:!1,...B};if(z=="enter"&&V.und(J.from)){const ae=r?r():t,de=V.und(ae.initial)||w?ae.from:ae.initial;J.from=ft(de,D.item,E)}const{onResolve:le}=J;J.onResolve=ae=>{ft(le,ae);const de=y.current,ye=de.find(Re=>Re.key===N);if(ye&&!(ae.cancelled&&ye.phase!="update")&&ye.ctrl.idle){const Re=de.every(ut=>ut.ctrl.idle);if(ye.phase=="leave"){const ut=ft(a,ye.item);if(ut!==!1){const On=ut===!0?0:ut;if(ye.expired=!0,!Re&&On>0){On<=2147483647&&(ye.expirationId=setTimeout(C,On));return}}}Re&&de.some(ut=>ut.expired)&&(O.current.delete(ye),l&&(A.current=!0),C())}};const te=Rf(D.ctrl,J);z==="leave"&&l?O.current.set(D,{phase:z,springs:te,payload:J}):k.set(D,{phase:z,springs:te,payload:J})});const _=b.useContext(ea),F=yf(_),T=_!==F&&zx(_);Hr(()=>{T&&Y(m,D=>{D.ctrl.start({default:_})})},[_]),Y(k,(D,E)=>{if(O.current.size){const N=m.findIndex(L=>L.key===E.key);m.splice(N,1)}}),Hr(()=>{Y(O.current.size?O.current:k,({phase:D,payload:E},N)=>{const{ctrl:L}=N;N.phase=D,h==null||h.add(L),T&&D=="enter"&&L.start({default:_}),E&&(Vx(L,E.ref),(L.ref||h)&&!A.current?L.update(E):(L.start(E),A.current&&(A.current=!1)))})},s?void 0:n);const $=D=>b.createElement(b.Fragment,null,m.map((E,N)=>{const{springs:L}=k.get(E)||E.ctrl,P=D({...L},E.item,E,N);return P&&P.type?b.createElement(P.type,{...P.props,key:V.str(E.key)||V.num(E.key)?E.key:E.ctrl.id,ref:P.ref}):P}));return h?[$,h]:$}var Hj=1;function qj(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):Hj++})}return V.und(n)?e:V.fun(n)?e.map(n):nt(n)}var Qj=class extends np{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ro(...t);const n=this._get(),r=xf(n);Zh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();_n(t,n)||(gn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&l1(this._active)&&Gc(this)}_get(){const e=V.arr(this.source)?this.source.map(dt):nt(dt(this.source));return this.calc(...e)}_start(){this.idle&&!l1(this._active)&&(this.idle=!1,Y(Fu(this),e=>{e.done=!1}),dn.skipAnimation?(Z.batchedUpdates(()=>this.advance()),Gc(this)):Iu.start(this))}_attach(){let e=1;Y(nt(this.source),t=>{zt(t)&&oi(t,this),Cf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Y(nt(this.source),e=>{zt(e)&&Po(e,this)}),this._active.clear(),Gc(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=nt(this.source).reduce((t,n)=>Math.max(t,(Cf(n)?n.priority:0)+1),0))}};function Wj(e){return e.idle!==!1}function l1(e){return!e.size||Array.from(e).every(Wj)}function Gc(e){e.idle||(e.idle=!0,Y(Fu(e),t=>{t.done=!0}),No(e,{type:"idle",parent:e}))}dn.assign({createStringInterpolator:Dx,to:(e,t)=>new Qj(e,t)});var tw=/^--/;function Kj(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!tw.test(e)&&!(Ji.hasOwnProperty(e)&&Ji[e])?t+"px":(""+t).trim()}var u1={};function Gj(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),d=Object.keys(l).map(f=>n||e.hasAttribute(f)?f:u1[f]||(u1[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const f in r)if(r.hasOwnProperty(f)){const h=Kj(f,r[f]);tw.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var Ji={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},Xj=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Yj=["Webkit","Ms","Moz","O"];Ji=Object.keys(Ji).reduce((e,t)=>(Yj.forEach(n=>e[Xj(n,t)]=e[t]),e),Ji);var Jj=/^(matrix|translate|scale|rotate|skew)/,Zj=/^(translate)/,eR=/^(rotate|skew)/,Xc=(e,t)=>V.num(e)&&e!==0?e+t:e,sl=(e,t)=>V.arr(e)?e.every(n=>sl(n,t)):V.num(e)?e===t:parseFloat(e)===t,tR=class extends $u{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>Xc(a,"px")).join(",")})`,sl(o,0)])),kn(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(Jj.test(a)){if(delete r[a],V.und(o))return;const l=Zj.test(a)?"px":eR.test(a)?"deg":"";s.push(nt(o)),i.push(a==="rotate3d"?([u,d,f,h])=>[`rotate3d(${u},${d},${f},${Xc(h,l)})`,sl(h,0)]:u=>[`${a}(${u.map(d=>Xc(d,l)).join(",")})`,sl(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new nR(s,i)),super(r)}},nR=class extends _x{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Y(this.inputs,(n,r)=>{const s=dt(n[0]),[i,o]=this.transforms[r](V.arr(s)?s:n.map(dt));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Y(this.inputs,t=>Y(t,n=>zt(n)&&oi(n,this)))}observerRemoved(e){e==0&&Y(this.inputs,t=>Y(t,n=>zt(n)&&Po(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),No(this,e)}},rR=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];dn.assign({batchedUpdates:Wn.unstable_batchedUpdates,createStringInterpolator:Dx,colors:Kk});var sR=Rj(rR,{applyAnimatedValues:Gj,createAnimatedStyle:e=>new tR(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ru=sR.animated,c1=function(t){return t.reduce(function(n,r){var s=r[0],i=r[1];return n[s]=i,n},{})},d1=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,yt="top",Xt="bottom",Yt="right",xt="left",sp="auto",ta=[yt,Xt,Yt,xt],Js="start",Mo="end",iR="clippingParents",nw="viewport",Ni="popper",oR="reference",f1=ta.reduce(function(e,t){return e.concat([t+"-"+Js,t+"-"+Mo])},[]),rw=[].concat(ta,[sp]).reduce(function(e,t){return e.concat([t,t+"-"+Js,t+"-"+Mo])},[]),aR="beforeRead",lR="read",uR="afterRead",cR="beforeMain",dR="main",fR="afterMain",hR="beforeWrite",pR="write",mR="afterWrite",gR=[aR,lR,uR,cR,dR,fR,hR,pR,mR];function jn(e){return e?(e.nodeName||"").toLowerCase():null}function Pt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rs(e){var t=Pt(e).Element;return e instanceof t||e instanceof Element}function qt(e){var t=Pt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ip(e){if(typeof ShadowRoot>"u")return!1;var t=Pt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!qt(i)||!jn(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var a=s[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function yR(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!qt(s)||!jn(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}const xR={name:"applyStyles",enabled:!0,phase:"write",fn:vR,effect:yR,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var Wr=Math.max,su=Math.min,Zs=Math.round;function Of(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function sw(){return!/^((?!chrome|android).)*safari/i.test(Of())}function ei(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&qt(e)&&(s=e.offsetWidth>0&&Zs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Zs(r.height)/e.offsetHeight||1);var o=rs(e)?Pt(e):window,a=o.visualViewport,l=!sw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/s,d=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/s,h=r.height/i;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function op(e){var t=ei(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function iw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ip(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hn(e){return Pt(e).getComputedStyle(e)}function wR(e){return["table","td","th"].indexOf(jn(e))>=0}function Ar(e){return((rs(e)?e.ownerDocument:e.document)||window.document).documentElement}function zu(e){return jn(e)==="html"?e:e.assignedSlot||e.parentNode||(ip(e)?e.host:null)||Ar(e)}function h1(e){return!qt(e)||Hn(e).position==="fixed"?null:e.offsetParent}function bR(e){var t=/firefox/i.test(Of()),n=/Trident/i.test(Of());if(n&&qt(e)){var r=Hn(e);if(r.position==="fixed")return null}var s=zu(e);for(ip(s)&&(s=s.host);qt(s)&&["html","body"].indexOf(jn(s))<0;){var i=Hn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function na(e){for(var t=Pt(e),n=h1(e);n&&wR(n)&&Hn(n).position==="static";)n=h1(n);return n&&(jn(n)==="html"||jn(n)==="body"&&Hn(n).position==="static")?t:n||bR(e)||t}function ap(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zi(e,t,n){return Wr(e,su(t,n))}function SR(e,t,n){var r=Zi(e,t,n);return r>n?n:r}function ow(){return{top:0,right:0,bottom:0,left:0}}function aw(e){return Object.assign({},ow(),e)}function lw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var CR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aw(typeof t!="number"?t:lw(t,ta))};function ER(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Cn(n.placement),l=ap(a),u=[xt,Yt].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!o)){var f=CR(s.padding,n),h=op(i),p=l==="y"?yt:xt,m=l==="y"?Xt:Yt,y=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],w=o[l]-n.rects.reference[l],g=na(i),v=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=y/2-w/2,S=f[p],C=v-h[d]-f[m],j=v/2-h[d]/2+x,k=Zi(S,j,C),O=l;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-j,t)}}function kR(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||iw(t.elements.popper,s)&&(t.elements.arrow=s))}const jR={name:"arrow",enabled:!0,phase:"main",fn:ER,effect:kR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(e){return e.split("-")[1]}var RR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OR(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Zs(n*s)/s||0,y:Zs(r*s)/s||0}}function p1(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=o.x,p=h===void 0?0:h,m=o.y,y=m===void 0?0:m,w=typeof d=="function"?d({x:p,y}):{x:p,y};p=w.x,y=w.y;var g=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),x=xt,S=yt,C=window;if(u){var j=na(n),k="clientHeight",O="clientWidth";if(j===Pt(n)&&(j=Ar(n),Hn(j).position!=="static"&&a==="absolute"&&(k="scrollHeight",O="scrollWidth")),j=j,s===yt||(s===xt||s===Yt)&&i===Mo){S=Xt;var A=f&&j===C&&C.visualViewport?C.visualViewport.height:j[k];y-=A-r.height,y*=l?1:-1}if(s===xt||(s===yt||s===Xt)&&i===Mo){x=Yt;var _=f&&j===C&&C.visualViewport?C.visualViewport.width:j[O];p-=_-r.width,p*=l?1:-1}}var F=Object.assign({position:a},u&&RR),T=d===!0?OR({x:p,y},Pt(n)):{x:p,y};if(p=T.x,y=T.y,l){var $;return Object.assign({},F,($={},$[S]=v?"0":"",$[x]=g?"0":"",$.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",$))}return Object.assign({},F,(t={},t[S]=v?y+"px":"",t[x]=g?p+"px":"",t.transform="",t))}function NR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Cn(t.placement),variation:ti(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const PR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NR,data:{}};var Ta={passive:!0};function AR(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,a=o===void 0?!0:o,l=Pt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ta)}),a&&l.addEventListener("resize",n.update,Ta),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ta)}),a&&l.removeEventListener("resize",n.update,Ta)}}const _R={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AR,data:{}};var TR={left:"right",right:"left",bottom:"top",top:"bottom"};function il(e){return e.replace(/left|right|bottom|top/g,function(t){return TR[t]})}var IR={start:"end",end:"start"};function m1(e){return e.replace(/start|end/g,function(t){return IR[t]})}function lp(e){var t=Pt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function up(e){return ei(Ar(e)).left+lp(e).scrollLeft}function DR(e,t){var n=Pt(e),r=Ar(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;var u=sw();(u||!u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a+up(e),y:l}}function MR(e){var t,n=Ar(e),r=lp(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Wr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Wr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+up(e),l=-r.scrollTop;return Hn(s||n).direction==="rtl"&&(a+=Wr(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:a,y:l}}function cp(e){var t=Hn(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function uw(e){return["html","body","#document"].indexOf(jn(e))>=0?e.ownerDocument.body:qt(e)&&cp(e)?e:uw(zu(e))}function eo(e,t){var n;t===void 0&&(t=[]);var r=uw(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Pt(r),o=s?[i].concat(i.visualViewport||[],cp(r)?r:[]):r,a=t.concat(o);return s?a:a.concat(eo(zu(o)))}function Nf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function LR(e,t){var n=ei(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function g1(e,t,n){return t===nw?Nf(DR(e,n)):rs(t)?LR(t,n):Nf(MR(Ar(e)))}function FR(e){var t=eo(zu(e)),n=["absolute","fixed"].indexOf(Hn(e).position)>=0,r=n&&qt(e)?na(e):e;return rs(r)?t.filter(function(s){return rs(s)&&iw(s,r)&&jn(s)!=="body"}):[]}function $R(e,t,n,r){var s=t==="clippingParents"?FR(e):[].concat(t),i=[].concat(s,[n]),o=i[0],a=i.reduce(function(l,u){var d=g1(e,u,r);return l.top=Wr(d.top,l.top),l.right=su(d.right,l.right),l.bottom=su(d.bottom,l.bottom),l.left=Wr(d.left,l.left),l},g1(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function cw(e){var t=e.reference,n=e.element,r=e.placement,s=r?Cn(r):null,i=r?ti(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case yt:l={x:o,y:t.y-n.height};break;case Xt:l={x:o,y:t.y+t.height};break;case Yt:l={x:t.x+t.width,y:a};break;case xt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=s?ap(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Js:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Mo:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function Lo(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?iR:a,u=n.rootBoundary,d=u===void 0?nw:u,f=n.elementContext,h=f===void 0?Ni:f,p=n.altBoundary,m=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,g=aw(typeof w!="number"?w:lw(w,ta)),v=h===Ni?oR:Ni,x=e.rects.popper,S=e.elements[m?v:h],C=$R(rs(S)?S:S.contextElement||Ar(e.elements.popper),l,d,o),j=ei(e.elements.reference),k=cw({reference:j,element:x,strategy:"absolute",placement:s}),O=Nf(Object.assign({},x,k)),A=h===Ni?O:j,_={top:C.top-A.top+g.top,bottom:A.bottom-C.bottom+g.bottom,left:C.left-A.left+g.left,right:A.right-C.right+g.right},F=e.modifiersData.offset;if(h===Ni&&F){var T=F[s];Object.keys(_).forEach(function($){var D=[Yt,Xt].indexOf($)>=0?1:-1,E=[yt,Xt].indexOf($)>=0?"y":"x";_[$]+=T[E]*D})}return _}function BR(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?rw:l,d=ti(r),f=d?a?f1:f1.filter(function(m){return ti(m)===d}):ta,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,y){return m[y]=Lo(e,{placement:y,boundary:s,rootBoundary:i,padding:o})[Cn(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function zR(e){if(Cn(e)===sp)return[];var t=il(e);return[m1(e),t,m1(t)]}function VR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,y=n.allowedAutoPlacements,w=t.options.placement,g=Cn(w),v=g===w,x=l||(v||!m?[il(w)]:zR(w)),S=[w].concat(x).reduce(function(te,ae){return te.concat(Cn(ae)===sp?BR(t,{placement:ae,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):ae)},[]),C=t.rects.reference,j=t.rects.popper,k=new Map,O=!0,A=S[0],_=0;_<S.length;_++){var F=S[_],T=Cn(F),$=ti(F)===Js,D=[yt,Xt].indexOf(T)>=0,E=D?"width":"height",N=Lo(t,{placement:F,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),L=D?$?Yt:xt:$?Xt:yt;C[E]>j[E]&&(L=il(L));var P=il(L),B=[];if(i&&B.push(N[T]<=0),a&&B.push(N[L]<=0,N[P]<=0),B.every(function(te){return te})){A=F,O=!1;break}k.set(F,B)}if(O)for(var z=m?3:1,ee=function(ae){var de=S.find(function(ye){var Re=k.get(ye);if(Re)return Re.slice(0,ae).every(function(ut){return ut})});if(de)return A=de,"break"},J=z;J>0;J--){var le=ee(J);if(le==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const UR={name:"flip",enabled:!0,phase:"main",fn:VR,requiresIfExists:["offset"],data:{_skip:!1}};function v1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function y1(e){return[yt,Yt,Xt,xt].some(function(t){return e[t]>=0})}function HR(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=Lo(t,{elementContext:"reference"}),a=Lo(t,{altBoundary:!0}),l=v1(o,r),u=v1(a,s,i),d=y1(l),f=y1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const qR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HR};function QR(e,t,n){var r=Cn(e),s=[xt,yt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*s,[xt,Yt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function WR(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=rw.reduce(function(d,f){return d[f]=QR(f,t.rects,i),d},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const KR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:WR};function GR(e){var t=e.state,n=e.name;t.modifiersData[n]=cw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const XR={name:"popperOffsets",enabled:!0,phase:"read",fn:GR,data:{}};function YR(e){return e==="x"?"y":"x"}function JR(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,y=m===void 0?0:m,w=Lo(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),g=Cn(t.placement),v=ti(t.placement),x=!v,S=ap(g),C=YR(S),j=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,_=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(j){if(i){var $,D=S==="y"?yt:xt,E=S==="y"?Xt:Yt,N=S==="y"?"height":"width",L=j[S],P=L+w[D],B=L-w[E],z=p?-O[N]/2:0,ee=v===Js?k[N]:O[N],J=v===Js?-O[N]:-k[N],le=t.elements.arrow,te=p&&le?op(le):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ow(),de=ae[D],ye=ae[E],Re=Zi(0,k[N],te[N]),ut=x?k[N]/2-z-Re-de-_.mainAxis:ee-Re-de-_.mainAxis,On=x?-k[N]/2+z+Re+ye+_.mainAxis:J+Re+ye+_.mainAxis,as=t.elements.arrow&&na(t.elements.arrow),ac=as?S==="y"?as.clientTop||0:as.clientLeft||0:0,hi=($=F==null?void 0:F[S])!=null?$:0,lc=L+ut-hi-ac,la=L+On-hi,pi=Zi(p?su(P,lc):P,L,p?Wr(B,la):B);j[S]=pi,T[S]=pi-L}if(a){var uc,$p=S==="x"?yt:xt,Bp=S==="x"?Xt:Yt,R=j[C],I=C==="y"?"height":"width",M=R+w[$p],W=R-w[Bp],q=[yt,xt].indexOf(g)!==-1,H=(uc=F==null?void 0:F[C])!=null?uc:0,X=q?M:R-k[I]-O[I]-H+_.altAxis,ue=q?R+k[I]+O[I]-H-_.altAxis:W,Oe=p&&q?SR(X,R,ue):Zi(p?X:M,R,p?ue:W);j[C]=Oe,T[C]=Oe-R}t.modifiersData[r]=T}}const ZR={name:"preventOverflow",enabled:!0,phase:"main",fn:JR,requiresIfExists:["offset"]};function e8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function t8(e){return e===Pt(e)||!qt(e)?lp(e):e8(e)}function n8(e){var t=e.getBoundingClientRect(),n=Zs(t.width)/e.offsetWidth||1,r=Zs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function r8(e,t,n){n===void 0&&(n=!1);var r=qt(t),s=qt(t)&&n8(t),i=Ar(t),o=ei(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jn(t)!=="body"||cp(i))&&(a=t8(t)),qt(t)?(l=ei(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=up(i))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function s8(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function i8(e){var t=s8(e);return gR.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function o8(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function a8(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var x1={placement:"bottom",modifiers:[],strategy:"absolute"};function w1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function l8(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?x1:s;return function(a,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},x1,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(g){var v=typeof g=="function"?g(d.options):g;y(),d.options=Object.assign({},i,d.options,v),d.scrollParents={reference:rs(a)?eo(a):a.contextElement?eo(a.contextElement):[],popper:eo(l)};var x=i8(a8([].concat(r,d.options.modifiers)));return d.orderedModifiers=x.filter(function(S){return S.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var g=d.elements,v=g.reference,x=g.popper;if(w1(v,x)){d.rects={reference:r8(v,na(x),d.options.strategy==="fixed"),popper:op(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(_){return d.modifiersData[_.name]=Object.assign({},_.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var C=d.orderedModifiers[S],j=C.fn,k=C.options,O=k===void 0?{}:k,A=C.name;typeof j=="function"&&(d=j({state:d,options:O,name:A,instance:p})||d)}}}},update:o8(function(){return new Promise(function(w){p.forceUpdate(),w(d)})}),destroy:function(){y(),h=!0}};if(!w1(a,l))return p;p.setOptions(u).then(function(w){!h&&u.onFirstUpdate&&u.onFirstUpdate(w)});function m(){d.orderedModifiers.forEach(function(w){var g=w.name,v=w.options,x=v===void 0?{}:v,S=w.effect;if(typeof S=="function"){var C=S({state:d,name:g,instance:p,options:x}),j=function(){};f.push(C||j)}})}function y(){f.forEach(function(w){return w()}),f=[]}return p}}var u8=[_R,XR,PR,xR,KR,UR,ZR,jR,qR],c8=l8({defaultModifiers:u8}),d8=typeof Element<"u",f8=typeof Map=="function",h8=typeof Set=="function",p8=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ol(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ol(e[r],t[r]))return!1;return!0}var i;if(f8&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ol(r.value[1],t.get(r.value[0])))return!1;return!0}if(h8&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(p8&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(d8&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!ol(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var m8=function(t,n){try{return ol(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const g8=$o(m8);var v8=[],y8=function(t,n,r){r===void 0&&(r={});var s=b.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||v8},o=b.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var m=p.state,y=Object.keys(m.elements);Wn.flushSync(function(){l({styles:c1(y.map(function(w){return[w,m.styles[w]||{}]})),attributes:c1(y.map(function(w){return[w,m.attributes[w]]}))})})},requires:["computeStyles"]}},[]),d=b.useMemo(function(){var h={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return g8(s.current,h)?s.current||h:(s.current=h,h)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=b.useRef();return d1(function(){f.current&&f.current.setOptions(d)},[d]),d1(function(){if(!(t==null||n==null)){var h=r.createPopper||c8,p=h(t,n,d);return f.current=p,function(){p.destroy(),f.current=null}}},[t,n,r.createPopper]),{state:f.current?f.current.state:null,styles:a.styles,attributes:a.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};const x8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.805c.49.704.733 1.473.733 2.306 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624"})]}),w8=x8,b8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M22.996 13.153c0 1.393-.291 2.722-.873 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.153c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589M13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201"})]}),b1=b8,S8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111m3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363"})]}),C8=S8,E8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216m7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216m7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216m7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216m7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216zM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24m7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24m7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24z"})]}),S1=E8,k8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963M9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03",clipRule:"evenodd"})]}),j8=k8,R8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216zm0-2.738V8.573l5.848 3.531zm0-12.084V3.048h23.024v3.387l-11.512 6.847zm17.176 5.67 5.848-3.532v9.946z"})]}),C1=R8,O8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53zm0 4.4v-2.2h-2.14v2.2zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),N8=O8,P8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),A8=P8,_8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334m10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.996 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837",clipRule:"evenodd"})]}),T8=_8,I8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:c.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51m0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3"})}),c.jsx("defs",{children:c.jsx("clipPath",{id:"one-profile_svg__a",children:c.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),dp=I8,D8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628m2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486"})]}),M8=D8,L8=({title:e,titleId:t,...n})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?c.jsx("title",{id:t,children:e}):null,c.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),F8=L8,E1=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function $8(e,t){t?t={...E1,...t}:t=E1;const n=dw(t);return n.dispatch(e),n.toString()}const B8=Object.freeze(["prototype","__proto__","constructor"]);function dw(e){let t="",n=new Map;const r=s=>{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const a=i.length;a<10?o="unknown:["+i+"]":o=i.slice(8,a-1),o=o.toLowerCase();let l=null;if((l=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let d=[];e.respectType!==!1&&!k1(s)&&(d=B8),e.excludeKeys&&(u=u.filter(h=>!e.excludeKeys(h)),d=d.filter(h=>!e.excludeKeys(h))),r("object:"+(u.length+d.length)+":");const f=h=>{this.dispatch(h),r(":"),e.excludeValues||this.dispatch(s[h]),r(",")};for(const h of u)f(h);for(const h of d)f(h)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const l of s)this.dispatch(l);return}const o=new Map,a=s.map(l=>{const u=dw(e);u.dispatch(l);for(const[d,f]of u.getContext())o.set(d,f);return u.toString()});return n=o,a.sort(),this.array(a,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),k1(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported
226
+ Use "options.replacer" or "options.ignoreUnknown"
227
+ `)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const fw="[native code] }",z8=fw.length;function k1(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-z8)===fw}class xr{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||V8).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new xr([...this.words])}}const V8={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},U8={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r<e.sigBytes;r+=3){const s=e.words[r>>>2]>>>24-r%4*8&255,i=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,o=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,a=s<<16|i<<8|o;for(let l=0;l<4&&r*8+l*6<e.sigBytes*8;l++)n.push(t.charAt(a>>>6*(3-l)&63))}return n.join("")}},H8={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new xr(n,t)}},q8={parse(e){return H8.parse(unescape(encodeURIComponent(e)))}};class Q8{constructor(){this._data=new xr,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new xr,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=q8.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*this.blockSize,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=this.blockSize)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new xr(n,i)}}class W8 extends Q8{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const j1=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K8=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Dr=[];class G8 extends W8{constructor(){super(...arguments),this._hash=new xr([...j1])}reset(){super.reset(),this._hash=new xr([...j1])}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],a=r[3],l=r[4],u=r[5],d=r[6],f=r[7];for(let h=0;h<64;h++){if(h<16)Dr[h]=t[n+h]|0;else{const x=Dr[h-15],S=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,C=Dr[h-2],j=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;Dr[h]=S+Dr[h-7]+j+Dr[h-16]}const p=l&u^~l&d,m=s&i^s&o^i&o,y=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),w=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),g=f+w+p+K8[h]+Dr[h],v=y+m;f=d,d=u,u=l,l=a+g|0,a=o,o=i,i=s,s=g+v|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+u|0,r[6]=r[6]+d|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function X8(e){return new G8().finalize(e).toString(U8)}function hw(e,t={}){const n=typeof e=="string"?e:$8(e,t);return X8(n).slice(0,10)}var pw={};Object.defineProperty(pw,"__esModule",{value:!0});const Y8=e=>{const t="ÀÁÂÃÄÅĄĀàáâãäåąāÒÓÔÕÕÖØòóôõöøÈÉÊËĘĒèéêëðęēÇĆČçćčÐÌÍÎÏĪìíîïīÙÚÛÜŪùúûüūÑŅñņŠŚšśŸÿýŽŹŻžźżŁĻłļŃŅńņàáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîüûñçýỳỹỵỷğışĞİŞĢģĶķ",n="AAAAAAAAaaaaaaaaOOOOOOOooooooEEEEEEeeeeeeeCCCcccDIIIIIiiiiiUUUUUuuuuuNNnnSSssYyyZZZzzzLLllNNnnaaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiuuncyyyyygisGISGgKk",r=t.split("").join("|"),s=new RegExp(`(${r})`,"g");function i(o){return n[t.indexOf(o)]||""}return e.replace(s,i)},J8=e=>e.split("").map(t=>`\\${t}`).join(""),R1=(e,t,n=!1)=>{const r=Y8(e).trim().toLowerCase(),s=J8(t);return n?r.replace(/\s+/g,t):r.replace(new RegExp(`[^a-z0-9${s}]+`,"g"),t).replace(new RegExp(`${s}+`,"g"),t).replace(new RegExp(`^${s}`,"g"),"").replace(new RegExp(`${s}$`,"g"),"")},Li=(e,t={delimiter:"-",prefix:""})=>{if(t.delimiter||(t.delimiter="-"),t.prefix||(t.prefix=""),!e||typeof e=="boolean")return"";const{delimiter:n,prefix:r}=t;if(typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number"){const s=R1(r,n,!0),i=R1(String(e),n);return s?`${s}${n}${i}`:i}return"children"in e?Li(e.children):"type"in e?Li(e.props.children,t):Symbol.iterator in e?Li(Array.from(e).map(s=>Li(s,{delimiter:n})).join(n),t):""};var mw=pw.default=Li,fp={},hp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(hp);var se={},_r=tt&&tt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),to=tt&&tt.__assign||function(){return to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},to.apply(this,arguments)};Object.defineProperty(se,"__esModule",{value:!0});se.cloneNode=se.hasChildren=se.isDocument=se.isDirective=se.isComment=se.isText=se.isCDATA=se.isTag=se.Element=se.Document=se.CDATA=se.NodeWithChildren=se.ProcessingInstruction=se.Comment=se.Text=se.DataNode=se.Node=void 0;var wt=hp,pp=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),mp(this,t)},e}();se.Node=pp;var Vu=function(e){_r(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(pp);se.DataNode=Vu;var gw=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Vu);se.Text=gw;var vw=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Vu);se.Comment=vw;var yw=function(e){_r(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=wt.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Vu);se.ProcessingInstruction=yw;var Uu=function(e){_r(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(pp);se.NodeWithChildren=Uu;var xw=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(Uu);se.CDATA=xw;var ww=function(e){_r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=wt.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(Uu);se.Document=ww;var bw=function(e){_r(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?wt.ElementType.Script:n==="style"?wt.ElementType.Style:wt.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(Uu);se.Element=bw;function Sw(e){return(0,wt.isTag)(e)}se.isTag=Sw;function Cw(e){return e.type===wt.ElementType.CDATA}se.isCDATA=Cw;function Ew(e){return e.type===wt.ElementType.Text}se.isText=Ew;function kw(e){return e.type===wt.ElementType.Comment}se.isComment=kw;function jw(e){return e.type===wt.ElementType.Directive}se.isDirective=jw;function Rw(e){return e.type===wt.ElementType.Root}se.isDocument=Rw;function Z8(e){return Object.prototype.hasOwnProperty.call(e,"children")}se.hasChildren=Z8;function mp(e,t){t===void 0&&(t=!1);var n;if(Ew(e))n=new gw(e.data);else if(kw(e))n=new vw(e.data);else if(Sw(e)){var r=t?Yc(e.children):[],s=new bw(e.name,to({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=to({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=to({},e["x-attribsPrefix"])),n=s}else if(Cw(e)){var r=t?Yc(e.children):[],i=new xw(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Rw(e)){var r=t?Yc(e.children):[],o=new ww(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(jw(e)){var a=new yw(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}se.cloneNode=mp;function Yc(e){for(var t=e.map(function(r){return mp(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=tt&&tt.__createBinding||(Object.create?function(a,l,u,d){d===void 0&&(d=u);var f=Object.getOwnPropertyDescriptor(l,u);(!f||("get"in f?!l.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,d,f)}:function(a,l,u,d){d===void 0&&(d=u),a[d]=l[u]}),n=tt&&tt.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=hp,s=se;n(se,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,d){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(d=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=d??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var d=this.options.xmlMode?r.ElementType.Tag:void 0,f=new s.Element(l,u,void 0,d);this.addNode(f),this.tagStack.push(f)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var d=new s.Text(l);this.addNode(d),this.lastNode=d}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var d=new s.ProcessingInstruction(l,u);this.addNode(d)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],d=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),d&&(l.prev=d,d.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(fp);var O1="html",N1="head",Ia="body",eO=/<([a-zA-Z]+[0-9]?)/,P1=/<head[^]*>/i,A1=/<body[^]*>/i,iu=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Pf=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},_1=typeof window=="object"&&window.DOMParser;if(typeof _1=="function"){var tO=new _1,nO="text/html";Pf=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),tO.parseFromString(e,nO)},iu=Pf}if(typeof document=="object"&&document.implementation){var Da=document.implementation.createHTMLDocument();iu=function(e,t){if(t){var n=Da.documentElement.querySelector(t);return n.innerHTML=e,Da}return Da.documentElement.innerHTML=e,Da}}var Jc=typeof document=="object"?document.createElement("template"):{},Af;Jc.content&&(Af=function(e){return Jc.innerHTML=e,Jc.content.childNodes});function rO(e){var t,n=e.match(eO);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case O1:return r=Pf(e),P1.test(e)||(s=r.querySelector(N1),s&&s.parentNode.removeChild(s)),A1.test(e)||(s=r.querySelector(Ia),s&&s.parentNode.removeChild(s)),r.querySelectorAll(O1);case N1:case Ia:return r=iu(e),i=r.querySelectorAll(t),A1.test(e)&&P1.test(e)?i[0].parentNode.childNodes:i;default:return Af?Af(e):(s=iu(e,Ia).querySelector(Ia),s.childNodes)}}var sO=rO,gp={},Ow={};Ow.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var Hu=fp,iO=Ow,T1=iO.CASE_SENSITIVE_TAG_NAMES,oO=Hu.Comment,aO=Hu.Element,lO=Hu.ProcessingInstruction,uO=Hu.Text,Nw={},Zc;for(var ed=0,cO=T1.length;ed<cO;ed++)Zc=T1[ed],Nw[Zc.toLowerCase()]=Zc;function dO(e){return Nw[e]}function Pw(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function fO(e){e=e.toLowerCase();var t=dO(e);return t||e}function Aw(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=fO(a.nodeName),l=new aO(s,Pw(a.attributes)),l.children=Aw(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new uO(a.nodeValue);break;case 8:l=new oO(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new lO(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}gp.formatAttributes=Pw;gp.formatDOM=Aw;var hO=sO,pO=gp,mO=pO.formatDOM,gO=/<(![a-zA-Z\s]+)>/;function vO(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(gO),n;return t&&t[1]&&(n=t[1]),mO(hO(e),null,n)}var yO=vO,Jt={},qu={},xO=0;qu.SAME=xO;var wO=1;qu.CAMELCASE=wO;qu.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(Jt,"__esModule",{value:!0});function bO(e,t){return SO(e)||CO(e,t)||EO(e,t)||kO()}function SO(e){if(Array.isArray(e))return e}function CO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function EO(e,t){if(e){if(typeof e=="string")return I1(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 I1(e,t)}}function I1(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 kO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
228
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _w=0,Tr=1,Qu=2,Wu=3,vp=4,Tw=5,Iw=6;function jO(e){return qe.hasOwnProperty(e)?qe[e]:null}function ot(e,t,n,r,s,i,o){this.acceptsBooleans=t===Qu||t===Wu||t===vp,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var qe={},RO=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];RO.forEach(function(e){qe[e]=new ot(e,_w,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=bO(e,2),n=t[0],r=t[1];qe[n]=new ot(n,Tr,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new ot(e,Qu,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new ot(e,Qu,!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"].forEach(function(e){qe[e]=new ot(e,Wu,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new ot(e,Wu,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new ot(e,vp,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new ot(e,Iw,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new ot(e,Tw,!1,e.toLowerCase(),null,!1,!1)});var yp=/[\-\:]([a-z])/g,xp=function(t){return t[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"].forEach(function(e){var t=e.replace(yp,xp);qe[t]=new ot(t,Tr,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(yp,xp);qe[t]=new ot(t,Tr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yp,xp);qe[t]=new ot(t,Tr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new ot(e,Tr,!1,e.toLowerCase(),null,!1,!1)});var OO="xlinkHref";qe[OO]=new ot("xlinkHref",Tr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new ot(e,Tr,!1,e.toLowerCase(),null,!0,!0)});var wp=qu,NO=wp.CAMELCASE,PO=wp.SAME,D1=wp.possibleStandardNames,AO=":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",_O=AO+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",TO=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+_O+"]*$")),IO=Object.keys(D1).reduce(function(e,t){var n=D1[t];return n===PO?e[t]=t:n===NO?e[t.toLowerCase()]=t:e[t]=n,e},{});Jt.BOOLEAN=Wu;Jt.BOOLEANISH_STRING=Qu;Jt.NUMERIC=Tw;Jt.OVERLOADED_BOOLEAN=vp;Jt.POSITIVE_NUMERIC=Iw;Jt.RESERVED=_w;Jt.STRING=Tr;Jt.getPropertyInfo=jO;Jt.isCustomAttribute=TO;Jt.possibleStandardNames=IO;var Dw={},bp={exports:{}},M1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,DO=/\n/g,MO=/^\s*/,LO=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,FO=/^:\s*/,$O=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,BO=/^[;\s]*/,zO=/^\s+|\s+$/g,VO=`
229
+ `,L1="/",F1="*",Fr="",UO="comment",HO="declaration",qO=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(m){var y=m.match(DO);y&&(n+=y.length);var w=m.lastIndexOf(VO);r=~w?m.length-w:r+m.length}function i(){var m={line:n,column:r};return function(y){return y.position=new o(m),u(),y}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(m){var y=m.exec(e);if(y){var w=y[0];return s(w),e=e.slice(w.length),y}}function u(){l(MO)}function d(m){var y;for(m=m||[];y=f();)y!==!1&&m.push(y);return m}function f(){var m=i();if(!(L1!=e.charAt(0)||F1!=e.charAt(1))){for(var y=2;Fr!=e.charAt(y)&&(F1!=e.charAt(y)||L1!=e.charAt(y+1));)++y;if(y+=2,Fr===e.charAt(y-1))return a("End of comment missing");var w=e.slice(2,y-2);return r+=2,s(w),e=e.slice(y),r+=2,m({type:UO,comment:w})}}function h(){var m=i(),y=l(LO);if(y){if(f(),!l(FO))return a("property missing ':'");var w=l($O),g=m({type:HO,property:$1(y[0].replace(M1,Fr)),value:w?$1(w[0].replace(M1,Fr)):Fr});return l(BO),g}}function p(){var m=[];d(m);for(var y;y=h();)y!==!1&&(m.push(y),d(m));return m}return u(),p()};function $1(e){return e?e.replace(zO,Fr):Fr}var QO=qO;function Mw(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=QO(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}bp.exports=Mw;bp.exports.default=Mw;var WO=bp.exports,Ku={};Ku.__esModule=!0;Ku.camelCase=void 0;var KO=/^--[a-zA-Z0-9-]+$/,GO=/-([a-z])/g,XO=/^[^-]+$/,YO=/^-(webkit|moz|ms|o|khtml)-/,JO=/^-(ms)-/,ZO=function(e){return!e||XO.test(e)||KO.test(e)},eN=function(e,t){return t.toUpperCase()},B1=function(e,t){return"".concat(t,"-")},tN=function(e,t){return t===void 0&&(t={}),ZO(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(JO,B1):e=e.replace(YO,B1),e.replace(GO,eN))};Ku.camelCase=tN;(function(e){var t=tt&&tt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(WO),r=Ku;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(Dw);var nN=b,rN=Dw.default;function sN(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function iN(e,t){if(e.indexOf("-")===-1)return t&&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 oN={reactCompat:!0};function aN(e,t){if(e!=null)try{t.style=rN(e,oN)}catch{t.style={}}}var lN=nN.version.split(".")[0]>=16,Lw=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function uN(e){return!Lw.has(e.name)}var Fw={PRESERVE_CUSTOM_ATTRIBUTES:lN,invertObject:sN,isCustomComponent:iN,setStyleProp:aN,canTextBeChildOfNode:uN,elementsWithNoTextChildren:Lw},Fi=Jt,z1=Fw,cN=["checked","value"],dN=["input","select","textarea"],fN={reset:!0,submit:!0},$w=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&fN[t.type];for(r in t){if(i=t[r],Fi.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=V1(s),o){switch(a=Fi.getPropertyInfo(o),cN.indexOf(o)!==-1&&dN.indexOf(n)!==-1&&!u&&(o=V1("default"+s)),l[o]=i,a&&a.type){case Fi.BOOLEAN:l[o]=!0;break;case Fi.OVERLOADED_BOOLEAN:i===""&&(l[o]=!0);break}continue}z1.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return z1.setStyleProp(t.style,l),l};function V1(e){return Fi.possibleStandardNames[e]}var hN=b,pN=$w,ou=Fw,mN=ou.setStyleProp,gN=ou.canTextBeChildOfNode;function Bw(e,t){t=t||{};for(var n=t.library||hN,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",d,f,h,p=t.trim,m=0,y=e.length;m<y;m++){if(a=e[m],u&&(d=t.replace(a),i(d))){y>1&&(d=r(d,{key:d.key||m})),o.push(d);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!gN(a.parent)||p&&l)continue;o.push(a.data);continue}switch(f=a.attribs,vN(a)?mN(f.style,f):f&&(f=pN(f,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(f.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?f.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=Bw(a.children,t));break;default:continue}y>1&&(f.key=m),o.push(s(a.name,f,h))}return o.length===1?o[0]:o}function vN(e){return ou.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&ou.isCustomComponent(e.name,e.attribs)}var yN=Bw,Gu=fp,Ns=yO,xN=$w,zw=yN;Ns=typeof Ns.default=="function"?Ns.default:Ns;var wN={lowerCaseAttributeNames:!1};function Rn(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},zw(Ns(e,t.htmlparser2||wN),t))}Rn.domToReact=zw;Rn.htmlToDOM=Ns;Rn.attributesToProps=xN;Rn.Comment=Gu.Comment;Rn.Element=Gu.Element;Rn.ProcessingInstruction=Gu.ProcessingInstruction;Rn.Text=Gu.Text;var bN=Rn;Rn.default=Rn;const Ir=$o(bN);var Ma=Ir.domToReact;Ir.htmlToDOM;var td=Ir.attributesToProps;Ir.Comment;Ir.Element;Ir.ProcessingInstruction;Ir.Text;const Vw=b.forwardRef(({children:e},t)=>c.jsx("div",{ref:t,className:"actionbar",children:e}));Vw.displayName="ActionBar";const Uw=Vw,Hw=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},d)=>{const[f,h]=b.useState(!0),p=b.useRef(null),m=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(d,()=>({show:y,hide:m,...p.current})),b.useLayoutEffect(()=>{u==null||u(f)},[f,u]),b.useEffect(()=>{o&&f&&setTimeout(()=>{m()},a)},[o,a,m,f]);const y=()=>{h(!0)},w={success:{icon:c.jsx(n5,{}),classModifier:"alert-success"},warning:{icon:c.jsx(pE,{}),classModifier:"alert-warning"},info:{icon:c.jsx(ax,{}),classModifier:"alert-info"},danger:{icon:c.jsx(NE,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},v=G("alert gap-12",w[e].classModifier,g,t);return c.jsx(c.Fragment,{children:f?c.jsxs("div",{ref:p,className:v,role:"alert",children:[w[e].icon,c.jsx("div",{className:"alert-content small",children:n}),r&&c.jsx("div",{className:"ms-12",children:r}),s&&c.jsx("div",{className:"btn-close-container",children:c.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:m})}),o&&c.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});Hw.displayName="Alert";const ur=Hw,qw=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=G("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return c.jsxs("div",{ref:r,className:s,children:[e,t?c.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});qw.displayName="AppHeader";const Qw=qw;function Sp({appCode:e}){return Ah({queryKey:["conf"],queryFn:async()=>await ne.conf().getConf(e),suspense:!0})}function Ww(){return Ah({queryKey:["session"],queryFn:async()=>await ne.session().getSession(),suspense:!0})}const Cp=b.createContext(null);function Kw({children:e,params:t}){const n=t.app,{t:r}=re(),s=r(n),i=Ww(),o=Sp({appCode:n}),a=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);b.useEffect(()=>{var u,d;(d=document.querySelector("html"))==null||d.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),b.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const l=b.useMemo(()=>{var u,d,f,h,p,m;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(d=o==null?void 0:o.data)==null?void 0:d.currentApp,currentLanguage:(f=i==null?void 0:i.data)==null?void 0:f.currentLanguage,init:a,sessionQuery:i,user:(h=i==null?void 0:i.data)==null?void 0:h.user,userDescription:(p=i==null?void 0:i.data)==null?void 0:p.userDescription,userProfile:(m=i==null?void 0:i.data)==null?void 0:m.userProfile}},[n,o,a,i]);return c.jsx(Cp.Provider,{value:l,children:e})}function _e(){const e=b.useContext(Cp);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}const Ep=b.createContext(null);function Gw({children:e}){var t;const{appCode:n}=_e(),r=Sp({appCode:n});b.useEffect(()=>{var i,o,a,l,u,d,f,h,p;const m=document.getElementById("favicon");m.href=`${(o=(i=r==null?void 0:r.data)==null?void 0:i.theme)==null?void 0:o.basePath}/img/illustrations/favicon.ico`;const y=(u=(l=(a=r==null?void 0:r.data)==null?void 0:a.theme)==null?void 0:l.bootstrapVersion)==null?void 0:u.split("-"),w=y?y[y.length-1]:void 0;[{data:"data-skin",value:(f=(d=r==null?void 0:r.data)==null?void 0:d.theme)==null?void 0:f.skinName},{data:"data-theme",value:(p=(h=r==null?void 0:r.data)==null?void 0:h.theme)==null?void 0:p.themeName},{data:"data-product",value:w}].forEach(v=>{var x;return(x=document.querySelector("html"))==null?void 0:x.setAttribute(v.data,v.value)})},[r==null?void 0:r.data]);const s=b.useMemo(()=>{var i;return{theme:(i=r==null?void 0:r.data)==null?void 0:i.theme}},[(t=r==null?void 0:r.data)==null?void 0:t.theme]);return c.jsx(Ep.Provider,{value:s,children:e})}function Xu(){const e=b.useContext(Ep);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Xw(){var e;const{sessionQuery:t}=_e(),n=new Set;return(e=t==null?void 0:t.data)==null?void 0:e.bookmarkedApps.filter(s=>{const i=n.has(s.displayName);return n.add(s.displayName),!i})}function Bs(e){const[t,n]=b.useState();return b.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await ne.rights().sessionHasWorkflowRight(e):await ne.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}const SN=()=>{const e=Bs("fr.openent.zimbra.controllers.ZimbraController|view"),t=Bs("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[s,i]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await ne.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await ne.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=b.useCallback(()=>{let l="";ne.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),i(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},Yw=SN,U1=["mousedown","touchstart"];function kp(e,t,n){const r=b.useRef();return b.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||U1).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||U1).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}const La="top-right";function at(){return{success:(t,n)=>ki.custom(c.jsx(ur,{type:"success",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),error:(t,n)=>ki.custom(c.jsx(ur,{type:"danger",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),info:(t,n)=>ki.custom(c.jsx(ur,{type:"info",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),warning:(t,n)=>ki.custom(c.jsx(ur,{type:"warning",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??La}),loading:ki.loading}}function jp(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return b.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function Jw({src:e,placeholder:t}){const[n,r]=b.useState(e||t),s=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function Zw(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function e2(){const e=typeof document<"u",[t,n]=b.useState(()=>document.title);return b.useEffect(()=>{e&&n(document.title)},[e]),t}function Rp(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function t2(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function n2(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function r2(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const CN=(e,t)=>{const[,n]=b.useState(!1),r=b.useCallback(o=>{o.preventDefault(),o.stopPropagation(),n(!0)},[]),s=o=>{o.preventDefault(),o.stopPropagation(),n(!1)};return{handleDragging:r,handleDragLeave:s,handleDrop:o=>{var a;s(o);const l=(a=o.dataTransfer)==null?void 0:a.files;t(l),e!=null&&e.current&&l&&(e.current.files=l)}}},s2=CN;function i2({user:e,avatar:t}){const{t:n}=re(),r=e2(),[s,i]=b.useState(!0),[o,a]=jp(),l=b.useId(),u=b.useId(),d=t,f=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.firstName}),p=Xw(),m=Bs("net.atos.entng.community.controllers.CommunityController|view"),y=Bs("org.entcore.conversation.controllers.ConversationController|view"),w=Bs("fr.openent.searchengine.controllers.SearchEngineController|view"),g=b.useCallback(()=>{i(!s)},[s]),v=async()=>{await ne.session().logout(),window.location.href="/auth/login"};return b.useMemo(()=>({title:r,bookmarkedApps:p,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:d,userName:f,welcomeUser:h,communityWorkflow:m,conversationWorflow:y,searchWorkflow:w,isCollapsed:s,toggleCollapsedNav:g,handleLogout:v}),[o,p,m,y,a,s,l,u,w,r,g,d,f,h])}function o2(){const[e,t]=b.useState(!1);b.useEffect(()=>{n()},[]);const n=b.useCallback(async()=>{const r=await ne.session().isAdml();t(r)},[]);return{isAdml:e}}function Yu(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(a){let l="";switch(l=(a==null?void 0:a.icon)!==void 0?a==null?void 0:a.icon.trim().toLowerCase():"placeholder",l&&l.length>0?l.endsWith("-large")&&(l=l.replace("-large","")):l=(a==null?void 0:a.displayName)!==void 0?a==null?void 0:a.displayName.trim().toLowerCase():"",l){case"admin.title":l="admin";break;case"banques des savoirs":l="banquesavoir";break;case"collaborativewall":l="collaborative-wall";break;case"communautés":l="community";break;case"directory.user":l="userbook";break;case"emploi du temps":l="edt";break;case"messagerie":l="conversation";break;case"news":l="actualites";break;case"homeworks":case"cahier de texte":l="cahier-de-texte";break;case"diary":case"cahier de texte 2d":l="cahier-textes";break}return l}function n(a){return a&&(a.startsWith("/")||a.startsWith("http://")||a.startsWith("https://"))}function r(a){const l=t(a);return l?`color-app-${l}`:"color-app-placeholder"}function s(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function i(a){const l=t(a);return l?`bg-light-${l}`:"bg-light-placeholder"}function o(a){return e[a.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function ai(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}function ra(){const{user:e,userDescription:t,userProfile:n}=_e(),{theme:r}=Xu();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function a2(){const[e,t]=b.useState("pending"),{currentApp:n}=_e();b.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await ne.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const l2=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=ai(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:d,onError:f}=Jw({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},p={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},m=G({...h}),y=G({...p},i),w=c.jsx("img",{alt:t,onError:f,ref:a,src:d,className:y,...o});return r?c.jsx("div",{className:m,children:w}):w});l2.displayName="Image";const li=l2,u2=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Yu(),[,a]=ai(),l=r==="square",u=r==="rounded",d=r==="circle",f=n==="contain",h=n==="ratio",p={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},m={square:l,rounded:u,"rounded-circle":d},y={"icon-contain":f,"icon-ratio":h},w=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",x=i(w),S=v||"placeholder",C=G("app-icon",{...p,...m,...y,[`bg-light-${S}`]:S&&!f,[`color-app-${S}`]:S});return x?c.jsx(li,{src:w,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):c.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:c.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:c.jsx("use",{xlinkHref:`${a}/apps.svg#${S}`})})})});u2.displayName="AppIcon";const Er=u2,c2=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=ai(),u=s||`${l}/avatar/no-avatar.svg`,y=G("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return c.jsx("div",{ref:a,className:y,children:c.jsx(li,{src:r||u,alt:n,imgPlaceholder:u,...o})})});c2.displayName="Avatar";const kr=c2,d2=b.forwardRef(({children:e,className:t,...n},r)=>{const s=G("breadcrumb-item",t);return c.jsx("li",{ref:r,className:s,...n,children:e})});d2.displayName="BreadcrumbItem";const nd=d2,f2=b.forwardRef(({children:e,className:t},n)=>{const r=G("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return c.jsx("ol",{ref:n,className:r,children:e})});f2.displayName="BreadcrumbList";const EN=f2,h2=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=re(),{getIconClass:i}=Yu(),o=G("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return c.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});h2.displayName="BreadcrumbNav";const kN=h2,p2=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=c.jsx(BE,{...o,"aria-label":"Loading"}),u},l=G("loading",{"is-loading":n});return c.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});p2.displayName="Loading";const Op=p2,m2=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:d="filled",...f},h)=>{const p=G("btn",{[`btn-filled btn-${e}`]:d==="filled",[`btn-${d}-${e}`]:d==="outline"||d==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return c.jsx("button",{ref:h,className:p,type:t,...f,children:s?c.jsx(Op,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):c.jsxs("span",{children:[a,r,l]})})});m2.displayName="Button";const Fe=m2,g2=b.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:G("btn-icon btn-sm",t)};return c.jsx(Fe,{ref:r,...s,children:e})});g2.displayName="IconButton";const qn=g2,v2=b.forwardRef(({icon:e=c.jsx(e5,{}),onClick:t,...n},r)=>{const s=G("btn-search");return c.jsx(qn,{ref:r,className:s,icon:e,...n,onClick:t})});v2.displayName="SearchButton";const Np=v2,y2=b.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=G(t,r);return c.jsx(e,{ref:i,className:o,...s,children:n})});y2.displayName="Heading";const Qt=y2,x2=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=re();return c.jsx(kN,{app:e,ref:n,className:"mw-100",children:c.jsx(EN,{className:"gap-12 mw-100",children:t?c.jsxs(c.Fragment,{children:[c.jsx(nd,{children:c.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[c.jsx(qn,{variant:"ghost",color:"tertiary",icon:c.jsx(WE,{}),"aria-label":r(e==null?void 0:e.displayName)}),c.jsx(Er,{app:e,size:"40"})]})}),c.jsx(nd,{className:"text-truncate",children:c.jsx(Qt,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):c.jsxs(nd,{className:"gap-12 d-flex align-items-center",children:[c.jsx(Er,{app:e,size:"40"}),c.jsx(Qt,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x2.displayName="Breadcrumb";const w2=x2,b2=({children:e,space:t=null,flexDirection:n="row"})=>{const r=G("card-body",{"p-8":t==="8","gap-8":t==="8","align-items-start":n==="column","flex-column":n==="column"});return c.jsx("div",{className:r,children:e})};b2.displayName="Card.Body";const jN=b2,Pp=b.createContext(null);Pp.displayName="CardContext";const S2=()=>{const e=b.useContext(Pp);if(!e)throw new Error("Cannot be rendered outside the Card component");return e},C2=({children:e})=>c.jsx("div",{className:"card-footer gap-16",children:e});C2.displayName="Card.Footer";const RN=C2,E2=()=>{const{isSelectable:e,isClickable:t,onClick:n,onSelect:r}=S2();return c.jsxs("div",{className:"card-header",children:[e?c.jsx(qn,{"aria-label":"Open Action Bar",className:"z-3 bg-white",color:"secondary",icon:c.jsx(VE,{}),onClick:r,variant:"ghost"}):null,t?c.jsx("button",{onClick:n,className:"position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100","aria-label":"Open resource"}):null]})};E2.displayName="Card.Header";const ON=E2,k2=({imageSrc:e,className:t,variant:n="medium"})=>{const{app:r}=S2(),s=n==="landscape"?{width:"100%",height:"auto"}:null;return c.jsx("div",{className:G("card-image",n),children:e?c.jsx(li,{alt:"",src:e,objectFit:"cover",className:G("h-full",t)}):c.jsx(Er,{app:r,iconFit:"ratio",size:"80",variant:"rounded",...s})})};k2.displayName="Card.Image";const NN=k2,j2=({children:e,className:t})=>{const n=G("card-text small text-break text-truncate text-truncate-1",t);return c.jsx("p",{className:n,children:e})};j2.displayName="Card.Text";const PN=j2,R2=({children:e,className:t})=>{const n=G("card-title body text-break text-truncate text-truncate-1",t);return c.jsx("h3",{className:n,children:c.jsx("strong",{children:e})})};R2.displayName="Card.Title";const AN=R2,O2=({userSrc:e,creatorName:t})=>e?c.jsx(kr,{alt:t||"",size:"xs",src:e,variant:"circle",width:"24",height:"24"}):c.jsx(dp,{});O2.displayName="Card.User";const _N=O2,N2=b.forwardRef(({app:e,isSelectable:t=!0,isClickable:n=!0,isSelected:r=!1,onClick:s,onSelect:i,children:o,className:a},l)=>{const{getIconCode:u}=Yu(),d=e?u(e):"placeholder",f=b.useMemo(()=>({app:e,appCode:d,isSelectable:t,isClickable:n,onClick:s,onSelect:i}),[e,d,t,n,s,i]);return c.jsx(Pp.Provider,{value:f,children:c.jsxs("div",{ref:l,className:G("card",{"is-selected":r},a),children:[c.jsx(P2.Header,{}),typeof o=="function"?o(d):o]})})});N2.displayName="Card";const P2=Object.assign(N2,{Title:AN,Text:PN,Image:NN,Body:jN,User:_N,Footer:RN,Header:ON}),vn=P2,A2=b.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=b.useRef(null);b.useImperativeHandle(i,()=>({...o.current})),b.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=b.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:G(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return c.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[c.jsx("input",{...u}),e&&c.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});A2.displayName="Checkbox";const Ju=A2,_2=b.createContext(null),ui=()=>{const e=b.useContext(_2);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},T2=b.createContext(null),Zu=()=>{const e=b.useContext(T2);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},I2=({children:e})=>{const{status:t}=Zu(),n=G("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return c.jsx("p",{className:n,children:c.jsx("em",{children:e})})};I2.displayName="Text";const D2=I2,M2=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:d}=Zu(),f=G({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":d==="invalid","is-valid":d==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return c.jsx("input",{ref:o,id:a,className:f,type:r,placeholder:t,required:l,readOnly:u,...i})});M2.displayName="Input";const jr=M2,L2=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=Zu(),u=G("form-label",{"has-icon":e},s),d=a&&!l,f=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),c.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,d&&c.jsxs("em",{className:"optional",children:["- ",t]}),f&&c.jsx("em",{className:"required",children:n})]})});L2.displayName="Label";const Kr=L2,F2=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return c.jsx(T2.Provider,{value:u,children:c.jsx("div",{ref:l,className:t,...a,children:e})})}),TN=Object.assign(F2,{Label:Kr,Input:jr,Text:D2});F2.displayName="FormControl";const Ue=TN,IN=({placeholder:e,value:t="",handleSearchInputChange:n})=>{const{triggerProps:r,itemProps:s,setVisible:i}=ui(),o={...r,role:"combobox",onClick:()=>{t.length>2&&i(!0)},onChange:n};return b.useEffect(()=>{i(t.length>2)},[i,t]),c.jsx(Ue,{className:"d-flex align-items-center",id:"search",children:c.jsx(jr,{...o,className:"max-w-512",noValidationIcon:!0,placeholder:e,size:"md",type:"search",onKeyDown:s.onMenuItemKeyDown})})},DN=IN,$2=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=ui(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=b.useId(),d=n.includes(t),f={value:t,model:n,checked:d,readOnly:!0},h=G("dropdown-item c-pointer",{focus:o===u});return c.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemcheckbox","aria-checked":d,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:d?0:-1,className:h,children:c.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,c.jsx(Ju,{...f})]})})};$2.displayName="Dropdown.CheckboxItem";const MN=$2,B2=({type:e="action",icon:t,onClick:n,children:r,...s})=>{const{itemProps:i,itemRefs:o,isFocused:a}=ui(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:u,onMenuItemClick:d}=i,f=()=>{n==null||n(),e==="action"&&d()},h=b.useId(),p=G("dropdown-item",{focus:a===h});return c.jsx("div",{id:h,role:"menuitem",ref:m=>o.current[h]=m,tabIndex:a===h?0:-1,className:p,"aria-current":a===h,onClick:f,onMouseEnter:u,onKeyDown:m=>l(m,n),...s,children:c.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[t,r]})})};B2.displayName="Dropdown.Item";const LN=B2,z2=b.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=ui(),{className:o,...a}=s,l={...a,...n},u=G({"w-100":t},o);return i?c.jsx("div",{ref:r,className:u,...l,children:e}):null});z2.displayName="Dropdown.Menu";const FN=z2,V2=b.forwardRef(({label:e,children:t},n)=>c.jsxs("div",{ref:n,role:"group",children:[c.jsx("span",{className:"small px-4",children:c.jsx("strong",{children:e})}),t]}));V2.displayName="Dropdown.MenuGroup";const $N=V2,U2=b.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=b.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:G(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return c.jsxs("div",{className:G("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[c.jsx("input",{...u}),t&&c.jsx("label",{htmlFor:u.id,className:G("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&c.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});U2.displayName="Radio";const au=U2,H2=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=ui(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=b.useId(),f={value:t,model:n,checked:t===n,readOnly:!0},h=G("dropdown-item c-pointer",{focus:o===u});return c.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:c.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,c.jsx(au,{...f,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};H2.displayName="Dropdown.RadioItem";const BN=H2,q2=()=>c.jsx("div",{role:"separator",className:"px-4",children:c.jsx("hr",{className:"m-0"})});q2.displayName="Dropdown.Separator";const zN=q2,Q2=b.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},a)=>{const{triggerProps:l,block:u}=ui(),{className:d,...f}=l,h={...f,...o},p=G(s,n,{"w-100":u},d);return c.jsxs("button",{ref:a,className:p,disabled:r,...h,children:[t||null,e,i?c.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):c.jsx(XE,{width:16,height:16,className:"dropdown-toggle-caret"})]})});Q2.displayName="Dropdown.Trigger";const VN=Q2,UN=e=>{const t=b.useId(),[n,r]=b.useState(!1),[s,i]=b.useState(-1),[o,a]=b.useState(null),{refs:l,floatingStyles:u}=G5({placement:e,open:n,onOpenChange:r,whileElementsMounted:M5,middleware:[x5(4),w5({apply({rects:F,elements:T}){Object.assign(T.floating.style,{minWidth:`${F.reference.width}px`})}}),v5({padding:0})]}),d=b.useRef(null),f=b.useRef(null),h=b.useRef({});b.useEffect(()=>{n?d.current&&(d.current.focus(),i(0)):(i(-1),h.current={})},[n]),b.useEffect(()=>{if(s!==-1){const F=Object.values(h.current)[s];if(F){const T=F.getAttribute("id");a(T),F.focus()}}},[s]);const p=()=>{const T=Object.values(h.current).length;i($=>($+1)%T)},m=()=>{const T=Object.values(h.current).length;i($=>($-1+T)%T)},y=()=>{i(0)},w=()=>{const T=Object.values(h.current).length;i(T-1)},g=b.useCallback(()=>{r(!0)},[]),v=b.useCallback(()=>{f.current&&(f.current.focus(),r(!1))},[]),x=(F,T)=>{F&&(T.stopPropagation(),T.preventDefault())},S=b.useCallback(F=>{let T=!1;switch(F.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),T=!0;break;case"Esc":case"Escape":v(),T=!0;break;case"Up":case"ArrowUp":g(),T=!0;break}x(T,F)},[v,g]),C=F=>{const $=Object.values(h.current).findIndex(D=>D.id===F.currentTarget.getAttribute("id"));i($)},j=b.useCallback((F,T)=>{let $=!1;if(F.shiftKey)F.key==="Tab"&&(v(),$=!0);else{switch(F.code){case"Escape":v();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&f.current&&(f.current.focus(),r(!1)),T==null||T()),$=!0;break;case"ArrowDown":case"Down":p(),$=!0;break;case"ArrowUp":case"Up":m(),$=!0;break;case"Home":y(),$=!0;break;case"End":w(),$=!0;break}x($,F)}},[s,v]),k=b.useCallback(F=>{r(n!==!0),F.stopPropagation(),F.preventDefault()},[n]),O=b.useCallback(()=>{v()},[v]);function A(F,...T){T.forEach($=>{typeof $=="function"?$(F):$!=null&&($.current=F)})}function _(...F){return T=>{A(T,...F)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:f,menuRef:d,triggerProps:{ref:_(f,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:k,onKeyDown:S,"aria-activedescendant":o},menuProps:{ref:_(d,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:C,onMenuItemClick:O,onMenuItemKeyDown:j},setVisible:r}},W2=UN,K2=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:d}=W2(r),f=kp(()=>d(!1)),h=b.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t,setVisible:d}),[s,i,o,a,l,u,t,d]),p=G("dropdown",{"w-100":t,overflow:n});return c.jsx(_2.Provider,{value:h,children:c.jsx("div",{ref:f,className:p,children:typeof e=="function"?e(o,u):e})})};K2.displayName="Dropdown";const HN=Object.assign(K2,{Trigger:VN,Menu:FN,Item:LN,Separator:zN,CheckboxItem:MN,RadioItem:BN,MenuGroup:$N}),we=HN,ec=({onSearchResultsChange:e,onSearchInputChange:t,options:n,value:r,isLoading:s,noResult:i,placeholder:o})=>{const{t:a}=re(),[l,u]=b.useState([]);b.useEffect(()=>{e(l)},[l]);const d=h=>{u([h])},f=()=>s?c.jsxs("div",{className:"d-flex align-items-center p-4",children:[c.jsx(Op,{isLoading:s}),c.jsx("span",{className:"ps-4",children:a("explorer.search.pending")})]}):i?c.jsx("div",{className:"p-4",children:a("portal.no.result")}):n.map((h,p)=>c.jsxs(b.Fragment,{children:[c.jsx(we.Item,{type:"select",onClick:()=>d(h.value),children:h.label}),p<n.length-1&&c.jsx(we.Separator,{})]},p));return c.jsxs(we,{block:!0,children:[c.jsx(ec.Trigger,{placeholder:o,handleSearchInputChange:t,value:r}),c.jsx(we.Menu,{children:f()})]})};ec.Trigger=DN;ec.displayName="Combobox";const G2=ec,X2=({imageSrc:e,imageAlt:t="",title:n,text:r})=>c.jsxs("div",{className:"emptyscreen",children:[e&&c.jsx("div",{className:"emptyscreen-image mb-12",children:c.jsx("img",{className:"mx-auto",src:e,alt:t,width:"250",height:"250"})}),n&&c.jsx(Qt,{level:"h2",headingStyle:"h2",className:"text-secondary mb-8",children:n}),r&&c.jsx("div",{className:"text",children:r})]});X2.displayName="EmptyScreen";const qN=X2,zs=({children:e,className:t,...n})=>{const r=G("grid",t);return c.jsx("div",{className:r,...n,children:e})},Ap=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=G({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return c.jsx(l,{className:u,...a,children:s})};zs.displayName="Grid";Ap.displayName="Grid.Col";zs.Col=Ap;const Y2=b.forwardRef(({label:e,addButtonLabel:t="Add image",deleteButtonLabel:n="Delete image",src:r,className:s,app:i,onUploadImage:o,onDeleteImage:a},l)=>{const u=b.useRef(null),[d,f]=b.useState(r||""),h=S=>{f("");const C=S==null?void 0:S[0];C&&(f(URL.createObjectURL(C)),o(C))},p=()=>{var S;(S=u.current)==null||S.click()},m=()=>{u.current&&(u.current.value=""),f(""),a()},y=S=>{h(S.target.files)},w=G("image-input",s),{handleDragging:g,handleDragLeave:v,handleDrop:x}=s2(u,h);return c.jsxs(Ue,{id:"image-input",className:w,onDragEnter:g,onDragOver:g,onDragLeave:v,onDrop:x,ref:l,children:[c.jsxs("div",{className:"image-input-actions gap-8",children:[c.jsx(qn,{"aria-label":t,color:"tertiary",icon:c.jsx(RE,{}),onClick:p,type:"button",variant:"ghost"}),c.jsx(qn,{"aria-label":n,color:"danger",disabled:!d,icon:c.jsx(ox,{width:"20",height:"20"}),onClick:m,type:"button",variant:"ghost"})]}),c.jsxs(Ue.Label,{children:[c.jsx("span",{className:"visually-hidden",children:e}),c.jsx(jr,{accept:"image/*",hidden:!0,onChange:y,ref:u,size:"sm",type:"file"}),d?c.jsx(kr,{alt:"",src:d,size:"xl"}):c.jsx(Er,{app:i,iconFit:"ratio",size:"160",variant:"rounded"})]})]})});Y2.displayName="ImagePicker";const _p=Y2,J2=b.forwardRef(({text:e,textButton:t,src:n,alt:r,url:s},i)=>c.jsx(c.Fragment,{children:c.jsxs("div",{ref:i,className:"p-16",children:[c.jsx(li,{width:"270",height:"140",loading:"lazy",className:"rounded",src:n,alt:r}),c.jsx("p",{className:"m-8",children:e}),c.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:c.jsx(Fe,{rightIcon:c.jsx(yE,{}),className:"py-0 px-8",variant:"ghost",color:"primary",children:t})})]})}));J2.displayName="Library";const QN=J2,Z2=b.forwardRef(({position:e=!0},t)=>{const[n]=ai(),r=`${n}/loading/screen-loading.gif`,s=G("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return c.jsxs(c.Fragment,{children:[c.jsx("div",{ref:t,className:s,children:c.jsx("div",{className:"bg-white rounded-circle mx-auto",children:c.jsx("img",{src:r,alt:"loading"})})}),!e&&c.jsx("div",{className:"modal-backdrop fade show"})]})});Z2.displayName="LoadingScreen";const et=Z2,eb=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=G("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return c.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:c.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});eb.displayName="Logo";const _f=eb,Tp=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});Tp.displayName="ModalContext";const tb=()=>{const e=b.useContext(Tp);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},nb=e=>{const{ariaDescriptionId:t}=tb(),{children:n,className:r}=e,s=G("modal-body",r);return c.jsx("div",{id:t,className:s,children:n})};nb.displayName="Modal.Body";const WN=nb,rb=e=>c.jsx("div",{className:"modal-footer",children:e.children});rb.displayName="Modal.Footer";const KN=rb,sb=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=tb(),i=b.useRef(null);return b.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),c.jsxs("div",{className:"modal-header",children:[c.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),c.jsx(qn,{ref:i,"aria-label":"Close",color:"tertiary",icon:c.jsx(ix,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};sb.displayName="Modal.Header";const GN=sb,ib=e=>c.jsx("p",{className:"modal-subtitle",children:e.children});ib.displayName="Modal.Subtitle";const XN=ib,ob=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,d=`aria_label_${n}`,f=`aria_desc_${n}`,h=kp(s),p=n2();Zw(s,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const m=G("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=G("modal-dialog"),w={ariaLabelId:d,ariaDescriptionId:f,focusId:l},g=rp(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return c.jsx(Tp.Provider,{value:w,children:g((v,x)=>c.jsxs(c.Fragment,{children:[x&&c.jsx(ru.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":f,className:m,style:v,tabIndex:-1,children:c.jsx("div",{id:`${n}_ref`,ref:S=>{h.current=S,x&&(p.current=S)},className:y,children:c.jsx("div",{className:"modal-content",children:u})})}),x&&c.jsx(ru.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),YN=Object.assign(ob,{Header:GN,Subtitle:XN,Body:WN,Footer:KN});ob.displayName="Modal";const je=YN,JN=({children:e,className:t})=>{const n=G("popover-header",t);return c.jsx("div",{className:n,children:e})},ab=({children:e,className:t})=>{const n=G("popover-body",t);return c.jsx("div",{className:n,children:e})},lb=({children:e,className:t})=>{const n=G("popover-footer p-8",t);return c.jsx("div",{className:n,children:e})},tc=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=G("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return rp(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((l,u)=>u&&c.jsx(ru.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});tc.displayName="Popover";const ub=e=>c.jsx(we.Trigger,{...e,"aria-haspopup":"listbox",role:"combobox"});ub.displayName="SelectTrigger";const ZN=ub,cb=({icon:e,options:t,overflow:n,block:r,variant:s,size:i,disabled:o,placeholderOption:a,onValueChange:l})=>{const[u,d]=b.useState(),{t:f}=re();b.useEffect(()=>{if(u){const p=typeof u=="object"?u.value:u;l==null||l(p)}},[u]);const h=typeof u=="object"?u.label:u;return c.jsxs(we,{overflow:n,block:r,children:[c.jsx(ZN,{icon:e,label:f(h||a),variant:s,size:i,disabled:o}),c.jsx(we.Menu,{role:"listbox",children:t==null?void 0:t.map(p=>{const m=typeof p=="object"?p.value:p,y=typeof p=="object"?p.label:p;return c.jsx(we.Item,{onClick:()=>d(p),children:y},m)})})]})};cb.displayName="Select";const Ip=cb,eP=({children:e,message:t,icon:n=null,placement:r="auto"})=>{const[s,i]=b.useState(null),[o,a]=b.useState(null),[l,u]=b.useState(null),{styles:d,attributes:f}=y8(s,o,{placement:r,modifiers:[{name:"arrow",options:{element:l}}]}),[h,p]=b.useState(!1);return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"d-inline-block position-relative z-2",ref:i,onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},children:e}),h&&c.jsxs("div",{className:G("tooltip d-block show mb-12","bs-tooltip-auto"),ref:a,style:d.popper,...f.popper,children:[c.jsxs("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center",children:[n&&n,c.jsx("div",{children:t})]}),c.jsx("div",{className:"tooltip-arrow",ref:u,style:d.arrow})]})]})},lu=eP,db=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",height:r="md",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:d}=Zu(),f=G({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","textarea-height-lg":r==="lg","textarea-height-md":r==="md","textarea-height-sm":r==="sm","is-invalid":d==="invalid","is-valid":d==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return c.jsx("textarea",{ref:o,id:a,className:f,placeholder:t,required:l,readOnly:u,...i})});db.displayName="TextArea";const Dp=db;function tP(e,t,n,r,s,i,o,a,l){const u=w=>{w.preventDefault(),s==null||s(e),w.stopPropagation()},d=w=>{(w.code==="Enter"||w.code==="Space")&&(w.preventDefault(),s==null||s(e),w.stopPropagation())},f=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:d,handleItemFoldUnfoldClick:w=>{w.preventDefault(),f(),w.stopPropagation()},handleItemFoldUnfoldKeyDown:w=>{(w.code==="Enter"||w.code==="Space")&&(w.preventDefault(),f(),w.stopPropagation())},handleItemFocus:w=>{w.preventDefault(),a==null||a(e)},handleItemBlur:w=>{w.preventDefault(),l==null||l(e)}}}const fb=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:d,selectedNodesIds:f}=e,[h,p]=b.useState(!1),{handleItemClick:m,handleItemKeyDown:y,handleItemFoldUnfoldClick:w,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:x}=tP(t,n,h,p,o,a,l,u,d);b.useEffect(()=>{if(f!=null&&f.length&&(f==null?void 0:f.length)>=1){const j=f[f.length-1];f.some(k=>k===t&&t!==j?(p(!0),k===t):(p(!1),!1))}else p(!1)},[t,f]);const S=s?16:12,C=()=>c.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:c.jsxs("div",{children:[c.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[c.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:w,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&c.jsx(_g,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&c.jsx(Eo,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&c.jsx(_g,{title:"RafterRight",width:S,height:S,"aria-hidden":"true",className:"opacity-0"})]}),c.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:m,onKeyDown:y,onFocus:v,onBlur:x,children:[s&&c.jsx(DE,{title:"Folder",width:20,height:20}),c.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&c.jsx("ul",{role:"group",children:r})]})},t);return s?c.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};fb.displayName="TreeItem";const nP=fb,hb=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,d]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?d(l[l.length-1]):d("")},[l]);const f=g=>{d(g),r==null||r(g)},h=g=>{s==null||s(g)},p=g=>{i==null||i(g)},m=g=>{o==null||o(g)},y=g=>{a==null||a(g)},w=g=>c.jsx(nP,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:f,onItemFold:h,onItemUnfold:p,onItemFocus:m,onItemBlur:y,children:Array.isArray(g.children)?g.children.map(v=>w(v)):null},g.id);return c.jsx("div",{ref:t,id:"treeview",className:"treeview",children:w(n)})});hb.displayName="TreeView";const pb=hb,mb=b.forwardRef(({children:e},t)=>c.jsx("span",{className:"visually-hidden",ref:t,children:e}));mb.displayName="VisuallyHidden";const Mn=mb,gb=({app:e,name:t,isSelected:n=!1,isSelectable:r=!0,onClick:s,onSelect:i})=>c.jsx(vn,{app:e,isSelectable:r,isSelected:n,onClick:s,onSelect:i,children:o=>c.jsxs(vn.Body,{children:[c.jsx(AE,{width:"48",height:"48",className:`color-app-${o}`}),c.jsx(vn.Title,{children:t})]})});gb.displayName="FolderCard";const rP=gb,sP=()=>{const{t:e}=re();return[{value:"bpr.activityType.classroomActivity",label:e("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:e("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:e("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:e("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:e("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:e("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:e("bpr.activityType.courseElement")},{value:"bpr.other",label:e("bpr.other")}]},iP=({control:e,selectedActivities:t,selectActivities:n})=>{const r=sP(),{t:s}=re();return c.jsx("div",{className:"col d-flex",children:c.jsx(Ru,{name:"activityType",control:e,rules:{required:!0},render:({field:{onChange:i}})=>c.jsxs(we,{block:!0,overflow:!0,children:[c.jsx(we.Trigger,{size:"md",label:s("bpr.form.publication.type"),badgeContent:t==null?void 0:t.length}),c.jsx(we.Menu,{children:r.map((o,a)=>c.jsx(we.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},a))})]})})})},oP=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],H1=({name:e,control:t,placeholderOption:n,validate:r})=>c.jsx(Ru,{name:e,control:t,rules:{required:!0,validate:r},render:({field:{onChange:s}})=>c.jsx(Ip,{block:!0,size:"md",onValueChange:s,options:oP,"aria-required":!0,placeholderOption:n})}),aP=()=>{const{t:e}=re();return[{value:"de_DE",label:e("de_DE")},{value:"en_EN",label:e("en_EN")},{value:"ar_DZ",label:e("ar_DZ")},{value:"es_ES",label:e("es_ES")},{value:"fr_FR",label:e("fr_FR")},{value:"it_IT",label:e("it_IT")},{value:"ja_JP",label:e("ja_JP")},{value:"zh_CN",label:e("zh_CN")},{value:"pt_PT",label:e("pt_PT")},{value:"ru_RU",label:e("ru_RU")},{value:"bpr.other",label:e("bpr.other")}]},lP="bpr.form.publication.language",uP=({control:e})=>{const t=aP();return c.jsx("div",{className:"col",children:c.jsx(Ru,{name:"language",control:e,rules:{required:!0},render:({field:{onChange:n}})=>c.jsx(Ip,{block:!0,size:"md",onValueChange:n,options:t,"aria-required":!0,placeholderOption:lP})})})},cP=()=>{const{t:e}=re(),[t]=ai();return c.jsxs(c.Fragment,{children:[c.jsxs("ul",{className:"mb-12",children:[c.jsxs("li",{children:[e("bpr.form.publication.licence.text.1"),c.jsx("img",{className:"ms-8 d-inline-block",src:`${t}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),c.jsx("li",{children:e("bpr.form.publication.licence.text.2")})]}),c.jsx(ur,{type:"info",className:"mb-12",children:e("bpr.form.publication.licence.text.3")}),c.jsx(ur,{type:"warning",children:e("bpr.form.publication.licence.text.4")})]})},dP=()=>{const{t:e}=re();return[{value:"bpr.subjectArea.artActivity",label:e("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:e("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:e("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:e("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:e("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:e("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:e("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:e("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:e("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:e("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:e("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:e("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:e("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:e("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:e("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:e("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:e("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:e("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:e("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:e("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:e("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:e("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:e("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:e("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:e("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:e("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:e("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:e("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:e("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:e("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:e("bpr.subjectArea.technology")},{value:"bpr.other",label:e("bpr.other")}]},fP=({control:e,selectedSubjectAreas:t,selectSubjects:n})=>{const r=dP(),{t:s}=re();return c.jsx("div",{className:"col d-flex",children:c.jsx(Ru,{name:"subjectArea",control:e,rules:{required:!0},render:({field:{onChange:i}})=>c.jsxs(we,{block:!0,overflow:!0,children:[c.jsx(we.Trigger,{size:"md",label:s("bpr.form.publication.discipline"),badgeContent:t==null?void 0:t.length}),c.jsx(we.Menu,{children:r.map((o,a)=>c.jsx(we.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},a))})]})})})};function q1({formData:e}){const{t}=re(),n=r=>r.match(/^\s/);return c.jsxs(c.Fragment,{children:[c.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),c.jsx("p",{className:"pt-24 pb-24",children:c.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),c.jsxs("ul",{children:[n(e.title)&&c.jsx("li",{className:"pt-2 pb-2",children:c.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),n(e.description)&&c.jsx("li",{className:"pt-2 pb-2",children:c.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}function hP({result:e}){const{t}=re();return c.jsxs(c.Fragment,{children:[c.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),c.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),c.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),e.details.front_url&&c.jsx("p",{className:"pt-24 pb-24",children:c.jsx("a",{className:"button right-magnet",href:e.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}const pP={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"};function mP({onSuccess:e,resource:t}){const{user:n,appCode:r}=_e(),s=at(),[i,o]=b.useState(t.thumbnail||""),{control:a,register:l,watch:u,setValue:d,handleSubmit:f,formState:{errors:h,isSubmitting:p,isDirty:m,isValid:y}}=rx({mode:"onChange"}),[w,g]=b.useState([]),[v,x]=b.useState([]),S=(_,F,T)=>{let $=[...F];const D=$.findIndex(E=>E===_);F.includes(_)?$=F.filter((E,N)=>N!==D):$=[...F,_],T($)};return{control:a,cover:i,formState:{errors:h,isSubmitting:p,isDirty:m,isValid:y},handleDeleteImage:()=>o(""),handlePublish:async _=>{const F=n?n==null?void 0:n.userId:"";try{let T=new Blob;typeof i=="string"?T=await ne.http().get(i,{responseType:"blob"}):i?T=await ne.http().get(URL.createObjectURL(i),{responseType:"blob"}):t.thumbnail&&(T=await ne.http().get(t.thumbnail,{responseType:"blob"}));const $=await ne.http().get(`/userbook/avatar/${F}?thumbnail=48x48`,{responseType:"blob"}),D=await ne.http().get(`/directory/user/${F}/attachment-school`,{responseType:"json"}),E=pP[r],N={activityType:w,age:[_.ageMin,_.ageMax],application:E,cover:T,description:_.description,keyWords:_.keyWords,language:_.language,licence:"CC-BY",resourceId:t.assetId,resourceEntId:t.assetId,subjectArea:v,teacherAvatar:$,title:_.title,userId:F,userStructureName:D.name||(n==null?void 0:n.structureNames[0])},L=await ne.resource(E).publish(N);L.success?s.success(c.jsx(hP,{result:L}),{duration:1e4}):s.error(c.jsx(q1,{formData:_})),e==null||e()}catch(T){console.error(T),s.error(c.jsx(q1,{formData:_}))}},handleSubmit:f,handleUploadImage:_=>o(_),register:l,selectActivities:_=>{S(_,w,g)},selectedActivities:w,selectedSubjectAreas:v,selectSubjects:_=>{S(_,v,x)},setValue:d,watch:u}}function gP({isOpen:e,resource:t,onSuccess:n,onCancel:r}){const{currentApp:s}=_e(),{t:i}=re(),{control:o,cover:a,formState:{isDirty:l,isValid:u,isSubmitting:d},handleDeleteImage:f,handleSubmit:h,handleUploadImage:p,handlePublish:m,register:y,selectActivities:w,selectedActivities:g,selectedSubjectAreas:v,selectSubjects:x}=mP({resource:t,onSuccess:n}),S="bpr.form.publication.age.min",C="bpr.form.publication.age.max";return Wn.createPortal(c.jsxs(je,{isOpen:e,onModalClose:r,id:"libraryModal",size:"lg",children:[c.jsx(je.Header,{onModalClose:r,children:i("bpr.publish")}),c.jsx(je.Subtitle,{children:i("bpr.form.tip")}),c.jsxs(je.Body,{children:[c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.general")}),c.jsxs("form",{id:"libraryModalForm",onSubmit:h(m),children:[c.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[c.jsxs("div",{style:{maxWidth:"160px"},children:[c.jsx("div",{className:"form-label",children:i("bpr.form.publication.cover.title")}),c.jsx(_p,{app:s,src:t.thumbnail,label:i("bpr.form.publication.cover.upload.label"),addButtonLabel:i("bpr.form.publication.cover.upload.add"),deleteButtonLabel:i("bpr.form.publication.cover.upload.remove"),onUploadImage:p,onDeleteImage:f,className:"align-self-center"}),!a&&c.jsx("p",{className:"form-text is-invalid",children:c.jsx("em",{children:i("bpr.form.publication.cover.upload.required.image")})})]}),c.jsxs("div",{className:"flex-fill",children:[c.jsxs(Ue,{id:"title",className:"mb-16",isRequired:!0,children:[c.jsx(Kr,{children:i("bpr.form.publication.title")}),c.jsx(jr,{type:"text",defaultValue:t.name,...y("title",{required:!0}),placeholder:i("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),c.jsxs(Ue,{id:"description",isRequired:!0,children:[c.jsx(Kr,{children:i("bpr.form.publication.description")}),c.jsx(Dp,{...y("description",{required:!0}),placeholder:i("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),c.jsx("hr",{}),c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.infos")}),c.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[c.jsx(iP,{control:o,selectedActivities:g,selectActivities:w}),c.jsx(fP,{control:o,selectedSubjectAreas:v,selectSubjects:x}),c.jsx(uP,{control:o})]}),c.jsxs("div",{className:"mb-24",children:[c.jsx("label",{htmlFor:"",className:"form-label",children:i("bpr.form.publication.age")}),c.jsxs("div",{className:"d-flex gap-8",children:[c.jsx("div",{className:"col col-2",children:c.jsx(H1,{control:o,name:"ageMin",placeholderOption:S,validate:(j,k)=>parseInt(j)<=parseInt(k.ageMax)})}),c.jsx("div",{className:"col col-2",children:c.jsx(H1,{control:o,name:"ageMax",placeholderOption:C,validate:(j,k)=>parseInt(j)>=parseInt(k.ageMin)})})]})]}),c.jsx("div",{className:"mb-24",children:c.jsxs(Ue,{id:"keywords",isOptional:!0,children:[c.jsx(Kr,{children:i("bpr.form.publication.keywords")}),c.jsx(jr,{type:"text",...y("keyWords"),size:"md",placeholder:i("bpr.form.publication.keywords.placeholder")})]})}),c.jsx("hr",{}),c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.licence.text")}),c.jsx(cP,{})]})]}),c.jsxs(je.Footer,{children:[c.jsx(Fe,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:i("cancel")}),c.jsx(Fe,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:d,disabled:!a||d||!l||!u,children:i("bpr.form.submit")})]})]}),document.getElementById("portal"))}const vb=({app:e,resource:t,time:n,isSelected:r=!1,isSelectable:s=!0,onClick:i,onSelect:o})=>{const a=`/userbook/avatar/${t==null?void 0:t.creatorId}`;function l(h){const{rights:p,creatorId:m}=h||{};return p.filter(w=>!w.includes(m)).length>=1}const u=l(t),d=t==null?void 0:t.public,{t:f}=re();return c.jsx(vn,{app:e,isSelected:r,isSelectable:s,onClick:i,onSelect:o,children:h=>c.jsxs(c.Fragment,{children:[c.jsxs(vn.Body,{children:[c.jsx("div",{className:"card-image medium",children:t!=null&&t.thumbnail?c.jsx(li,{alt:"",src:t==null?void 0:t.thumbnail,objectFit:"cover",className:"h-full"}):c.jsx(Er,{app:e,iconFit:"ratio",size:"80",variant:"rounded"})}),c.jsxs("div",{className:"text-truncate",children:[c.jsx(vn.Title,{children:t==null?void 0:t.name}),c.jsx(vn.Text,{children:c.jsx("em",{children:n})})]})]}),c.jsxs(vn.Footer,{children:[c.jsxs("div",{className:`
230
+ d-inline-flex
231
+ align-items-center
232
+ gap-8
233
+ text-truncate`,children:[a?c.jsx(kr,{alt:(t==null?void 0:t.creatorName)||"",size:"xs",src:a,variant:"circle",width:"24",height:"24"}):c.jsx(dp,{}),c.jsx(vn.Text,{children:t==null?void 0:t.creatorName})]}),c.jsxs("div",{className:"d-inline-flex align-items-center gap-8",children:[u&&c.jsx(lu,{message:f("tooltip.shared",{ns:h}),placement:"top",children:c.jsx(s5,{width:16,height:16})}),d&&c.jsx(lu,{message:f("tooltip.public",{ns:h}),placement:"top",children:c.jsx(LE,{width:16,height:16})})]})]})]})})};vb.displayName="ResourceCard";const vP=vb,yP=({watch:e,selectedResource:t})=>{const[n,r]=b.useState(""),[s,i]=b.useState(!!(t!=null&&t.public)||!1),o=b.useId(),a=e("title"),{t:l}=re(),u=at(),d=`${hw({foo:`${a}${o}`})}-${mw(a)}`;b.useEffect(()=>{if(s){let p="";t&&t.slug?p=t.slug:p=d,r(p)}},[s,t,a,o]);function f(p){i(p)}function h(){navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}/pub/${n}`),u.success(l("explorer.copy.clipboard"))}return{slug:n,uniqueId:o,isPublic:s,resourceName:a,onPublicChange:f,onCopyToClipBoard:h}},xP=({isUpdating:e,selectedResource:t})=>{const[n,r]=b.useState(e&&(t==null?void 0:t.thumbnail)||"");return{thumbnail:n,handleDeleteImage:()=>r(""),handleUploadImage:o=>r(o)}},wP=({appCode:e,isPublic:t,onCopyToClipBoard:n,onPublicChange:r,register:s,slug:i,resourceName:o})=>{const{t:a}=re();return c.jsxs(c.Fragment,{children:[c.jsxs(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:[a("explorer.resource.editModal.heading.access"),e]}),c.jsx(ur,{type:"info",children:a("explorer.resource.editModal.access.alert")}),c.jsxs(Ue,{id:"flexSwitchCheckDefault",className:"form-switch d-flex gap-8 mt-16 mb-8",children:[c.jsx(Ue.Input,{type:"checkbox",role:"switch",...s("enablePublic",{disabled:!t&&!o,onChange:l=>{r(l.target.checked)}}),className:"form-check-input mt-0",size:"md"}),c.jsx(Ue.Label,{className:"form-check-label mb-0",children:a("explorer.resource.editModal.access.flexSwitchCheckDefault.label")})]}),t&&c.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-4",children:[c.jsxs("p",{className:"text-break",children:[window.location.origin,window.location.pathname,"/pub/",i]}),c.jsx(Fe,{color:"primary",disabled:!t,onClick:n,type:"button",leftIcon:c.jsx(EE,{}),variant:"ghost",className:"text-nowrap",children:a("explorer.resource.editModal.access.url.button")})]})]})},yb=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},bP=({isOpen:e,actions:t,onCancel:n,onSuccess:r,...s})=>{var i,o,a,l,u,d;const{appCode:f,currentApp:h}=_e(),{t:p}=re(),{mode:m}=s,y=b.useId(),w=m==="create",g=m==="update",{watch:v,register:x,handleSubmit:S,formState:{isSubmitting:C,isValid:j}}=rx({mode:"onChange",defaultValues:{description:g?(i=s.selectedResource)==null?void 0:i.description:"",enablePublic:g?(o=s.selectedResource)==null?void 0:o.public:!1,title:g?(a=s.selectedResource)==null?void 0:a.name:""}}),{slug:k,uniqueId:O,isPublic:A,resourceName:_,onPublicChange:F,onCopyToClipBoard:T}=yP({watch:v,selectedResource:g?s.selectedResource:void 0}),$=at(),{thumbnail:D,handleDeleteImage:E,handleUploadImage:N}=xP({isUpdating:g}),L=async function(P){var B,z;try{const ee={description:P.description||"",name:P.title,public:P.enablePublic,thumbnail:D},J=`${hw({foo:`${P.title}${O}`})}-${mw(P.title)}`;w?await s.createResource.mutateAsync({...ee,folder:((B=s.currentFolder)==null?void 0:B.id)==="default"?void 0:parseInt(((z=s.currentFolder)==null?void 0:z.id)||""),slug:P.enablePublic?J:"",app:f}):await s.updateResource.mutateAsync({...ee,slug:P.enablePublic?s.selectedResource&&s.selectedResource.slug?s.selectedResource.slug:J:"",entId:s.selectedResource.assetId,trashed:s.selectedResource.trashed}),$.success(c.jsxs(c.Fragment,{children:[c.jsx("strong",{children:p(w?"explorer.resource.created":"explorer.resource.updated")}),c.jsxs("p",{children:[p("title")," : ",P.title]}),c.jsxs("p",{children:[p("description")," : ",P.description]}),f===Ps.BLOG&&c.jsxs("p",{children:["Public:",P.enablePublic?p("explorer.enable.public.yes"):p("explorer.enable.public.no")]})]})),r()}catch(ee){console.error(ee)}};return Wn.createPortal(c.jsxs(je,{id:`${m}-resource`,size:"lg",isOpen:e,onModalClose:n,children:[c.jsx(je.Header,{onModalClose:n,children:p(`explorer.resource.editModal.header.${w?"create":"edit"}`)}),c.jsxs(je.Body,{children:[c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:p("explorer.resource.editModal.heading.general")}),c.jsxs("form",{id:y,onSubmit:S(L),children:[c.jsxs("div",{className:"d-block d-md-flex gap-16 mb-24",children:[c.jsx("div",{children:c.jsx(_p,{app:h,src:g&&((l=s.selectedResource)==null?void 0:l.thumbnail)||"",label:p("explorer.imagepicker.label"),addButtonLabel:p("explorer.imagepicker.button.add"),deleteButtonLabel:p("explorer.imagepicker.button.delete"),onUploadImage:N,onDeleteImage:E,className:"align-self-center mt-8"})}),c.jsxs("div",{className:"col",children:[c.jsxs(Ue,{id:"title",className:"mb-16",isRequired:!0,children:[c.jsx(Kr,{children:p("title")}),c.jsx(jr,{type:"text",defaultValue:g?(u=s.selectedResource)==null?void 0:u.name:"",...x("title",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:p("explorer.resource.editModal.title.placeholder"),size:"md","aria-required":!0})]}),c.jsxs(Ue,{id:"description",isOptional:!0,children:[c.jsx(Kr,{children:p("description")}),c.jsx(Dp,{defaultValue:g?(d=s.selectedResource)==null?void 0:d.description:"",...x("description"),placeholder:p("explorer.resource.editModal.description.placeholder"),size:"md"})]})]})]}),f===Ps.BLOG&&yb({workflow:"createPublic",actions:t})&&c.jsx(wP,{appCode:f,isPublic:A,slug:k,onCopyToClipBoard:T,onPublicChange:F,register:x,resourceName:_})]})]}),c.jsxs(je.Footer,{children:[c.jsx(Fe,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:p("explorer.cancel")}),c.jsx(Fe,{form:y,type:"submit",color:"primary",isLoading:C,variant:"filled",disabled:!j||C,children:p(w?"explorer.create":"save")})]})]}),document.getElementById("portal"))},SP=bP;function CP({radioPublicationValue:e,onRadioPublicationChange:t}){const{appCode:n}=_e(),{t:r}=re(n);return c.jsxs(c.Fragment,{children:[c.jsx("hr",{}),c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("explorer.publication.steps")}),c.jsx(au,{label:r("explorer.immediat.publication"),id:"publication-now",name:"publication",value:"IMMEDIATE",model:e,checked:e==="IMMEDIATE",onChange:s=>t(s.target.value)}),c.jsx(au,{label:r("explorer.validate.publication"),id:"publication-validate",name:"publication",value:"RESTRAINT",checked:e==="RESTRAINT",model:e,onChange:s=>t(s.target.value)})]})}const EP={searchInputValue:"",searchResults:[],searchAPIResults:[],searchPending:!1,isLoading:!1};function kP(e,t){switch(t.type){case"onChange":return{...e,searchInputValue:t.payload};case"isSearching":return{...e,isLoading:t.payload};case"addResult":return{...e,searchResults:t.payload};case"addApiResult":return{...e,searchAPIResults:t.payload};case"updateSearchResult":return{...e,searchResults:t.payload};case"emptyResult":return{...e,searchResults:t.payload};default:throw new Error("Unhandled action type")}}const rd=[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}],jP=({resource:e,shareRights:t,shareDispatch:n})=>{const[r,s]=b.useReducer(kP,EP),i=t2(r.searchInputValue,500),{isAdml:o}=o2(),{appCode:a}=_e();b.useEffect(()=>{u(i)},[i]);const l=m=>{const y=m.target.value;s({type:"onChange",payload:y})},u=async m=>{if(s({type:"isSearching",payload:!0}),!o&&m.length>=1||o&&m.length>=3){const y=await ne.share().searchShareSubjects(a,e.assetId,m);s({type:"addApiResult",payload:y});const w=y.filter(g=>!t.rights.find(v=>v.id===g.id)).filter(g=>!(g.type==="user"&&g.id===e.creatorId)).map(g=>({value:g.id,label:g.displayName,icon:g.type==="sharebookmark"?Fh:null}));s({type:"addResult",payload:w})}else s({type:"emptyResult",payload:[]}),Promise.resolve();s({type:"isSearching",payload:!1})};return{state:r,showSearchAdmlHint:()=>o&&r.searchInputValue.length<3,showSearchLoading:()=>r.searchPending&&r.searchInputValue.length>0,showSearchNoResults:()=>!r.searchPending&&!o&&i.length>0&&r.searchResults.length===0||!r.searchPending&&o&&i.length>3&&r.searchResults.length===0,handleSearchInputChange:l,handleSearchResultsChange:async m=>{const y=r.searchAPIResults.find(w=>w.id===m[0]);if(y){let w=[];if(y.type==="sharebookmark"){const g=await ne.directory().getBookMarkById(y.id);w.push({...g,type:"sharebookmark",avatarUrl:"",directoryUrl:"",actions:rd}),g==null||g.users.filter(v=>!t.rights.find(x=>x.id===v.id)).forEach(v=>{w.push({...v,type:"user",avatarUrl:"",directoryUrl:"",actions:rd,isBookmarkMember:!0})}),g.groups.filter(v=>!t.rights.find(x=>x.id===v.id)).forEach(v=>{w.push({...v,type:"group",avatarUrl:"",directoryUrl:"",actions:rd,isBookmarkMember:!0})})}else w=[{...y,actions:[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}]}];n({type:"updateShareRights",payload:{...t,rights:[...t.rights,...w]}}),s({type:"updateSearchResult",payload:r.searchResults.filter(g=>g.value!==m[0])})}}}},RP={isSharing:!1,shareRights:{rights:[],visibleBookmarks:[],visibleGroups:[],visibleUsers:[]},shareRightActions:[]};function OP(e,t){switch(t.type){case"init":return{...e,...t.payload};case"deleteRow":return{...e,shareRights:t.payload};case"updateShareRights":return{...e,shareRights:t.payload};case"toggleRight":return{...e,shareRights:t.payload};case"isSharing":return{...e,isSharing:!0};default:throw new Error("Unhandled action type")}}function NP({onSuccess:e,resource:t,updateResource:n,shareResource:r}){const{appCode:s}=_e(),{user:i,avatar:o}=ra(),[a,l]=b.useReducer(OP,RP);return b.useEffect(()=>{(async()=>{const p=await ne.share().getActionsForApp(s),m=await ne.share().getRightsForResource(s,t.assetId);l({type:"init",payload:{shareRightActions:p,shareRights:m}})})()},[]),{state:a,dispatch:l,currentIsAuthor:()=>!!(t&&t.creatorId===(i==null?void 0:i.userId)),myAvatar:o,handleDeleteRow:p=>{l({type:"deleteRow",payload:{...a.shareRights,rights:a.shareRights.rights.filter(m=>{var y,w;return m.id!==p.id&&!((y=p.users)!=null&&y.find(g=>g.id===m.id))&&!((w=p.groups)!=null&&w.find(g=>g.id===m.id))})}})},handleShare:async p=>{l({type:"isSharing",payload:!0});try{const m=t.rights.filter(w=>i&&w.includes(`user:${i.userId}`)).map(w=>w.split(":")[2]).filter(w=>!!w),y=[...a.shareRights.rights];if(m.length>0){const w=m.map(g=>({displayName:g,id:g}));y.push({actions:w,avatarUrl:"",directoryUrl:"",displayName:i.username,id:i.userId,type:"user"})}s==="blog"?await n.mutateAsync(p):await n.mutateAsync({entId:t.assetId||"",trashed:t.trashed||!1,name:t.name||"",thumbnail:t.thumbnail||"",description:t.description||"",public:t.public||!1,slug:t.slug||""}),await r.mutateAsync({resourceId:t.assetId,rights:y}),e==null||e()}catch(m){console.error("Failed to save share",m)}finally{l({type:"isSharing",payload:!1})}},toggleRight:(p,m)=>{var y,w;const{rights:g,...v}=a.shareRights,x=[...g],S=x.findIndex(k=>k.id===p.id),C=a.shareRightActions.filter(k=>k.id===m)[0];if(x[S].actions.findIndex(k=>k.id===m)>-1){let k=x[S].actions.filter(A=>A.id!==m);const O=a.shareRightActions.filter(A=>{var _;return(_=A.requires)==null?void 0:_.includes(m)});k=k.filter(A=>!O.find(_=>_.id===A.id)),x[S]={...x[S],actions:k}}else{const k=a.shareRightActions.filter(O=>{var A;return((A=C.requires)==null?void 0:A.includes(O.id))&&!x[S].actions.find(_=>_.id===O.id)});x[S]={...x[S],actions:[...x[S].actions,C,...k]}}p.type==="sharebookmark"&&((y=x[S].users)==null||y.forEach(k=>{const O=x.findIndex(A=>A.id===k.id);x[O]={...x[O],actions:x[S].actions}}),(w=x[S].groups)==null||w.forEach(k=>{const O=x.findIndex(A=>A.id===k.id);x[O]={...x[O],actions:x[S].actions}})),l({type:"toggleRight",payload:{rights:x,...v}})}}}function PP({resource:e}){const{assetId:t,description:n,thumbnail:r,name:s,public:i,trashed:o,slug:a,"publish-type":l}=e||{"publish-type":"",assetId:"",description:"",name:"",public:!1,slug:"",thumbnail:"",trashed:!1},[u,d]=b.useState(l||"RESTRAINT"),[f,h]=b.useState({description:n||"",entId:t,name:s,public:!!i,slug:a||"",thumbnail:r,trashed:o,"publish-type":l});return b.useEffect(()=>{u&&h(m=>({...m,"publish-type":u}))},[u]),{radioPublicationValue:u,shareBlogPayload:f,handleRadioPublicationChange:async m=>{d(m)}}}const AP=({shareRights:e,shareDispatch:t})=>{const n=at(),{t:r}=re(),s=b.useRef(null),[i,o]=b.useState({name:"",id:b.useId()}),[a,l]=Rp(!1),[u,d]=b.useState(!1),f=()=>{l()},h=()=>{o(y=>{var w;return{...y,name:((w=s.current)==null?void 0:w.value)||""}})},p=async y=>{try{const w=await ne.directory().saveBookmarks(y,{users:e.rights.filter(g=>g.type==="user").map(g=>g.id),groups:e.rights.filter(g=>g.type==="group").map(g=>g.id),bookmarks:e.rights.filter(g=>g.type==="sharebookmark").map(g=>g.id)});n.success(r("explorer.bookmarked.status.saved")),t({type:"updateShareRights",payload:{...e,visibleBookmarks:[...e.visibleBookmarks,{displayName:y,id:w.id}]}}),o(g=>({...g,bookmarkId:g.id+new Date().getTime().toString()})),d(!1)}catch(w){console.error("Failed to save bookmark",w),n.error(r("explorer.bookmarked.status.error"))}};return{refBookmark:s,showBookmark:a,showBookmarkInput:u,bookmark:i,handleBookmarkChange:h,setBookmark:o,handleOnSave:()=>{var y;const w=((y=s.current)==null?void 0:y.value)||"";p(w)},toggleBookmark:f,toggleBookmarkInput:d}},_P=({bookmark:e,refBookmark:t,onBookmarkChange:n,onSave:r})=>{const{t:s}=re();return c.jsx("div",{className:"mt-16",children:c.jsxs(Ue,{id:"bookmarkName",className:"d-flex flex-wrap align-items-center gap-16",children:[c.jsx("div",{className:"flex-fill",children:c.jsx(Ue.Input,{ref:t,onChange:n,placeholder:s("explorer.modal.share.sharebookmark.placeholder"),size:"sm",type:"text"},e.id)}),c.jsx(Fe,{type:"button",color:"primary",variant:"ghost",disabled:e.name.length===0,leftIcon:c.jsx(JE,{}),onClick:r,className:"text-nowrap",children:s("explorer.modal.share.sharebookmark.save")})]})})},TP=(e,t)=>e.actions.filter(n=>t.id===n.id).length>0,IP=(e,t)=>e.isBookmarkMember&&t||!e.isBookmarkMember,DP=({shareRights:e,showBookmark:t,toggleBookmark:n,shareRightActions:r,toggleRight:s,onDeleteRow:i})=>{const{t:o}=re();return e==null?void 0:e.rights.map(a=>IP(a,t)&&c.jsxs("tr",{className:a.isBookmarkMember?"bg-light":"",children:[c.jsxs("td",{children:[a.type!=="sharebookmark"&&c.jsx(kr,{alt:o("explorer.modal.share.avatar.shared.alt"),size:"xs",src:a.avatarUrl,variant:"circle"}),a.type==="sharebookmark"&&c.jsx(Fh,{})]}),c.jsx("td",{children:c.jsxs("div",{className:"d-flex",children:[a.type==="sharebookmark"&&c.jsx(Fe,{color:"tertiary",rightIcon:c.jsx(Eo,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:t?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal ps-0",onClick:n,children:a.displayName}),a.type!=="sharebookmark"&&a.displayName]})}),r.map(l=>c.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:c.jsx(Ju,{checked:TP(a,l),onChange:()=>s(a,l.id)})},l.displayName)),c.jsx("td",{children:!a.isBookmarkMember&&c.jsx(qn,{"aria-label":"Delete",color:"tertiary",icon:c.jsx(ix,{}),type:"button",variant:"ghost",title:"Delete",onClick:()=>i(a)})})]},a.id))};function MP({isOpen:e,resource:t,updateResource:n,shareResource:r,onSuccess:s,onCancel:i}){const{appCode:o}=_e(),{radioPublicationValue:a,shareBlogPayload:l,handleRadioPublicationChange:u}=PP({resource:t}),{state:{isSharing:d,shareRights:f,shareRightActions:h},dispatch:p,myAvatar:m,currentIsAuthor:y,handleShare:w,toggleRight:g,handleDeleteRow:v}=NP({resource:t,updateResource:n,shareResource:r,onSuccess:s}),{state:{searchResults:x,searchInputValue:S},showSearchAdmlHint:C,showSearchLoading:j,showSearchNoResults:k,handleSearchInputChange:O,handleSearchResultsChange:A}=jP({resource:t,shareRights:f,shareDispatch:p}),{refBookmark:_,showBookmark:F,handleBookmarkChange:T,toggleBookmark:$,bookmark:D,handleOnSave:E,showBookmarkInput:N,toggleBookmarkInput:L}=AP({shareRights:f,shareDispatch:p}),{t:P}=re(),B=C()?P("explorer.search.adml.hint"):P("explorer.modal.share.search.placeholder");return Wn.createPortal(c.jsxs(je,{id:"share_modal",size:"lg",isOpen:e,onModalClose:i,children:[c.jsx(je.Header,{onModalClose:i,children:P("share.title")}),c.jsxs(je.Body,{children:[c.jsx(Qt,{headingStyle:"h4",level:"h3",className:"mb-16",children:P("explorer.modal.share.usersWithAccess")}),c.jsx("div",{className:"table-responsive",children:c.jsxs("table",{className:"table border align-middle mb-0",children:[c.jsx("thead",{className:"bg-secondary",children:c.jsxs("tr",{children:[c.jsx("th",{scope:"col",className:"w-32",children:c.jsx(Mn,{children:P("explorer.modal.share.avatar.shared.alt")})}),c.jsx("th",{scope:"col",children:c.jsx(Mn,{children:P("explorer.modal.share.search.placeholder")})}),h.map(z=>c.jsx("th",{scope:"col",className:"text-center text-white",children:P(z.displayName)},z.displayName)),c.jsx("th",{scope:"col",children:c.jsx(Mn,{children:P("close")})})]})}),c.jsxs("tbody",{children:[y()&&c.jsxs("tr",{children:[c.jsx("th",{scope:"row",children:c.jsx(kr,{alt:P("explorer.modal.share.avatar.me.alt"),size:"xs",src:m,variant:"circle"})}),c.jsx("td",{children:P("share.me")}),h.map(z=>c.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:c.jsx(Ju,{checked:!0,disabled:!0})},z.displayName)),c.jsx("td",{})]}),c.jsx(DP,{showBookmark:F,shareRightActions:h,shareRights:f,onDeleteRow:v,toggleRight:g,toggleBookmark:$})]})]})}),c.jsxs("div",{className:"mt-16",children:[c.jsx(Fe,{color:"tertiary",leftIcon:c.jsx(Fh,{}),rightIcon:c.jsx(Eo,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:N?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal",onClick:()=>L(!N),children:P("share.save.sharebookmark")}),N&&c.jsx(_P,{refBookmark:_,bookmark:D,onBookmarkChange:T,onSave:E})]}),c.jsx("hr",{}),c.jsxs(Qt,{headingStyle:"h4",level:"h3",className:"mb-16 d-flex align-items-center",children:[c.jsx("div",{className:"me-8",children:P("explorer.modal.share.search")}),c.jsx(lu,{message:"Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.",placement:"top",children:c.jsx(ax,{className:"c-pointer",height:"18"})})]}),c.jsx("div",{className:"row",children:c.jsx("div",{className:"col-10",children:c.jsx(G2,{value:S,placeholder:B,isLoading:j(),noResult:k(),options:x,onSearchInputChange:O,onSearchResultsChange:A})})}),o==="blog"&&c.jsx(CP,{radioPublicationValue:a,onRadioPublicationChange:u})]}),c.jsxs(je.Footer,{children:[c.jsx(Fe,{type:"button",color:"tertiary",variant:"ghost",onClick:i,children:P("explorer.cancel")}),c.jsx(Fe,{type:"button",color:"primary",variant:"filled",isLoading:d,onClick:()=>w(l),disabled:d,children:P("share")})]})]}),document.getElementById("portal"))}function sd({children:e}){return c.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function id({children:e,className:t,...n}){const r=G("navbar",t);return c.jsx("nav",{className:r,...n,children:e})}function Q1({children:e,className:t,...n}){const r=G("navbar-nav",t);return c.jsx("ul",{className:r,...n,children:e})}const Pe=b.forwardRef(({children:e,className:t,...n},r)=>{const s=G("nav-item",t);return c.jsx("li",{ref:r,className:s,...n,children:e})});Pe.displayName="NavItem";function Pi({link:e,className:t,children:n,translate:r,...s}){const i=G("nav-link",t);return c.jsxs("a",{href:e,className:i,...s,children:[n,r&&c.jsx(Mn,{children:c.jsx("span",{className:"nav-text",children:r})})]})}const LP=()=>{const{t:e}=re();return c.jsx("div",{className:"widget-footer",children:c.jsx("div",{className:"widget-footer-action",children:c.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},FP=({bookmarkedApps:e})=>{const{t}=re();return c.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&c.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>c.jsx("a",{href:n.address,className:"bookmarked-app",children:c.jsx(Er,{app:n,size:"32"})},r))]})};function W1({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=re(),o=()=>{t(!1)};return e?Wn.createPortal(c.jsxs(je,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[c.jsx(je.Header,{onModalClose:o,children:i("navbar.help")}),c.jsx(je.Subtitle,{children:s?i("help.notfound.title"):n}),c.jsx(je.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}function $P(){var e;const{appCode:t}=_e(),{theme:n}=Xu(),[r,s]=b.useState(""),[i,o]=b.useState(!0),[a,l]=b.useState(!1),[u,d]=b.useState(!1),f=n!=null&&n.is1d?"/help-1d":"/help-2d";b.useEffect(()=>{(async()=>{let w="";w=f+"/application/"+t+"/",!t&&window.location.pathname!=="/adapter"?w=f+"/application/portal/":window.location.pathname==="/adapter"?w=f+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?w=f+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(w=f+"/application/userbook/");try{const g=await fetch(w),v=await g.text();if(g.status===404){d(!0);return}s(v),d(!1)}catch(g){d(!0),console.error(g)}})()},[t,f]);const p=Ir(r,{replace:w=>{const g=w;if(g.attribs&&g.attribs.id==="TOC")return c.jsxs("nav",{id:"TOC",children:[c.jsx(Fe,{onClick:()=>{o(!i)},children:c.jsx(bE,{})}),Ma(g.children,{replace:v=>{const x=v;if(x.attribs&&x.name==="ul")return c.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:Ma(x.children,{replace:S=>{const C=S;if(C.attribs&&C.name==="a")return c.jsx("a",{...td(C.attribs),children:c.jsx("span",{onClick:()=>{o(!1)},children:Ma(C.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const v=td(w.attribs);return c.jsx("div",{...v,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:Ma(g.children,{replace:x=>{const S=x;if(S.attribs&&S.name==="img"){const C=x.attribs.src;return c.jsx("img",{...td(S.attribs),src:`${f}/${C}`,alt:""})}}})})}}}),m=(e=p==null?void 0:p.props)==null?void 0:e.children.find(w=>w.type==="body").props.children,y=m==null?void 0:m.find(w=>w.type==="p").props.children;return{html:r,visibility:i,isModalOpen:a,setIsModalOpen:l,parsedContent:m,parsedHeadline:y,error:u}}const xb=()=>{const[e,t]=jp(),n=b.useRef(null),r=b.useId(),{t:s}=re();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return c.jsxs(Pe,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[c.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[c.jsx(M8,{className:"icon search"}),c.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),c.jsx(tc,{id:r,isVisible:t,className:"d-none d-md-flex",children:c.jsxs(Ue,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[c.jsx(Ue.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),c.jsx(Np,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};xb.displayName="SearchEngine";const BP=xb,wb=({is1d:e=!1,src:t=""})=>{const{t:n}=re(),{messages:r,msgLink:s,zimbraWorkflow:i}=Yw(),{user:o,avatar:a}=ra(),{isModalOpen:l,setIsModalOpen:u,parsedContent:d,parsedHeadline:f,error:h}=$P(),p=G("header",{"no-2d":e,"no-1d":!e}),{title:m,bookmarkedApps:y,appsRef:w,isAppsHovered:g,popoverAppsId:v,userAvatar:x,userName:S,welcomeUser:C,communityWorkflow:j,conversationWorflow:k,searchWorkflow:O,isCollapsed:A,toggleCollapsedNav:_,handleLogout:F}=i2({user:o,avatar:a}),T=r>0;return c.jsx("header",{className:p,children:e?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"container-fluid",children:c.jsxs(id,{children:[c.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:m}),c.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[c.jsx(kr,{alt:S,size:"sm",src:x,variant:"circle",width:"32",height:"32"}),c.jsx("span",{className:"navbar-text",children:C})]}),c.jsxs(Q1,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[k&&c.jsx(Pe,{children:c.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[c.jsx(T8,{className:"icon notification"}),T&&c.jsx(sd,{children:r}),c.jsx(Mn,{children:n("navbar.messages")})]})}),c.jsx(Pe,{children:c.jsx(Pi,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:c.jsx(dp,{className:"icon user"})})}),c.jsxs(Pe,{children:[c.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[c.jsx(A8,{className:"icon help"}),c.jsx(Mn,{children:n("navbar.help")})]}),c.jsx(W1,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:d,parsedHeadline:f,error:h})]}),c.jsx(Pe,{children:c.jsxs("button",{className:"nav-link",onClick:F,children:[c.jsx(b1,{className:"icon logout"}),c.jsx(Mn,{children:n("navbar.disconnect")})]})}),c.jsx(Pe,{className:"d-md-none",children:c.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!A,"aria-label":n("navbar.secondary.navigation"),onClick:_,children:c.jsx(Eo,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),c.jsx(id,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:c.jsx("div",{className:"container-fluid",children:c.jsxs("div",{className:`collapse navbar-collapse ${A?"":"show"}`,id:"navbarCollapsed",children:[c.jsx(_f,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),c.jsxs(Q1,{className:"gap-8",children:[c.jsx(Pe,{children:c.jsxs("a",{href:"/timeline/timeline",className:"button",children:[c.jsx(N8,{color:"#fff",className:"d-md-none"}),c.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),c.jsx(Pe,{children:c.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[c.jsx(F8,{color:"#fff",className:"d-md-none"}),c.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),c.jsx(Pe,{children:c.jsxs("a",{href:"/welcome",className:"button",children:[c.jsx(S1,{color:"#fff",className:"d-md-none"}),c.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):c.jsx(id,{className:"navbar-expand-md",children:c.jsxs("div",{className:"container-fluid",children:[c.jsx(_f,{src:`${t}/img/illustrations/logo.png`}),c.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:m}),c.jsxs("ul",{className:"navbar-nav",children:[c.jsx(Pe,{children:c.jsx(Pi,{link:"/timeline/timeline",translate:n("navbar.home"),children:c.jsx(C8,{color:"#fff"})})}),c.jsxs(Pe,{className:"position-relative",ref:w,id:v,"aria-haspopup":"true","aria-expanded":g,children:[c.jsx(Pi,{link:"/welcome",translate:n("navbar.applications"),children:c.jsx(S1,{color:"#fff"})}),c.jsxs(tc,{className:"top-100 widget",id:v,isVisible:g,children:[c.jsx(ab,{children:c.jsx(FP,{bookmarkedApps:y})}),c.jsx(lb,{className:"widget-footer border-top border-ghost",children:c.jsx(LP,{})})]})]}),k&&c.jsx(Pe,{children:c.jsxs(Pi,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[c.jsx(C1,{color:"#fff"}),T&&c.jsx(sd,{children:r})]})}),i&&c.jsx(Pe,{children:c.jsxs(Pi,{className:"position-relative",link:s,translate:n("conversation"),children:[c.jsx(C1,{color:"#fff"}),T&&c.jsx(sd,{children:r})]})}),c.jsxs(Pe,{children:[c.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[c.jsx(j8,{color:"#fff"}),c.jsx(Mn,{children:n("support")})]}),c.jsx(W1,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:d,parsedHeadline:f,error:h})]}),c.jsx(Pe,{children:c.jsxs("div",{className:"dropdown",children:[c.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!A,"aria-label":n("navbar.open.menu"),onClick:_,children:c.jsx(Eo,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),c.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${A?"":"show"}`,id:"dropdown-navbar",children:[j&&c.jsx(Pe,{children:c.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[c.jsx(w8,{className:"icon community"}),c.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),O?c.jsx(BP,{}):null,c.jsx(Pe,{children:c.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[c.jsx(kr,{alt:S,size:"sm",src:x,variant:"circle",className:"bg-white",width:"32",height:"32"}),c.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),c.jsx(Pe,{children:c.jsx("hr",{className:"dropdown-divider"})}),c.jsx(Pe,{children:c.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[c.jsx(b1,{className:"icon logout"}),c.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};wb.displayName="Header";const zP=wb;function bb({children:e,className:t,...n}){const r=G("container-fluid",t);return c.jsx("main",{className:r,...n,children:e})}bb.displayName="Main";const Sb=({children:e,...t})=>{const{theme:n}=Xu();return c.jsxs(c.Fragment,{children:[c.jsx(zP,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),c.jsx(bb,{className:G("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),c.jsx($k,{toastOptions:{position:"top-right"}})]})};Sb.displayName="Layout";const Cb=Sb,VP=({children:e})=>c.jsx("div",{className:"widget-footer",children:c.jsx("div",{className:"widget-footer-action",children:c.jsx("a",{href:"/welcome",className:"link",children:e})})}),UP=({children:e})=>c.jsxs("div",{className:"widget-header",children:[c.jsx("div",{className:"subtitle",children:e}),c.jsx("div",{className:"widget-options",children:c.jsx("div",{className:"widget-handle",children:c.jsx("i",{className:"fas fa-grip-vertical"})})})]}),HP=({children:e})=>c.jsx("div",{className:"widget-body p-12 d-flex flex-wrap",children:e});function sa({children:e}){return c.jsx("div",{className:"widget",children:e})}sa.Header=UP;sa.Body=HP;sa.Footer=VP;sa.displayName="Widget";const Eb=({data:e})=>e.length>0?e.slice(0,6).map((t,n)=>c.jsx("a",{href:t.address,className:"bookmarked-app",children:c.jsx(Er,{app:t,size:"32"})},n)):c.jsx("div",{className:"text-dark mx-auto",children:c.jsx("a",{href:"/welcome",children:"Sélectionner vos applications favorites"})});Eb.displayName="BookmarkedApps";const qP=Eb,Mp=Object.freeze(Object.defineProperty({__proto__:null,ActionBar:Uw,Alert:ur,AppHeader:Qw,AppIcon:Er,Avatar:kr,BookmarkedApps:qP,Breadcrumb:w2,Button:Fe,Card:vn,Checkbox:Ju,Column:Ap,Combobox:G2,Dropdown:we,EmptyScreen:qN,FolderCard:rP,FormControl:Ue,FormText:D2,Grid:zs,Heading:Qt,IconButton:qn,Image:li,ImagePicker:_p,Input:jr,Label:Kr,Layout:Cb,Library:QN,Loading:Op,LoadingScreen:et,Logo:_f,Modal:je,OdeClientContext:Cp,OdeClientProvider:Kw,Popover:tc,PopoverBody:ab,PopoverFooter:lb,PopoverHeader:JN,PublishModal:gP,Radio:au,ResourceCard:vP,ResourceModal:SP,SearchButton:Np,Select:Ip,ShareModal:MP,TextArea:Dp,ThemeContext:Ep,ThemeProvider:Gw,Tooltip:lu,TreeView:pb,VisuallyHidden:Mn,Widget:sa,isActionAvailable:yb,useBookmark:Xw,useClickOutside:kp,useConf:Sp,useConversation:Yw,useDebounce:t2,useDropdown:W2,useDropzone:s2,useHasWorkflow:Bs,useHeader:i2,useHover:jp,useImage:Jw,useIsAdml:o2,useKeyPress:Zw,useOdeClient:_e,useOdeIcons:Yu,useOdeTheme:Xu,usePaths:ai,useScrollToTop:r2,useSession:Ww,useTitle:e2,useToast:at,useToggle:Rp,useTrapFocus:n2,useUser:ra,useXitiTrackPageLoad:a2},Symbol.toStringTag,{value:"Module"})),QP=function(){return null};var kb,K1=Wn;kb=K1.createRoot,K1.hydrateRoot;const G1=e=>{let t;const n=new Set,r=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??typeof d!="object"?d:Object.assign({},t,d),n.forEach(h=>h(t,f))}},s=()=>t,a={setState:r,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,s,a),a},WP=e=>e?G1(e):G1;var jb={exports:{}},Rb={};/**
228
234
  * @license React
229
235
  * use-sync-external-store-shim/with-selector.production.min.js
230
236
  *
@@ -232,4 +238,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
232
238
  *
233
239
  * This source code is licensed under the MIT license found in the
234
240
  * LICENSE file in the root directory of this source tree.
235
- */var gl=x,vR=Vg;function yR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wR=typeof Object.is=="function"?Object.is:yR,xR=vR.useSyncExternalStore,SR=gl.useRef,bR=gl.useEffect,CR=gl.useMemo,ER=gl.useDebugValue;Sy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=SR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=CR(function(){function l(p){if(!u){if(u=!0,c=p,p=r(p),s!==void 0&&o.hasValue){var m=o.value;if(s(m,p))return d=m}return d=p}if(m=d,wR(c,p))return m;var y=r(p);return s!==void 0&&s(m,y)?m:(c=p,d=y)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,s]);var a=xR(e,i[0],i[1]);return bR(function(){o.hasValue=!0,o.value=a},[a]),ER(a),a};xy.exports=Sy;var RR=xy.exports;const kR=Pa(RR),{useDebugValue:PR}=pm,{useSyncExternalStoreWithSelector:OR}=kR;function NR(e,t=e.getState,n){const r=OR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return PR(r),r}const nm=e=>{const t=typeof e=="function"?gR(e):e,n=(r,s)=>NR(t,r,s);return Object.assign(n,t),n},jR=e=>e?nm(e):nm,by=async e=>{const t=await Y.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},TR=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await Y.resource(e.app).createFolder(r)},_R=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await Y.resource(t.app).updateFolder(s)},IR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await Y.resource(e.app).trashAll(s,n)},AR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await Y.resource(e.app).deleteAll(s,n)},LR=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await Y.resource(e.app).restoreAll(s,r)},MR=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await Y.resource(e.app).moveToFolder(i,s)},DR=async({searchParams:e,entId:t,shares:n})=>await Y.share().saveRights(e.app,t,n),FR=async({searchParams:e,params:t})=>await Y.resource(e.app).update(t),$R=async e=>await Y.rights().sessionHasWorkflowRights(e),zR=({searchParams:e,assetId:t})=>Y.resource(e.app).gotoView(t),UR=({searchParams:e,params:t})=>Y.resource(e.app).create(t),BR=({searchParams:e,assetId:t})=>Y.resource(e.app).gotoPrint(t),VR=async({searchParams:e,params:t})=>await Y.resource(e.app).publish(t),HR=async()=>await Y.conf().getPreference("showOnboardingTrash"),qR=async({onSuccess:e})=>{const t=await Y.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function mf(e){return e.filter((t,n)=>e.indexOf(t)===n)}function xi(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=xi(e,i),n===void 0))),n)}function QR(e,t){var r;const n=xi(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Xe.BIN?[Xe.BIN]:[Xe.DEFAULT]}function Cy(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Cy(t.id,n)):!1}function Mi(e,t){return Ey(e,t)||e}function Ey(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const a=Ey(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class vl{constructor(t){cr(this,"id");cr(this,"name");cr(this,"childNumber");cr(this,"section",!1);cr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ry=(e,t,n)=>Mi(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new vl(s))),r)),{app:WR,types:KR,filters:GR,orders:XR}=ml(),Fe=jR()((e,t)=>({filters:GR,orders:XR,searchConfig:{minLength:1},searchParams:{app:WR,types:KR,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:Xe.DEFAULT,name:qt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...n}}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();zR({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);BR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await VR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=QR(n,i),l=mf([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Xe.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!Cy(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await by({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ry(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||Xe.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=xi(n,r);B4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=xi(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Xe.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Xe.BIN},trashed:!0},currentFolder:{id:Xe.BIN}}))}})),ot=()=>Fe(e=>e.searchParams),gf=()=>Fe(e=>e.selectedNodesIds),ts=()=>Fe(e=>e.treeData),YR=()=>Fe(e=>e.selectedFolders),ZR=()=>Fe(e=>e.selectedResources),JR=()=>Fe(e=>e.searchConfig),Di=()=>Fe(e=>e.folderIds),Fi=()=>Fe(e=>e.resourceIds),yl=()=>Fe(e=>e.selectedResources.map(t=>t.assetId)),wl=()=>Fe(e=>e.selectedResources.filter(t=>t.assetId===t.id)),ns=()=>Fe(e=>e.currentFolder),je=()=>Fe(e=>e.updaters),rs=()=>{const e=ns();return(e==null?void 0:e.id)===Xe.BIN},ky=()=>Fe(e=>e.resourceIsTrash),ek=()=>Fe(e=>e.resourceActionDisable),tk=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},nk=()=>gf().length>1,rk=()=>Fe(e=>e.status),Py=()=>{const e=ot(),[t,n]=x.useState(""),r=JR(),s=rk(),i=x.useRef(null),{setSearchParams:o}=je(),a=c=>{const d=c.target.value;n(d.toString())},l=c=>{(c.key==="Enter"||c.key==="Return")&&(c.preventDefault(),o({search:t||void 0}))},u=c=>{c.preventDefault(),o({search:t||void 0})};return x.useEffect(()=>{const d=t.length==0||t.length>=r.minLength?{search:t||void 0}:{};o({...e,...d})},[t,r.minLength]),x.useEffect(()=>{s==="select"&&n("")},[s]),x.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{formRef:i,inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}};function sk(){const{appCode:e}=yt(),t=gf(),n=rs(),r=ns(),{t:s}=pe(["common",e]),{gotoPreviousFolder:i}=je(),{inputSearch:o}=Py(),a=s("explorer.tree.trash"),l=s("explorer.tree.search"),u=s("explorer.filters.mine",{ns:e}),c=(r==null?void 0:r.name)||u;return f.jsx("div",{className:"py-16",children:t.length>1&&!n?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(Ka,{icon:f.jsx(W4,{}),variant:"ghost",color:"tertiary","aria-label":s("back"),className:"ms-n16",onClick:i}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:c})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:o.length!==0?l:n?a:u})})}function ik(e,{parentId:t,newFolder:n}){return Mi(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=mf([...i,r.id]);return{...r,children:[...r.children||[],new vl({...n,ancestors:o})]}}else return r})}function ok(e,{folders:t}){return Mi(e,n=>{if(!t.includes(n.id))return n})}function ak(e,{destinationId:t,folders:n}){return Mi(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=mf([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const p=xi(h,e);p&&u.push({...p,folder:{...p==null?void 0:p.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function lk(e,{folderId:t,newFolder:n}){return Mi(e,r=>r.id===t?new vl(n):r)}const{actions:rm,app:uk}=ml(),Oy=()=>Id({queryKey:["actions"],queryFn:async()=>{const e=rm.map(n=>n.workflow);return await $R(e)},select:e=>rm.map(t=>({...t,available:e[t.workflow]}))}),ck=()=>{const{hotToast:e}=jt(Tt),{appCode:t}=yt(),{t:n}=pe(),r=it(),s=ot(),i=ns(),o=ts(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=je(),{filters:c,trashed:d,search:h}=s,p=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return zS({queryKey:p,queryFn:async({pageParam:m=0})=>await by({...s,pagination:{...s.pagination,startIdx:m}}),onError(m){typeof m=="string"&&e.error(n(m))},onSuccess:async m=>{var S,g,v;await r.cancelQueries({queryKey:p});const y=[...((S=m==null?void 0:m.pages[0])==null?void 0:S.folders)??[]];(g=m==null?void 0:m.pages[0])!=null&&g.searchConfig&&u(m.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:Xe.DEFAULT,section:!0,children:y.map(w=>new vl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ry(o,y,s.filters.folder||Xe.DEFAULT))),l({...s,pagination:(v=m==null?void 0:m.pages[(m==null?void 0:m.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:m=>m.pagination.startIdx+m.pagination.pageSize})},u8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=je(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return an({mutationFn:async()=>await IR({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async S=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const b={...v,pages:v==null?void 0:v.pages.map(R=>{var k;return{...R,folders:R.folders.filter(P=>!s.includes(P.id)),pagination:{...R.pagination,maxIdx:((k=R==null?void 0:R.pagination)==null?void 0:k.maxIdx)-S.resources.length},resources:R.resources.filter(P=>a?!i.includes(P.assetId):!l.includes(P.id))}})},E=ok(r,{folders:s});return d(E),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},dk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=je(),{filters:h,trashed:p}=n,m=["context",{folderId:h.folder,filters:h,trashed:p}];return an({mutationFn:async()=>await LR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(qt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:m}),t.getQueryData(m))return t.setQueryData(m,S=>{if(S)return{...S,pages:S==null?void 0:S.pages.map(g=>({...g,folders:g.folders.filter(v=>!r.includes(v.id)),resources:g.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},c8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=je(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return an({mutationFn:async()=>await AR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(p){typeof p=="string"&&e.error(qt(p))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,m=>{if(m)return{...m,pages:m==null?void 0:m.pages.map(S=>({...S,folders:S.folders.filter(g=>!r.includes(g.id)),resources:S.resources.filter(g=>o?!s.includes(g.assetId):!a.includes(g.id))}))}})},onSettled:()=>{l(),u()}})},d8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=je(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return an({mutationFn:async S=>await MR({searchParams:n,folderId:S,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async(S,g)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var b;if(w){const E=ak(r,{destinationId:g,folders:s}),R={...w,pages:w==null?void 0:w.pages.map(k=>{var P;return{...k,folders:k.folders.filter(_=>!s.includes(_.id)),pagination:{...k.pagination,maxIdx:((P=k.pagination)==null?void 0:P.maxIdx)-S.resources.length},resources:k.resources.filter(_=>a?!i.includes(_.assetId):!l.includes(_.id))}})};return d(E),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),R}})},onSettled:()=>{c(),u()}})},f8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setTreeData:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({name:l,parentId:u})=>await TR({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(qt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const c=t.getQueryData(a),d={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(c)return t.setQueryData(a,h=>{if(h){const p={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},m=ik(r,{parentId:u.parentId,newFolder:d});return s(m),p}})}})},h8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=je(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return an({mutationFn:async({folderId:c,name:d,parentId:h})=>await _R({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(qt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,p=>{if(p){const m={...p,pages:p==null?void 0:p.pages.map(S=>({...S,folders:S.folders.map(g=>g.id===c.id?{...c,parentId:d.parentId,rights:g.rights}:g)}))},y=lk(r,{folderId:d.folderId,newFolder:c});return o(y),m}})},onSettled:()=>{s([]),i([])}})},p8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{setResourceIds:r,setSelectedResources:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({entId:l,shares:u})=>await DR({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(qt(l))},onSuccess:async(l,u)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return t.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(h=>({...h,resources:h.resources.map(p=>{if(p.assetId===(u==null?void 0:u.entId)){let m=[`creator:${p.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(m=[...m,...u.shares.flatMap(y=>y.actions.map(S=>`${y.type}:${y.id}:${S.id}`))]),{...p,rights:m}}else return p})}))}})},onSettled:()=>{r([]),s([])}})},m8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{filters:r,trashed:s}=n,i=["context",{folderId:r.folder,filters:r,trashed:s}];return an({mutationFn:async o=>await FR({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(qt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:i}),t.getQueryData(i))return t.setQueryData(i,u=>{if(u)return{...u,pages:u==null?void 0:u.pages.map(c=>({...c,resources:c.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:p,public:m,description:y,slug:S,...g}=a;return{...d,...g,name:h,thumbnail:typeof p=="string"?p:URL.createObjectURL(p),public:m,description:y,slug:S}}else return d})}))}})}})},g8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{user:r}=Ld(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return an({mutationFn:async i=>await UR({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(qt(i))},onSuccess:async(i,o)=>{var c,d,h;await t.cancelQueries({queryKey:s});const a=t.getQueryData(s),{thumbnail:l}=o,u={...o,thumbnail:l?URL.createObjectURL(l):"",application:uk,assetId:i._id||i.entId||"",id:i._id||i.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:o.slug||"",modifiedAt:((c=i.modified)==null?void 0:c.$date)||"",modifierId:((d=i.author)==null?void 0:d.userId)||"",modifierName:((h=i.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(s,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(m=>({...m,resources:[u,...m.resources]}))}})}})},{trashActions:fk}=ml();function Ny(){const[e,t]=x.useState(!1),[n,r]=x.useState("void"),[s,i]=x.useState(),{t:o}=pe(),{hotToast:a}=jt(Tt),l=ns(),u=Fi(),c=ZR(),d=YR(),h=Di(),p=rs(),m=dk(),y=ky(),{openResource:S,printSelectedResource:g,openFolder:v,clearSelectedItems:w,clearSelectedIds:b}=je(),{data:E}=Oy();x.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function R(X){var me;switch((me=document.getElementById("root"))==null||me.setAttribute("aria-hidden","true"),i(X),X.id){case $e.OPEN:return u.length>0?S(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return g();case $e.DELETE:return r("delete");case $e.RESTORE:return await _();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return we();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${X.id}`)}}function k(X){const me=u.length+h.length,_t=u.length===1||h.length===1,It=me===1,un=h.length===0;switch(X.id){case $e.OPEN:return It;case $e.MANAGE:return _t;case $e.PUBLISH:return _t&&un;case $e.UPD_PROPS:return _t&&un;case $e.SHARE:return un&&_t;case $e.PRINT:return _t&&un;case"edit":return It;default:return!0}}function P(){return!0}async function _(){try{if(p)await m.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");F()}catch(X){console.error(X)}}function F(){var X;r("void"),s!=null&&s.id&&((X=document.getElementById(s==null?void 0:s.id))==null||X.focus())}const A=X=>()=>{n===X&&(F(),w(),b())},I=A("move"),U=A("move"),$=A("delete"),C=A("delete"),O=A("publish"),L=A("publish"),N=A("edit_folder"),D=A("edit_folder"),M=A("edit_resource"),K=A("edit_resource"),G=A("share"),le=A("share");function we(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function xe(X){return X.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${X.id}`}return{onRestore:_,actions:p?fk:E,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:xe,handleClick:R,isActivable:p?P:k,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:I,onMoveSuccess:U,isDeleteModalOpen:n==="delete",onDeleteCancel:C,onDeleteSuccess:$,isPublishModalOpen:n==="publish",onPublishCancel:L,onPublishSuccess:O,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:D,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:K,onEditResourceSuccess:M,isShareResourceOpen:n==="share",onShareResourceCancel:le,onShareResourceSuccess:G,onClearActionBar:F}}function hk({roles:e,rights:t,action:n}){const[r,s]=x.useState(!1),{user:i}=Ld(),o=rs();x.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await Y.rights().sessionHasAtLeastOneResourceRight(e,d);s(h)}else{const h=await Y.rights().sessionHasResourceRight(e,d);s(h)}},l=async function(c){if(e instanceof Array){const d=await Y.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);s(d)}else{const d=await Y.rights().sessionHasResourceRightForEachList(e,c);s(d)}},u=async function(){var c,d,h;if(e===void 0){s(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(i==null?void 0:i.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const p=t.map(m=>m.rights);await l(p)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function pk({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=pe(),{overrideLabel:o}=Ny(),{visible:a}=hk({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=je(),u=rs();return a?f.jsx(f.Fragment,{children:r}):s?s():u&&!a?f.jsx(Jr,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:i(o(n))}):f.jsx(f.Fragment,{})}const mk=x.lazy(async()=>await ye(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Tooltip.js"])),gk=x.lazy(async()=>await ye(()=>import("./DeleteModal.js"),[])),vk=x.lazy(async()=>await ye(()=>import("./MoveModal.js"),[])),yk=x.lazy(async()=>await ye(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),wk=x.lazy(async()=>await ye(()=>import("./EditResourceModal.js"),["EditResourceModal.js","index.esm.js","TextArea.js"])),xk=x.lazy(async()=>await ye(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","TextArea.js"]));function Sk(){const{t:e}=pe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:s,isPublishModalOpen:i,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:p,isShareResourceOpen:m,onShareResourceCancel:y,onShareResourceSuccess:S,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:b,onPublishCancel:E,onPublishSuccess:R,isActivable:k,handleClick:P}=Ny(),_=tf(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[_((F,A)=>A&&f.jsx(Ea.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:F,children:f.jsx(V4,{children:t==null?void 0:t.filter(I=>I.available&&I.target==="actionbar").map(I=>k(I)&&f.jsx(pk,{resourceRights:n,roleExpected:I.right,action:I,children:f.jsx(Jr,{id:I.id,type:"button",color:"primary",variant:"filled",onClick:()=>{P(I)},children:e(l(I))},I.id)},I.id))})})),f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(vk,{isOpen:r,onCancel:g,onSuccess:v}),s&&f.jsx(gk,{isOpen:s,onCancel:w,onSuccess:b}),i&&f.jsx(xk,{isOpen:i,onCancel:E,onSuccess:R}),a&&f.jsx(yk,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(wk,{edit:!0,isOpen:d,onCancel:h,onSuccess:p}),m&&f.jsx(mk,{isOpen:m,onCancel:y,onSuccess:S})]})]})}const{http:v8}=_y.instance(),bk={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},Ck=()=>{var l;const{user:e,appCode:t}=yt(),n=bk[t],r=(l=e.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:l.address.split("?");let s=r==null?void 0:r[0];s!=null&&s.endsWith("/")||(s=`${s}/`);const i=r==null?void 0:r[1],o=`application%5B0%5D=${n}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${s}search/?${i}&${o}`}},Ek=x.lazy(async()=>await ye(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),Rk=x.lazy(async()=>await ye(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js"])),kk=x.lazy(async()=>await ye(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js"])),Pk=x.lazy(async()=>await ye(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),Ok=x.lazy(async()=>await ye(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),Nk=x.lazy(async()=>await ye(()=>import("./FoldersList.js"),["FoldersList.js","Card.js"])),jk=x.lazy(async()=>await ye(()=>import("./ResourcesList.js"),["ResourcesList.js","Tooltip.js","Card.js"])),Tk=()=>{const e=tk(),t=rs(),n=nk(),r=ot(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=ck(),u=(s==null?void 0:s.pages[0].folders.length)===0,c=(s==null?void 0:s.pages[0].resources.length)===0,d=u&&c;return i?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(kk,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Rk,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(Nk,{data:s,isFetching:a}),f.jsx(jk,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Ek,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Pk,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Ok,{})}):null};function _k({isOpen:e,onCancel:t=()=>({})}){const{t:n}=pe();return Pi.createPortal(f.jsxs(bn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(bn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(bn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(bn.Footer,{children:f.jsx(Jr,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const Ik=()=>{const{appCode:e,currentApp:t}=yt(),{t:n}=pe(),[r,s]=x.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=ns(),a=ot(),{setSearchParams:l}=je();x.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,d=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:c(),public:h(),shared:d(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==ho.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==ho.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==ho.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},Ak=()=>{const{appCode:e}=yt(),{t}=pe(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=Ik(),{formRef:i,inputSearch:o,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}=Py(),c=n.length>0?n.length:void 0;return f.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",ref:i,children:[f.jsxs(yc,{id:"search",className:"input-group",children:[f.jsx(P0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:o,onChange:a,onKeyDown:l}),f.jsx(b0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:u})]}),f.jsxs(pr,{placement:"bottom-end",children:[f.jsx(pr.Trigger,{label:t("explorer.filters"),icon:f.jsx(l3,{width:20}),variant:"ghost",badgeContent:c}),f.jsx(pr.Menu,{children:r.map(d=>d.value==="0"?f.jsxs(x.Fragment,{children:[f.jsx(pr.RadioItem,{value:d.value,model:n,onChange:()=>s(d.value),children:d.label}),f.jsx(pr.Separator,{})]},"0"):f.jsx(pr.RadioItem,{value:d.value,model:n,onChange:()=>s(d.value),children:d.label},d.value))})]})]})},Lk=({id:e,selected:t,onSelect:n})=>{const{t:r}=pe();return f.jsx("div",{className:"treeview",children:f.jsx("ul",{role:"tree",className:"m-0 p-0",children:f.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:f.jsx("div",{children:f.jsx("div",{className:"action-container",children:f.jsx("div",{onClick:n,role:"button",tabIndex:0,children:f.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[f.jsx(n3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},Mk=x.lazy(async()=>await ye(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),Dk=()=>{const e=it(),{t}=pe(),[n,r]=z4(),s=ts(),i=rs(),o=gf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=je(),p=async y=>{await u(y,e)},m=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(DC,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:p}),f.jsx(Lk,{id:Xe.BIN,selected:i,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(Jr,{disabled:i,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(y3,{}),onClick:m,children:t("explorer.folder.new")})}),f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(Mk,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},Fk=()=>{const e=ek(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=je();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},$k=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await HR();if(i){t(JSON.parse(i==null?void 0:i.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await qR({onSuccess:()=>r(!1)})},setIsOpen:r}},zk=()=>{const e=ky(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=je();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},Uk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},Bk=x.lazy(async()=>await ye(()=>import("./OnboardingTrash.js"),[])),Vk=x.lazy(async()=>await ye(()=>import("./AppAction.js"),[])),Hk=x.lazy(async()=>await ye(()=>import("./Library.js"),[])),qk=x.lazy(async()=>await ye(()=>import("./TrashedResourceModal.js"),[]));function Qk(){const{currentApp:e}=yt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=$k(),{data:i}=Oy(),{isTrashedModalOpen:o,onTrashedCancel:a}=zk(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=Fk();WS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=Ck();return f.jsxs(f.Fragment,{children:[f.jsx(T3,{render:()=>Uk({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Vk,{})}):null,children:f.jsx(L3,{app:e})}),f.jsxs(Ms,{className:"flex-grow-1",children:[f.jsxs(Ms.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(Dk,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Hk,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(Ak,{}),f.jsx(sk,{}),f.jsx(Tk,{})]}),f.jsx(Sk,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Bk,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(qk,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(_k,{isOpen:l,onCancel:u})})]})]})}function Wk(){const{init:e}=yt();return e?e?f.jsx(pR,{children:f.jsx(Qk,{})}):null:f.jsx(Ve,{position:!1})}const Kk=document.getElementById("root"),Gk=new cw({queryCache:new Am({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});wy(Kk).render(f.jsx(x.StrictMode,{children:f.jsxs(PS,{client:Gk,children:[f.jsx(BS,{params:ml(),children:f.jsx(QS,{children:f.jsx(Wk,{})})}),f.jsx(mR,{initialIsOpen:!1})]})}));export{t8 as $,Tt as A,Jr as B,r5 as C,pr as D,o8 as E,yc as F,h3 as G,rp as H,c0 as I,c8 as J,u8 as K,Ve as L,bn as M,rs as N,d8 as O,YR as P,it as Q,pm as R,y3 as S,ts as T,DC as U,Es as V,ns as W,f8 as X,h8 as Y,i5 as Z,ye as _,Pi as a,g8 as a0,Uk as a1,v8 as a2,bk as a3,ml as a4,V as a5,n8 as a6,n3 as a7,vc as a8,Md as a9,r8 as aa,Di as ab,l8 as ac,B4 as ad,Ea as ae,Z3 as af,a8 as ag,s8 as ah,_e as ai,Pa as aj,Fi as ak,i8 as al,Jg as am,Qa as b,z4 as c,yt as d,je as e,Oy as f,Jk as g,Ad as h,Ni as i,f as j,P0 as k,A3 as l,d5 as m,ot as n,Ld as o,ZR as p,m8 as q,x as r,p8 as s,jt as t,pe as u,e8 as v,np as w,gc as x,Ka as y,J4 as z};
241
+ */var nc=b,KP=My;function GP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var XP=typeof Object.is=="function"?Object.is:GP,YP=KP.useSyncExternalStore,JP=nc.useRef,ZP=nc.useEffect,e6=nc.useMemo,t6=nc.useDebugValue;Rb.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=JP(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=e6(function(){function l(p){if(!u){if(u=!0,d=p,p=r(p),s!==void 0&&o.hasValue){var m=o.value;if(s(m,p))return f=m}return f=p}if(m=f,XP(d,p))return m;var y=r(p);return s!==void 0&&s(m,y)?m:(d=p,f=y)}var u=!1,d,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,s]);var a=YP(e,i[0],i[1]);return ZP(function(){o.hasValue=!0,o.value=a},[a]),t6(a),a};jb.exports=Rb;var n6=jb.exports;const r6=$o(n6),{useDebugValue:s6}=fe,{useSyncExternalStoreWithSelector:i6}=r6;function o6(e,t=e.getState,n){const r=i6(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return s6(r),r}const X1=e=>{const t=typeof e=="function"?WP(e):e,n=(r,s)=>o6(t,r,s);return Object.assign(n,t),n},a6=e=>e?X1(e):X1,Ob=async e=>{const t=await ne.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},l6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await ne.resource(e.app).createFolder(r)},u6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await ne.resource(t.app).updateFolder(s)},c6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ne.resource(e.app).trashAll(s,n)},d6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ne.resource(e.app).deleteAll(s,n)},f6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await ne.resource(e.app).restoreAll(s,r)},h6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await ne.resource(e.app).moveToFolder(i,s)},p6=async({app:e,resourceId:t,rights:n})=>await ne.share().saveRights(e,t,n),m6=async({app:e,params:t})=>await ne.resource(e).update(t),g6=async e=>await ne.rights().sessionHasWorkflowRights(e),v6=({searchParams:e,assetId:t})=>ne.resource(e.app).gotoView(t),y6=({searchParams:e,params:t})=>ne.resource(e.app).create(t),x6=({searchParams:e,assetId:t})=>ne.resource(e.app).gotoPrint(t),O7=async e=>await ne.conf().getPreference(e),N7=async e=>await ne.conf().savePreference(e,JSON.stringify({showOnboardingTrash:!1}));function Lp(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Fo(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=Fo(e,i),n===void 0))),n)}function w6(e,t){var r;const n=Fo(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Ct.BIN?[Ct.BIN]:[Ct.DEFAULT]}const pn=document.querySelector("[data-ode-app]");let Ai;function rc(){var e;if(Ai)return Ai;if(Ai={app:Ps.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=pn==null?void 0:pn.dataset)!=null&&e.odeApp){const{odeApp:t}=pn.dataset;try{const n=JSON.parse(t);Object.assign(Ai,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",pn==null?void 0:pn.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",pn==null?void 0:pn.dataset);return Ai}function Nb(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Nb(t.id,n)):!1}function ia(e,t){return Pb(e,t)||e}function Pb(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const a=Pb(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class sc{constructor(t){us(this,"id");us(this,"name");us(this,"childNumber");us(this,"section",!1);us(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ab=(e,t,n)=>ia(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new sc(s))),r)),{app:b6,types:S6,filters:C6,orders:E6}=rc(),lt=a6()((e,t)=>({filters:C6,orders:E6,searchConfig:{minLength:1},searchParams:{app:b6,types:S6,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:Ct.DEFAULT,name:bt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...n}}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();v6({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);x6({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=w6(n,i),l=Lp([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Ct.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!Nb(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ob({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ab(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||Ct.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=Fo(n,r);r2()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=Fo(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Ct.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Ct.BIN},trashed:!0},currentFolder:{id:Ct.BIN}}))}})),It=()=>lt(e=>e.searchParams),Fp=()=>lt(e=>e.selectedNodesIds),ci=()=>lt(e=>e.treeData),k6=()=>lt(e=>e.selectedFolders),_b=()=>lt(e=>e.selectedResources),j6=()=>lt(e=>e.searchConfig),oa=()=>lt(e=>e.folderIds),aa=()=>lt(e=>e.resourceIds),ic=()=>lt(e=>e.selectedResources.map(t=>t.assetId)),oc=()=>lt(e=>e.selectedResources.filter(t=>t.assetId===t.id)),di=()=>lt(e=>e.currentFolder),Ye=()=>lt(e=>e.updaters),fi=()=>{const e=di();return(e==null?void 0:e.id)===Ct.BIN},Tb=()=>lt(e=>e.resourceIsTrash),R6=()=>lt(e=>e.resourceActionDisable),O6=()=>{const e=di();return(e==null?void 0:e.id)==="default"},N6=()=>Fp().length>1,P6=()=>lt(e=>e.status),Ib=()=>{const e=It(),[t,n]=b.useState(""),r=j6(),s=P6(),i=b.useRef(null),{setSearchParams:o}=Ye(),a=d=>{const f=d.target.value;n(f.toString())},l=d=>{(d.key==="Enter"||d.key==="Return")&&(d.preventDefault(),o({search:t||void 0}))},u=d=>{d.preventDefault(),o({search:t||void 0})};return b.useEffect(()=>{const f=t.length==0||t.length>=r.minLength?{search:t||void 0}:{};o({...e,...f})},[t,r.minLength]),b.useEffect(()=>{s==="select"&&n("")},[s]),b.useEffect(()=>{n(()=>{var d;return((d=e.search)==null?void 0:d.toString())??""})},[e]),{formRef:i,inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}};function A6(){const{appCode:e}=_e(),t=Fp(),n=fi(),r=di(),{t:s}=re(["common",e]),{gotoPreviousFolder:i}=Ye(),{inputSearch:o}=Ib(),a=s("explorer.tree.trash"),l=s("explorer.tree.search"),u=s("explorer.filters.mine",{ns:e}),d=(r==null?void 0:r.name)||u;return c.jsx("div",{className:"py-16",children:t.length>1&&!n?c.jsxs("div",{className:"d-flex align-items-center gap-8",children:[c.jsx(qn,{icon:c.jsx(gE,{}),variant:"ghost",color:"tertiary","aria-label":s("back"),className:"ms-n16",onClick:i}),c.jsx("p",{className:"body py-8 text-truncate",children:c.jsx("strong",{children:d})})]}):c.jsx("h2",{className:"body py-8 fw-bold",children:o.length!==0?l:n?a:u})})}function _6(e,{parentId:t,newFolder:n}){return ia(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=Lp([...i,r.id]);return{...r,children:[...r.children||[],new sc({...n,ancestors:o})]}}else return r})}function T6(e,{folders:t}){return ia(e,n=>{if(!t.includes(n.id))return n})}function I6(e,{destinationId:t,folders:n}){return ia(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=Lp([...a,r.id]),u=[...r.children||[]],d=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!d.includes(h)){const p=Fo(h,e);p&&u.push({...p,folder:{...p==null?void 0:p.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function D6(e,{folderId:t,newFolder:n}){return ia(e,r=>r.id===t?new sc(n):r)}const{actions:Y1,app:M6}=rc(),Db=()=>Ah({queryKey:["actions"],queryFn:async()=>{const e=Y1.map(n=>n.workflow);return await g6(e)},select:e=>Y1.map(t=>({...t,available:e[t.workflow]}))}),L6=()=>{const e=at(),{appCode:t}=_e(),{t:n}=re(),r=Tt(),s=It(),i=di(),o=ci(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ye(),{filters:d,trashed:f,search:h}=s,p=["context",{folderId:d.folder,filters:d,trashed:f,search:h}];return GC({queryKey:p,queryFn:async({pageParam:m=0})=>await Ob({...s,pagination:{...s.pagination,startIdx:m}}),onError(m){typeof m=="string"&&e.error(n(m))},onSuccess:async m=>{var w,g,v;await r.cancelQueries({queryKey:p});const y=[...((w=m==null?void 0:m.pages[0])==null?void 0:w.folders)??[]];(g=m==null?void 0:m.pages[0])!=null&&g.searchConfig&&u(m.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:Ct.DEFAULT,section:!0,children:y.map(x=>new sc(x)),name:n("explorer.filters.mine",{ns:t})}):a(Ab(o,y,s.filters.folder||Ct.DEFAULT))),l({...s,pagination:(v=m==null?void 0:m.pages[(m==null?void 0:m.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:m=>m.pagination.startIdx+m.pagination.pageSize})},P7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),s=oa(),i=ic(),o=aa(),a=oc().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:d,setTreeData:f,setSearchParams:h}=Ye(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return Kn({mutationFn:async()=>await c6({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(w){typeof w=="string"&&e.error(bt(w))},onSuccess:async w=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return e.success(bt("explorer.trash.title")),t.setQueryData(y,v=>{var x;if(v){const S={...v,pages:v==null?void 0:v.pages.map(j=>{var k;return{...j,folders:j.folders.filter(O=>!s.includes(O.id)),pagination:{...j.pagination,maxIdx:((k=j==null?void 0:j.pagination)==null?void 0:k.maxIdx)-w.resources.length},resources:j.resources.filter(O=>a?!i.includes(O.assetId):!l.includes(O.id))}})},C=T6(r,{folders:s});return f(C),h({...n,pagination:{...n.pagination,maxIdx:((x=n.pagination)==null?void 0:x.maxIdx)-w.resources.length}}),S}})},onSettled:()=>{u(),d()}})},F6=()=>{const e=at(),t=Tt(),n=It(),r=oa(),s=ic(),i=aa(),o=oc().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:d,setSelectedFolders:f}=Ye(),{filters:h,trashed:p}=n,m=["context",{folderId:h.folder,filters:h,trashed:p}];return Kn({mutationFn:async()=>await f6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(bt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:m}),t.getQueryData(m))return e.success(bt("explorer.trash.toast")),t.setQueryData(m,w=>{if(w)return{...w,pages:w==null?void 0:w.pages.map(g=>({...g,folders:g.folders.filter(v=>!r.includes(v.id)),resources:g.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),d([]),l([]),f([])}})},A7=()=>{const e=at(),t=Tt(),n=It(),r=oa(),s=ic(),i=aa(),o=oc().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=Ye(),{filters:d,trashed:f}=n,h=["context",{folderId:d.folder,filters:d,trashed:f}];return Kn({mutationFn:async()=>await d6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(p){typeof p=="string"&&e.error(bt(p))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return e.success(bt("explorer.removed.from.trash")),t.setQueryData(h,m=>{if(m)return{...m,pages:m==null?void 0:m.pages.map(w=>({...w,folders:w.folders.filter(g=>!r.includes(g.id)),resources:w.resources.filter(g=>o?!s.includes(g.assetId):!a.includes(g.id))}))}})},onSettled:()=>{l(),u()}})},_7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),s=oa(),i=ic(),o=aa(),a=oc().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:d,setTreeData:f,setSearchParams:h}=Ye(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return Kn({mutationFn:async w=>await h6({searchParams:n,folderId:w,folderIds:s,resourceIds:l,useAssetIds:a}),onError(w){typeof w=="string"&&e.error(bt(w))},onSuccess:async(w,g)=>{if(t.getQueryData(y))return t.setQueryData(y,x=>{var S;if(x){const C=I6(r,{destinationId:g,folders:s}),j={...x,pages:x==null?void 0:x.pages.map(k=>{var O;return{...k,folders:k.folders.filter(A=>!s.includes(A.id)),pagination:{...k.pagination,maxIdx:((O=k.pagination)==null?void 0:O.maxIdx)-w.resources.length},resources:k.resources.filter(A=>a?!i.includes(A.assetId):!l.includes(A.id))}})};return f(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-w.resources.length}}),j}})},onSettled:()=>{d(),u()}})},T7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),{setTreeData:s}=Ye(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return Kn({mutationFn:async({name:l,parentId:u})=>await l6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(bt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const d=t.getQueryData(a),f={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(d)return t.setQueryData(a,h=>{if(h){const p={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,f]}))},m=_6(r,{parentId:u.parentId,newFolder:f});return s(m),p}})}})},I7=()=>{const e=at(),t=Tt(),n=It(),r=ci(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=Ye(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return Kn({mutationFn:async({folderId:d,name:f,parentId:h})=>await u6({searchParams:n,folderId:d,parentId:h,name:f}),onError(d){typeof d=="string"&&e.error(bt(d))},onSuccess:async(d,f)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,p=>{if(p){const m={...p,pages:p==null?void 0:p.pages.map(w=>({...w,folders:w.folders.map(g=>g.id===d.id?{...d,parentId:f.parentId,rights:g.rights}:g)}))},y=D6(r,{folderId:f.folderId,newFolder:d});return o(y),m}})},onSettled:()=>{s([]),i([])}})},$6=()=>{const e=at(),t=Tt(),n=It(),{setResourceIds:r,setSelectedResources:s}=Ye(),{filters:i,trashed:o,app:a}=n,l=["context",{folderId:i.folder,filters:i,trashed:o}];return Kn({mutationFn:async({resourceId:u,rights:d})=>await p6({app:a,resourceId:u,rights:d}),onError(u){typeof u=="string"&&e.error(bt("explorer.shared.status.error"))},onSuccess:async(u,d)=>{if(await t.cancelQueries({queryKey:l}),t.getQueryData(l))return e.success(bt("explorer.shared.status.saved")),t.setQueryData(l,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(p=>({...p,resources:p.resources.map(m=>{if(m.assetId===(d==null?void 0:d.resourceId)){let y=[`creator:${m.creatorId}`];return(d==null?void 0:d.rights.length)>=1&&(y=[...y,...d.rights.flatMap(w=>w.actions.map(g=>`${w.type}:${w.id}:${g.id}`))]),{...m,rights:y}}else return m})}))}})},onSettled:()=>{r([]),s([])}})},B6=()=>{const e=at(),t=Tt(),n=It(),{filters:r,trashed:s,app:i}=n,o=["context",{folderId:r.folder,filters:r,trashed:s}];return Kn({mutationFn:async a=>await m6({app:i,params:a}),onError(a){typeof a=="string"&&e.error(bt(a))},onSuccess:async(a,l)=>{if(await t.cancelQueries({queryKey:o}),t.getQueryData(o))return t.setQueryData(o,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(f=>({...f,resources:f.resources.map(h=>{if(h.assetId===(l==null?void 0:l.entId)){const{name:p,thumbnail:m,public:y,description:w,slug:g,...v}=l;return{...h,...v,name:p,thumbnail:typeof m=="string"?m:URL.createObjectURL(m),public:y,description:w,slug:g}}else return h})}))}})}})},D7=()=>{const e=at(),t=Tt(),n=It(),{user:r}=ra(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return Kn({mutationFn:async i=>await y6({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(bt(i))},onSuccess:async(i,o)=>{var d,f,h;await t.cancelQueries({queryKey:s});const a=t.getQueryData(s),{thumbnail:l}=o,u={...o,thumbnail:l?URL.createObjectURL(l):"",application:M6,assetId:i._id||i.entId||"",id:i._id||i.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:o.slug||"",modifiedAt:((d=i.modified)==null?void 0:d.$date)||"",modifierId:((f=i.author)==null?void 0:f.userId)||"",modifierName:((h=i.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(s,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(m=>({...m,resources:[u,...m.resources]}))}})}})},{trashActions:z6}=rc();function Mb(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[s,i]=b.useState(),o=di(),a=aa(),l=_b(),u=k6(),d=oa(),f=fi(),h=F6(),p=Tb(),{openResource:m,printSelectedResource:y,openFolder:w,clearSelectedItems:g,clearSelectedIds:v}=Ye(),{data:x}=Db();b.useEffect(()=>{if(a.length===0&&d.length===0){t(!1);return}if(p){t(!1);return}t(!0)},[a,d]);async function S(te){var ae;switch((ae=document.getElementById("root"))==null||ae.setAttribute("aria-hidden","true"),i(te),te.id){case ct.OPEN:return a.length>0?m(l[0]):w({folder:u[0],folderId:u[0].id});case ct.MOVE:return r("move");case ct.PRINT:return y();case ct.DELETE:return r("delete");case ct.RESTORE:return await k();case ct.PUBLISH:return r("publish");case ct.UPD_PROPS:case"edit":return J();case ct.SHARE:return r("share");default:throw Error(`Unknown action: ${te.id}`)}}function C(te){const ae=a.length+d.length,de=a.length===1||d.length===1,ye=ae===1,Re=d.length===0;switch(te.id){case ct.OPEN:return ye;case ct.MANAGE:return de;case ct.PUBLISH:return de&&Re;case ct.UPD_PROPS:return de&&Re;case ct.SHARE:return Re&&de;case ct.PRINT:return de&&Re;case"edit":return ye;default:return!0}}const j=()=>!0;async function k(){try{if(f)await h.mutate();else throw new Error("Cannot restore untrashed resources");O()}catch(te){console.error(te)}}function O(){var te;r("void"),s!=null&&s.id&&((te=document.getElementById(s==null?void 0:s.id))==null||te.focus())}const A=te=>()=>{n===te&&(O(),g(),v())},_=A("move"),F=A("move"),T=A("delete"),$=A("delete"),D=A("publish"),E=A("publish"),N=A("edit_folder"),L=A("edit_folder"),P=A("edit_resource"),B=A("edit_resource"),z=A("share"),ee=A("share");function J(){a&&a.length>0?r("edit_resource"):r("edit_folder")}function le(te){return te.id==="edit"&&d.length>0?"explorer.rename":`explorer.actions.${te.id}`}return{onRestore:k,actions:f?z6:x,selectedElement:[...l,...u],currentFolderId:o==null?void 0:o.id,overrideLabel:le,handleClick:S,isActivable:f?j:C,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:_,onMoveSuccess:F,isDeleteModalOpen:n==="delete",onDeleteCancel:$,onDeleteSuccess:T,isPublishModalOpen:n==="publish",onPublishCancel:E,onPublishSuccess:D,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:L,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:B,onEditResourceSuccess:P,isShareResourceOpen:n==="share",onShareResourceCancel:ee,onShareResourceSuccess:z,onClearActionBar:O}}function V6({roles:e,rights:t,action:n}){const[r,s]=b.useState(!1),{user:i}=ra(),o=fi();b.useEffect(()=>{u()},[e,t]);const a=async function(d){const f=d instanceof Array?d:[d];if(e instanceof Array){const h=await ne.rights().sessionHasAtLeastOneResourceRight(e,f);s(h)}else{const h=await ne.rights().sessionHasResourceRight(e,f);s(h)}},l=async function(d){if(e instanceof Array){const f=await ne.rights().sessionHasAtLeastOneResourceRightForEachList(e,d);s(f)}else{const f=await ne.rights().sessionHasResourceRightForEachList(e,d);s(f)}},u=async function(){var d,f,h;if(e===void 0){s(!0);return}if(o&&((f=(d=t[0])==null?void 0:d.trashedBy)!=null&&f.includes(i==null?void 0:i.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const p=t.map(m=>m.rights);await l(p)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function U6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=re(),{overrideLabel:o}=Mb(),{visible:a}=V6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ye(),u=fi();return a?c.jsx(c.Fragment,{children:r}):s?s():u&&!a?c.jsx(Fe,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:i(o(n))}):c.jsx(c.Fragment,{})}const H6=b.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>Mp),void 0)).ShareModal})),q6=b.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>Mp),void 0)).PublishModal})),Q6=b.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>Mp),void 0)).ResourceModal})),W6=b.lazy(async()=>await $e(()=>import("./DeleteModal.js"),[])),K6=b.lazy(async()=>await $e(()=>import("./MoveModal.js"),[])),G6=b.lazy(async()=>await $e(()=>import("./EditFolderModal.js"),[]));function X6(){const{t:e}=re(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:s,isPublishModalOpen:i,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:d,isEditResourceOpen:f,onEditResourceCancel:h,onEditResourceSuccess:p,isShareResourceOpen:m,onShareResourceCancel:y,onShareResourceSuccess:w,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:x,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:j,isActivable:k,handleClick:O}=Mb(),A=_b(),_=$6(),F=B6(),T=rp(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return c.jsxs(c.Fragment,{children:[T(($,D)=>D&&c.jsx(ru.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:$,children:c.jsx(Uw,{children:t==null?void 0:t.filter(E=>E.available&&E.target==="actionbar").map(E=>k(E)&&c.jsx(U6,{resourceRights:n,roleExpected:E.right,action:E,children:c.jsx(Fe,{id:E.id,type:"button",color:"primary",variant:"filled",onClick:()=>{O(E)},children:e(l(E))},E.id)},E.id))})})),c.jsxs(b.Suspense,{fallback:c.jsx(et,{}),children:[r&&c.jsx(K6,{isOpen:r,onCancel:g,onSuccess:v}),s&&c.jsx(W6,{isOpen:s,onCancel:x,onSuccess:S}),i&&c.jsx(q6,{isOpen:i,resource:A[0],onCancel:C,onSuccess:j}),a&&c.jsx(G6,{edit:!0,isOpen:a,onCancel:u,onSuccess:d}),f&&c.jsx(Q6,{mode:"update",actions:t,isOpen:f,selectedResource:A[0],updateResource:F,onCancel:h,onSuccess:p}),m&&c.jsx(H6,{isOpen:m,resource:A[0],updateResource:F,shareResource:_,onCancel:y,onSuccess:w})]})]})}const Y6={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},J6=()=>{var l;const{user:e,appCode:t}=_e(),n=Y6[t],r=(l=e.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:l.address.split("?");let s=r==null?void 0:r[0];s!=null&&s.endsWith("/")||(s=`${s}/`);const i=r==null?void 0:r[1],o=`application%5B0%5D=${n}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${s}search/?${i}&${o}`}},Z6=b.lazy(async()=>await $e(()=>import("./EmptyScreenApp.js"),[])),e7=b.lazy(async()=>await $e(()=>import("./EmptyScreenSearch.js"),[])),t7=b.lazy(async()=>await $e(()=>import("./EmptyScreenError.js"),[])),n7=b.lazy(async()=>await $e(()=>import("./EmptyScreenNoContentInFolder.js"),[])),r7=b.lazy(async()=>await $e(()=>import("./EmptyScreenTrash.js"),[])),s7=b.lazy(async()=>await $e(()=>import("./FoldersList.js"),[])),i7=b.lazy(async()=>await $e(()=>import("./ResourcesList.js"),[])),o7=()=>{const e=O6(),t=fi(),n=N6(),r=It(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=L6(),u=(s==null?void 0:s.pages[0].folders.length)===0,d=(s==null?void 0:s.pages[0].resources.length)===0,f=u&&d;return i?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(t7,{})}):r.search&&f?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(e7,{})}):!f&&!o?c.jsxs(b.Suspense,{fallback:c.jsx(et,{}),children:[c.jsx(s7,{data:s,isFetching:a}),c.jsx(i7,{data:s,isFetching:a,fetchNextPage:l})]}):e&&f?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(Z6,{})}):n&&f&&!t?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(n7,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(r7,{})}):null};function a7({isOpen:e,onCancel:t=()=>({})}){const{t:n}=re();return Wn.createPortal(c.jsxs(je,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[c.jsx(je.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),c.jsx(je.Body,{children:c.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),c.jsx(je.Footer,{children:c.jsx(Fe,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const l7=()=>{const{appCode:e,currentApp:t}=_e(),{t:n}=re(),[r,s]=b.useState(""),i=d=>{if(d==="0"){s("");return}s(d)},o=di(),a=It(),{setSearchParams:l}=Ye();b.useEffect(()=>{const d=()=>r.includes("1")?!0:void 0,f=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:d(),public:h(),shared:f(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==Ps.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==Ps.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==Ps.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},u7=()=>{const{appCode:e}=_e(),{t}=re(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=l7(),{formRef:i,inputSearch:o,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}=Ib(),d=n.length>0?n.length:void 0;return c.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",ref:i,children:[c.jsxs(Ue,{id:"search",className:"input-group",children:[c.jsx(jr,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:o,onChange:a,onKeyDown:l}),c.jsx(Np,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:u})]}),c.jsxs(we,{placement:"bottom-end",children:[c.jsx(we.Trigger,{label:t("explorer.filters"),icon:c.jsx(TE,{width:20}),variant:"ghost",badgeContent:d}),c.jsx(we.Menu,{children:r.map(f=>f.value==="0"?c.jsxs(b.Fragment,{children:[c.jsx(we.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label}),c.jsx(we.Separator,{})]},"0"):c.jsx(we.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label},f.value))})]})]})},c7=({id:e,selected:t,onSelect:n})=>{const{t:r}=re();return c.jsx("div",{className:"treeview",children:c.jsx("ul",{role:"tree",className:"m-0 p-0",children:c.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:c.jsx("div",{children:c.jsx("div",{className:"action-container",children:c.jsx("div",{onClick:n,role:"button",tabIndex:0,children:c.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[c.jsx(ox,{width:"20",height:"20"}),c.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},d7=b.lazy(async()=>await $e(()=>import("./EditFolderModal.js"),[])),f7=()=>{const e=Tt(),{t}=re(),[n,r]=Rp(),s=ci(),i=fi(),o=Fp(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:d,clearSelectedItems:f,clearSelectedIds:h}=Ye(),p=async y=>{await u(y,e)},m=()=>{f(),h(),r()};return s?c.jsxs(c.Fragment,{children:[c.jsx(pb,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:d,onTreeItemUnfold:p}),c.jsx(c7,{id:Ct.BIN,selected:i,onSelect:a}),c.jsx("div",{className:"d-grid my-16",children:c.jsx(Fe,{disabled:i,type:"button",color:"primary",variant:"outline",leftIcon:c.jsx(HE,{}),onClick:m,children:t("explorer.folder.new")})}),c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:n&&c.jsx(d7,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},h7=()=>{const e=R6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ye();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},p7=()=>{const e=Tb(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ye();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},m7=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},g7=b.lazy(async()=>await $e(()=>import("./Onboarding.js"),[])),v7=b.lazy(async()=>await $e(()=>import("./AppAction.js"),[])),y7=b.lazy(async()=>await $e(()=>import("./Library.js"),[])),x7=b.lazy(async()=>await $e(()=>import("./TrashedResourceModal.js"),[]));function w7(){const{currentApp:e}=_e(),{data:t}=Db(),{isTrashedModalOpen:n,onTrashedCancel:r}=p7(),{isActionDisableModalOpen:s,onActionDisableCancel:i}=h7(),{libraryUrl:o}=J6();a2();const a=t==null?void 0:t.find(l=>l.id==="publish");return c.jsxs(c.Fragment,{children:[c.jsx(Qw,{render:()=>m7({workflow:"create",actions:t})?c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(v7,{})}):null,children:c.jsx(w2,{app:e})}),c.jsxs(zs,{className:"flex-grow-1",children:[c.jsxs(zs.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[c.jsx(f7,{}),(a==null?void 0:a.available)&&o&&c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(y7,{url:o})})]}),c.jsxs(zs.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[c.jsx(u7,{}),c.jsx(A6,{}),c.jsx(o7,{})]}),c.jsx(X6,{}),c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(g7,{id:"showOnboardingTrash",items:[{src:"onboarding/illu-trash-menu.svg",alt:"explorer.modal.onboarding.trash.screen1.alt",text:"explorer.modal.onboarding.trash.screen1.title"},{src:"onboarding/illu-trash-notif.svg",alt:"explorer.modal.onboarding.trash.screen2.alt",text:"explorer.modal.onboarding.trash.screen2.alt"},{src:"onboarding/illu-trash-delete.svg",alt:"explorer.modal.onboarding.trash.screen3.alt",text:"explorer.modal.onboarding.trash.screen3.title"}],modalOptions:{title:"explorer.modal.onboarding.trash.title",prevText:"explorer.modal.onboarding.trash.prev",nextText:"explorer.modal.onboarding.trash.next",closeText:"explorer.modal.onboarding.trash.close"}})}),n&&c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(x7,{isOpen:n,onCancel:r})}),s&&c.jsx(b.Suspense,{fallback:c.jsx(et,{}),children:c.jsx(a7,{isOpen:s,onCancel:i})})]})]})}function b7(){const{init:e}=_e();return e?e?c.jsx(Cb,{children:c.jsx(w7,{})}):null:c.jsx(et,{position:!1})}const S7=document.getElementById("root"),C7=new x4({queryCache:new Rv({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});kb(S7).render(c.jsx(b.StrictMode,{children:c.jsxs(MC,{client:C7,children:[c.jsx(Kw,{params:rc(),children:c.jsx(Gw,{children:c.jsx(b7,{})})}),c.jsx(QP,{initialIsOpen:!1})]})}));export{Kr as A,Fe as B,jr as C,oa as D,qN as E,Ue as F,R7 as G,r2 as H,li as I,ru as J,rP as K,et as L,je as M,tt as N,$o as O,It as P,aa as Q,fe as R,HE as S,pb as T,G as U,vP as V,Mp as W,$e as _,Wn as a,ai as b,Rp as c,_e as d,Ye as e,Db as f,O7 as g,di as h,D7 as i,c as j,Xu as k,QN as l,A7 as m,P7 as n,fi as o,_7 as p,k6 as q,b as r,N7 as s,_b as t,re as u,Tt as v,ci as w,T7 as x,I7 as y,rx as z};