ode-explorer 1.1.2 → 1.3.0
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/Card.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/EditFolderModal.js +1 -1
- package/dist/EditResourceModal.js +2 -2
- package/dist/FoldersList.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/OnboardingTrash.js +1 -1
- package/dist/PublishModal.js +1 -1
- package/dist/ResourcesList.js +5 -1
- package/dist/ShareResourceModal.js +1 -1
- package/dist/TextArea.js +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +39 -38
- package/dist/style.css +1 -1
- package/dist/version.txt +1 -1
- package/package.json +33 -33
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
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={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Py=Object.defineProperty;var Oy=(e,t,n)=>t in e?Py(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
|
|
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]);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,8 @@ var Py=Object.defineProperty;var Oy=(e,t,n)=>t in e?Py(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 Wy=x,Zy=Symbol.for("react.element"),Gy=Symbol.for("react.fragment"),Xy=Object.prototype.hasOwnProperty,Yy=Wy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jy={key:!0,ref:!0,__self:!0,__source:!0};function mm(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)Xy.call(t,r)&&!Jy.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:Zy,type:e,key:i,ref:o,props:s,_owner:Yy.current}}ka.Fragment=Gy;ka.jsx=mm;ka.jsxs=mm;im.exports=ka;var f=im.exports;const e2={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 To{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||e2,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 To(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new To(this.logger,t)}}var Dt=new To;class Pa{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 t2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Dc(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}=Dc(e,t,Object);r[s]=n}function n2(e,t,n,r){const{obj:s,k:i}=Dc(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Io(e,t){const{obj:n,k:r}=Dc(e,t);if(n)return n[r]}function r2(e,t,n){const r=Io(e,n);return r!==void 0?r:Io(t,n)}function gm(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]):gm(e[r],t[r],n):e[r]=t[r]);return e}function ur(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var s2={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function i2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>s2[t]):e}const o2=[" ",",","?","!",";"];function a2(e,t,n){t=t||"",n=n||"";const r=o2.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 _o(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?_o(l,u,n):void 0}s=s[r[i]]}return s}function Ao(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Cf extends Pa{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=Io(this.data,a);return l||!o||typeof r!="string"?l:_o(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=Io(this.data,a)||{};s?gm(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 vm={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 Lo extends Pa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),t2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dt.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&&!a2(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}:`${l}${b}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:o}const d=this.resolve(t,n);let h=d&&d.res;const m=d&&d.usedKey||o,p=d&&d.exactUsedKey||o,w=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(w)<0&&!(typeof g=="string"&&w==="[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(m,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(d.res=b,d):b}if(i){const b=w==="[object Array]",E=b?[]:{},k=b?p:m;for(const R in h)if(Object.prototype.hasOwnProperty.call(h,R)){const P=`${k}${i}${R}`;E[R]=this.translate(P,{...n,joinArrays:!1,ns:a}),E[R]===P&&(E[R]=h[R])}h=E}}else if(v&&typeof g=="string"&&w==="[object Array]")h=h.join(g),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,E=!1;const k=n.count!==void 0&&typeof n.count!="string",R=Lo.hasDefaultValue(n),P=k?this.pluralResolver.getSuffix(u,n.count,n):"",L=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",M=n[`defaultValue${P}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(h)&&R&&(b=!0,h=M),this.isValidLookup(h)||(E=!0,h=o);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:h,U=R&&M!==h&&this.options.updateMissing;if(E||b||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,o,U?M:h),i){const $=this.resolve(o,{...n,keySeparator:!1});$&&$.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 C=[];const O=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&O&&O[0])for(let $=0;$<O.length;$++)C.push(O[$]);else this.options.saveMissingTo==="all"?C=this.languageUtils.toResolveHierarchy(n.lng||this.language):C.push(n.lng||this.language);const A=($,N,_)=>{const z=R&&_!==h?_:D;this.options.missingKeyHandler?this.options.missingKeyHandler($,l,N,z,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,l,N,z,U,n),this.emit("missingKey",$,l,N,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?C.forEach($=>{this.pluralResolver.getSuffixes($,n).forEach(N=>{A([$],o+N,n[`defaultValue${N}`]||M)})}):A(C,o,M))}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):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},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),m=h&&h.length;c<m&&(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,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return i&&i[0]===m[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):o.translate(...m,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=vm.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:s,...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",m=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!Ef[`${w[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Ef[`${w[0]}-${S}`]=!0,this.logger.warn(`key "${s}" for languages "${w.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!!!")),w.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`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+b),n.ordinal&&b.indexOf(k)===0&&v.push(c+b.replace(k,this.options.pluralSeparator)),m&&v.push(c+E)),p){const R=`${c}${this.options.contextSeparator}${n.context}`;v.push(R),h&&(v.push(R+b),n.ordinal&&b.indexOf(k)===0&&v.push(R+b.replace(k,this.options.pluralSeparator)),m&&v.push(R+E))}}let y;for(;y=v.pop();)this.isValidLookup(r)||(i=y,r=this.getResource(g,S,y,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)}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 yl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Rf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(t){if(t=Ao(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=Ao(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]=yl(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]=yl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=yl(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 l2=[{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}],u2={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 c2=["v1","v2","v3"],d2=["v4"],kf={zero:0,one:1,two:2,few:3,many:4,other:5};function f2(){const e={};return l2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:u2[t.fc]}})}),e}class h2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Dt.create("pluralResolver"),(!this.options.compatibilityJSON||d2.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=f2()}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(Ao(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!c2.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=r2(e,t,n);return!i&&s&&typeof n=="string"&&(i=_o(e,n,r),i===void 0&&(i=_o(t,n,r))),i}class p2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.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:i2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ur(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ur(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?ur(n.nestingPrefix):n.nestingPrefixEscaped||ur("$t("),this.nestingSuffix=n.nestingSuffix?ur(n.nestingSuffix):n.nestingSuffixEscaped||ur(")"),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(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=Pf(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:p}):v}const w=p.split(this.formatSeparator),S=w.shift().trim(),g=w.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:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(t);){const w=i[1].trim();if(o=c(w),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,w))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Sf(o));const S=p.safeValue(o);if(t=t.replace(i[0],S),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=i[0].length):p.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 m=h.match(/'/g),p=h.match(/"/g);(m&&m.length%2===0&&!p||p.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,w),`${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 m2(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 cr(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(Ao(s),i),t[o]=a),a(r)}}class g2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.create("formatter"),this.options=t,this.formats={number:cr((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:cr((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:cr((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:cr((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:cr((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()]=cr(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}=m2(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,m,{...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 v2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class y2 extends Pa{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=Dt.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=>{n2(l.loaded,[i],o),v2(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 Fi(){}function w2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Bs extends Pa{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=Dt,this.modules={external:[]},w2(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?Dt.init(i(this.modules.logger),this.options):Dt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=g2);const d=new Rf(this.options);this.store=new Cf(this.options.resources,this.options);const h=this.services;h.logger=Dt,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new h2(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 p2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new y2(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(m){for(var p=arguments.length,w=new Array(p>1?p-1:0),S=1;S<p;S++)w[S-1]=arguments[S];t.emit(m,...w)}),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 Lo(this.services,this.options),this.translator.on("*",function(m){for(var p=arguments.length,w=new Array(p>1?p-1:0),S=1;S<p;S++)w[S-1]=arguments[S];t.emit(m,...w)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Fi),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]:Fi;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")return r();const i=[],o=a=>{if(!a)return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{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=Fi),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"&&vm.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 m;return l.keyPrefix&&Array.isArray(o)?m=o.map(p=>`${l.keyPrefix}${h}${p}`):m=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(m,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]:Fi;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 Lo(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 Pe=Bs.createInstance();Pe.createInstance=Bs.createInstance;Pe.createInstance;Pe.dir;Pe.init;Pe.loadResources;Pe.reloadResources;Pe.use;Pe.changeLanguage;Pe.getFixedT;const Vt=Pe.t;Pe.exists;Pe.setDefaultNamespace;Pe.hasLoadedNamespace;Pe.loadNamespaces;Pe.loadLanguages;function ou(e){"@babel/helpers - typeof";return ou=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},ou(e)}var ym=[],x2=ym.forEach,S2=ym.slice;function au(e){return x2.call(S2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function wm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":ou(XMLHttpRequest))==="object"}function b2(e){return!!e&&typeof e.then=="function"}function C2(e){return b2(e)?e:Promise.resolve(e)}function E2(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 lu={exports:{}},$i={exports:{}},jf;function R2(){return jf||(jf=1,function(e,t){var n=typeof self<"u"?self:Ue,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function l(C){return C&&DataView.prototype.isPrototypeOf(C)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(C){return C&&u.indexOf(Object.prototype.toString.call(C))>-1};function d(C){if(typeof C!="string"&&(C=String(C)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(C))throw new TypeError("Invalid character in header field name");return C.toLowerCase()}function h(C){return typeof C!="string"&&(C=String(C)),C}function m(C){var O={next:function(){var A=C.shift();return{done:A===void 0,value:A}}};return a.iterable&&(O[Symbol.iterator]=function(){return O}),O}function p(C){this.map={},C instanceof p?C.forEach(function(O,A){this.append(A,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)}p.prototype.append=function(C,O){C=d(C),O=h(O);var A=this.map[C];this.map[C]=A?A+", "+O:O},p.prototype.delete=function(C){delete this.map[d(C)]},p.prototype.get=function(C){return C=d(C),this.has(C)?this.map[C]:null},p.prototype.has=function(C){return this.map.hasOwnProperty(d(C))},p.prototype.set=function(C,O){this.map[d(C)]=h(O)},p.prototype.forEach=function(C,O){for(var A in this.map)this.map.hasOwnProperty(A)&&C.call(O,this.map[A],A,this)},p.prototype.keys=function(){var C=[];return this.forEach(function(O,A){C.push(A)}),m(C)},p.prototype.values=function(){var C=[];return this.forEach(function(O){C.push(O)}),m(C)},p.prototype.entries=function(){var C=[];return this.forEach(function(O,A){C.push([A,O])}),m(C)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function w(C){if(C.bodyUsed)return Promise.reject(new TypeError("Already read"));C.bodyUsed=!0}function S(C){return new Promise(function(O,A){C.onload=function(){O(C.result)},C.onerror=function(){A(C.error)}})}function g(C){var O=new FileReader,A=S(O);return O.readAsArrayBuffer(C),A}function v(C){var O=new FileReader,A=S(O);return O.readAsText(C),A}function y(C){for(var O=new Uint8Array(C),A=new Array(O.length),$=0;$<O.length;$++)A[$]=String.fromCharCode(O[$]);return A.join("")}function b(C){if(C.slice)return C.slice(0);var O=new Uint8Array(C.byteLength);return O.set(new Uint8Array(C)),O.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(C){this._bodyInit=C,C?typeof C=="string"?this._bodyText=C:a.blob&&Blob.prototype.isPrototypeOf(C)?this._bodyBlob=C:a.formData&&FormData.prototype.isPrototypeOf(C)?this._bodyFormData=C:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)?this._bodyText=C.toString():a.arrayBuffer&&a.blob&&l(C)?(this._bodyArrayBuffer=b(C.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(C)||c(C))?this._bodyArrayBuffer=b(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):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var C=w(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(){return this._bodyArrayBuffer?w(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var C=w(this);if(C)return C;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(L)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function R(C){var O=C.toUpperCase();return k.indexOf(O)>-1?O:C}function P(C,O){O=O||{};var A=O.body;if(C instanceof P){if(C.bodyUsed)throw new TypeError("Already read");this.url=C.url,this.credentials=C.credentials,O.headers||(this.headers=new p(C.headers)),this.method=C.method,this.mode=C.mode,this.signal=C.signal,!A&&C._bodyInit!=null&&(A=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 p(O.headers)),this.method=R(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")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(A)}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function L(C){var O=new FormData;return C.trim().split("&").forEach(function(A){if(A){var $=A.split("="),N=$.shift().replace(/\+/g," "),_=$.join("=").replace(/\+/g," ");O.append(decodeURIComponent(N),decodeURIComponent(_))}}),O}function M(C){var O=new p,A=C.replace(/\r?\n[\t ]+/g," ");return A.split(/\r?\n/).forEach(function($){var N=$.split(":"),_=N.shift().trim();if(_){var z=N.join(":").trim();O.append(_,z)}}),O}E.call(P.prototype);function T(C,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new p(O.headers),this.url=O.url||"",this._initBody(C)}E.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},T.error=function(){var C=new T(null,{status:0,statusText:""});return C.type="error",C};var D=[301,302,303,307,308];T.redirect=function(C,O){if(D.indexOf(O)===-1)throw new RangeError("Invalid status code");return new T(null,{status:O,headers:{location:C}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,A){this.message=O,this.name=A;var $=Error(O);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function U(C,O){return new Promise(function(A,$){var N=new P(C,O);if(N.signal&&N.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var _=new XMLHttpRequest;function z(){_.abort()}_.onload=function(){var Z={status:_.status,statusText:_.statusText,headers:M(_.getAllResponseHeaders()||"")};Z.url="responseURL"in _?_.responseURL:Z.headers.get("X-Request-URL");var W="response"in _?_.response:_.responseText;A(new T(W,Z))},_.onerror=function(){$(new TypeError("Network request failed"))},_.ontimeout=function(){$(new TypeError("Network request failed"))},_.onabort=function(){$(new o.DOMException("Aborted","AbortError"))},_.open(N.method,N.url,!0),N.credentials==="include"?_.withCredentials=!0:N.credentials==="omit"&&(_.withCredentials=!1),"responseType"in _&&a.blob&&(_.responseType="blob"),N.headers.forEach(function(Z,W){_.setRequestHeader(W,Z)}),N.signal&&(N.signal.addEventListener("abort",z),_.onreadystatechange=function(){_.readyState===4&&N.signal.removeEventListener("abort",z)}),_.send(typeof N._bodyInit>"u"?null:N._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=p,i.Request=P,i.Response=T),o.Headers=p,o.Request=P,o.Response=T,o.fetch=U,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=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}($i,$i.exports)),$i.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ue<"u"&&Ue.fetch?n=Ue.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof E2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||R2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(lu,lu.exports);var xm=lu.exports;const Sm=Ra(xm),Tf=sm({__proto__:null,default:Sm},[xm]);function Mo(e){"@babel/helpers - typeof";return Mo=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},Mo(e)}var Gt;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Gt=global.fetch:typeof window<"u"&&window.fetch?Gt=window.fetch:Gt=fetch);var Vs;wm()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var Do;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Do=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Do=window.ActiveXObject));!Gt&&Tf&&!Vs&&!Do&&(Gt=Sm||Tf);typeof Gt!="function"&&(Gt=void 0);var uu=function(t,n){if(n&&Mo(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},If=function(t,n,r){Gt(t,n).then(function(s){if(!s.ok)return r(s.statusText||"Error",{status:s.status});s.text().then(function(i){r(null,{status:s.status,data:i})}).catch(r)}).catch(r)},_f=!1,k2=function(t,n,r,s){t.queryStringParams&&(n=uu(n,t.queryStringParams));var i=au({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=au({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},_f?{}:o);try{If(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]}),If(n,a,s),_f=!0}catch(u){s(u)}}},P2=function(t,n,r,s){r&&Mo(r)==="object"&&(r=uu("",r).slice(1)),t.queryStringParams&&(n=uu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new Do("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)}},O2=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Gt&&n.indexOf("file:")!==0)return k2(t,n,r,s);if(wm()||typeof ActiveXObject=="function")return P2(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 N2(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,bm(r.key),r)}}function j2(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T2(e,t,n){return t=bm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bm(e){var t=I2(e,"string");return Hs(t)==="symbol"?t:String(t)}function I2(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 _2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return T2({},r,s||"")},parseLoadPayload:function(n,r){},request:O2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Cm=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]:{};N2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return j2(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=au(s,this.options||{},_2()),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=C2(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,m;try{typeof d.data=="string"?h=o.options.parse(d.data,s,i):h=d.data}catch{m="failed parsing "+n+" to json"}if(m)return r(m,!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 m=a.options.addPath;typeof a.options.addPath=="function"&&(m=a.options.addPath(h,r));var p=a.services.interpolator.interpolate(m,{lng:h,ns:r});a.options.request(a.options,p,l,function(w,S){u+=1,c.push(w),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(m){l.indexOf(m)<0&&l.push(m)})};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,m){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&m&&o.log("loaded namespace ".concat(d," for language ").concat(c),m),s.loaded("".concat(c,"|").concat(d),h,m)})})})}}}]),e}();Cm.type="backend";function A2(){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 cu(){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),A2(...t))}const Em=(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,Em(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,Em(e,r))}function L2(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 M2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(cu("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}}):L2(e,t,n)}const D2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,F2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},$2=e=>F2[e],z2=e=>e.replace(D2,$2);let du={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:z2};function U2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};du={...du,...e}}function B2(){return du}let Rm;function V2(e){Rm=e}function H2(){return Rm}const q2={type:"3rdParty",init(e){U2(e.options.react),V2(e)}},Q2=x.createContext();class K2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const W2=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=x.useContext(Q2)||{},i=n||r||H2();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new K2),!i){cu("You will need to pass in an i18next instance by using initReactI18next");const y=(E,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(E)?E[E.length-1]:E,b=[y,{},!1];return b.t=y,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&cu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...B2(),...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(y=>M2(y,i,o));function d(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,m]=x.useState(d);let p=u.join();t.lng&&(p=`${t.lng}${p}`);const w=W2(p),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:y,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Df(i,t.lng,u,()=>{S.current&&m(d)}):Mf(i,u,()=>{S.current&&m(d)})),c&&w&&w!==p&&S.current&&m(d);function E(){S.current&&m(d)}return y&&i&&i.on(y,E),b&&i&&i.store.on(b,E),()=>{S.current=!1,y&&i&&y.split(" ").forEach(k=>i.off(k,E)),b&&i&&b.split(" ").forEach(k=>i.store.off(k,E))}},[i,p]);const g=x.useRef(!0);x.useEffect(()=>{S.current&&!g.current&&m(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(y=>{t.lng?Df(i,t.lng,u,()=>y()):Mf(i,u,()=>y())})}Pe.use(Cm).use(q2).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 Gr{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 ot(){}function Z2(e,t){return typeof e=="function"?e(t):e}function fu(e){return typeof e=="number"&&e>=0&&e!==1/0}function km(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pr(e,t,n){return Si(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function G2(e,t,n){return Si(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function dn(e,t,n){return Si(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(Si(o)){if(r){if(t.queryHash!==Fc(o,t.options))return!1}else if(!Fo(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(Si(i)){if(!t.options.mutationKey)return!1;if(n){if(qn(t.options.mutationKey)!==qn(i))return!1}else if(!Fo(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function Fc(e,t){return((t==null?void 0:t.queryKeyHashFn)||qn)(e)}function qn(e){return JSON.stringify(e,(t,n)=>hu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Fo(e,t){return Pm(e,t)}function Pm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Pm(e[n],t[n])):!1}function Om(e,t){if(e===t)return e;const n=zf(e)&&zf(t);if(n||hu(e)&&hu(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]=Om(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function $o(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 hu(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 Si(e){return Array.isArray(e)}function Nm(e){return new Promise(t=>{setTimeout(t,e)})}function Bf(e){Nm(0).then(e)}function X2(){if(typeof AbortController=="function")return new AbortController}function pu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Om(e,t):t}class Y2 extends Gr{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 zo=new Y2,Vf=["online","offline"];class J2 extends Gr{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 Uo=new J2;function ew(e){return Math.min(1e3*2**e,3e4)}function Oa(e){return(e??"online")==="online"?Uo.isOnline():!0}class jm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function po(e){return e instanceof jm}function Tm(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((S,g)=>{i=S,o=g}),l=S=>{r||(m(new jm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!zo.isFocused()||e.networkMode!=="always"&&!Uo.isOnline(),h=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),s==null||s(),i(S))},m=S=>{r||(r=!0,e.onError==null||e.onError(S),s==null||s(),o(S))},p=()=>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()}),w=()=>{if(r)return;let S;try{S=e.fn()}catch(g){S=Promise.reject(g)}Promise.resolve(S).then(h).catch(g=>{var v,y;if(r)return;const b=(v=e.retry)!=null?v:3,E=(y=e.retryDelay)!=null?y:ew,k=typeof E=="function"?E(n,g):E,R=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,g);if(t||!R){m(g);return}n++,e.onFail==null||e.onFail(n,g),Nm(k).then(()=>{if(d())return p()}).then(()=>{t?m(g):w()})})};return Oa(e.networkMode)?w():p().then(w),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const $c=console;function tw(){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=tw();class Im{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fu(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 nw 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||$c,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||rw(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=pu(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(ot).catch(ot):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||!km(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 m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}Array.isArray(this.options.queryKey);const o=X2(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=m=>{Object.defineProperty(m,"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=m=>{if(po(m)&&m.silent||this.dispatch({type:"error",error:m}),!po(m)){var p,w,S,g;(p=(w=this.cache.config).onError)==null||p.call(w,m,this),(S=(g=this.cache.config).onSettled)==null||S.call(g,this.state.data,m,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Tm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:m=>{var p,w,S,g;if(typeof m>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(p=(w=this.cache.config).onSuccess)==null||p.call(w,m,this),(S=(g=this.cache.config).onSettled)==null||S.call(g,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(m,p)=>{this.dispatch({type:"failed",failureCount:m,error:p})},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:Oa(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 po(o)&&o.revert&&this.revertState?{...this.revertState}:{...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 rw(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 _m extends Gr{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:Fc(i,n);let a=this.get(o);return a||(a=new nw({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]=dn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Ff(r,s))}findAll(t,n){const[r]=dn(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 sw extends Im{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||$c,this.observers=[],this.state=t.state||Am(),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 R;return this.retryer=Tm({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(P,L)=>{this.dispatch({type:"failed",failureCount:P,error:L})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(R=this.options.retry)!=null?R: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,m,p;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((m=(p=this.options).onMutate)==null?void 0:m.call(p,this.state.variables));P!==this.state.context&&this.dispatch({type:"loading",context:P,variables:this.state.variables})}const R=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,R,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,R,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,R,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,R,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:R}),R}catch(R){try{var w,S,g,v,y,b,E,k;throw await((w=(S=this.mutationCache.config).onError)==null?void 0:w.call(S,R,this.state.variables,this.state.context,this)),await((g=(v=this.options).onError)==null?void 0:g.call(v,R,this.state.variables,this.state.context)),await((y=(b=this.mutationCache.config).onSettled)==null?void 0:y.call(b,void 0,R,this.state.variables,this.state.context,this)),await((E=(k=this.options).onSettled)==null?void 0:E.call(k,void 0,R,this.state.variables,this.state.context)),R}finally{this.dispatch({type:"error",error:R})}}}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:!Oa(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 Am(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class iw extends Gr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new sw({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(ot)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function mu(){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)||[],m=((o=e.state.data)==null?void 0:o.pageParams)||[];let p=m,w=!1;const S=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var R;if((R=e.signal)!=null&&R.aborted)w=!0;else{var P;(P=e.signal)==null||P.addEventListener("abort",()=>{w=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(k,R,P,L)=>(p=L?[R,...p]:[...p,R],L?[P,...k]:[...k,P]),y=(k,R,P,L)=>{if(w)return Promise.reject("Cancelled");if(typeof P>"u"&&!R&&k.length)return Promise.resolve(k);const M={queryKey:e.queryKey,pageParam:P,meta:e.options.meta};S(M);const T=g(M);return Promise.resolve(T).then(U=>v(k,P,U,L))};let b;if(!h.length)b=y([]);else if(c){const k=typeof u<"u",R=k?u:gu(e.options,h);b=y(h,k,R)}else if(d){const k=typeof u<"u",R=k?u:Lm(e.options,h);b=y(h,k,R,!0)}else{p=[];const k=typeof e.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?y([],k,m[0]):Promise.resolve(v([],m[0],h[0]));for(let P=1;P<h.length;P++)b=b.then(L=>{if(a&&h[P]?a(h[P],P,h):!0){const T=k?m[P]:gu(e.options,L);return y(L,k,T)}return Promise.resolve(v(L,m[P],h[P]))})}return b.then(k=>({pages:k,pageParams:p}))}}}}function gu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Lm(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function ow(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=gu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function aw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Lm(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class lw{constructor(t={}){this.queryCache=t.queryCache||new _m,this.mutationCache=t.mutationCache||new iw,this.logger=t.logger||$c,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=zo.subscribe(()=>{zo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Uo.subscribe(()=>{Uo.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=dn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const s=pr(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=Z2(n,i);if(typeof o>"u")return;const a=pr(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]=dn(t,n),s=this.queryCache;ae.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=dn(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={}]=dn(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(ot).catch(ot)}invalidateQueries(t,n,r){const[s,i]=dn(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]=dn(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(ot);return i!=null&&i.throwOnError||(a=a.catch(ot)),a}fetchQuery(t,n,r){const s=pr(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(ot).catch(ot)}fetchInfiniteQuery(t,n,r){const s=pr(t,n,r);return s.behavior=mu(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ot).catch(ot)}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=>Fo(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=>Fo(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=Fc(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 Mm extends Gr{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 vu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vu(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),$o(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 cw(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(ot)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),qs||this.currentResult.isStale||!fu(this.options.staleTime))return;const n=km(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||!fu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||zo.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:m,errorUpdatedAt:p,fetchStatus:w,status:S}=d,g=!1,v=!1,y;if(n._optimisticResults){const P=this.hasListeners(),L=!P&&Hf(t,n),M=P&&qf(t,r,n,s);(L||M)&&(w=Oa(t.options.networkMode)?"fetching":"paused",h||(S="loading")),n._optimisticResults==="isRestoring"&&(w="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&S!=="error")y=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)y=this.selectResult;else try{this.selectFn=n.select,y=n.select(d.data),y=pu(i==null?void 0:i.data,y,n),this.selectResult=y,this.selectError=null}catch(P){this.selectError=P}else y=d.data;if(typeof n.placeholderData<"u"&&typeof y>"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(L){this.selectError=L}typeof P<"u"&&(S="success",y=pu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(m=this.selectError,y=this.selectResult,p=Date.now(),S="error");const b=w==="fetching",E=S==="loading",k=S==="error";return{status:S,fetchStatus:w,isLoading:E,isSuccess:S==="success",isError:k,isInitialLoading:E&&b,data:y,dataUpdatedAt:h,error:m,errorUpdatedAt:p,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:k&&d.dataUpdatedAt===0,isPaused:w==="paused",isPlaceholderData:v,isPreviousData:g,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:zc(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,$o(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"&&!po(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 uw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return uw(e,t)||e.state.dataUpdatedAt>0&&vu(e,t,t.refetchOnMount)}function vu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&zc(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")&&zc(e,n)}function zc(e,t){return e.isStaleByTime(t.staleTime)}function cw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!$o(e.getCurrentResult(),t)}class dw extends Mm{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:mu()},n)}getOptimisticResult(t){return t.behavior=mu(),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,m=d&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",p=d&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ow(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:aw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:m,isFetchingPreviousPage:p,isRefetching:h&&!m&&!p}}}let fw=class extends Gr{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),$o(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:Am(),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 Dm={exports:{}},tt={},Fm={exports:{}},$m={};/**
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};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={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},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={};/**
|
|
18
19
|
* @license React
|
|
19
20
|
* scheduler.production.min.js
|
|
20
21
|
*
|
|
@@ -22,7 +23,7 @@ var Py=Object.defineProperty;var Oy=(e,t,n)=>t in e?Py(e,t,{enumerable:!0,config
|
|
|
22
23
|
*
|
|
23
24
|
* This source code is licensed under the MIT license found in the
|
|
24
25
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(N,
|
|
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
27
|
* @license React
|
|
27
28
|
* react-dom.production.min.js
|
|
28
29
|
*
|
|
@@ -30,14 +31,14 @@ var Py=Object.defineProperty;var Oy=(e,t,n)=>t in e?Py(e,t,{enumerable:!0,config
|
|
|
30
31
|
*
|
|
31
32
|
* This source code is licensed under the MIT license found in the
|
|
32
33
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
34
|
-
`+
|
|
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(`
|
|
35
36
|
`),i=r.stack.split(`
|
|
36
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=`
|
|
37
|
-
`+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{xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function yw(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=Sl(e.type,!1),e;case 11:return e=Sl(e.type.render,!1),e;case 1:return e=Sl(e.type,!0),e;default:return""}}function bu(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 gr:return"Fragment";case mr:return"Portal";case wu:return"Profiler";case Hc:return"StrictMode";case xu:return"Suspense";case Su:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vm:return(e.displayName||"Context")+".Consumer";case Bm:return(e._context.displayName||"Context")+".Provider";case qc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qc:return t=e.displayName||null,t!==null?t:bu(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return bu(e(t))}catch{}}return null}function ww(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 bu(t);case 8:return t===Hc?"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 Tn(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 xw(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 Ui(e){e._valueTracker||(e._valueTracker=xw(e))}function Qm(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 Bo(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 Cu(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tn(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&&Vc(e,"checked",t,!1)}function Eu(e,t){Km(e,t);var n=Tn(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")?Ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ru(e,t.type,Tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gf(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 Ru(e,t,n){(t!=="number"||Bo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function Or(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=""+Tn(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 ku(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(xs(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tn(n)}}function Wm(e,t){var n=Tn(t.value),r=Tn(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 Yf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zm(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 Pu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,Gm=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(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ks(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},Sw=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){Sw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Xm(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 Ym(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Xm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var bw=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 Ou(e,t){if(t){if(bw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Nu(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 ju=null;function Kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tu=null,Nr=null,jr=null;function Jf(e){if(e=Ei(e)){if(typeof Tu!="function")throw Error(I(280));var t=e.stateNode;t&&(t=_a(t),Tu(e.stateNode,e.type,t))}}function Jm(e){Nr?jr?jr.push(e):jr=[e]:Nr=e}function e1(){if(Nr){var e=Nr,t=jr;if(jr=Nr=null,Jf(e),t)for(e=0;e<t.length;e++)Jf(t[e])}}function t1(e,t){return e(t)}function n1(){}var bl=!1;function r1(e,t,n){if(bl)return e(t,n);bl=!0;try{return t1(e,t,n)}finally{bl=!1,(Nr!==null||jr!==null)&&(n1(),e1())}}function Ws(e,t){var n=e.stateNode;if(n===null)return null;var r=_a(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(I(231,t,typeof n));return n}var Iu=!1;if(Yt)try{var os={};Object.defineProperty(os,"passive",{get:function(){Iu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Iu=!1}function Cw(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,Vo=null,Ho=!1,_u=null,Ew={onError:function(e){Ps=!0,Vo=e}};function Rw(e,t,n,r,s,i,o,a,l){Ps=!1,Vo=null,Cw.apply(Ew,arguments)}function kw(e,t,n,r,s,i,o,a,l){if(Rw.apply(this,arguments),Ps){if(Ps){var u=Vo;Ps=!1,Vo=null}else throw Error(I(198));Ho||(Ho=!0,_u=u)}}function or(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 s1(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(or(e)!==e)throw Error(I(188))}function Pw(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(I(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(I(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(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function i1(e){return e=Pw(e),e!==null?o1(e):null}function o1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=o1(e);if(t!==null)return t;e=e.sibling}return null}var a1=et.unstable_scheduleCallback,th=et.unstable_cancelCallback,Ow=et.unstable_shouldYield,Nw=et.unstable_requestPaint,le=et.unstable_now,jw=et.unstable_getCurrentPriorityLevel,Wc=et.unstable_ImmediatePriority,l1=et.unstable_UserBlockingPriority,qo=et.unstable_NormalPriority,Tw=et.unstable_LowPriority,u1=et.unstable_IdlePriority,Na=null,Ft=null;function Iw(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Na,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:Lw,_w=Math.log,Aw=Math.LN2;function Lw(e){return e>>>=0,e===0?32:31-(_w(e)/Aw|0)|0}var Vi=64,Hi=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 Qo(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-Et(t),s=1<<n,r|=e[n],t&=~s;return r}function Mw(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 Dw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Et(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=Mw(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Au(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function c1(){var e=Vi;return Vi<<=1,!(Vi&4194240)&&(Vi=64),e}function Cl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function Fw(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-Et(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Zc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Y=0;function d1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var f1,Gc,h1,p1,m1,Lu=!1,qi=[],bn=null,Cn=null,En=null,Zs=new Map,Gs=new Map,pn=[],$w="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":bn=null;break;case"dragenter":case"dragleave":Cn=null;break;case"mouseover":case"mouseout":En=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.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=Ei(t),t!==null&&Gc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function zw(e,t,n,r,s){switch(t){case"focusin":return bn=as(bn,e,t,n,r,s),!0;case"dragenter":return Cn=as(Cn,e,t,n,r,s),!0;case"mouseover":return En=as(En,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Zs.set(i,as(Zs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Gs.set(i,as(Gs.get(i)||null,e,t,n,r,s)),!0}return!1}function g1(e){var t=Qn(e.target);if(t!==null){var n=or(t);if(n!==null){if(t=n.tag,t===13){if(t=s1(n),t!==null){e.blockedOn=t,m1(e.priority,function(){h1(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 mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ju=r,n.target.dispatchEvent(r),ju=null}else return t=Ei(n),t!==null&&Gc(t),e.blockedOn=n,!1;t.shift()}return!0}function rh(e,t,n){mo(e)&&n.delete(t)}function Uw(){Lu=!1,bn!==null&&mo(bn)&&(bn=null),Cn!==null&&mo(Cn)&&(Cn=null),En!==null&&mo(En)&&(En=null),Zs.forEach(rh),Gs.forEach(rh)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Lu||(Lu=!0,et.unstable_scheduleCallback(et.unstable_NormalPriority,Uw)))}function Xs(e){function t(s){return ls(s,e)}if(0<qi.length){ls(qi[0],e);for(var n=1;n<qi.length;n++){var r=qi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bn!==null&&ls(bn,e),Cn!==null&&ls(Cn,e),En!==null&&ls(En,e),Zs.forEach(t),Gs.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)g1(n),n.blockedOn===null&&pn.shift()}var Tr=rn.ReactCurrentBatchConfig,Ko=!0;function Bw(e,t,n,r){var s=Y,i=Tr.transition;Tr.transition=null;try{Y=1,Xc(e,t,n,r)}finally{Y=s,Tr.transition=i}}function Vw(e,t,n,r){var s=Y,i=Tr.transition;Tr.transition=null;try{Y=4,Xc(e,t,n,r)}finally{Y=s,Tr.transition=i}}function Xc(e,t,n,r){if(Ko){var s=Mu(e,t,n,r);if(s===null)_l(e,t,r,Wo,n),nh(e,r);else if(zw(s,e,t,n,r))r.stopPropagation();else if(nh(e,r),t&4&&-1<$w.indexOf(e)){for(;s!==null;){var i=Ei(s);if(i!==null&&f1(i),i=Mu(e,t,n,r),i===null&&_l(e,t,r,Wo,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else _l(e,t,r,null,n)}}var Wo=null;function Mu(e,t,n,r){if(Wo=null,e=Kc(r),e=Qn(e),e!==null)if(t=or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=s1(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 Wo=e,null}function v1(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(jw()){case Wc:return 1;case l1:return 4;case qo:case Tw:return 16;case u1:return 536870912;default:return 16}default:return 16}}var vn=null,Yc=null,go=null;function y1(){if(go)return go;var e,t=Yc,n=t.length,r,s="value"in vn?vn.value:vn.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 go=s.slice(e,1<r?1-r:void 0)}function vo(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 Qi(){return!0}function sh(){return!1}function nt(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)?Qi: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=Qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qi)},persist:function(){},isPersistent:Qi}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jc=nt(Xr),Ci=ie({},Xr,{view:0,detail:0}),Hw=nt(Ci),El,Rl,us,ja=ie({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ed,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"?(El=e.screenX-us.screenX,Rl=e.screenY-us.screenY):Rl=El=0,us=e),El)},movementY:function(e){return"movementY"in e?e.movementY:Rl}}),ih=nt(ja),qw=ie({},ja,{dataTransfer:0}),Qw=nt(qw),Kw=ie({},Ci,{relatedTarget:0}),kl=nt(Kw),Ww=ie({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Zw=nt(Ww),Gw=ie({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xw=nt(Gw),Yw=ie({},Xr,{data:0}),oh=nt(Yw),Jw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ex={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"},tx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tx[e])?!!t[e]:!1}function ed(){return nx}var rx=ie({},Ci,{key:function(e){if(e.key){var t=Jw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ex[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ed,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sx=nt(rx),ix=ie({},ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=nt(ix),ox=ie({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ed}),ax=nt(ox),lx=ie({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ux=nt(lx),cx=ie({},ja,{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}),dx=nt(cx),fx=[9,13,27,32],td=Yt&&"CompositionEvent"in window,Os=null;Yt&&"documentMode"in document&&(Os=document.documentMode);var hx=Yt&&"TextEvent"in window&&!Os,w1=Yt&&(!td||Os&&8<Os&&11>=Os),lh=String.fromCharCode(32),uh=!1;function x1(e,t){switch(e){case"keyup":return fx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function px(e,t){switch(e){case"compositionend":return S1(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 mx(e,t){if(vr)return e==="compositionend"||!td&&x1(e,t)?(e=y1(),go=Yc=vn=null,vr=!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 w1&&t.locale!=="ko"?null:t.data;default:return null}}var gx={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"?!!gx[e.type]:t==="textarea"}function b1(e,t,n,r){Jm(r),t=Zo(t,"onChange"),0<t.length&&(n=new Jc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Ys=null;function vx(e){_1(e,0)}function Ta(e){var t=xr(e);if(Qm(t))return e}function yx(e,t){if(e==="change")return t}var C1=!1;if(Yt){var Pl;if(Yt){var Ol="oninput"in document;if(!Ol){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),Ol=typeof dh.oninput=="function"}Pl=Ol}else Pl=!1;C1=Pl&&(!document.documentMode||9<document.documentMode)}function fh(){Ns&&(Ns.detachEvent("onpropertychange",E1),Ys=Ns=null)}function E1(e){if(e.propertyName==="value"&&Ta(Ys)){var t=[];b1(t,Ys,e,Kc(e)),r1(vx,t)}}function wx(e,t,n){e==="focusin"?(fh(),Ns=t,Ys=n,Ns.attachEvent("onpropertychange",E1)):e==="focusout"&&fh()}function xx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ta(Ys)}function Sx(e,t){if(e==="click")return Ta(t)}function bx(e,t){if(e==="input"||e==="change")return Ta(t)}function Cx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:Cx;function Js(e,t){if(kt(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(!yu.call(t,s)||!kt(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 R1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?R1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function k1(){for(var e=window,t=Bo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bo(e.document)}return t}function nd(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 Ex(e){var t=k1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&R1(n.ownerDocument.documentElement,n)){if(r!==null&&nd(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 Rx=Yt&&"documentMode"in document&&11>=document.documentMode,yr=null,Du=null,js=null,Fu=!1;function mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fu||yr==null||yr!==Bo(r)||(r=yr,"selectionStart"in r&&nd(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=Zo(Du,"onSelect"),0<r.length&&(t=new Jc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function Ki(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Ki("Animation","AnimationEnd"),animationiteration:Ki("Animation","AnimationIteration"),animationstart:Ki("Animation","AnimationStart"),transitionend:Ki("Transition","TransitionEnd")},Nl={},P1={};Yt&&(P1=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);function Ia(e){if(Nl[e])return Nl[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in P1)return Nl[e]=t[n];return e}var O1=Ia("animationend"),N1=Ia("animationiteration"),j1=Ia("animationstart"),T1=Ia("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 Ln(e,t){I1.set(e,t),ir(t,[e])}for(var jl=0;jl<gh.length;jl++){var Tl=gh[jl],kx=Tl.toLowerCase(),Px=Tl[0].toUpperCase()+Tl.slice(1);Ln(kx,"on"+Px)}Ln(O1,"onAnimationEnd");Ln(N1,"onAnimationIteration");Ln(j1,"onAnimationStart");Ln("dblclick","onDoubleClick");Ln("focusin","onFocus");Ln("focusout","onBlur");Ln(T1,"onTransitionEnd");Fr("onMouseEnter",["mouseout","mouseover"]);Fr("onMouseLeave",["mouseout","mouseover"]);Fr("onPointerEnter",["pointerout","pointerover"]);Fr("onPointerLeave",["pointerout","pointerover"]);ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ir("onBeforeInput",["compositionend","keypress","textInput","paste"]);ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var 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(" "),Ox=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,kw(r,t,void 0,e),e.currentTarget=null}function _1(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(Ho)throw e=_u,Ho=!1,_u=null,e}function ee(e,t){var n=t[Vu];n===void 0&&(n=t[Vu]=new Set);var r=e+"__bubble";n.has(r)||(A1(t,e,2,!1),n.add(r))}function Il(e,t,n){var r=0;t&&(r|=4),A1(n,e,r,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Wi]){e[Wi]=!0,Um.forEach(function(n){n!=="selectionchange"&&(Ox.has(n)||Il(n,!1,e),Il(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Il("selectionchange",!1,t))}}function A1(e,t,n,r){switch(v1(t)){case 1:var s=Bw;break;case 4:s=Vw;break;default:s=Xc}n=s.bind(null,t,n,e),s=void 0,!Iu||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 _l(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=Qn(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}r1(function(){var u=i,c=Kc(n),d=[];e:{var h=I1.get(e);if(h!==void 0){var m=Jc,p=e;switch(e){case"keypress":if(vo(n)===0)break e;case"keydown":case"keyup":m=sx;break;case"focusin":p="focus",m=kl;break;case"focusout":p="blur",m=kl;break;case"beforeblur":case"afterblur":m=kl;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":m=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Qw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ax;break;case O1:case N1:case j1:m=Zw;break;case T1:m=ux;break;case"scroll":m=Hw;break;case"wheel":m=dx;break;case"copy":case"cut":case"paste":m=Xw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=ah}var w=(t&4)!==0,S=!w&&e==="scroll",g=w?h!==null?h+"Capture":null:h;w=[];for(var v=u,y;v!==null;){y=v;var b=y.stateNode;if(y.tag===5&&b!==null&&(y=b,g!==null&&(b=Ws(v,g),b!=null&&w.push(ti(v,b,y)))),S)break;v=v.return}0<w.length&&(h=new m(h,p,null,n,c),d.push({event:h,listeners:w}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==ju&&(p=n.relatedTarget||n.fromElement)&&(Qn(p)||p[Jt]))break e;if((m||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,m?(p=n.relatedTarget||n.toElement,m=u,p=p?Qn(p):null,p!==null&&(S=or(p),p!==S||p.tag!==5&&p.tag!==6)&&(p=null)):(m=null,p=u),m!==p)){if(w=ih,b="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(w=ah,b="onPointerLeave",g="onPointerEnter",v="pointer"),S=m==null?h:xr(m),y=p==null?h:xr(p),h=new w(b,v+"leave",m,n,c),h.target=S,h.relatedTarget=y,b=null,Qn(c)===u&&(w=new w(g,v+"enter",p,n,c),w.target=y,w.relatedTarget=S,b=w),S=b,m&&p)t:{for(w=m,g=p,v=0,y=w;y;y=dr(y))v++;for(y=0,b=g;b;b=dr(b))y++;for(;0<v-y;)w=dr(w),v--;for(;0<y-v;)g=dr(g),y--;for(;v--;){if(w===g||g!==null&&w===g.alternate)break t;w=dr(w),g=dr(g)}w=null}else w=null;m!==null&&yh(d,h,m,w,!1),p!==null&&S!==null&&yh(d,S,p,w,!0)}}e:{if(h=u?xr(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var E=yx;else if(ch(h))if(C1)E=bx;else{E=xx;var k=wx}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Sx);if(E&&(E=E(e,u))){b1(d,E,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Ru(h,"number",h.value)}switch(k=u?xr(u):window,e){case"focusin":(ch(k)||k.contentEditable==="true")&&(yr=k,Du=u,js=null);break;case"focusout":js=Du=yr=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,mh(d,n,c);break;case"selectionchange":if(Rx)break;case"keydown":case"keyup":mh(d,n,c)}var R;if(td)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 vr?x1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(w1&&n.locale!=="ko"&&(vr||P!=="onCompositionStart"?P==="onCompositionEnd"&&vr&&(R=y1()):(vn=c,Yc="value"in vn?vn.value:vn.textContent,vr=!0)),k=Zo(u,P),0<k.length&&(P=new oh(P,e,null,n,c),d.push({event:P,listeners:k}),R?P.data=R:(R=S1(n),R!==null&&(P.data=R)))),(R=hx?px(e,n):mx(e,n))&&(u=Zo(u,"onBeforeInput"),0<u.length&&(c=new oh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=R))}_1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ws(e,n),i!=null&&r.unshift(ti(e,i,s)),i=Ws(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function dr(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=Ws(n,i),l!=null&&o.unshift(ti(n,l,a))):s||(l=Ws(n,i),l!=null&&o.push(ti(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Nx=/\r\n?/g,jx=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(Nx,`
|
|
38
|
-
`).replace(jx,"")}function Zi(e,t,n){if(t=wh(t),wh(e)!==t&&n)throw Error(I(425))}function Go(){}var $u=null,zu=null;function Uu(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 Bu=typeof setTimeout=="function"?setTimeout:void 0,Tx=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Ix=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(_x)}:Bu;function _x(e){setTimeout(function(){throw e})}function Al(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),Xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Xs(t)}function Rn(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 Yr=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Yr,ni="__reactProps$"+Yr,Jt="__reactContainer$"+Yr,Vu="__reactEvents$"+Yr,Ax="__reactListeners$"+Yr,Lx="__reactHandles$"+Yr;function Qn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sh(e);e!==null;){if(n=e[Mt])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Ei(e){return e=e[Mt]||e[Jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function _a(e){return e[ni]||null}var Hu=[],Sr=-1;function Mn(e){return{current:e}}function te(e){0>Sr||(e.current=Hu[Sr],Hu[Sr]=null,Sr--)}function J(e,t){Sr++,Hu[Sr]=e.current,e.current=t}var In={},ke=Mn(In),Ve=Mn(!1),Yn=In;function $r(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 He(e){return e=e.childContextTypes,e!=null}function Xo(){te(Ve),te(ke)}function bh(e,t,n){if(ke.current!==In)throw Error(I(168));J(ke,t),J(Ve,n)}function L1(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(I(108,ww(e)||"Unknown",s));return ie({},n,r)}function Yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Yn=ke.current,J(ke,e),J(Ve,Ve.current),!0}function Ch(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=L1(e,t,Yn),r.__reactInternalMemoizedMergedChildContext=e,te(Ve),te(ke),J(ke,e)):te(Ve),J(Ve,n)}var Kt=null,Aa=!1,Ll=!1;function M1(e){Kt===null?Kt=[e]:Kt.push(e)}function Mx(e){Aa=!0,M1(e)}function Dn(){if(!Ll&&Kt!==null){Ll=!0;var e=0,t=Y;try{var n=Kt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Kt=null,Aa=!1}catch(s){throw Kt!==null&&(Kt=Kt.slice(e+1)),a1(Wc,Dn),s}finally{Y=t,Ll=!1}}return null}var br=[],Cr=0,Jo=null,ea=0,at=[],lt=0,Jn=null,Wt=1,Zt="";function Bn(e,t){br[Cr++]=ea,br[Cr++]=Jo,Jo=e,ea=t}function D1(e,t,n){at[lt++]=Wt,at[lt++]=Zt,at[lt++]=Jn,Jn=e;var r=Wt;e=Zt;var s=32-Et(r)-1;r&=~(1<<s),n+=1;var i=32-Et(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Wt=1<<32-Et(t)+s|n<<s|r,Zt=i+e}else Wt=1<<i|n<<s|r,Zt=e}function rd(e){e.return!==null&&(Bn(e,1),D1(e,1,0))}function sd(e){for(;e===Jo;)Jo=br[--Cr],br[Cr]=null,ea=br[--Cr],br[Cr]=null;for(;e===Jn;)Jn=at[--lt],at[lt]=null,Zt=at[--lt],at[lt]=null,Wt=at[--lt],at[lt]=null}var Ye=null,Ze=null,ne=!1,St=null;function F1(e,t){var n=dt(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,Ye=e,Ze=Rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ye=e,Ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jn!==null?{id:Wt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ye=e,Ze=null,!0):!1;default:return!1}}function qu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qu(e){if(ne){var t=Ze;if(t){var n=t;if(!Eh(e,t)){if(qu(e))throw Error(I(418));t=Rn(n.nextSibling);var r=Ye;t&&Eh(e,t)?F1(r,n):(e.flags=e.flags&-4097|2,ne=!1,Ye=e)}}else{if(qu(e))throw Error(I(418));e.flags=e.flags&-4097|2,ne=!1,Ye=e}}}function Rh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Gi(e){if(e!==Ye)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"&&!Uu(e.type,e.memoizedProps)),t&&(t=Ze)){if(qu(e))throw $1(),Error(I(418));for(;t;)F1(e,t),t=Rn(t.nextSibling)}if(Rh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ze=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ze=null}}else Ze=Ye?Rn(e.stateNode.nextSibling):null;return!0}function $1(){for(var e=Ze;e;)e=Rn(e.nextSibling)}function zr(){Ze=Ye=null,ne=!1}function id(e){St===null?St=[e]:St.push(e)}var Dx=rn.ReactCurrentBatchConfig;function wt(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 ta=Mn(null),na=null,Er=null,od=null;function ad(){od=Er=na=null}function ld(e){var t=ta.current;te(ta),e._currentValue=t}function Ku(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 Ir(e,t){na=e,od=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(od!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(na===null)throw Error(I(308));Er=e,na.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Kn=null;function ud(e){Kn===null?Kn=[e]:Kn.push(e)}function z1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ud(t)):(n.next=s.next,s.next=n),t.interleaved=n,en(e,r)}function en(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 hn=!1;function cd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function U1(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 Xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,en(e,n)}return s=r.interleaved,s===null?(t.next=t,ud(r)):(t.next=s.next,s.next=t),r.interleaved=t,en(e,n)}function yo(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,Zc(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 ra(e,t,n,r){var s=e.updateQueue;hn=!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,m=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,w=a;switch(h=t,m=n,w.tag){case 1:if(p=w.payload,typeof p=="function"){d=p.call(m,d,h);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=w.payload,h=typeof p=="function"?p.call(m,d,h):p,h==null)break e;d=ie({},d,h);break e;case 2:hn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else m={eventTime:m,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,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);tr|=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(I(191,s));s.call(r)}}}var B1=new zm.Component().refs;function Wu(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 La={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Te(),s=On(e),i=Xt(r,s);i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,s),t!==null&&(Rt(t,e,s,r),yo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Te(),s=On(e),i=Xt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,s),t!==null&&(Rt(t,e,s,r),yo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Te(),r=On(e),s=Xt(n,r);s.tag=2,t!=null&&(s.callback=t),t=kn(e,s,r),t!==null&&(Rt(t,e,r,n),yo(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 V1(e,t,n){var r=!1,s=In,i=t.contextType;return typeof i=="object"&&i!==null?i=ht(i):(s=He(t)?Yn:ke.current,r=t.contextTypes,i=(r=r!=null)?$r(e,s):In),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=La,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&&La.enqueueReplaceState(t,t.state,null)}function Zu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=B1,cd(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ht(i):(i=He(t)?Yn:ke.current,s.context=$r(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Wu(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&&La.enqueueReplaceState(s,s.state,null),ra(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(I(309));var r=n.stateNode}if(!r)throw Error(I(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===B1&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function Xi(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jh(e){var t=e._init;return t(e._payload)}function H1(e){function t(g,v){if(e){var y=g.deletions;y===null?(g.deletions=[v],g.flags|=16):y.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=Nn(g,v),g.index=0,g.sibling=null,g}function i(g,v,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<v?(g.flags|=2,v):y):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,y,b){return v===null||v.tag!==6?(v=Bl(y,g.mode,b),v.return=g,v):(v=s(v,y),v.return=g,v)}function l(g,v,y,b){var E=y.type;return E===gr?c(g,v,y.props.children,b,y.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===fn&&jh(E)===v.type)?(b=s(v,y.props),b.ref=cs(g,v,y),b.return=g,b):(b=Eo(y.type,y.key,y.props,null,g.mode,b),b.ref=cs(g,v,y),b.return=g,b)}function u(g,v,y,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==y.containerInfo||v.stateNode.implementation!==y.implementation?(v=Vl(y,g.mode,b),v.return=g,v):(v=s(v,y.children||[]),v.return=g,v)}function c(g,v,y,b,E){return v===null||v.tag!==7?(v=Xn(y,g.mode,b,E),v.return=g,v):(v=s(v,y),v.return=g,v)}function d(g,v,y){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Bl(""+v,g.mode,y),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case zi:return y=Eo(v.type,v.key,v.props,null,g.mode,y),y.ref=cs(g,null,v),y.return=g,y;case mr:return v=Vl(v,g.mode,y),v.return=g,v;case fn:var b=v._init;return d(g,b(v._payload),y)}if(xs(v)||is(v))return v=Xn(v,g.mode,y,null),v.return=g,v;Xi(g,v)}return null}function h(g,v,y,b){var E=v!==null?v.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(g,v,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zi:return y.key===E?l(g,v,y,b):null;case mr:return y.key===E?u(g,v,y,b):null;case fn:return E=y._init,h(g,v,E(y._payload),b)}if(xs(y)||is(y))return E!==null?null:c(g,v,y,b,null);Xi(g,y)}return null}function m(g,v,y,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(y)||null,a(v,g,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case zi:return g=g.get(b.key===null?y:b.key)||null,l(v,g,b,E);case mr:return g=g.get(b.key===null?y:b.key)||null,u(v,g,b,E);case fn:var k=b._init;return m(g,v,y,k(b._payload),E)}if(xs(b)||is(b))return g=g.get(y)||null,c(v,g,b,E,null);Xi(v,b)}return null}function p(g,v,y,b){for(var E=null,k=null,R=v,P=v=0,L=null;R!==null&&P<y.length;P++){R.index>P?(L=R,R=null):L=R.sibling;var M=h(g,R,y[P],b);if(M===null){R===null&&(R=L);break}e&&R&&M.alternate===null&&t(g,R),v=i(M,v,P),k===null?E=M:k.sibling=M,k=M,R=L}if(P===y.length)return n(g,R),ne&&Bn(g,P),E;if(R===null){for(;P<y.length;P++)R=d(g,y[P],b),R!==null&&(v=i(R,v,P),k===null?E=R:k.sibling=R,k=R);return ne&&Bn(g,P),E}for(R=r(g,R);P<y.length;P++)L=m(R,g,P,y[P],b),L!==null&&(e&&L.alternate!==null&&R.delete(L.key===null?P:L.key),v=i(L,v,P),k===null?E=L:k.sibling=L,k=L);return e&&R.forEach(function(T){return t(g,T)}),ne&&Bn(g,P),E}function w(g,v,y,b){var E=is(y);if(typeof E!="function")throw Error(I(150));if(y=E.call(y),y==null)throw Error(I(151));for(var k=E=null,R=v,P=v=0,L=null,M=y.next();R!==null&&!M.done;P++,M=y.next()){R.index>P?(L=R,R=null):L=R.sibling;var T=h(g,R,M.value,b);if(T===null){R===null&&(R=L);break}e&&R&&T.alternate===null&&t(g,R),v=i(T,v,P),k===null?E=T:k.sibling=T,k=T,R=L}if(M.done)return n(g,R),ne&&Bn(g,P),E;if(R===null){for(;!M.done;P++,M=y.next())M=d(g,M.value,b),M!==null&&(v=i(M,v,P),k===null?E=M:k.sibling=M,k=M);return ne&&Bn(g,P),E}for(R=r(g,R);!M.done;P++,M=y.next())M=m(R,g,P,M.value,b),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?P:M.key),v=i(M,v,P),k===null?E=M:k.sibling=M,k=M);return e&&R.forEach(function(D){return t(g,D)}),ne&&Bn(g,P),E}function S(g,v,y,b){if(typeof y=="object"&&y!==null&&y.type===gr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case zi:e:{for(var E=y.key,k=v;k!==null;){if(k.key===E){if(E=y.type,E===gr){if(k.tag===7){n(g,k.sibling),v=s(k,y.props.children),v.return=g,g=v;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===fn&&jh(E)===k.type){n(g,k.sibling),v=s(k,y.props),v.ref=cs(g,k,y),v.return=g,g=v;break e}n(g,k);break}else t(g,k);k=k.sibling}y.type===gr?(v=Xn(y.props.children,g.mode,b,y.key),v.return=g,g=v):(b=Eo(y.type,y.key,y.props,null,g.mode,b),b.ref=cs(g,v,y),b.return=g,g=b)}return o(g);case mr:e:{for(k=y.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(g,v.sibling),v=s(v,y.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Vl(y,g.mode,b),v.return=g,g=v}return o(g);case fn:return k=y._init,S(g,v,k(y._payload),b)}if(xs(y))return p(g,v,y,b);if(is(y))return w(g,v,y,b);Xi(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(g,v.sibling),v=s(v,y),v.return=g,g=v):(n(g,v),v=Bl(y,g.mode,b),v.return=g,g=v),o(g)):n(g,v)}return S}var Ur=H1(!0),q1=H1(!1),Ri={},$t=Mn(Ri),ri=Mn(Ri),si=Mn(Ri);function Wn(e){if(e===Ri)throw Error(I(174));return e}function dd(e,t){switch(J(si,t),J(ri,e),J($t,Ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pu(t,e)}te($t),J($t,t)}function Br(){te($t),te(ri),te(si)}function Q1(e){Wn(si.current);var t=Wn($t.current),n=Pu(t,e.type);t!==n&&(J(ri,e),J($t,n))}function fd(e){ri.current===e&&(te($t),te(ri))}var re=Mn(0);function sa(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 Ml=[];function hd(){for(var e=0;e<Ml.length;e++)Ml[e]._workInProgressVersionPrimary=null;Ml.length=0}var wo=rn.ReactCurrentDispatcher,Dl=rn.ReactCurrentBatchConfig,er=0,se=null,de=null,pe=null,ia=!1,Ts=!1,ii=0,Fx=0;function Ce(){throw Error(I(321))}function pd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kt(e[n],t[n]))return!1;return!0}function md(e,t,n,r,s,i){if(er=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wo.current=e===null||e.memoizedState===null?Bx:Vx,e=n(r,s),Ts){i=0;do{if(Ts=!1,ii=0,25<=i)throw Error(I(301));i+=1,pe=de=null,t.updateQueue=null,wo.current=Hx,e=n(r,s)}while(Ts)}if(wo.current=oa,t=de!==null&&de.next!==null,er=0,pe=de=se=null,ia=!1,t)throw Error(I(300));return e}function gd(){var e=ii!==0;return ii=0,e}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?se.memoizedState=pe=e:pe=pe.next=e,pe}function pt(){if(de===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=de.next;var t=pe===null?se.memoizedState:pe.next;if(t!==null)pe=t,de=e;else{if(e===null)throw Error(I(310));de=e,e={memoizedState:de.memoizedState,baseState:de.baseState,baseQueue:de.baseQueue,queue:de.queue,next:null},pe===null?se.memoizedState=pe=e:pe=pe.next=e}return pe}function oi(e,t){return typeof t=="function"?t(e):t}function Fl(e){var t=pt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=de,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((er&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,tr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,kt(r,t.memoizedState)||(Be=!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,tr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $l(e){var t=pt(),n=t.queue;if(n===null)throw Error(I(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);kt(i,t.memoizedState)||(Be=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function K1(){}function W1(e,t){var n=se,r=pt(),s=t(),i=!kt(r.memoizedState,s);if(i&&(r.memoizedState=s,Be=!0),r=r.queue,vd(X1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,ai(9,G1.bind(null,n,r,s,t),void 0,null),me===null)throw Error(I(349));er&30||Z1(n,t,s)}return s}function Z1(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 G1(e,t,n,r){t.value=n,t.getSnapshot=r,Y1(t)&&J1(e)}function X1(e,t,n){return n(function(){Y1(t)&&J1(e)})}function Y1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function J1(e){var t=en(e,1);t!==null&&Rt(t,e,1,-1)}function Th(e){var t=At();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=Ux.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 eg(){return pt().memoizedState}function xo(e,t,n,r){var s=At();se.flags|=e,s.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Ma(e,t,n,r){var s=pt();r=r===void 0?null:r;var i=void 0;if(de!==null){var o=de.memoizedState;if(i=o.destroy,r!==null&&pd(r,o.deps)){s.memoizedState=ai(t,n,i,r);return}}se.flags|=e,s.memoizedState=ai(1|t,n,i,r)}function Ih(e,t){return xo(8390656,8,e,t)}function vd(e,t){return Ma(2048,8,e,t)}function tg(e,t){return Ma(4,2,e,t)}function ng(e,t){return Ma(4,4,e,t)}function rg(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 sg(e,t,n){return n=n!=null?n.concat([e]):null,Ma(4,4,rg.bind(null,t,e),n)}function yd(){}function ig(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function og(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ag(e,t,n){return er&21?(kt(n,t)||(n=c1(),se.lanes|=n,tr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function $x(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Dl.transition;Dl.transition={};try{e(!1),t()}finally{Y=n,Dl.transition=r}}function lg(){return pt().memoizedState}function zx(e,t,n){var r=On(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ug(e))cg(t,n);else if(n=z1(e,t,n,r),n!==null){var s=Te();Rt(n,e,r,s),dg(n,t,r)}}function Ux(e,t,n){var r=On(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ug(e))cg(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,kt(a,o)){var l=t.interleaved;l===null?(s.next=s,ud(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=z1(e,t,s,r),n!==null&&(s=Te(),Rt(n,e,r,s),dg(n,t,r))}}function ug(e){var t=e.alternate;return e===se||t!==null&&t===se}function cg(e,t){Ts=ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zc(e,n)}}var oa={readContext:ht,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},Bx={readContext:ht,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xo(4194308,4,rg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();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=zx.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:yd,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=$x.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=At();if(ne){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),me===null)throw Error(I(349));er&30||Z1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Ih(X1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,G1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=me.identifierPrefix;if(ne){var n=Zt,r=Wt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Fx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vx={readContext:ht,useCallback:ig,useContext:ht,useEffect:vd,useImperativeHandle:sg,useInsertionEffect:tg,useLayoutEffect:ng,useMemo:og,useReducer:Fl,useRef:eg,useState:function(){return Fl(oi)},useDebugValue:yd,useDeferredValue:function(e){var t=pt();return ag(t,de.memoizedState,e)},useTransition:function(){var e=Fl(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:W1,useId:lg,unstable_isNewReconciler:!1},Hx={readContext:ht,useCallback:ig,useContext:ht,useEffect:vd,useImperativeHandle:sg,useInsertionEffect:tg,useLayoutEffect:ng,useMemo:og,useReducer:$l,useRef:eg,useState:function(){return $l(oi)},useDebugValue:yd,useDeferredValue:function(e){var t=pt();return de===null?t.memoizedState=e:ag(t,de.memoizedState,e)},useTransition:function(){var e=$l(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:W1,useId:lg,unstable_isNewReconciler:!1};function Vr(e,t){try{var n="",r=t;do n+=yw(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{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=`
|
|
39
40
|
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function zl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qx=typeof WeakMap=="function"?WeakMap:Map;function fg(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){la||(la=!0,oc=r),Gu(e,t)},n}function hg(e,t,n){n=Xt(-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(){Gu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Gu(e,t),typeof r!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function _h(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qx;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=iS.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=Xt(-1,1),t.tag=2,kn(n,t,1))),n.lanes|=1),e)}var Qx=rn.ReactCurrentOwner,Be=!1;function Ne(e,t,n,r){t.child=e===null?q1(t,null,n,r):Ur(t,e.child,n,r)}function Mh(e,t,n,r,s){n=n.render;var i=t.ref;return Ir(t,s),r=md(e,t,n,r,i,s),n=gd(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(ne&&n&&rd(t),t.flags|=1,Ne(e,t,r,s),t.child)}function Dh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!kd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,pg(e,t,i,r,s)):(e=Eo(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 tn(e,t,s)}return t.flags|=1,e=Nn(i,r),e.ref=t.ref,e.return=t,t.child=e}function pg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Js(i,r)&&e.ref===t.ref)if(Be=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,tn(e,t,s)}return Xu(e,t,n,r,s)}function mg(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(kr,Ke),Ke|=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(kr,Ke),Ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,J(kr,Ke),Ke|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,J(kr,Ke),Ke|=r;return Ne(e,t,s,n),t.child}function gg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xu(e,t,n,r,s){var i=He(n)?Yn:ke.current;return i=$r(t,i),Ir(t,s),n=md(e,t,n,r,i,s),r=gd(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(ne&&r&&rd(t),t.flags|=1,Ne(e,t,n,s),t.child)}function Fh(e,t,n,r,s){if(He(n)){var i=!0;Yo(t)}else i=!1;if(Ir(t,s),t.stateNode===null)So(e,t),V1(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=ht(u):(u=He(n)?Yn:ke.current,u=$r(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),hn=!1;var h=t.memoizedState;o.state=h,ra(t,r,o,s),l=t.memoizedState,a!==r||h!==l||Ve.current||hn?(typeof c=="function"&&(Wu(t,n,c,r),l=t.memoizedState),(a=hn||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,U1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:wt(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=ht(l):(l=He(n)?Yn:ke.current,l=$r(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,o,r,l),hn=!1,h=t.memoizedState,o.state=h,ra(t,r,o,s);var p=t.memoizedState;a!==d||h!==p||Ve.current||hn?(typeof m=="function"&&(Wu(t,n,m,r),p=t.memoizedState),(u=hn||Oh(t,n,u,r,h,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,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=p),o.props=r,o.state=p,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 Yu(e,t,n,r,i,s)}function Yu(e,t,n,r,s,i){gg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Ch(t,n,!1),tn(e,t,i);r=t.stateNode,Qx.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ur(t,e.child,null,i),t.child=Ur(t,null,a,i)):Ne(e,t,a,i),t.memoizedState=r.state,s&&Ch(t,n,!0),t.child}function vg(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),dd(e,t.containerInfo)}function $h(e,t,n,r,s){return zr(),id(s),t.flags|=256,Ne(e,t,n,r),t.child}var Ju={dehydrated:null,treeContext:null,retryLane:0};function ec(e){return{baseLanes:e,cachePool:null,transitions:null}}function yg(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 Qu(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=$a(o,r,0,null),e=Xn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ec(n),t.memoizedState=Ju,e):wd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Kx(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=Nn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Nn(a,i):(i=Xn(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?ec(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ju,r}return i=e.child,e=i.sibling,r=Nn(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 wd(e,t){return t=$a({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yi(e,t,n,r){return r!==null&&id(r),Ur(t,e.child,null,n),e=wd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=zl(Error(I(422))),Yi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=$a({mode:"visible",children:r.children},s,0,null),i=Xn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ur(t,e.child,null,o),t.child.memoizedState=ec(o),t.memoizedState=Ju,i);if(!(t.mode&1))return Yi(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(I(419)),r=zl(i,r,void 0),Yi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Be||a){if(r=me,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,en(e,s),Rt(r,e,s,-1))}return Rd(),r=zl(Error(I(421))),Yi(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=oS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ze=Rn(s.nextSibling),Ye=t,ne=!0,St=null,e!==null&&(at[lt++]=Wt,at[lt++]=Zt,at[lt++]=Jn,Wt=e.id,Zt=e.overflow,Jn=t),t=wd(t,r.children),t.flags|=4096,t)}function zh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ku(e.return,t,n)}function Ul(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 wg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ne(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&&sa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ul(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&&sa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ul(t,!0,n,null,i);break;case"together":Ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function So(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Wx(e,t,n){switch(t.tag){case 3:vg(t),zr();break;case 5:Q1(t);break;case 1:He(t.type)&&Yo(t);break;case 4:dd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ta,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?yg(e,t,n):(J(re,re.current&1),e=tn(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 wg(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,mg(e,t,n)}return tn(e,t,n)}var xg,tc,Sg,bg;xg=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}};tc=function(){};Sg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Wn($t.current);var i=null;switch(n){case"input":s=Cu(e,s),r=Cu(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=ku(e,s),r=ku(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Go)}Ou(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)}};bg=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 Ee(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 Zx(e,t,n){var r=t.pendingProps;switch(sd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(t),null;case 1:return He(t.type)&&Xo(),Ee(t),null;case 3:return r=t.stateNode,Br(),te(Ve),te(ke),hd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(uc(St),St=null))),tc(e,t),Ee(t),null;case 5:fd(t);var s=Wn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)Sg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ee(t),null}if(e=Wn($t.current),Gi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mt]=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":Zf(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Xf(r,i),ee("invalid",r)}Ou(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&&Zi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Zi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Ui(r),Gf(r,i,!0);break;case"textarea":Ui(r),Yf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Go)}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=Zm(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[Mt]=t,e[ni]=r,xg(e,t,!1,!1),t.stateNode=e;e:{switch(o=Nu(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":Zf(e,r),s=Cu(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":Xf(e,r),s=ku(e,r),ee("invalid",e);break;default:s=r}Ou(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Ym(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Gm(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ks(e,l):typeof l=="number"&&Ks(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qs.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",e):l!=null&&Vc(e,i,l,o))}switch(n){case"input":Ui(e),Gf(e,r,!1);break;case"textarea":Ui(e),Yf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Or(e,!!r.multiple,i,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Go)}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 Ee(t),null;case 6:if(e&&t.stateNode!=null)bg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=Wn(si.current),Wn($t.current),Gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mt]=t,(i=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:Zi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mt]=t,t.stateNode=r}return Ee(t),null;case 13:if(te(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Ze!==null&&t.mode&1&&!(t.flags&128))$1(),zr(),t.flags|=98560,i=!1;else if(i=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[Mt]=t}else zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ee(t),i=!1}else St!==null&&(uc(St),St=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?fe===0&&(fe=3):Rd())),t.updateQueue!==null&&(t.flags|=4),Ee(t),null);case 4:return Br(),tc(e,t),e===null&&ei(t.stateNode.containerInfo),Ee(t),null;case 10:return ld(t.type._context),Ee(t),null;case 17:return He(t.type)&&Xo(),Ee(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return Ee(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ds(i,!1);else{if(fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=sa(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&&le()>Hr&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304)}else{if(!r)if(e=sa(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 Ee(t),null}else 2*le()-i.renderingStartTime>Hr&&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=le(),t.sibling=null,n=re.current,J(re,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return Ed(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Gx(e,t){switch(sd(t),t.tag){case 1:return He(t.type)&&Xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),te(Ve),te(ke),hd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fd(t),null;case 13:if(te(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(re),null;case 4:return Br(),null;case 10:return ld(t.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var Ji=!1,Re=!1,Xx=typeof WeakSet=="function"?WeakSet:Set,F=null;function Rr(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 nc(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Uh=!1;function Yx(e,t){if($u=Ko,e=k1(),nd(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 m;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),(m=d.firstChild)!==null;)h=d,d=m;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(m=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},Ko=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var w=p.memoizedProps,S=p.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:wt(t.type,w),S);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return p=Uh,Uh=!1,p}function Is(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&&nc(t,n,i)}s=s.next}while(s!==r)}}function Da(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 rc(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 Cg(e){var t=e.alternate;t!==null&&(e.alternate=null,Cg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[ni],delete t[Vu],delete t[Ax],delete t[Lx])),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 Eg(e){return e.tag===5||e.tag===3||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eg(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 sc(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=Go));else if(r!==4&&(e=e.child,e!==null))for(sc(e,t,n),e=e.sibling;e!==null;)sc(e,t,n),e=e.sibling}function ic(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(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}var we=null,xt=!1;function un(e,t,n){for(n=n.child;n!==null;)Rg(e,t,n),n=n.sibling}function Rg(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Na,n)}catch{}switch(n.tag){case 5:Re||Rr(n,t);case 6:var r=we,s=xt;we=null,un(e,t,n),we=r,xt=s,we!==null&&(xt?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(xt?(e=we,n=n.stateNode,e.nodeType===8?Al(e.parentNode,n):e.nodeType===1&&Al(e,n),Xs(e)):Al(we,n.stateNode));break;case 4:r=we,s=xt,we=n.stateNode.containerInfo,xt=!0,un(e,t,n),we=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Re&&(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)&&nc(n,t,o),s=s.next}while(s!==r)}un(e,t,n);break;case 1:if(!Re&&(Rr(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)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,un(e,t,n),Re=r):un(e,t,n);break;default:un(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 Xx),t.forEach(function(r){var s=aS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function yt(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:we=a.stateNode,xt=!1;break e;case 3:we=a.stateNode.containerInfo,xt=!0;break e;case 4:we=a.stateNode.containerInfo,xt=!0;break e}a=a.return}if(we===null)throw Error(I(160));Rg(i,o,s),we=null,xt=!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;)kg(t,e),t=t.sibling}function kg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yt(t,e),It(e),r&4){try{Is(3,e,e.return),Da(3,e)}catch(w){oe(e,e.return,w)}try{Is(5,e,e.return)}catch(w){oe(e,e.return,w)}}break;case 1:yt(t,e),It(e),r&512&&n!==null&&Rr(n,n.return);break;case 5:if(yt(t,e),It(e),r&512&&n!==null&&Rr(n,n.return),e.flags&32){var s=e.stateNode;try{Ks(s,"")}catch(w){oe(e,e.return,w)}}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),Nu(a,o);var u=Nu(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Ym(s,d):c==="dangerouslySetInnerHTML"?Gm(s,d):c==="children"?Ks(s,d):Vc(s,c,d,u)}switch(a){case"input":Eu(s,i);break;case"textarea":Wm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Or(s,!!i.multiple,m,!1):h!==!!i.multiple&&(i.defaultValue!=null?Or(s,!!i.multiple,i.defaultValue,!0):Or(s,!!i.multiple,i.multiple?[]:"",!1))}s[ni]=i}catch(w){oe(e,e.return,w)}}break;case 6:if(yt(t,e),It(e),r&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(w){oe(e,e.return,w)}}break;case 3:if(yt(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xs(t.containerInfo)}catch(w){oe(e,e.return,w)}break;case 4:yt(t,e),It(e);break;case 13:yt(t,e),It(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(bd=le())),r&4&&Vh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,yt(t,e),Re=u):yt(t,e),It(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(d=F=c;F!==null;){switch(h=F,m=h.child,h.tag){case 0:case 11:case 14:case 15:Is(4,h,h.return);break;case 1:Rr(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(w){oe(r,n,w)}}break;case 5:Rr(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}m!==null?(m.return=h,F=m):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=Xm("display",o))}catch(w){oe(e,e.return,w)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(w){oe(e,e.return,w)}}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:yt(t,e),It(e),r&4&&Vh(e);break;case 21:break;default:yt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Eg(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ks(s,""),r.flags&=-33);var i=Bh(e);ic(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bh(e);sc(e,a,o);break;default:throw Error(I(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jx(e,t,n){F=e,Pg(e)}function Pg(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Ji;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Re;a=Ji;var u=Re;if(Ji=o,(Re=l)&&!u)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Qh(s):l!==null?(l.return=o,F=l):Qh(s);for(;i!==null;)F=i,Pg(i),i=i.sibling;F=s,Ji=a,Re=u}Hh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):Hh(e)}}function Hh(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||Da(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:wt(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&&Xs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Re||t.flags&512&&rc(t)}catch(h){oe(t,t.return,h)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function qh(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Qh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Da(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{rc(t)}catch(l){oe(t,i,l)}break;case 5:var o=t.return;try{rc(t)}catch(l){oe(t,o,l)}}}catch(l){oe(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var eS=Math.ceil,aa=rn.ReactCurrentDispatcher,xd=rn.ReactCurrentOwner,ft=rn.ReactCurrentBatchConfig,K=0,me=null,ce=null,xe=0,Ke=0,kr=Mn(0),fe=0,li=null,tr=0,Fa=0,Sd=0,_s=null,$e=null,bd=0,Hr=1/0,qt=null,la=!1,oc=null,Pn=null,eo=!1,yn=null,ua=0,As=0,ac=null,bo=-1,Co=0;function Te(){return K&6?le():bo!==-1?bo:bo=le()}function On(e){return e.mode&1?K&2&&xe!==0?xe&-xe:Dx.transition!==null?(Co===0&&(Co=c1()),Co):(e=Y,e!==0||(e=window.event,e=e===void 0?16:v1(e.type)),e):1}function Rt(e,t,n,r){if(50<As)throw As=0,ac=null,Error(I(185));bi(e,n,r),(!(K&2)||e!==me)&&(e===me&&(!(K&2)&&(Fa|=n),fe===4&&mn(e,xe)),qe(e,r),n===1&&K===0&&!(t.mode&1)&&(Hr=le()+500,Aa&&Dn()))}function qe(e,t){var n=e.callbackNode;Dw(e,t);var r=Qo(e,e===me?xe: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?Mx(Kh.bind(null,e)):M1(Kh.bind(null,e)),Ix(function(){!(K&6)&&Dn()}),n=null;else{switch(d1(r)){case 1:n=Wc;break;case 4:n=l1;break;case 16:n=qo;break;case 536870912:n=u1;break;default:n=qo}n=Lg(n,Og.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Og(e,t){if(bo=-1,Co=0,K&6)throw Error(I(327));var n=e.callbackNode;if(_r()&&e.callbackNode!==n)return null;var r=Qo(e,e===me?xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ca(e,r);else{t=r;var s=K;K|=2;var i=jg();(me!==e||xe!==t)&&(qt=null,Hr=le()+500,Gn(e,t));do try{rS();break}catch(a){Ng(e,a)}while(1);ad(),aa.current=i,K=s,ce!==null?t=0:(me=null,xe=0,t=fe)}if(t!==0){if(t===2&&(s=Au(e),s!==0&&(r=s,t=lc(e,s))),t===1)throw n=li,Gn(e,0),mn(e,r),qe(e,le()),n;if(t===6)mn(e,r);else{if(s=e.current.alternate,!(r&30)&&!tS(s)&&(t=ca(e,r),t===2&&(i=Au(e),i!==0&&(r=i,t=lc(e,i))),t===1))throw n=li,Gn(e,0),mn(e,r),qe(e,le()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:Vn(e,$e,qt);break;case 3:if(mn(e,r),(r&130023424)===r&&(t=bd+500-le(),10<t)){if(Qo(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Te(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Bu(Vn.bind(null,e,$e,qt),t);break}Vn(e,$e,qt);break;case 4:if(mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Et(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eS(r/1960))-r,10<r){e.timeoutHandle=Bu(Vn.bind(null,e,$e,qt),r);break}Vn(e,$e,qt);break;case 5:Vn(e,$e,qt);break;default:throw Error(I(329))}}}return qe(e,le()),e.callbackNode===n?Og.bind(null,e):null}function lc(e,t){var n=_s;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=ca(e,t),e!==2&&(t=$e,$e=n,t!==null&&uc(t)),e}function uc(e){$e===null?$e=e:$e.push.apply($e,e)}function tS(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(!kt(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 mn(e,t){for(t&=~Sd,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Kh(e){if(K&6)throw Error(I(327));_r();var t=Qo(e,0);if(!(t&1))return qe(e,le()),null;var n=ca(e,t);if(e.tag!==0&&n===2){var r=Au(e);r!==0&&(t=r,n=lc(e,r))}if(n===1)throw n=li,Gn(e,0),mn(e,t),qe(e,le()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e,$e,qt),qe(e,le()),null}function Cd(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(Hr=le()+500,Aa&&Dn())}}function nr(e){yn!==null&&yn.tag===0&&!(K&6)&&_r();var t=K;K|=1;var n=ft.transition,r=Y;try{if(ft.transition=null,Y=1,e)return e()}finally{Y=r,ft.transition=n,K=t,!(K&6)&&Dn()}}function Ed(){Ke=kr.current,te(kr)}function Gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Tx(n)),ce!==null)for(n=ce.return;n!==null;){var r=n;switch(sd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xo();break;case 3:Br(),te(Ve),te(ke),hd();break;case 5:fd(r);break;case 4:Br();break;case 13:te(re);break;case 19:te(re);break;case 10:ld(r.type._context);break;case 22:case 23:Ed()}n=n.return}if(me=e,ce=e=Nn(e.current,null),xe=Ke=t,fe=0,li=null,Sd=Fa=tr=0,$e=_s=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 Ng(e,t){do{var n=ce;try{if(ad(),wo.current=oa,ia){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ia=!1}if(er=0,pe=de=se=null,Ts=!1,ii=0,xd.current=null,n===null||n.return===null){fe=1,li=t,ce=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=xe,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 m=Ah(o);if(m!==null){m.flags&=-257,Lh(m,o,a,i,t),m.mode&1&&_h(i,u,t),t=m,l=u;var p=t.updateQueue;if(p===null){var w=new Set;w.add(l),t.updateQueue=w}else p.add(l);break e}else{if(!(t&1)){_h(i,u,t),Rd();break e}l=Error(I(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),id(Vr(l,a));break e}}i=l=Vr(l,a),fe!==4&&(fe=2),_s===null?_s=[i]:_s.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=fg(i,l,t);kh(i,g);break e;case 1:a=l;var v=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Pn===null||!Pn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=hg(i,a,t);kh(i,b);break e}}i=i.return}while(i!==null)}Ig(n)}catch(E){t=E,ce===n&&n!==null&&(ce=n=n.return);continue}break}while(1)}function jg(){var e=aa.current;return aa.current=oa,e===null?oa:e}function Rd(){(fe===0||fe===3||fe===2)&&(fe=4),me===null||!(tr&268435455)&&!(Fa&268435455)||mn(me,xe)}function ca(e,t){var n=K;K|=2;var r=jg();(me!==e||xe!==t)&&(qt=null,Gn(e,t));do try{nS();break}catch(s){Ng(e,s)}while(1);if(ad(),K=n,aa.current=r,ce!==null)throw Error(I(261));return me=null,xe=0,fe}function nS(){for(;ce!==null;)Tg(ce)}function rS(){for(;ce!==null&&!Ow();)Tg(ce)}function Tg(e){var t=Ag(e.alternate,e,Ke);e.memoizedProps=e.pendingProps,t===null?Ig(e):ce=t,xd.current=null}function Ig(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Gx(n,t),n!==null){n.flags&=32767,ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{fe=6,ce=null;return}}else if(n=Zx(n,t,Ke),n!==null){ce=n;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);fe===0&&(fe=5)}function Vn(e,t,n){var r=Y,s=ft.transition;try{ft.transition=null,Y=1,sS(e,t,n,r)}finally{ft.transition=s,Y=r}return null}function sS(e,t,n,r){do _r();while(yn!==null);if(K&6)throw Error(I(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(I(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Fw(e,i),e===me&&(ce=me=null,xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||eo||(eo=!0,Lg(qo,function(){return _r(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ft.transition,ft.transition=null;var o=Y;Y=1;var a=K;K|=4,xd.current=null,Yx(e,n),kg(n,e),Ex(zu),Ko=!!$u,zu=$u=null,e.current=n,Jx(n),Nw(),K=a,Y=o,ft.transition=i}else e.current=n;if(eo&&(eo=!1,yn=e,ua=s),i=e.pendingLanes,i===0&&(Pn=null),Iw(n.stateNode),qe(e,le()),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(la)throw la=!1,e=oc,oc=null,e;return ua&1&&e.tag!==0&&_r(),i=e.pendingLanes,i&1?e===ac?As++:(As=0,ac=e):As=0,Dn(),null}function _r(){if(yn!==null){var e=d1(ua),t=ft.transition,n=Y;try{if(ft.transition=null,Y=16>e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,ua=0,K&6)throw Error(I(331));var s=K;for(K|=4,F=e.current;F!==null;){var i=F,o=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Is(8,c,i)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var h=c.sibling,m=c.return;if(Cg(c),c===u){F=null;break}if(h!==null){h.return=m,F=h;break}F=m}}}var p=i.alternate;if(p!==null){var w=p.child;if(w!==null){p.child=null;do{var S=w.sibling;w.sibling=null,w=S}while(w!==null)}}F=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,F=o;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Is(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,F=g;break e}F=i.return}}var v=e.current;for(F=v;F!==null;){o=F;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,F=y;else e:for(o=v;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Da(9,a)}}catch(E){oe(a,a.return,E)}if(a===o){F=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,F=b;break e}F=a.return}}if(K=s,Dn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Na,e)}catch{}r=!0}return r}finally{Y=n,ft.transition=t}}return!1}function Wh(e,t,n){t=Vr(n,t),t=fg(e,t,1),e=kn(e,t,1),t=Te(),e!==null&&(bi(e,1,t),qe(e,t))}function oe(e,t,n){if(e.tag===3)Wh(e,e,n);else for(;t!==null;){if(t.tag===3){Wh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Pn===null||!Pn.has(r))){e=Vr(n,e),e=hg(t,e,1),t=kn(t,e,1),e=Te(),t!==null&&(bi(t,1,e),qe(t,e));break}}t=t.return}}function iS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Te(),e.pingedLanes|=e.suspendedLanes&n,me===e&&(xe&n)===n&&(fe===4||fe===3&&(xe&130023424)===xe&&500>le()-bd?Gn(e,0):Sd|=n),qe(e,t)}function _g(e,t){t===0&&(e.mode&1?(t=Hi,Hi<<=1,!(Hi&130023424)&&(Hi=4194304)):t=1);var n=Te();e=en(e,t),e!==null&&(bi(e,t,n),qe(e,n))}function oS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_g(e,n)}function aS(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(I(314))}r!==null&&r.delete(t),_g(e,n)}var Ag;Ag=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,Wx(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ne&&t.flags&1048576&&D1(t,ea,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;So(e,t),e=t.pendingProps;var s=$r(t,ke.current);Ir(t,n),s=md(null,t,r,e,s,n);var i=gd();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,He(r)?(i=!0,Yo(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,cd(t),s.updater=La,t.stateNode=s,s._reactInternals=t,Zu(t,r,e,n),t=Yu(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&rd(t),Ne(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(So(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=uS(r),e=wt(r,e),s){case 0:t=Xu(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,wt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Xu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Fh(e,t,r,s,n);case 3:e:{if(vg(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,s=i.element,U1(e,t),ra(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=Vr(Error(I(423)),t),t=$h(e,t,r,n,s);break e}else if(r!==s){s=Vr(Error(I(424)),t),t=$h(e,t,r,n,s);break e}else for(Ze=Rn(t.stateNode.containerInfo.firstChild),Ye=t,ne=!0,St=null,n=q1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===s){t=tn(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return Q1(t),e===null&&Qu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Uu(r,s)?o=null:i!==null&&Uu(r,i)&&(t.flags|=32),gg(e,t),Ne(e,t,o,n),t.child;case 6:return e===null&&Qu(t),null;case 13:return yg(e,t,n);case 4:return dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Mh(e,t,r,s,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(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(ta,r._currentValue),r._currentValue=o,i!==null)if(kt(i.value,o)){if(i.children===s.children&&!Ve.current){t=tn(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=Xt(-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),Ku(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(I(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ku(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}Ne(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ir(t,n),s=ht(s),r=r(s),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,s=wt(r,t.pendingProps),s=wt(r.type,s),Dh(e,t,r,s,n);case 15:return pg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),So(e,t),t.tag=1,He(r)?(e=!0,Yo(t)):e=!1,Ir(t,n),V1(t,r,s),Zu(t,r,s,n),Yu(null,t,r,!0,e,n);case 19:return wg(e,t,n);case 22:return mg(e,t,n)}throw Error(I(156,t.tag))};function Lg(e,t){return a1(e,t)}function lS(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 dt(e,t,n,r){return new lS(e,t,n,r)}function kd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uS(e){if(typeof e=="function")return kd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qc)return 11;if(e===Qc)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=dt(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 Eo(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")kd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gr:return Xn(n.children,s,i,t);case Hc:o=8,s|=8;break;case wu:return e=dt(12,n,t,s|2),e.elementType=wu,e.lanes=i,e;case xu:return e=dt(13,n,t,s),e.elementType=xu,e.lanes=i,e;case Su:return e=dt(19,n,t,s),e.elementType=Su,e.lanes=i,e;case Hm:return $a(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bm:o=10;break e;case Vm:o=9;break e;case qc:o=11;break e;case Qc:o=14;break e;case fn:o=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=dt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Xn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function $a(e,t,n,r){return e=dt(22,e,r,t),e.elementType=Hm,e.lanes=n,e.stateNode={isHidden:!1},e}function Bl(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function Vl(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cS(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=Cl(0),this.expirationTimes=Cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Pd(e,t,n,r,s,i,o,a,l){return e=new cS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cd(i),e}function dS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mg(e){if(!e)return In;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(He(n))return L1(e,n,t)}return t}function Dg(e,t,n,r,s,i,o,a,l){return e=Pd(n,r,!0,e,s,i,o,a,l),e.context=Mg(null),n=e.current,r=Te(),s=On(n),i=Xt(r,s),i.callback=t??null,kn(n,i,s),e.current.lanes=s,bi(e,s,r),qe(e,r),e}function za(e,t,n,r){var s=t.current,i=Te(),o=On(s);return n=Mg(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kn(s,t,o),e!==null&&(Rt(e,s,o,i),yo(e,s,o)),o}function da(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 Zh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Od(e,t){Zh(e,t),(e=e.alternate)&&Zh(e,t)}function fS(){return null}var Fg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nd(e){this._internalRoot=e}Ua.prototype.render=Nd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));za(e,t,null,null)};Ua.prototype.unmount=Nd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nr(function(){za(null,e,null,null)}),t[Jt]=null}};function Ua(e){this._internalRoot=e}Ua.prototype.unstable_scheduleHydration=function(e){if(e){var t=p1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pn.length&&t!==0&&t<pn[n].priority;n++);pn.splice(n,0,e),n===0&&g1(e)}};function jd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ba(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gh(){}function hS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=da(o);i.call(u)}}var o=Dg(t,r,e,0,null,!1,!1,"",Gh);return e._reactRootContainer=o,e[Jt]=o.current,ei(e.nodeType===8?e.parentNode:e),nr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=da(l);a.call(u)}}var l=Pd(e,0,!1,null,null,!1,!1,"",Gh);return e._reactRootContainer=l,e[Jt]=l.current,ei(e.nodeType===8?e.parentNode:e),nr(function(){za(t,l,n,r)}),l}function Va(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=da(o);a.call(l)}}za(t,o,e,s)}else o=hS(n,t,e,s,r);return da(o)}f1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(Zc(t,n|1),qe(t,le()),!(K&6)&&(Hr=le()+500,Dn()))}break;case 13:nr(function(){var r=en(e,1);if(r!==null){var s=Te();Rt(r,e,1,s)}}),Od(e,1)}};Gc=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=Te();Rt(t,e,134217728,n)}Od(e,134217728)}};h1=function(e){if(e.tag===13){var t=On(e),n=en(e,t);if(n!==null){var r=Te();Rt(n,e,t,r)}Od(e,t)}};p1=function(){return Y};m1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Tu=function(e,t,n){switch(t){case"input":if(Eu(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=_a(r);if(!s)throw Error(I(90));Qm(r),Eu(r,s)}}}break;case"textarea":Wm(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};t1=Cd;n1=nr;var pS={usingClientEntryPoint:!1,Events:[Ei,xr,_a,Jm,e1,Cd]},fs={findFiberByHostInstance:Qn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},mS={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:rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=i1(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||fS,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 to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{Na=to.inject(mS),Ft=to}catch{}}tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pS;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jd(t))throw Error(I(200));return dS(e,t,null,n)};tt.createRoot=function(e,t){if(!jd(e))throw Error(I(299));var n=!1,r="",s=Fg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Pd(e,1,!1,null,null,n,!1,r,s),e[Jt]=t.current,ei(e.nodeType===8?e.parentNode:e),new Nd(t)};tt.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(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=i1(t),e=e===null?null:e.stateNode,e};tt.flushSync=function(e){return nr(e)};tt.hydrate=function(e,t,n){if(!Ba(t))throw Error(I(200));return Va(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!jd(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Fg;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Dg(t,null,e,1,n??null,s,!1,i,o),e[Jt]=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 Ua(t)};tt.render=function(e,t,n){if(!Ba(t))throw Error(I(200));return Va(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!Ba(e))throw Error(I(40));return e._reactRootContainer?(nr(function(){Va(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};tt.unstable_batchedUpdates=Cd;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ba(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Va(e,t,n,!1,r)};tt.version="18.2.0-next-9e3b772b8-20220608";function $g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($g)}catch(e){console.error(e)}}$g(),Dm.exports=tt;var ki=Dm.exports,zg={exports:{}},Ug={};/**
|
|
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
42
|
* @license React
|
|
42
43
|
* use-sync-external-store-shim.production.min.js
|
|
43
44
|
*
|
|
@@ -45,7 +46,7 @@ Error generating stack: `+i.message+`
|
|
|
45
46
|
*
|
|
46
47
|
* This source code is licensed under the MIT license found in the
|
|
47
48
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var qr=x;function gS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vS=typeof Object.is=="function"?Object.is:gS,yS=qr.useState,wS=qr.useEffect,xS=qr.useLayoutEffect,SS=qr.useDebugValue;function bS(e,t){var n=t(),r=yS({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return xS(function(){s.value=n,s.getSnapshot=t,Hl(s)&&i({inst:s})},[e,n,t]),wS(function(){return Hl(s)&&i({inst:s}),e(function(){Hl(s)&&i({inst:s})})},[e]),SS(n),n}function Hl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vS(e,n)}catch{return!0}}function CS(e,t){return t()}var ES=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?CS:bS;Ug.useSyncExternalStore=qr.useSyncExternalStore!==void 0?qr.useSyncExternalStore:ES;zg.exports=Ug;var Bg=zg.exports;const Vg=Bg.useSyncExternalStore,Xh=x.createContext(void 0),Hg=x.createContext(!1);function qg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Xh),window.ReactQueryClientContext):Xh)}const rt=({context:e}={})=>{const t=x.useContext(qg(e,x.useContext(Hg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},RS=({client:e,children:t,context:n,contextSharing:r=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=qg(n,r);return x.createElement(Hg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},Qg=x.createContext(!1),kS=()=>x.useContext(Qg);Qg.Provider;function PS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const OS=x.createContext(PS()),NS=()=>x.useContext(OS);function Kg(e,t){return typeof e=="function"?e(...t):!!e}const jS=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},TS=e=>{x.useEffect(()=>{e.clearReset()},[e])},IS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Kg(n,[e.error,r]),_S=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},AS=(e,t)=>e.isLoading&&e.isFetching&&!t,LS=(e,t,n)=>(e==null?void 0:e.suspense)&&AS(t,n),MS=(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 Wg(e,t){const n=rt({context:e.context}),r=kS(),s=NS(),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)),_S(i),jS(i,s),TS(s);const[o]=x.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Vg(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]),LS(i,a,r))throw MS(i,o,s);if(IS({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function Td(e,t,n){const r=pr(e,t,n);return Wg(r,Mm)}function sn(e,t,n){const r=G2(e,t,n),s=rt({context:r.context}),[i]=x.useState(()=>new fw(s,r));x.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Vg(x.useCallback(l=>i.subscribe(ae.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=x.useCallback((l,u)=>{i.mutate(l,u).catch(DS)},[i]);if(o.error&&Kg(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function DS(){}function FS(e,t,n){const r=pr(e,t,n);return Wg(r,dw)}function $S(){return Td({queryKey:["session"],queryFn:async()=>await X.session().getSession(),suspense:!0})}function Zg({appCode:e}){return Td({queryKey:["conf"],queryFn:async()=>await X.conf().getConf(e),suspense:!0})}const Gg=x.createContext(null);function zS({children:e,params:t}){const n=t.app,r=$S(),s=Zg({appCode:n}),i=(s==null?void 0:s.isSuccess)&&(r==null?void 0:r.isSuccess);x.useEffect(()=>{var a,l;(l=document.querySelector("html"))==null||l.setAttribute("lang",((a=r==null?void 0:r.data)==null?void 0:a.currentLanguage)||"fr")},[r==null?void 0:r.data]);const o=x.useMemo(()=>{var a,l,u,c,d,h;return{appCode:n,applications:(a=s==null?void 0:s.data)==null?void 0:a.applications,confQuery:s,currentApp:(l=s==null?void 0:s.data)==null?void 0:l.currentApp,currentLanguage:(u=r==null?void 0:r.data)==null?void 0:u.currentLanguage,init:i,sessionQuery:r,user:(c=r==null?void 0:r.data)==null?void 0:c.user,userDescription:(d=r==null?void 0:r.data)==null?void 0:d.userDescription,userProfile:(h=r==null?void 0:r.data)==null?void 0:h.userProfile}},[n,s,i,r]);return f.jsx(Gg.Provider,{value:o,children:e})}function gt(){const e=x.useContext(Gg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function US(){var r;const{sessionQuery:e}=gt(),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 X.rights().sessionHasWorkflowRight(e):await X.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function BS(){const e=typeof document<"u",[t,n]=x.useState(()=>document.title);return x.useEffect(()=>{e&&n(document.title)},[e]),t}function Xg(){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 VS({user:e,avatar:t}){const{t:n}=ve(),r=BS(),[s,i]=x.useState(!0),[o,a]=Xg(),l=x.useId(),u=x.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.username}),m=US(),p=Ls("net.atos.entng.community.controllers.CommunityController|view"),w=Ls("org.entcore.conversation.controllers.ConversationController|view"),S=Ls("fr.openent.searchengine.controllers.SearchEngineController|view"),g=x.useCallback(()=>{i(!s)},[s]),v=async()=>{await X.session().logout(),window.location.href="/auth/login"};return x.useMemo(()=>({title:r,bookmarkedApps:m,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:p,conversationWorflow:w,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:g,handleLogout:v}),[o,m,p,w,a,s,l,u,S,r,g,c,d,h])}function Yg(){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 Ha(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const Jg=x.createContext(null);function HS({children:e}){var s;const{appCode:t}=gt(),n=Zg({appCode:t});x.useEffect(()=>{var u,c,d,h,m,p,w,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=(m=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:m.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(w=(p=n==null?void 0:n.data)==null?void 0:p.theme)==null?void 0:w.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 y;return(y=document.querySelector("html"))==null?void 0:y.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(Jg.Provider,{value:r,children:e})}function Id(){const e=x.useContext(Jg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function _d(){const{user:e,userDescription:t,userProfile:n}=gt(),{theme:r}=Id();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 qS(){const[e,t]=x.useState("pending"),{currentApp:n}=gt();x.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await X.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 Yh=["mousedown","touchstart"];function e0(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||Yh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Yh).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}let QS={data:""},KS=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||QS,WS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ZS=/\/\*[^]*?\*\/| +/g,Jh=/\n+/g,gn=(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"?gn(o,i):i+"{"+gn(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=gn(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+=gn.p?gn.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Ht={},t0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+t0(e[n]);return t}return e},GS=(e,t,n,r,s)=>{let i=t0(e),o=Ht[i]||(Ht[i]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Ht[o]){let l=i!==e?e:(u=>{let c,d,h=[{}];for(;c=WS.exec(u.replace(ZS,""));)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);Ht[o]=gn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Ht.g?Ht.g:null;return n&&(Ht.g=Ht[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)})(Ht[o],t,r,a),o},XS=(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?"":gn(a,""):a===!1?"":a}return r+s+(o??"")},"");function qa(e){let t=this||{},n=e.call?e(t.p):e;return GS(n.unshift?n.raw?XS(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,KS(t.target),t.g,t.o,t.k)}let n0,cc,dc;qa.bind({g:1});let nn=qa.bind({k:1});function YS(e,t,n,r){gn.p=t,n0=e,cc=n,dc=r}function Fn(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:cc&&cc()},a),n.o=/ *go\d+/.test(l),a.className=qa.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),dc&&u[0]&&dc(a),n0(u,a)}return t?t(s):s}}var JS=e=>typeof e=="function",fa=(e,t)=>JS(e)?e(t):e,e4=(()=>{let e=0;return()=>(++e).toString()})(),r0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),t4=20,Ro=new Map,n4=1e3,ep=e=>{if(Ro.has(e))return;let t=setTimeout(()=>{Ro.delete(e),ar({type:4,toastId:e})},n4);Ro.set(e,t)},r4=e=>{let t=Ro.get(e);t&&clearTimeout(t)},fc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,t4)};case 1:return t.toast.id&&r4(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)?fc(e,{type:1,toast:n}):fc(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}))}}},ko=[],Po={toasts:[],pausedAt:void 0},ar=e=>{Po=fc(Po,e),ko.forEach(t=>{t(Po)})},s4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},i4=(e={})=>{let[t,n]=x.useState(Po);x.useEffect(()=>(ko.push(n),()=>{let s=ko.indexOf(n);s>-1&&ko.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)||s4[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},o4=(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)||e4()}),Pi=e=>(t,n)=>{let r=o4(t,e,n);return ar({type:2,toast:r}),r.id},Ge=(e,t)=>Pi("blank")(e,t);Ge.error=Pi("error");Ge.success=Pi("success");Ge.loading=Pi("loading");Ge.custom=Pi("custom");Ge.dismiss=e=>{ar({type:3,toastId:e})};Ge.remove=e=>ar({type:4,toastId:e});Ge.promise=(e,t,n)=>{let r=Ge.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Ge.success(fa(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ge.error(fa(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var a4=(e,t)=>{ar({type:1,toast:{id:e,height:t}})},l4=()=>{ar({type:5,time:Date.now()})},u4=e=>{let{toasts:t,pausedAt:n}=i4(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&&Ge.dismiss(a.id);return}return setTimeout(()=>Ge.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&ar({type:6,time:Date.now()})},[n]),s=x.useCallback((i,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(m=>(m.position||u)===(i.position||u)&&m.height),d=c.findIndex(m=>m.id===i.id),h=c.filter((m,p)=>p<d&&m.visible).length;return c.filter(m=>m.visible).slice(...a?[h+1]:[0,h]).reduce((m,p)=>m+(p.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:a4,startPause:l4,endPause:r,calculateOffset:s}}},c4=nn`
|
|
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
50
|
from {
|
|
50
51
|
transform: scale(0) rotate(45deg);
|
|
51
52
|
opacity: 0;
|
|
@@ -53,7 +54,7 @@ from {
|
|
|
53
54
|
to {
|
|
54
55
|
transform: scale(1) rotate(45deg);
|
|
55
56
|
opacity: 1;
|
|
56
|
-
}`,
|
|
57
|
+
}`,h4=sn`
|
|
57
58
|
from {
|
|
58
59
|
transform: scale(0);
|
|
59
60
|
opacity: 0;
|
|
@@ -61,7 +62,7 @@ from {
|
|
|
61
62
|
to {
|
|
62
63
|
transform: scale(1);
|
|
63
64
|
opacity: 1;
|
|
64
|
-
}`,
|
|
65
|
+
}`,p4=sn`
|
|
65
66
|
from {
|
|
66
67
|
transform: scale(0) rotate(90deg);
|
|
67
68
|
opacity: 0;
|
|
@@ -69,7 +70,7 @@ from {
|
|
|
69
70
|
to {
|
|
70
71
|
transform: scale(1) rotate(90deg);
|
|
71
72
|
opacity: 1;
|
|
72
|
-
}`,
|
|
73
|
+
}`,m4=$n("div")`
|
|
73
74
|
width: 20px;
|
|
74
75
|
opacity: 0;
|
|
75
76
|
height: 20px;
|
|
@@ -78,14 +79,14 @@ to {
|
|
|
78
79
|
position: relative;
|
|
79
80
|
transform: rotate(45deg);
|
|
80
81
|
|
|
81
|
-
animation: ${
|
|
82
|
+
animation: ${f4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
82
83
|
forwards;
|
|
83
84
|
animation-delay: 100ms;
|
|
84
85
|
|
|
85
86
|
&:after,
|
|
86
87
|
&:before {
|
|
87
88
|
content: '';
|
|
88
|
-
animation: ${
|
|
89
|
+
animation: ${h4} 0.15s ease-out forwards;
|
|
89
90
|
animation-delay: 150ms;
|
|
90
91
|
position: absolute;
|
|
91
92
|
border-radius: 3px;
|
|
@@ -98,18 +99,18 @@ to {
|
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
&:before {
|
|
101
|
-
animation: ${
|
|
102
|
+
animation: ${p4} 0.15s ease-out forwards;
|
|
102
103
|
animation-delay: 180ms;
|
|
103
104
|
transform: rotate(90deg);
|
|
104
105
|
}
|
|
105
|
-
`,
|
|
106
|
+
`,g4=sn`
|
|
106
107
|
from {
|
|
107
108
|
transform: rotate(0deg);
|
|
108
109
|
}
|
|
109
110
|
to {
|
|
110
111
|
transform: rotate(360deg);
|
|
111
112
|
}
|
|
112
|
-
`,
|
|
113
|
+
`,v4=$n("div")`
|
|
113
114
|
width: 12px;
|
|
114
115
|
height: 12px;
|
|
115
116
|
box-sizing: border-box;
|
|
@@ -117,8 +118,8 @@ to {
|
|
|
117
118
|
border-radius: 100%;
|
|
118
119
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
119
120
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
120
|
-
animation: ${
|
|
121
|
-
`,
|
|
121
|
+
animation: ${g4} 1s linear infinite;
|
|
122
|
+
`,y4=sn`
|
|
122
123
|
from {
|
|
123
124
|
transform: scale(0) rotate(45deg);
|
|
124
125
|
opacity: 0;
|
|
@@ -126,7 +127,7 @@ from {
|
|
|
126
127
|
to {
|
|
127
128
|
transform: scale(1) rotate(45deg);
|
|
128
129
|
opacity: 1;
|
|
129
|
-
}`,
|
|
130
|
+
}`,w4=sn`
|
|
130
131
|
0% {
|
|
131
132
|
height: 0;
|
|
132
133
|
width: 0;
|
|
@@ -140,7 +141,7 @@ to {
|
|
|
140
141
|
100% {
|
|
141
142
|
opacity: 1;
|
|
142
143
|
height: 10px;
|
|
143
|
-
}`,
|
|
144
|
+
}`,x4=$n("div")`
|
|
144
145
|
width: 20px;
|
|
145
146
|
opacity: 0;
|
|
146
147
|
height: 20px;
|
|
@@ -149,13 +150,13 @@ to {
|
|
|
149
150
|
position: relative;
|
|
150
151
|
transform: rotate(45deg);
|
|
151
152
|
|
|
152
|
-
animation: ${
|
|
153
|
+
animation: ${y4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
153
154
|
forwards;
|
|
154
155
|
animation-delay: 100ms;
|
|
155
156
|
&:after {
|
|
156
157
|
content: '';
|
|
157
158
|
box-sizing: border-box;
|
|
158
|
-
animation: ${
|
|
159
|
+
animation: ${w4} 0.2s ease-out forwards;
|
|
159
160
|
opacity: 0;
|
|
160
161
|
animation-delay: 200ms;
|
|
161
162
|
position: absolute;
|
|
@@ -167,16 +168,16 @@ to {
|
|
|
167
168
|
height: 10px;
|
|
168
169
|
width: 6px;
|
|
169
170
|
}
|
|
170
|
-
`,
|
|
171
|
+
`,S4=$n("div")`
|
|
171
172
|
position: absolute;
|
|
172
|
-
`,
|
|
173
|
+
`,b4=$n("div")`
|
|
173
174
|
position: relative;
|
|
174
175
|
display: flex;
|
|
175
176
|
justify-content: center;
|
|
176
177
|
align-items: center;
|
|
177
178
|
min-width: 20px;
|
|
178
179
|
min-height: 20px;
|
|
179
|
-
`,
|
|
180
|
+
`,C4=sn`
|
|
180
181
|
from {
|
|
181
182
|
transform: scale(0.6);
|
|
182
183
|
opacity: 0.4;
|
|
@@ -184,20 +185,20 @@ from {
|
|
|
184
185
|
to {
|
|
185
186
|
transform: scale(1);
|
|
186
187
|
opacity: 1;
|
|
187
|
-
}`,
|
|
188
|
+
}`,E4=$n("div")`
|
|
188
189
|
position: relative;
|
|
189
190
|
transform: scale(0.6);
|
|
190
191
|
opacity: 0.4;
|
|
191
192
|
min-width: 20px;
|
|
192
|
-
animation: ${
|
|
193
|
+
animation: ${C4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
193
194
|
forwards;
|
|
194
|
-
`,
|
|
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
196
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
196
197
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
197
|
-
`,
|
|
198
|
+
`,P4=e=>`
|
|
198
199
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
199
200
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
200
|
-
`,
|
|
201
|
+
`,O4="0%{opacity:0;} 100%{opacity:1;}",N4="0%{opacity:1;} 100%{opacity:0;}",j4=$n("div")`
|
|
201
202
|
display: flex;
|
|
202
203
|
align-items: center;
|
|
203
204
|
background: #fff;
|
|
@@ -209,21 +210,21 @@ to {
|
|
|
209
210
|
pointer-events: auto;
|
|
210
211
|
padding: 8px 10px;
|
|
211
212
|
border-radius: 8px;
|
|
212
|
-
`,
|
|
213
|
+
`,T4=$n("div")`
|
|
213
214
|
display: flex;
|
|
214
215
|
justify-content: center;
|
|
215
216
|
margin: 4px 10px;
|
|
216
217
|
color: inherit;
|
|
217
218
|
flex: 1 1 auto;
|
|
218
219
|
white-space: pre-line;
|
|
219
|
-
`,
|
|
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
221
|
z-index: 9999;
|
|
221
222
|
> * {
|
|
222
223
|
pointer-events: auto;
|
|
223
224
|
}
|
|
224
|
-
`,no=16,L4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=u4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:no,left:no,right:no,bottom:no,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=_4(c,d);return x.createElement(I4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?A4:"",style:h},u.type==="custom"?fa(u.message,u):s?s(u):x.createElement(T4,{toast:u,position:c}))}))},hs=Ge;function Ot(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 M4({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 D4(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 F4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function $4(e,t){const[n,r]=x.useState(e);return x.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function z4(){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 U4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const s0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));s0.displayName="ActionBar";const B4=s0,V4=({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-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",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-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),H4=V4,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-1Z",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 0Z",clipRule:"evenodd"})]}),Q4=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-1Z",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.414Z",clipRule:"evenodd"})]}),Y8=K4,W4=({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-1H7zM4.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.12z"})]}),J8=W4,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:"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 5ZM21 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.5ZM21 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.5Z",clipRule:"evenodd"})]}),G4=Z4,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:"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.556Z",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 0Z",clipRule:"evenodd"})]}),Y4=X4,J4=({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.916ZM3.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"})]}),ek=J4,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:"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-.675Zm7.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.864Zm-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-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),t3=e3,n3=({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.121Z",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.879Zm-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"})]}),tk=n3,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:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.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 0Z",clipRule:"evenodd"})]}),s3=r3,i3=({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"})]}),nk=i3,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:"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.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),a3=o3,l3=({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.557Z",clipRule:"evenodd"})]}),u3=l3,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:"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.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),rk=c3,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:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",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 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),f3=d3,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",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.655Z",clipRule:"evenodd"})]}),p3=h3,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("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"})]}),sk=m3,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:"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-7V4Z",clipRule:"evenodd"})]}),v3=g3,y3=({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.117Z",clipRule:"evenodd"})]}),hc=y3,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:"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.141Z",clipRule:"evenodd"})]}),x3=w3,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:"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-.141Z",clipRule:"evenodd"})]}),tp=S3,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:"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.117Z",clipRule:"evenodd"})]}),C3=b3,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:"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-1V4H5Zm2-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 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),ik=E3,R3=({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 0Zm7-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 1Z",clipRule:"evenodd"})]}),k3=R3,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:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",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-.219Z",clipRule:"evenodd"})]}),O3=P3,N3=({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.272ZM15.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.036ZM1.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.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),ok=N3;function i0(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=i0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function H(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i0(e))&&(r&&(r+=" "),r+=t);return r}const o0=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),m=x.useRef(null),p=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:w,hide:p,...m.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const w=()=>{h(!0)},S={success:{icon:f.jsx(O3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(H4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(f3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(s3,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},v=H("alert gap-12",S[e].classModifier,g,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:m,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:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});o0.displayName="Alert";const Nt=o0,a0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=H("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]})});a0.displayName="AppHeader";const j3=a0,l0=x.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=Ha(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=M4({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"},m={"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"},p=H({...h}),w=H({...m},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:w,...o});return r?f.jsx("div",{className:p,children:S}):S});l0.displayName="Image";const u0=l0,c0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Yg(),[,a]=Ha(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",m={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},p={square:l,rounded:u,"rounded-circle":c},w={"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):"",y=i(S),b=v||"placeholder",E=H("app-icon",{...m,...p,...w,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return y?f.jsx(u0,{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}`})})})});c0.displayName="AppIcon";const pc=c0,d0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Ha(),u=s||`${l}/avatar/no-avatar.svg`,w=H("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:w,children:f.jsx(u0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});d0.displayName="Avatar";const np=d0,f0=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("breadcrumb-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});f0.displayName="BreadcrumbItem";const ql=f0,h0=x.forwardRef(({children:e,className:t},n)=>{const r=H("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});h0.displayName="BreadcrumbList";const T3=h0,p0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ve(),{getIconClass:i}=Yg(),o=H("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})});p0.displayName="BreadcrumbNav";const I3=p0,m0=x.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=H(t,r);return f.jsx(e,{ref:i,className:o,...s,children:n})});m0.displayName="Heading";const rp=m0,g0=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(p3,{...o,"aria-label":"Loading"}),u},l=H("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});g0.displayName="Loading";const _3=g0,v0=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 m=H("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:m,type:t,...d,children:s?f.jsx(_3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});v0.displayName="Button";const Jr=v0,y0=x.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:H("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});y0.displayName="IconButton";const Qa=y0,w0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=ve();return f.jsx(I3,{app:e,ref:n,className:"mw-100",children:f.jsx(T3,{className:"gap-12 mw-100",children:t?f.jsxs(f.Fragment,{children:[f.jsx(ql,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(Qa,{variant:"ghost",color:"tertiary",icon:f.jsx(x3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(pc,{app:e,size:"40"})]})}),f.jsx(ql,{className:"text-truncate",children:f.jsx(rp,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):f.jsxs(ql,{className:"gap-12 d-flex align-items-center",children:[f.jsx(pc,{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)})]})})})});w0.displayName="Breadcrumb";const A3=w0,x0=x.forwardRef(({icon:e=f.jsx(k3,{}),onClick:t,...n},r)=>{const s=H("btn-search");return f.jsx(Qa,{ref:r,className:s,icon:e,...n,onClick:t})});x0.displayName="SearchButton";const S0=x0,L3=({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.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),M3=L3,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",d:"M22.995 13.153c0 1.393-.29 2.722-.872 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.152c0-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.589ZM13.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=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",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.111Zm3.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.363Z"})]}),$3=F3,z3=({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-.216Zm7.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-.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-.216Zm7.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-.24Zm7.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"})]}),ip=z3,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:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.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.03Z",clipRule:"evenodd"})]}),B3=U3,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",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),op=V3,H3=({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.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 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=H3,Q3=({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.684 2C8.66 2 6.702 3.277 5.165 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-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),K3=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",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.334Zm10.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.995 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-.837Z",clipRule:"evenodd"})]}),Z3=W3,G3=({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-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 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.3Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),X3=G3,Y3=({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.628Zm2.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.486Z"})]}),J3=Y3,e5=({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"})]}),t5=e5,b0=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:H(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})]})});b0.displayName="Checkbox";const n5=b0,C0=x.createContext(null),Oi=()=>{const e=x.useContext(C0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},E0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>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(n5,{...d})]})})};E0.displayName="Dropdown.CheckboxItem";const r5=E0,R0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemClick:a,onMenuItemKeyDown:l,onMenuItemMouseEnter:u}=s,c=()=>{a(),t==null||t()},d=x.useId(),h=H("dropdown-item",{focus:o===d});return f.jsx("div",{id:d,role:"menuitem",ref:m=>i.current[d]=m,tabIndex:o===d?0:-1,className:h,"aria-current":o===d,onClick:c,onMouseEnter:u,onKeyDown:m=>l(m,t),...r,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[e,n]})})};R0.displayName="Dropdown.Item";const s5=R0,k0=x.forwardRef(({children:e},t)=>{const{menuProps:n,visible:r}=Oi();return r?f.jsx("div",{ref:t,...n,children:e}):null});k0.displayName="Dropdown.Menu";const i5=k0,P0=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]}));P0.displayName="Dropdown.MenuGroup";const o5=P0,O0=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:H(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return f.jsxs("div",{className:H("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:H("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});O0.displayName="Radio";const a5=O0,N0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:m=>i.current[u]=m,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:m=>a(m,()=>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(a5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};N0.displayName="Dropdown.RadioItem";const l5=N0,j0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});j0.displayName="Dropdown.Separator";const u5=j0,T0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i},o)=>{const{triggerProps:a,block:l}=Oi(),{className:u,...c}=a,d=H(s,n,{"w-100":l},u);return f.jsxs("button",{ref:o,className:d,disabled:r,...c,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(C3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});T0.displayName="Dropdown.Trigger";const c5=T0;function _n(e){return I0(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(I0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function I0(e){return e instanceof Node||e instanceof Je(e).Node}function Xe(e){return e instanceof Element||e instanceof Je(e).Element}function zt(e){return e instanceof HTMLElement||e instanceof Je(e).HTMLElement}function ap(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function Ni(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function d5(e){return["table","td","th"].includes(_n(e))}function Ad(e){const t=Ld(),n=mt(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 f5(e){let t=Qr(e);for(;zt(t)&&!Ka(t);){if(Ad(t))return t;t=Qr(t)}return null}function Ld(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ka(e){return["html","body","#document"].includes(_n(e))}function mt(e){return Je(e).getComputedStyle(e)}function Wa(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qr(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||on(e);return ap(t)?t.host:t}function _0(e){const t=Qr(e);return Ka(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&Ni(t)?t:_0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=_0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Je(s);return i?t.concat(o,o.visualViewport||[],Ni(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const mc=Math.min,Ar=Math.max,ha=Math.round,ro=Math.floor,An=e=>({x:e,y:e}),h5={left:"right",right:"left",bottom:"top",top:"bottom"},p5={start:"end",end:"start"};function Md(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function Za(e){return e.split("-")[1]}function m5(e){return e==="x"?"y":"x"}function A0(e){return e==="y"?"height":"width"}function Dd(e){return["top","bottom"].includes(Kr(e))?"y":"x"}function L0(e){return m5(Dd(e))}function g5(e,t,n){n===void 0&&(n=!1);const r=Za(e),s=L0(e),i=A0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=pa(o)),[o,pa(o)]}function v5(e){const t=pa(e);return[gc(e),t,gc(t)]}function gc(e){return e.replace(/start|end/g,t=>p5[t])}function y5(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 w5(e,t,n,r){const s=Za(e);let i=y5(Kr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(gc)))),i}function pa(e){return e.replace(/left|right|bottom|top/g,t=>h5[t])}function x5(e){return{top:0,right:0,bottom:0,left:0,...e}}function S5(e){return typeof e!="number"?x5(e):{top:e,right:e,bottom:e,left:e}}function ma(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=Dd(t),o=L0(t),a=A0(o),l=Kr(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 m;switch(l){case"top":m={x:c,y:r.y-s.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Za(t)){case"start":m[o]-=h*(n&&u?-1:1);break;case"end":m[o]+=h*(n&&u?-1:1);break}return m}const b5=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,m={},p=0;for(let w=0;w<a.length;w++){const{name:S,fn:g}=a[w],{x:v,y,data:b,reset:E}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=y??d,m={...m,[S]:{...m[S],...b}},E&&p<=50){p++,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)),w=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:m}};async function C5(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:m=0}=Md(t,e),p=S5(m),S=a[h?d==="floating"?"reference":"floating":d],g=ma(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,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},E=ma(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-E.top+p.top)/b.y,bottom:(E.bottom-g.bottom+p.bottom)/b.y,left:(g.left-E.left+p.left)/b.x,right:(E.right-g.right+p.right)/b.x}}const E5=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:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:w=!0,...S}=Md(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Kr(s),v=Kr(a)===a,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!w?[pa(a)]:v5(a));!h&&p!=="none"&&b.push(...w5(a,w,p,y));const E=[a,...b],k=await C5(t,S),R=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&R.push(k[g]),d){const D=g5(s,o,y);R.push(k[D[0]],k[D[1]])}if(P=[...P,{placement:s,overflows:R}],!R.every(D=>D<=0)){var L,M;const D=(((L=i.flip)==null?void 0:L.index)||0)+1,U=E[D];if(U)return{data:{index:D,overflows:P},reset:{placement:U}};let C=(M=P.filter(O=>O.overflows[0]<=0).sort((O,A)=>O.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!C)switch(m){case"bestFit":{var T;const O=(T=P.map(A=>[A.placement,A.overflows.filter($=>$>0).reduce(($,N)=>$+N,0)]).sort((A,$)=>A[1]-$[1])[0])==null?void 0:T[0];O&&(C=O);break}case"initialPlacement":C=a;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function R5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Kr(n),a=Za(n),l=Dd(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Md(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(m=a==="end"?p*-1:p),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const k5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await R5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}};function M0(e){const t=mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=zt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ha(n)!==i||ha(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Fd(e){return Xe(e)?e:e.contextElement}function Lr(e){const t=Fd(e);if(!zt(t))return An(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=M0(t);let o=(i?ha(n.width):n.width)/r,a=(i?ha(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const P5=An(0);function D0(e){const t=Je(e);return!Ld()||!t.visualViewport?P5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function rr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Fd(e);let o=An(1);t&&(r?Xe(r)&&(o=Lr(r)):o=Lr(e));const a=O5(i,n,r)?D0(i):An(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=Je(i),m=r&&Xe(r)?Je(r):r;let p=h.frameElement;for(;p&&r&&m!==h;){const w=Lr(p),S=p.getBoundingClientRect(),g=mt(p),v=S.left+(p.clientLeft+parseFloat(g.paddingLeft))*w.x,y=S.top+(p.clientTop+parseFloat(g.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=v,u+=y,p=Je(p).frameElement}}return ma({width:c,height:d,x:l,y:u})}function N5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=zt(n),i=on(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=An(1);const l=An(0);if((s||!s&&r!=="fixed")&&((_n(n)!=="body"||Ni(i))&&(o=Wa(n)),zt(n))){const u=rr(n);a=Lr(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 j5(e){return Array.from(e.getClientRects())}function F0(e){return rr(on(e)).left+Wa(e).scrollLeft}function T5(e){const t=on(e),n=Wa(e),r=e.ownerDocument.body,s=Ar(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ar(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+F0(e);const a=-n.scrollTop;return mt(r).direction==="rtl"&&(o+=Ar(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function I5(e,t){const n=Je(e),r=on(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=Ld();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function _5(e,t){const n=rr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=zt(e)?Lr(e):An(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=I5(e,n);else if(t==="document")r=T5(on(e));else if(Xe(t))r=_5(t,n);else{const s=D0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return ma(r)}function $0(e,t){const n=Qr(e);return n===t||!Xe(n)||Ka(n)?!1:mt(n).position==="fixed"||$0(n,t)}function A5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Xe(a)&&_n(a)!=="body"),s=null;const i=mt(e).position==="fixed";let o=i?Qr(e):e;for(;Xe(o)&&!Ka(o);){const a=mt(o),l=Ad(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ni(o)&&!l&&$0(e,o))?r=r.filter(c=>c!==o):s=a,o=Qr(o)}return t.set(e,r),r}function L5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?A5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=up(t,c,s);return u.top=Ar(d.top,u.top),u.right=mc(d.right,u.right),u.bottom=mc(d.bottom,u.bottom),u.left=Ar(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 M5(e){return M0(e)}function D5(e,t,n){const r=zt(t),s=on(t),i=n==="fixed",o=rr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=An(0);if(r||!r&&!i)if((_n(t)!=="body"||Ni(s))&&(a=Wa(t)),r){const u=rr(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=F0(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!zt(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function z0(e,t){const n=Je(e);if(!zt(e))return n;let r=cp(e,t);for(;r&&d5(r)&&mt(r).position==="static";)r=cp(r,t);return r&&(_n(r)==="html"||_n(r)==="body"&&mt(r).position==="static"&&!Ad(r))?n:r||f5(e)||n}const F5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||z0,i=this.getDimensions;return{reference:D5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function $5(e){return mt(e).direction==="rtl"}const z5={convertOffsetParentRelativeRectToViewportRelativeRect:N5,getDocumentElement:on,getClippingRect:L5,getOffsetParent:z0,getElementRects:F5,getClientRects:j5,getDimensions:M5,getScale:Lr,isElement:Xe,isRTL:$5};function U5(e,t){let n=null,r;const s=on(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 m=ro(c),p=ro(s.clientWidth-(u+d)),w=ro(s.clientHeight-(c+h)),S=ro(u),v={rootMargin:-m+"px "+-p+"px "+-w+"px "+-S+"px",threshold:Ar(0,mc(1,l))||1};let y=!0;function b(E){const k=E[0].intersectionRatio;if(k!==l){if(!y)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function B5(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=Fd(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?U5(u,n):null;let h=-1,m=null;o&&(m=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let p,w=l?rr(e):null;l&&S();function S(){const g=rr(e);w&&(g.x!==w.x||g.y!==w.y||g.width!==w.width||g.height!==w.height)&&n(),w=g,p=requestAnimationFrame(S)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const V5=(e,t,n)=>{const r=new Map,s={platform:z5,...n},i={...s.platform,_c:r};return b5(e,t,{...s,platform:i})};var Oo=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ga(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(!ga(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)&&!ga(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function U0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const n=U0(e);return Math.round(t*n)/n}function fp(e){const t=x.useRef(e);return Oo(()=>{t.current=e}),t}function H5(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,m]=x.useState(r);ga(h,r)||m(r);const[p,w]=x.useState(null),[S,g]=x.useState(null),v=x.useCallback(A=>{A!=k.current&&(k.current=A,w(A))},[w]),y=x.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[g]),b=i||p,E=o||S,k=x.useRef(null),R=x.useRef(null),P=x.useRef(c),L=fp(l),M=fp(s),T=x.useCallback(()=>{if(!k.current||!R.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),V5(k.current,R.current,A).then($=>{const N={...$,isPositioned:!0};D.current&&!ga(P.current,N)&&(P.current=N,ki.flushSync(()=>{d(N)}))})},[h,t,n,M]);Oo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const D=x.useRef(!1);Oo(()=>(D.current=!0,()=>{D.current=!1}),[]),Oo(()=>{if(b&&(k.current=b),E&&(R.current=E),b&&E){if(L.current)return L.current(b,E,T);T()}},[b,E,T,L]);const U=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:y}),[v,y]),C=x.useMemo(()=>({reference:b,floating:E}),[b,E]),O=x.useMemo(()=>{const A={position:n,left:0,top:0};if(!C.floating)return A;const $=dp(C.floating,c.x),N=dp(C.floating,c.y);return a?{...A,transform:"translate("+$+"px, "+N+"px)",...U0(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:N}},[n,a,C.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:T,refs:U,elements:C,floatingStyles:O}),[c,T,U,C,O])}var B0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Ql=!1,q5=0;const hp=()=>"floating-ui-"+q5++;function Q5(){const[e,t]=x.useState(()=>Ql?hp():void 0);return B0(()=>{e==null&&t(hp())},[]),x.useEffect(()=>{Ql||(Ql=!0)},[]),e}const K5=pm["useId".toString()],W5=K5||Q5;function Z5(){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 G5=x.createContext(null),X5=()=>x.useContext(G5),Y5=pm["useInsertionEffect".toString()],J5=Y5||(e=>e());function eb(e){const t=x.useRef(()=>{});return J5(()=>{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 tb(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=H5(e),u=X5(),c=eb((b,E)=>{b&&(h.current.openEvent=E),r==null||r(b,E)}),d=x.useRef(null),h=x.useRef({}),m=x.useState(()=>Z5())[0],p=W5(),w=x.useCallback(b=>{const E=Xe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(E)},[l.refs]),S=x.useCallback(b=>{(Xe(b)||b===null)&&(d.current=b,o(b)),(Xe(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Xe(b))&&l.refs.setReference(b)},[l.refs]),g=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:w,domReference:d}),[l.refs,S,w]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),y=x.useMemo(()=>({...l,refs:g,elements:v,dataRef:h,nodeId:s,floatingId:p,events:m,open:n,onOpenChange:c}),[l,s,p,m,n,c,g,v]);return B0(()=>{const b=u==null?void 0:u.nodesRef.current.find(E=>E.id===s);b&&(b.context=y)}),x.useMemo(()=>({...l,context:y,refs:g,elements:v}),[l,g,v,y])}const nb=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=tb({placement:e,open:n,onOpenChange:r,whileElementsMounted:B5,middleware:[k5(4),E5({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 T=Object.values(h.current)[s],D=T.getAttribute("id");a(D),T.focus()}},[s]);const m=()=>{const D=Object.values(h.current).length;i(U=>(U+1)%D)},p=()=>{const D=Object.values(h.current).length;i(U=>(U-1+D)%D)},w=()=>{i(0)},S=()=>{const D=Object.values(h.current).length;i(D-1)},g=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),y=(T,D)=>{T&&(D.stopPropagation(),D.preventDefault())},b=x.useCallback(T=>{let D=!1;switch(T.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),D=!0;break;case"Esc":case"Escape":v(),D=!0;break;case"Up":case"ArrowUp":g(),D=!0;break}y(D,T)},[v,g]),E=T=>{const U=Object.values(h.current).findIndex(C=>C.id===T.currentTarget.getAttribute("id"));i(U)},k=x.useCallback((T,D)=>{T.preventDefault();let U=!1;if(T.shiftKey)T.key==="Tab"&&(v(),U=!0);else{switch(T.code){case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),D==null||D()),U=!0;break;case"ArrowDown":case"Down":m(),U=!0;break;case"ArrowUp":case"Up":p(),U=!0;break;case"Home":w(),U=!0;break;case"End":S(),U=!0;break}y(U,T)}},[s,v]),R=x.useCallback(T=>{r(n!==!0),T.stopPropagation(),T.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function L(T,...D){D.forEach(U=>{typeof U=="function"?U(T):U!=null&&(U.current=T)})}function M(...T){return D=>{L(D,...T)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:M(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:R,onKeyDown:b},menuProps:{ref:M(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,"aria-activedescendant":o,style:{...u}},itemProps:{onMenuItemMouseEnter:E,onMenuItemClick:P,onMenuItemKeyDown:k},setVisible:r}},rb=nb,V0=({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}=rb(r),d=e0(()=>c(!1)),h=x.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t}),[s,i,o,a,l,u,t]),m=H("dropdown",{"w-100":t,overflow:n});return f.jsx(C0.Provider,{value:h,children:f.jsx("div",{ref:d,className:m,children:typeof e=="function"?e(o,u):e})})};V0.displayName="Dropdown";const sb=Object.assign(V0,{Trigger:c5,Menu:i5,Item:s5,Separator:u5,CheckboxItem:r5,RadioItem:l5,MenuGroup:o5}),fr=sb,H0=x.createContext(null),$d=()=>{const e=x.useContext(H0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},q0=({children:e})=>{const{status:t}=$d(),n=H("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};q0.displayName="Text";const ib=q0,Q0=x.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=$d(),u=H("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})]})});Q0.displayName="Label";const ob=Q0,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}=$d(),d=H({"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 W0=K0,Z0=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(H0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),ab=Object.assign(Z0,{Label:ob,Input:W0,Text:ib});Z0.displayName="FormControl";const vc=ab,Ms=({children:e,className:t,...n})=>{const r=H("grid",t);return f.jsx("div",{className:r,...n,children:e})},G0=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=H({[`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";G0.displayName="Grid.Col";Ms.Col=G0;const X0=x.forwardRef(({position:e=!0},t)=>{const[n]=Ha(),r=`${n}/loading/screen-loading.gif`,s=H("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"})]})});X0.displayName="LoadingScreen";const ze=X0,Y0=x.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=H("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"})})});Y0.displayName="Logo";const pp=Y0;var lb=Object.defineProperty,ub=(e,t)=>{for(var n in t)lb(e,n,{get:t[n],enumerable:!0})},Pt={};ub(Pt,{assign:()=>fb,colors:()=>jn,createStringInterpolator:()=>Qd,skipAnimation:()=>iv,to:()=>sv,willAdvance:()=>Kd});var zd=Ti(),V=e=>ji(e,zd),Ud=Ti();V.write=e=>ji(e,Ud);var Ga=Ti();V.onStart=e=>ji(e,Ga);var Bd=Ti();V.onFrame=e=>ji(e,Bd);var Vd=Ti();V.onFinish=e=>ji(e,Vd);var Mr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const i=Mr.findIndex(o=>o.cancel==r);~i&&Mr.splice(i,1),xn-=~i?1:0},s={time:n,handler:e,cancel:r};return Mr.splice(J0(n),0,s),xn+=1,ev(),s};var J0=e=>~(~Mr.findIndex(t=>t.time>e)||~Mr.length);V.cancel=e=>{Ga.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};V.sync=e=>{yc=!0,V.batchedUpdates(e),yc=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,V.onStart(n)}return r.handler=e,r.cancel=()=>{Ga.delete(n),t=null},r};var Hd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Hd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):nv()};var wn=-1,xn=0,yc=!1;function ji(e,t){yc?(t.delete(e),e(0)):(t.add(e),ev())}function ev(){wn<0&&(wn=0,V.frameLoop!=="demand"&&Hd(tv))}function cb(){wn=-1}function tv(){~wn&&(Hd(tv),V.batchedUpdates(nv))}function nv(){const e=wn;wn=V.now();const t=J0(wn);if(t&&(rv(Mr.splice(0,t),n=>n.handler()),xn-=t),!xn){cb();return}Ga.flush(),zd.flush(e?Math.min(64,wn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function Ti(){let e=new Set,t=e;return{add(n){xn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xn-=t.size,rv(t,r=>r(n)&&e.add(r)),xn+=e.size,t=e)}}}function rv(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function wc(){}var db=(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 Qt(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 Ut(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 je=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,sv,jn=null,iv=!1,Kd=wc,fb=e=>{e.to&&(sv=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(jn=e.colors),e.skipAnimation!=null&&(iv=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Kd=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Fs=new Set,ct=[],Kl=[],va=0,Xa={get idle(){return!Fs.size&&!ct.length},start(e){va>e.priority?(Fs.add(e),V.onStart(hb)):(ov(e),V(xc))},advance:xc,sort(e){if(va)V.onFrame(()=>Xa.sort(e));else{const t=ct.indexOf(e);~t&&(ct.splice(t,1),av(e))}},clear(){ct=[],Fs.clear()}};function hb(){Fs.forEach(ov),Fs.clear(),V(xc)}function ov(e){ct.includes(e)||av(e)}function av(e){ct.splice(pb(ct,t=>t.priority>e.priority),0,e)}function xc(e){const t=Kl;for(let n=0;n<ct.length;n++){const r=ct[n];va=r.priority,r.idle||(Kd(r),r.advance(e),r.idle||t.push(r))}return va=0,Kl=ct,Kl.length=0,ct=t,ct.length>0}function pb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var mb=(e,t,n)=>Math.min(Math.max(n,e),t),gb={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},Ct="[-+]?\\d*\\.?\\d+",ya=Ct+"%";function Ya(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var vb=new RegExp("rgb"+Ya(Ct,Ct,Ct)),yb=new RegExp("rgba"+Ya(Ct,Ct,Ct,Ct)),wb=new RegExp("hsl"+Ya(Ct,ya,ya)),xb=new RegExp("hsla"+Ya(Ct,ya,ya,Ct)),Sb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cb=/^#([0-9a-fA-F]{6})$/,Eb=/^#([0-9a-fA-F]{8})$/;function Rb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Cb.exec(e))?parseInt(t[1]+"ff",16)>>>0:jn&&jn[e]!==void 0?jn[e]:(t=vb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|255)>>>0:(t=yb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|vp(t[4]))>>>0:(t=Sb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Eb.exec(e))?parseInt(t[1],16)>>>0:(t=bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=wb.exec(e))?(mp(gp(t[1]),so(t[2]),so(t[3]))|255)>>>0:(t=xb.exec(e))?(mp(gp(t[1]),so(t[2]),so(t[3]))|vp(t[4]))>>>0:null}function Wl(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=Wl(s,r,e+1/3),o=Wl(s,r,e),a=Wl(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function hr(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 so(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yp(e){let t=Rb(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 ci=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return ci({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=Pb(u,i);return kb(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function kb(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 Pb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Ob=(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 mb(0,1,s/e)},wa=1.70158,io=wa*1.525,wp=wa+1,xp=2*Math.PI/3,Sp=2*Math.PI/4.5,oo=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,Nb={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-wa*e*e,easeOutBack:e=>1+wp*Math.pow(e-1,3)+wa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((io+1)*2*e-io)/2:(Math.pow(2*e-2,2)*((io+1)*(e*2-2)+io)+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-oo(1-e),easeOutBounce:oo,easeInOutBounce:e=>e<.5?(1-oo(1-2*e))/2:(1+oo(2*e-1))/2,steps:Ob},di=Symbol.for("FluidValue.get"),Wr=Symbol.for("FluidValue.observers"),ut=e=>!!(e&&e[di]),De=e=>e&&e[di]?e[di]():e,bp=e=>e[Wr]||null;function jb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function fi(e,t){const n=e[Wr];n&&n.forEach(r=>{jb(r,t)})}var lv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Tb(this,e)}},Tb=(e,t)=>uv(e,di,t);function es(e,t){if(e[di]){let n=e[Wr];n||uv(e,Wr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function hi(e,t){const n=e[Wr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Wr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var uv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),No=/[+\-]?(?: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(`(${No.source})(%|[a-z]+)`,"i"),_b=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ja=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,cv=e=>{const[t,n]=Ab(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&&Ja.test(n))return cv(n);if(n)return n}return e},Ab=e=>{const t=Ja.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Zl,Lb=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,dv=e=>{Zl||(Zl=jn?new RegExp(`(${Object.keys(jn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>De(i).replace(Ja,cv).replace(Ib,yp).replace(Zl,yp)),n=t.map(i=>i.match(No).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=>ci({...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(No,""));let a=0;return t[0].replace(No,()=>`${s[a++](i)}${o||""}`).replace(_b,Lb)}},Wd="react-spring: ",fv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Wd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Mb=fv(console.warn);function Db(){Mb(`${Wd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Fb=fv(console.warn);function $b(){Fb(`${Wd}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 el(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&Ja.test(e)||e in(jn||{}))}var Zn=qd()?x.useEffect:x.useLayoutEffect,zb=()=>{const e=x.useRef(!1);return Zn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Zd(){const e=x.useState()[1],t=zb();return()=>{t.current&&e(Math.random())}}function Ub(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Bb(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 Bb(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 Gd=e=>x.useEffect(e,Vb),Vb=[];function Sc(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var pi=Symbol.for("Animated:node"),Hb=e=>!!e&&e[pi]===e,Lt=e=>e&&e[pi],Xd=(e,t)=>db(e,pi,t),tl=e=>e&&e[pi]&&e[pi].getPayload(),hv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ii=class extends hv{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 Ii(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)}},mi=class extends Ii{constructor(e){super(0),this._string=null,this._toString=ci({output:[e,e]})}static create(e){return new mi(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=ci({output:[this.getValue(),e]})),this._value=0,super.reset()}},xa={dependencies:null},nl=class extends hv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ut(this.source,(n,r)=>{Hb(n)?t[r]=n.getValue(e):ut(n)?t[r]=De(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 Ut(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xa.dependencies&&ut(e)&&xa.dependencies.add(e);const t=tl(e);t&&B(t,n=>this.add(n))}},pv=class extends nl{constructor(e){super(e)}static create(e){return new pv(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(el(e)?mi:Ii).create(e)}function bc(e){const t=Lt(e);return t?t.constructor:j.arr(e)?pv:el(e)?mi:Ii}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(p=>{i.current=Wb(s,p)},[s]),[a,l]=Kb(r,t),u=Zd(),c=()=>{const p=i.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new Qb(c,l),h=x.useRef();Zn(()=>(h.current=d,B(l,p=>es(p,d)),()=>{h.current&&(B(h.current.deps,p=>hi(p,h.current)),V.cancel(h.current.update))})),x.useEffect(c,[]),Gd(()=>()=>{const p=h.current;B(p.deps,w=>hi(w,p))});const m=t.getComponentProps(a.getValue());return x.createElement(e,{...m,ref:o})})},Qb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function Kb(e,t){const n=new Set;return xa.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new nl(e),xa.dependencies=null,[e,n]}function Wb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Rp=Symbol.for("AnimatedComponent"),Zb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new nl(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 Ut(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 Fe(e,...t){return j.fun(e)?e(...t):e}var $s=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):je(e).includes(t))),mv=(e,t)=>j.obj(e)?t&&e[t]:e,gv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Gb=e=>e,rl=(e,t=Gb)=>{let n=Xb;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},Xb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Yb={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 Jb(e){const t={};let n=0;if(Ut(e,(r,s)=>{Yb[s]||(t[s]=r,n++)}),n)return t}function Yd(e){const t=Jb(e);if(t){const n={to:t};return Ut(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function gi(e){return e=De(e),j.arr(e)?e.map(gi):el(e)?Pt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function vv(e){for(const t in e)return!0;return!1}function Cc(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function Ec(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function yv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var eC={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}},Rc={...eC.default,mass:1,damping:1,easing:Nb.linear,clamp:!1},tC=class{constructor(){this.velocity=0,Object.assign(this,Rc)}};function nC(e,t,n){n&&(n={...n},Pp(n,t),t={...n,...t}),Pp(e,t),Object.assign(e,t);for(const o in Rc)e[o]==null&&(e[o]=Rc[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=[],rC=class{constructor(){this.changed=!1,this.values=Op,this.toValues=null,this.fromValues=Op,this.config=new tC,this.immediate=!1}};function wv(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)m();else{j.und(n.pause)||(s.paused=$s(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=s.paused||$s(p,t)),l=Fe(n.delay||0,t),p?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!Pt.skipAnimation?(s.delayed=!0,u=V.setTimeout(m,l),s.pauseQueue.add(d),s.timeouts.add(u)):m()}function m(){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(p){a(p)}}})}var Jd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Dr(e.get()):t.every(n=>n.noop)?xv(e.get()):bt(e.get(),t.every(n=>n.finished)),xv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Dr=e=>({value:e,cancelled:!0,finished:!1});function Sv(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=rl(t,(S,g)=>g==="onRest"?void 0:S);let c,d;const h=new Promise((S,g)=>(c=S,d=g)),m=S=>{const g=s<=(n.cancelId||0)&&Dr(r)||s!==n.asyncId&&bt(r,!1);if(g)throw S.result=g,d(S),S},p=(S,g)=>{const v=new Np,y=new jp;return(async()=>{if(Pt.skipAnimation)throw vi(n),y.result=bt(r,!1),d(y),y;m(v);const b=j.obj(S)?{...S}:{...g,to:S};b.parentId=s,Ut(u,(k,R)=>{j.und(b[R])&&(b[R]=k)});const E=await r.start(b);return m(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),E})()};let w;if(Pt.skipAnimation)return vi(n),bt(r,!1);try{let S;j.arr(e)?S=(async g=>{for(const v of g)await p(v)})(e):S=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([S.then(c),h]),w=bt(r.get(),!0,!1)}catch(S){if(S instanceof Np)w=S.result;else if(S instanceof jp)w=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)&&V.batchedUpdates(()=>{o(w,r,r.item)}),w})()}function vi(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")}},kc=e=>e instanceof ef,sC=1,ef=class extends lv{constructor(){super(...arguments),this.id=sC++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Lt(this);return e&&e.getValue()}to(...e){return Pt.to(this,e)}interpolate(...e){return Db(),Pt.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){fi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Xa.sort(this),fi(this,{type:"priority",parent:this,priority:e})}},sr=Symbol.for("SpringPhase"),bv=1,Pc=2,Oc=4,Gl=e=>(e[sr]&bv)>0,cn=e=>(e[sr]&Pc)>0,ps=e=>(e[sr]&Oc)>0,Tp=(e,t)=>t?e[sr]|=Pc|bv:e[sr]&=~Pc,Ip=(e,t)=>t?e[sr]|=Oc:e[sr]&=~Oc,iC=class extends ef{constructor(e,t){if(super(),this.animation=new rC,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!(cn(this)||this._state.asyncTo)||ps(this)}get goal(){return De(this.animation.to)}get velocity(){const e=Lt(this);return e instanceof Ii?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Gl(this)}get isAnimating(){return cn(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=tl(r.to);!o&&ut(r.to)&&(s=je(De(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==mi?1:o?o[c].lastPosition:s[c];let h=r.immediate,m=d;if(!h){if(m=u.lastPosition,i.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const w=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||(w==d?.005:Math.min(1,Math.abs(d-w)*.001));if(j.und(i.duration))if(i.decay){const y=i.decay===!0?.998:i.decay,b=Math.exp(-(1-y)*p);m=w+S/(1-y)*(1-b),h=Math.abs(u.lastPosition-m)<=v,g=S*b}else{g=u.lastVelocity==null?S:u.lastVelocity;const y=i.restVelocity||v/10,b=i.clamp?0:i.bounce,E=!j.und(b),k=w==d?u.v0>0:w<d;let R,P=!1;const L=1,M=Math.ceil(e/L);for(let T=0;T<M&&(R=Math.abs(g)>y,!(!R&&(h=Math.abs(d-m)<=v,h)));++T){E&&(P=m==d||m>d==k,P&&(g=-g*b,m=d));const D=-i.tension*1e-6*(m-d),U=-i.friction*.001*g,C=(D+U)/i.mass;g=g+C*L,m=m+g*L}}else{let y=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,p=u.elapsedTime+=e)),y=(i.progress||0)+p/this._memoizedDuration,y=y>1?1:y<0?0:y,u.durationProgress=y),m=w+i.easing(y)*(d-w),g=(m-u.lastPosition)/e,h=y==1}u.lastVelocity=g,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(m,i.round)&&(n=!0)});const a=Lt(this),l=a.getValue();if(t){const u=De(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 V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(cn(this)){const{to:e,config:t}=this.animation;V.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()),vi(this._state,e&&this._lastCallId),V.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||Cc(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Gl(this)||(e.reverse&&([n,r]=[r,n]),r=De(r),j.und(r)?Lt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,rl(e,(o,a)=>/^on/.test(a)?mv(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 wv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(Ip(this,!0),Cs(i.pauseQueue),gs(this,"onPause",bt(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(Ip(this,!1),cn(this)&&this._resume(),Cs(i.resumeQueue),gs(this,"onResume",bt(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=Cv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Dr(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(Dr(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=!Qt(d,u);h&&(a.from=d),d=De(d);const m=!Qt(c,l);m&&this._focus(c);const p=Cc(t.to),{config:w}=a,{decay:S,velocity:g}=w;(r||s)&&(w.velocity=0),t.config&&!p&&nC(w,Fe(t.config,i),t.config!==o.config?Fe(o.config,i):void 0);let v=Lt(this);if(!v||j.und(c))return n(bt(this,!0));const y=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=y?d:this.get(),E=gi(c),k=j.num(E)||j.arr(E)||el(E),R=!p&&(!k||$s(o.immediate||t.immediate,i));if(m){const T=bc(c);if(T!==v.constructor)if(R)v=this._set(E);else throw Error(`Cannot animate between ${v.constructor.name} and ${T.name}, as the "to" prop suggests`)}const P=v.constructor;let L=ut(c),M=!1;if(!L){const T=y||!Gl(this)&&h;(m||T)&&(M=Qt(gi(b),E),L=!M),(!Qt(a.immediate,R)&&!R||!Qt(w.decay,S)||!Qt(w.velocity,g))&&(L=!0)}if(M&&cn(this)&&(a.changed&&!y?L=!0:L||this._stop(l)),!p&&((L||ut(l))&&(a.values=v.getPayload(),a.toValues=ut(c)?null:P==mi?[1]:je(E)),a.immediate!=R&&(a.immediate=R,!R&&!y&&this._set(l)),L)){const{onRest:T}=a;B(aC,U=>Ap(this,t,U));const D=bt(this,ms(this,l));Cs(this._pendingCalls,D),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var U;a.changed=!y,T==null||T(D,this),y?Fe(o.onRest,D):(U=a.onStart)==null||U.call(a,D,this)})}y&&this._set(b),p?n(Sv(t.to,t,this._state,this)):L?this._start():cn(this)&&!m?this._pendingCalls.add(n):n(xv(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;ut(t)&&(es(t,this),kc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ut(e)&&hi(e,this)}_set(e,t=!0){const n=De(e);if(!j.und(n)){const r=Lt(this);if(!r||!Qt(n,r.getValue())){const s=bc(n);!r||r.constructor!=s?Xd(this,s.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return Lt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gs(this,"onStart",bt(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fe(this.animation.onChange,e,this)),Fe(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Lt(this).reset(De(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),cn(this)||(Tp(this,!0),ps(this)||this._resume())}_resume(){Pt.skipAnimation?this.finish():Xa.start(this)}_stop(e,t){if(cn(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),fi(this,{type:"idle",parent:this});const r=t?Dr(this.get()):bt(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=gi(t),r=gi(e.get());return Qt(r,n)}function Cv(e,t=e.loop,n=e.to){const r=Fe(t);if(r){const s=r!==!0&&Yd(r),i=(s||e).reverse,o=!s||s.reset;return yi({...e,loop:t,default:!1,pause:void 0,to:!i||Cc(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function yi(e){const{to:t,from:n}=e=Yd(e),r=new Set;return j.obj(t)&&_p(t,r),j.obj(n)&&_p(n,r),e.keys=r.size?Array.from(r):null,e}function oC(e){const t=yi(e);return j.und(t.default)&&(t.default=rl(t)),t}function _p(e,t){Ut(e,(n,r)=>n!=null&&t.add(r))}var aC=["onStart","onRest","onChange","onPause","onResume"];function Ap(e,t,n){e.animation[n]=t[n]!==gv(t,n)?mv(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 lC=["onStart","onChange","onRest"],uC=1,Ev=class{constructor(e,t){this.id=uC++,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(yi(e)),this}start(e){let{queue:t}=this;return e?t=je(e).map(yi):this.queue=[],this._flush?this._flush(this,t):(Nv(this,t),Nc(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;B(je(t),r=>n[r].stop(!!e))}else vi(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(je(e),n=>t[n].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;B(je(e),n=>t[n].resume())}return this}each(e){Ut(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;V.onFrame(this._onFrame)}};function Nc(e,t){return Promise.all(t.map(n=>Rv(e,n))).then(n=>Jd(e,n))}async function Rv(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(lC,w=>{const S=t[w];if(j.fun(S)){const g=e._events[w];t[w]=({finished:v,cancelled:y})=>{const b=g.get(S);b?(v||(b.finished=!1),y&&(b.cancelled=!0)):g.set(S,{value:null,finished:v||!1,cancelled:y||!1})},u&&(u[w]=t[w])}});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(w=>e.springs[w].start(t)),m=t.cancel===!0||gv(t,"cancel")===!0;(c||m&&d.asyncId)&&h.push(wv(++e._lastAsyncId,{props:t,state:d,actions:{pause:wc,resume:wc,start(w,S){m?(vi(d,e._lastAsyncId),S(Dr(e))):(w.onRest=a,S(Sv(c,w,d,e)))}}})),d.paused&&await new Promise(w=>{d.resumeQueue.add(w)});const p=Jd(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const w=Cv(t,o,s);if(w)return Nv(e,[w]),Rv(e,w,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function jc(e,t){const n={...e.springs};return t&&B(je(t),r=>{j.und(r.keys)&&(r=yi(r)),j.obj(r.to)||(r={...r,to:void 0}),Ov(n,r,s=>Pv(s))}),kv(e,n),n}function kv(e,t){Ut(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Pv(e,t){const n=new iC;return n.key=e,t&&es(n,t),n}function Ov(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Nv(e,t){B(t,n=>{Ov(e.springs,n,r=>Pv(r,e))})}var _i=({children:e,...t})=>{const n=x.useContext(Sa),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Ub(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Sa;return x.createElement(i,{value:t},e)},Sa=cC(_i,{});_i.Provider=Sa.Provider;_i.Consumer=Sa.Consumer;function cC(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var jv=()=>{const e=[],t=function(r){$b();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 dC(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?jv():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const y=jc(g,v);return i.current>0&&!a.queue.length&&!Object.keys(y).some(E=>!g.springs[E])?Nc(g,v):new Promise(E=>{kv(g,y),a.queue.push(()=>{E(Nc(g,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Sc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),g=>{Ec(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 y=g;y<v;y++){const b=l.current[y]||(l.current[y]=new Ev(null,a.flush)),E=r?r(y,b):t[y];E&&(u[y]=oC(E))}}const h=l.current.map((g,v)=>jc(g,u[v])),m=x.useContext(_i),p=Sc(m),w=m!==p&&vv(m);Zn(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],B(g,v=>v())),B(l.current,(v,y)=>{s==null||s.add(v),w&&v.start({default:m});const b=u[y];b&&(yv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Gd(()=>()=>{B(a.ctrls,g=>g.stop(!0))});const S=h.map(g=>({...g}));return s?[S,s]:S}function ak(e,t){const n=j.fun(e),[[r],s]=dC(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?jv():void 0,[]),m=je(e),p=[],w=x.useRef(null),S=s?null:w.current;Zn(()=>{w.current=p}),Gd(()=>(B(p,C=>{h==null||h.add(C.ctrl),C.ctrl.ref=h}),()=>{B(w.current,C=>{C.expired&&clearTimeout(C.expirationId),Ec(C.ctrl,h),C.ctrl.stop(!0)})}));const g=hC(m,r?r():t,S),v=s&&w.current||[];Zn(()=>B(v,({ctrl:C,item:O,key:A})=>{Ec(C,h),Fe(u,O,A)}));const y=[];if(S&&B(S,(C,O)=>{C.expired?(clearTimeout(C.expirationId),v.push(C)):(O=y[O]=g.indexOf(C.key),~O&&(p[O]=C))}),B(m,(C,O)=>{p[O]||(p[O]={key:g[O],item:C,phase:"mount",ctrl:new Ev},p[O].ctrl.item=C)}),y.length){let C=-1;const{leave:O}=r?r():t;B(y,(A,$)=>{const N=S[$];~A?(C=p.indexOf(N),p[C]={...N,item:m[A]}):O&&p.splice(++C,0,N)})}j.fun(i)&&p.sort((C,O)=>i(C.item,O.item));let b=-o;const E=Zd(),k=rl(t),R=new Map,P=x.useRef(new Map),L=x.useRef(!1);B(p,(C,O)=>{const A=C.key,$=C.phase,N=r?r():t;let _,z;const Z=Fe(N.delay||0,A);if($=="mount")_=N.enter,z="enter";else{const ye=g.indexOf(A)<0;if($!="leave")if(ye)_=N.leave,z="leave";else if(_=N.update)z="update";else return;else if(!ye)_=N.enter,z="enter";else return}if(_=Fe(_,C.item,O),_=j.obj(_)?Yd(_):{to:_},!_.config){const ye=d||k.config;_.config=Fe(ye,C.item,O,z)}b+=o;const W={...k,delay:Z+b,ref:c,immediate:N.immediate,reset:!1,..._};if(z=="enter"&&j.und(W.from)){const ye=r?r():t,G=j.und(ye.initial)||S?ye.from:ye.initial;W.from=Fe(G,C.item,O)}const{onResolve:an}=W;W.onResolve=ye=>{Fe(an,ye);const G=w.current,he=G.find(jt=>jt.key===A);if(he&&!(ye.cancelled&&he.phase!="update")&&he.ctrl.idle){const jt=G.every(Tt=>Tt.ctrl.idle);if(he.phase=="leave"){const Tt=Fe(a,he.item);if(Tt!==!1){const ln=Tt===!0?0:Tt;if(he.expired=!0,!jt&&ln>0){ln<=2147483647&&(he.expirationId=setTimeout(E,ln));return}}}jt&&G.some(Tt=>Tt.expired)&&(P.current.delete(he),l&&(L.current=!0),E())}};const it=jc(C.ctrl,W);z==="leave"&&l?P.current.set(C,{phase:z,springs:it,payload:W}):R.set(C,{phase:z,springs:it,payload:W})});const M=x.useContext(_i),T=Sc(M),D=M!==T&&vv(M);Zn(()=>{D&&B(p,C=>{C.ctrl.start({default:M})})},[M]),B(R,(C,O)=>{if(P.current.size){const A=p.findIndex($=>$.key===O.key);p.splice(A,1)}}),Zn(()=>{B(P.current.size?P.current:R,({phase:C,payload:O},A)=>{const{ctrl:$}=A;A.phase=C,h==null||h.add($),D&&C=="enter"&&$.start({default:M}),O&&(yv($,O.ref),($.ref||h)&&!L.current?$.update(O):($.start(O),L.current&&(L.current=!1)))})},s?void 0:n);const U=C=>x.createElement(x.Fragment,null,p.map((O,A)=>{const{springs:$}=R.get(O)||O.ctrl,N=C({...$},O.item,O,A);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(O.key)||j.num(O.key)?O.key:O.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var fC=1;function hC(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):fC++})}return j.und(n)?e:j.fun(n)?e.map(n):je(n)}var pC=class extends ef{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ci(...t);const n=this._get(),r=bc(n);Xd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Qt(t,n)||(Lt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Lp(this._active)&&Xl(this)}_get(){const e=j.arr(this.source)?this.source.map(De):je(De(this.source));return this.calc(...e)}_start(){this.idle&&!Lp(this._active)&&(this.idle=!1,B(tl(this),e=>{e.done=!1}),Pt.skipAnimation?(V.batchedUpdates(()=>this.advance()),Xl(this)):Xa.start(this))}_attach(){let e=1;B(je(this.source),t=>{ut(t)&&es(t,this),kc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){B(je(this.source),e=>{ut(e)&&hi(e,this)}),this._active.clear(),Xl(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=je(this.source).reduce((t,n)=>Math.max(t,(kc(n)?n.priority:0)+1),0))}};function mC(e){return e.idle!==!1}function Lp(e){return!e.size||Array.from(e).every(mC)}function Xl(e){e.idle||(e.idle=!0,B(tl(e),t=>{t.done=!0}),fi(e,{type:"idle",parent:e}))}Pt.assign({createStringInterpolator:dv,to:(e,t)=>new pC(e,t)});var Tv=/^--/;function gC(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Tv.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Mp={};function vC(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=gC(d,r[d]);Tv.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},yC=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),wC=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(wC.forEach(n=>e[yC(n,t)]=e[t]),e),zs);var xC=/^(matrix|translate|scale|rotate|skew)/,SC=/^(translate)/,bC=/^(rotate|skew)/,Yl=(e,t)=>j.num(e)&&e!==0?e+t:e,jo=(e,t)=>j.arr(e)?e.every(n=>jo(n,t)):j.num(e)?e===t:parseFloat(e)===t,CC=class extends nl{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=>Yl(a,"px")).join(",")})`,jo(o,0)])),Ut(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(xC.test(a)){if(delete r[a],j.und(o))return;const l=SC.test(a)?"px":bC.test(a)?"deg":"";s.push(je(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${Yl(h,l)})`,jo(h,0)]:u=>[`${a}(${u.map(c=>Yl(c,l)).join(",")})`,jo(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new EC(s,i)),super(r)}},EC=class extends lv{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=De(n[0]),[i,o]=this.transforms[r](j.arr(s)?s:n.map(De));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&B(this.inputs,t=>B(t,n=>ut(n)&&es(n,this)))}observerRemoved(e){e==0&&B(this.inputs,t=>B(t,n=>ut(n)&&hi(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),fi(this,e)}},RC=["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"];Pt.assign({batchedUpdates:ki.unstable_batchedUpdates,createStringInterpolator:dv,colors:gb});var kC=Zb(RC,{applyAnimatedValues:vC,createAnimatedStyle:e=>new CC(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ba=kC.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const Iv=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},_v=e=>{const{ariaDescriptionId:t}=Iv(),{children:n,className:r}=e,s=H("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};_v.displayName="Modal.Body";const PC=_v,Av=e=>f.jsx("div",{className:"modal-footer",children:e.children});Av.displayName="Modal.Footer";const OC=Av,Lv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=Iv(),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(Qa,{ref:i,"aria-label":"Close",color:"tertiary",icon:f.jsx(Y4,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Lv.displayName="Modal.Header";const NC=Lv,Mv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Mv.displayName="Modal.Subtitle";const jC=Mv,Dv=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=e0(s),m=z4();D4(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 p=H("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),w=H("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,y)=>f.jsxs(f.Fragment,{children:[y&&f.jsx(ba.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:p,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,y&&(m.current=b)},className:w,children:f.jsx("div",{className:"modal-content",children:u})})}),y&&f.jsx(ba.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),TC=Object.assign(Dv,{Header:NC,Subtitle:jC,Body:PC,Footer:OC});Dv.displayName="Modal";const Sn=TC,IC=({children:e,className:t})=>{const n=H("popover-body",t);return f.jsx("div",{className:n,children:e})},_C=({children:e,className:t})=>{const n=H("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=H("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}})((l,u)=>u&&f.jsx(ba.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function AC(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 Fv=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,m]=x.useState(!1),{handleItemClick:p,handleItemKeyDown:w,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:y}=AC(t,n,h,m,o,a,l,u,c);x.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(R=>R===t&&t!==k?(m(!0),R===t):(m(!1),!1))}else m(!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(hc,{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:p,onKeyDown:w,onFocus:v,onBlur:y,children:[s&&f.jsx(u3,{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()};Fv.displayName="TreeItem";const LC=Fv,$v=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)},m=g=>{i==null||i(g)},p=g=>{o==null||o(g)},w=g=>{a==null||a(g)},S=g=>f.jsx(LC,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:d,onItemFold:h,onItemUnfold:m,onItemFocus:p,onItemBlur:w,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)})});$v.displayName="TreeView";const MC=$v,zv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));zv.displayName="VisuallyHidden";const Es=zv,DC=()=>{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 X.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 X.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="";X.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}},FC=DC;function Jl({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function eu({children:e,className:t,...n}){const r=H("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Dp({children:e,className:t,...n}){const r=H("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ue=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ue.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=H("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 $C=()=>{const{t:e}=ve();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")})})})},zC=({bookmarkedApps:e})=>{const{t}=ve();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(pc,{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={},$n=Ue&&Ue.__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=Ue&&Ue.__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 Qe=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 sl=function(e){$n(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=sl;var Uv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(sl);q.Text=Uv;var Bv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(sl);q.Comment=Bv;var Vv=function(e){$n(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=Qe.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(sl);q.ProcessingInstruction=Vv;var il=function(e){$n(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=il;var Hv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(il);q.CDATA=Hv;var qv=function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Qe.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(il);q.Document=qv;var Qv=function(e){$n(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?Qe.ElementType.Script:n==="style"?Qe.ElementType.Style:Qe.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}(il);q.Element=Qv;function Kv(e){return(0,Qe.isTag)(e)}q.isTag=Kv;function Wv(e){return e.type===Qe.ElementType.CDATA}q.isCDATA=Wv;function Zv(e){return e.type===Qe.ElementType.Text}q.isText=Zv;function Gv(e){return e.type===Qe.ElementType.Comment}q.isComment=Gv;function Xv(e){return e.type===Qe.ElementType.Directive}q.isDirective=Xv;function Yv(e){return e.type===Qe.ElementType.Root}q.isDocument=Yv;function UC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=UC;function lf(e,t){t===void 0&&(t=!1);var n;if(Zv(e))n=new Uv(e.data);else if(Gv(e))n=new Bv(e.data);else if(Kv(e)){var r=t?tu(e.children):[],s=new Qv(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(Wv(e)){var r=t?tu(e.children):[],i=new Hv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Yv(e)){var r=t?tu(e.children):[],o=new qv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Xv(e)){var a=new Vv(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 tu(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=Ue&&Ue.__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=Ue&&Ue.__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",ao="body",BC=/<([a-zA-Z]+[0-9]?)/,zp=/<head[^]*>/i,Up=/<body[^]*>/i,Ca=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Tc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Bp=typeof window=="object"&&window.DOMParser;if(typeof Bp=="function"){var VC=new Bp,HC="text/html";Tc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),VC.parseFromString(e,HC)},Ca=Tc}if(typeof document=="object"&&document.implementation){var lo=document.implementation.createHTMLDocument();Ca=function(e,t){if(t){var n=lo.documentElement.querySelector(t);return n.innerHTML=e,lo}return lo.documentElement.innerHTML=e,lo}}var nu=typeof document=="object"?document.createElement("template"):{},Ic;nu.content&&(Ic=function(e){return nu.innerHTML=e,nu.content.childNodes});function qC(e){var t,n=e.match(BC);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case Fp:return r=Tc(e),zp.test(e)||(s=r.querySelector($p),s&&s.parentNode.removeChild(s)),Up.test(e)||(s=r.querySelector(ao),s&&s.parentNode.removeChild(s)),r.querySelectorAll(Fp);case $p:case ao:return r=Ca(e),i=r.querySelectorAll(t),Up.test(e)&&zp.test(e)?i[0].parentNode.childNodes:i;default:return Ic?Ic(e):(s=Ca(e,ao).querySelector(ao),s.childNodes)}}var QC=qC,uf={},Jv={};Jv.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 ol=sf,KC=Jv,Vp=KC.CASE_SENSITIVE_TAG_NAMES,WC=ol.Comment,ZC=ol.Element,GC=ol.ProcessingInstruction,XC=ol.Text,ey={},ru;for(var su=0,YC=Vp.length;su<YC;su++)ru=Vp[su],ey[ru.toLowerCase()]=ru;function JC(e){return ey[e]}function ty(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function eE(e){e=e.toLowerCase();var t=JC(e);return t||e}function ny(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=eE(a.nodeName),l=new ZC(s,ty(a.attributes)),l.children=ny(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new XC(a.nodeValue);break;case 8:l=new WC(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 GC(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=ty;uf.formatDOM=ny;var tE=QC,nE=uf,rE=nE.formatDOM,sE=/<(![a-zA-Z\s]+)>/;function iE(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(sE),n;return t&&t[1]&&(n=t[1]),rE(tE(e),null,n)}var oE=iE,vt={},al={},aE=0;al.SAME=aE;var lE=1;al.CAMELCASE=lE;al.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(vt,"__esModule",{value:!0});function uE(e,t){return cE(e)||dE(e,t)||fE(e,t)||hE()}function cE(e){if(Array.isArray(e))return e}function dE(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 fE(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 hE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
225
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
226
|
-
`,Kp="/",Wp="*",Hn="",TE="comment",IE="declaration",_E=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(p){var w=p.match(CE);w&&(n+=w.length);var S=p.lastIndexOf(jE);r=~S?p.length-S:r+p.length}function i(){var p={line:n,column:r};return function(w){return w.position=new o(p),u(),w}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var w=new Error(t.source+":"+n+":"+r+": "+p);if(w.reason=p,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function l(p){var w=p.exec(e);if(w){var S=w[0];return s(S),e=e.slice(S.length),w}}function u(){l(EE)}function c(p){var w;for(p=p||[];w=d();)w!==!1&&p.push(w);return p}function d(){var p=i();if(!(Kp!=e.charAt(0)||Wp!=e.charAt(1))){for(var w=2;Hn!=e.charAt(w)&&(Wp!=e.charAt(w)||Kp!=e.charAt(w+1));)++w;if(w+=2,Hn===e.charAt(w-1))return a("End of comment missing");var S=e.slice(2,w-2);return r+=2,s(S),e=e.slice(w),r+=2,p({type:TE,comment:S})}}function h(){var p=i(),w=l(RE);if(w){if(d(),!l(kE))return a("property missing ':'");var S=l(PE),g=p({type:IE,property:Zp(w[0].replace(Qp,Hn)),value:S?Zp(S[0].replace(Qp,Hn)):Hn});return l(OE),g}}function m(){var p=[];c(p);for(var w;w=h();)w!==!1&&(p.push(w),c(p));return p}return u(),m()};function Zp(e){return e?e.replace(NE,Hn):Hn}var AE=_E;function ay(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=AE(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=ay;pf.exports.default=ay;var LE=pf.exports,cl={};cl.__esModule=!0;cl.camelCase=void 0;var ME=/^--[a-zA-Z0-9-]+$/,DE=/-([a-z])/g,FE=/^[^-]+$/,$E=/^-(webkit|moz|ms|o|khtml)-/,zE=/^-(ms)-/,UE=function(e){return!e||FE.test(e)||ME.test(e)},BE=function(e,t){return t.toUpperCase()},Gp=function(e,t){return"".concat(t,"-")},VE=function(e,t){return t===void 0&&(t={}),UE(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(zE,Gp):e=e.replace($E,Gp),e.replace(DE,BE))};cl.camelCase=VE;(function(e){var t=Ue&&Ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(LE),r=cl;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})(oy);var HE=x,qE=oy.default;function QE(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 WE={reactCompat:!0};function ZE(e,t){if(e!=null)try{t.style=qE(e,WE)}catch{t.style={}}}var GE=HE.version.split(".")[0]>=16,ly=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function XE(e){return!ly.has(e.name)}var uy={PRESERVE_CUSTOM_ATTRIBUTES:GE,invertObject:QE,isCustomComponent:KE,setStyleProp:ZE,canTextBeChildOfNode:XE,elementsWithNoTextChildren:ly},Rs=vt,Xp=uy,YE=["checked","value"],JE=["input","select","textarea"],eR={reset:!0,submit:!0},cy=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&eR[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Yp(s),o){switch(a=Rs.getPropertyInfo(o),YE.indexOf(o)!==-1&&JE.indexOf(n)!==-1&&!u&&(o=Yp("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}Xp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Xp.setStyleProp(t.style,l),l};function Yp(e){return Rs.possibleStandardNames[e]}var tR=x,nR=cy,Ea=uy,rR=Ea.setStyleProp,sR=Ea.canTextBeChildOfNode;function dy(e,t){t=t||{};for(var n=t.library||tR,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,m=t.trim,p=0,w=e.length;p<w;p++){if(a=e[p],u&&(c=t.replace(a),i(c))){w>1&&(c=r(c,{key:c.key||p})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!sR(a.parent)||m&&l)continue;o.push(a.data);continue}switch(d=a.attribs,iR(a)?rR(d.style,d):d&&(d=nR(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=dy(a.children,t));break;default:continue}w>1&&(d.key=p),o.push(s(a.name,d,h))}return o.length===1?o[0]:o}function iR(e){return Ea.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Ea.isCustomComponent(e.name,e.attribs)}var oR=dy,dl=sf,Pr=oE,aR=cy,fy=oR;Pr=typeof Pr.default=="function"?Pr.default:Pr;var lR={lowerCaseAttributeNames:!1};function Bt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},fy(Pr(e,t.htmlparser2||lR),t))}Bt.domToReact=fy;Bt.htmlToDOM=Pr;Bt.attributesToProps=aR;Bt.Comment=dl.Comment;Bt.Element=dl.Element;Bt.ProcessingInstruction=dl.ProcessingInstruction;Bt.Text=dl.Text;var uR=Bt;Bt.default=Bt;const Un=Ra(uR);var uo=Un.domToReact;Un.htmlToDOM;var iu=Un.attributesToProps;Un.Comment;Un.Element;Un.ProcessingInstruction;Un.Text;function cR(){var w;const{appCode:e}=gt(),{theme:t}=Id(),[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 d={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(G4,{})}),uo(g.children,{replace:v=>{const y=v;if(y.attribs&&y.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:s?"block":"none"},children:uo(y.children,{replace:b=>{const E=b;if(E.attribs&&E.name==="a")return f.jsx("a",{...iu(E.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:uo(E.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const v=iu(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:uo(g.children,{replace:y=>{const b=y;if(b.attribs&&b.name==="img"){const E=y.attribs.src;return f.jsx("img",{...iu(b.attribs),src:`${c}/${E}`,alt:""})}}})})}}};console.log({html:n});const h=Un(n,d),m=(w=h==null?void 0:h.props)==null?void 0:w.children.find(S=>S.type==="body").props.children,p=m==null?void 0:m.find(S=>S.type==="p").props.children;return console.log({parsedContent:m}),{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:m,parsedHeadline:p,error:l}}const hy=()=>{const[e,t]=Xg(),n=x.useRef(null),r=x.useId(),{t:s}=ve();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(ue,{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(J3,{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(vc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(vc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(S0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};hy.displayName="SearchEngine";const dR=hy;function Jp({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ve(),o=()=>{t(!1)};return e?ki.createPortal(f.jsxs(Sn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[f.jsx(Sn.Header,{onModalClose:o,children:i("navbar.help")}),f.jsx(Sn.Subtitle,{children:s?i("help.notfound.title"):n}),f.jsx(Sn.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}const py=({is1d:e=!1,src:t=""})=>{const{t:n}=ve(),{messages:r,msgLink:s,zimbraWorkflow:i}=FC(),{user:o,avatar:a}=_d(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=cR(),m=H("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:w,appsRef:S,isAppsHovered:g,popoverAppsId:v,userAvatar:y,userName:b,welcomeUser:E,communityWorkflow:k,conversationWorflow:R,searchWorkflow:P,isCollapsed:L,toggleCollapsedNav:M,handleLogout:T}=VS({user:o,avatar:a}),D=r>0;return f.jsx("header",{className:m,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(eu,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(np,{alt:b,size:"sm",src:y,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:[R&&f.jsx(ue,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(Z3,{className:"icon notification"}),D&&f.jsx(Jl,{children:r}),f.jsx(Es,{children:n("navbar.messages")})]})}),f.jsx(ue,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(X3,{className:"icon user"})})}),f.jsxs(ue,{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(ue,{children:f.jsxs("button",{className:"nav-link",onClick:T,children:[f.jsx(sp,{className:"icon logout"}),f.jsx(Es,{children:n("navbar.disconnect")})]})}),f.jsx(ue,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!L,"aria-label":n("navbar.secondary.navigation"),onClick:M,children:f.jsx(hc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(eu,{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 ${L?"":"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(ue,{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(ue,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(t5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(ue,{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(eu,{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:p}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(ue,{children:f.jsx(vs,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx($3,{color:"#fff"})})}),f.jsxs(ue,{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(zC,{bookmarkedApps:w})}),f.jsx(_C,{className:"widget-footer border-top border-ghost",children:f.jsx($C,{})})]})]}),R&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),D&&f.jsx(Jl,{children:r})]})}),i&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:s,translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),D&&f.jsx(Jl,{children:r})]})}),f.jsxs(ue,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(B3,{color:"#fff"}),f.jsx(Es,{children:n("support")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ue,{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":!L,"aria-label":n("navbar.open.menu"),onClick:M,children:f.jsx(hc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${L?"":"show"}`,id:"dropdown-navbar",children:[k&&f.jsx(ue,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(M3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(dR,{}):null,f.jsx(ue,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(np,{alt:b,size:"sm",src:y,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(ue,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(ue,{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")})]})})]})]})})]})]})})})};py.displayName="Header";const fR=py;function my({children:e,className:t,...n}){const r=H("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}my.displayName="Main";const gy=({children:e,...t})=>{const{theme:n}=Id();return f.jsxs(f.Fragment,{children:[f.jsx(fR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(my,{className:H("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(L4,{toastOptions:{position:"top-right"}})]})};gy.displayName="Layout";const hR=gy,pR=function(){return null};var vy,em=ki;vy=em.createRoot,em.hydrateRoot;const _t=document.querySelector("[data-ode-app]");let ys;function fl(){var e;if(ys)return ys;if(ys={app:co.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=_t==null?void 0:_t.dataset)!=null&&e.odeApp){const{odeApp:t}=_t.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:",_t==null?void 0:_t.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",_t==null?void 0:_t.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},mR=e=>e?tm(e):tm;var yy={exports:{}},wy={};/**
|
|
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: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(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){const{x:n,y:r}=t,s=await O5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}},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={};/**
|
|
227
228
|
* @license React
|
|
228
229
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
229
230
|
*
|
|
@@ -231,4 +232,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
231
232
|
*
|
|
232
233
|
* This source code is licensed under the MIT license found in the
|
|
233
234
|
* LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/var hl=x,gR=Bg;function vR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yR=typeof Object.is=="function"?Object.is:vR,wR=gR.useSyncExternalStore,xR=hl.useRef,SR=hl.useEffect,bR=hl.useMemo,CR=hl.useDebugValue;wy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=xR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=bR(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),s!==void 0&&o.hasValue){var p=o.value;if(s(p,m))return d=p}return d=m}if(p=d,yR(c,m))return p;var w=r(m);return s!==void 0&&s(p,w)?p:(c=m,d=w)}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=wR(e,i[0],i[1]);return SR(function(){o.hasValue=!0,o.value=a},[a]),CR(a),a};yy.exports=wy;var ER=yy.exports;const RR=Ra(ER),{useSyncExternalStoreWithSelector:kR}=RR;function PR(e,t=e.getState,n){const r=kR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return x.useDebugValue(r),r}const nm=e=>{const t=typeof e=="function"?mR(e):e,n=(r,s)=>PR(t,r,s);return Object.assign(n,t),n},OR=e=>e?nm(e):nm,xy=async e=>{const t=await X.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},NR=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await X.resource(e.app).createFolder(r)},jR=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 X.resource(t.app).updateFolder(s)},TR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await X.resource(e.app).trashAll(s,n)},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 X.resource(e.app).deleteAll(s,n)},_R=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await X.resource(e.app).restoreAll(s,r)},AR=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await X.resource(e.app).moveToFolder(i,s)},LR=async({searchParams:e,entId:t,shares:n})=>await X.share().saveRights(e.app,t,n),MR=async({searchParams:e,params:t})=>await X.resource(e.app).update(t),DR=async e=>await X.rights().sessionHasWorkflowRights(e),FR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoView(t),$R=({searchParams:e,params:t})=>X.resource(e.app).create(t),zR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoPrint(t),UR=async({searchParams:e,params:t})=>await X.resource(e.app).publish(t),BR=async()=>await X.conf().getPreference("showOnboardingTrash"),VR=async({onSuccess:e})=>{const t=await X.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 wi(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=wi(e,i),n===void 0))),n)}function HR(e,t){var r;const n=wi(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===We.BIN?[We.BIN]:[We.DEFAULT]}function Sy(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Sy(t.id,n)):!1}function Ai(e,t){return by(e,t)||e}function by(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=by(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class pl{constructor(t){lr(this,"id");lr(this,"name");lr(this,"childNumber");lr(this,"section",!1);lr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Cy=(e,t,n)=>Ai(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new pl(s))),r)),{app:qR,types:QR,filters:KR,orders:WR}=fl(),Le=OR()((e,t)=>({filters:KR,orders:WR,searchConfig:{minLength:1},searchParams:{app:qR,types:QR,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:We.DEFAULT,name:Vt("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(({searchParams:r})=>r.search!==n.search?n.search?{selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...r,...n,filters:{...r.filters,folder:void 0}}}:{selectedFolders:[],selectedNodesIds:[],selectedResources:[],searchParams:{...r,...n,filters:{...r.filters}}}:{searchParams:{...r,...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();FR({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]);zR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await UR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=HR(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===We.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!Sy(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await xy({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Cy(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||We.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=wi(n,r);U4()(),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=wi(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||We.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:We.BIN},trashed:!0},currentFolder:{id:We.BIN}}))}})),st=()=>Le(e=>e.searchParams),gf=()=>Le(e=>e.selectedNodesIds),ts=()=>Le(e=>e.treeData),ZR=()=>Le(e=>e.selectedFolders),GR=()=>Le(e=>e.selectedResources),XR=()=>Le(e=>e.searchConfig),Li=()=>Le(e=>e.folderIds),Mi=()=>Le(e=>e.resourceIds),ml=()=>Le(e=>e.selectedResources.map(t=>t.assetId)),gl=()=>Le(e=>e.selectedResources.filter(t=>t.assetId===t.id)),ns=()=>Le(e=>e.currentFolder),Oe=()=>Le(e=>e.updaters),rs=()=>{const e=ns();return(e==null?void 0:e.id)===We.BIN},Ey=()=>Le(e=>e.resourceIsTrash),YR=()=>Le(e=>e.resourceActionDisable),JR=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},e8=()=>gf().length>1,t8=()=>Le(e=>e.status);function n8(){const{appCode:e}=gt(),{t}=ve(["common",e]),n=gf(),r=rs(),s=ns(),{gotoPreviousFolder:i}=Oe(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(s==null?void 0:s.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(Qa,{icon:f.jsx(Q4,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:i}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:l})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:r?o:a})})}function r8(e,{parentId:t,newFolder:n}){return Ai(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 pl({...n,ancestors:o})]}}else return r})}function s8(e,{folders:t}){return Ai(e,n=>{if(!t.includes(n.id))return n})}function i8(e,{destinationId:t,folders:n}){return Ai(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 m=wi(h,e);m&&u.push({...m,folder:{...m==null?void 0:m.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function o8(e,{folderId:t,newFolder:n}){return Ai(e,r=>r.id===t?new pl(n):r)}const{actions:rm,app:a8}=fl(),Ry=()=>Td({queryKey:["actions"],queryFn:async()=>{const e=rm.map(n=>n.workflow);return await DR(e)},select:e=>rm.map(t=>({...t,available:e[t.workflow]}))}),l8=()=>{const{hotToast:e}=Ot(Nt),{appCode:t}=gt(),{t:n}=ve(),r=rt(),s=st(),i=ns(),o=ts(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Oe(),{filters:c,trashed:d,search:h}=s,m=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return FS({queryKey:m,queryFn:async({pageParam:p=0})=>await xy({...s,pagination:{...s.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var S,g,v;await r.cancelQueries({queryKey:m});const w=[...((S=p==null?void 0:p.pages[0])==null?void 0:S.folders)??[]];(g=p==null?void 0:p.pages[0])!=null&&g.searchConfig&&u(p.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:We.DEFAULT,section:!0,children:w.map(y=>new pl(y)),name:n("explorer.filters.mine",{ns:t})}):a(Cy(o,w,s.filters.folder||We.DEFAULT))),l({...s,pagination:(v=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:p=>p.pagination.startIdx+p.pagination.pageSize})},lk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Li(),i=ml(),o=Mi(),a=gl().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:m,trashed:p}=n,w=["context",{folderId:m.folder,filters:m,trashed:p}];return sn({mutationFn:async()=>await TR({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(Vt(S))},onSuccess:async S=>{if(await t.cancelQueries({queryKey:w}),t.getQueryData(w))return t.setQueryData(w,v=>{var y;if(v){const b={...v,pages:v==null?void 0:v.pages.map(k=>{var R;return{...k,folders:k.folders.filter(P=>!s.includes(P.id)),pagination:{...k.pagination,maxIdx:((R=k==null?void 0:k.pagination)==null?void 0:R.maxIdx)-S.resources.length},resources:k.resources.filter(P=>a?!i.includes(P.assetId):!l.includes(P.id))}})},E=s8(r,{folders:s});return d(E),h({...n,pagination:{...n.pagination,maxIdx:((y=n.pagination)==null?void 0:y.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},u8=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Li(),s=ml(),i=Mi(),o=gl().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Oe(),{filters:h,trashed:m}=n,p=["context",{folderId:h.folder,filters:h,trashed:m}];return sn({mutationFn:async()=>await _R({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(w){typeof w=="string"&&e.error(Vt(w))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,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([])}})},uk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Li(),s=ml(),i=Mi(),o=gl().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=Oe(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return sn({mutationFn:async()=>await IR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(m){typeof m=="string"&&e.error(Vt(m))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,p=>{if(p)return{...p,pages:p==null?void 0:p.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()}})},ck=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Li(),i=ml(),o=Mi(),a=gl().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:m,trashed:p}=n,w=["context",{folderId:m.folder,filters:m,trashed:p}];return sn({mutationFn:async S=>await AR({searchParams:n,folderId:S,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(Vt(S))},onSuccess:async(S,g)=>{if(t.getQueryData(w))return t.setQueryData(w,y=>{var b;if(y){const E=i8(r,{destinationId:g,folders:s}),k={...y,pages:y==null?void 0:y.pages.map(R=>{var P;return{...R,folders:R.folders.filter(L=>!s.includes(L.id)),pagination:{...R.pagination,maxIdx:((P=R.pagination)==null?void 0:P.maxIdx)-S.resources.length},resources:R.resources.filter(L=>a?!i.includes(L.assetId):!l.includes(L.id))}})};return d(E),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),k}})},onSettled:()=>{c(),u()}})},dk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),{setTreeData:s}=Oe(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return sn({mutationFn:async({name:l,parentId:u})=>await NR({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(Vt(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 m={...h,pages:h==null?void 0:h.pages.map(w=>({...w,folders:[...w.folders,d]}))},p=r8(r,{parentId:u.parentId,newFolder:d});return s(p),m}})}})},fk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=Oe(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return sn({mutationFn:async({folderId:c,name:d,parentId:h})=>await jR({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(Vt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,m=>{if(m){const p={...m,pages:m==null?void 0:m.pages.map(S=>({...S,folders:S.folders.map(g=>g.id===c.id?{...c,parentId:d.parentId,rights:g.rights}:g)}))},w=o8(r,{folderId:d.folderId,newFolder:c});return o(w),p}})},onSettled:()=>{s([]),i([])}})},hk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),{setResourceIds:r,setSelectedResources:s}=Oe(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return sn({mutationFn:async({entId:l,shares:u})=>await LR({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(Vt(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(m=>{if(m.assetId===(u==null?void 0:u.entId)){let p=[`creator:${m.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(p=[...p,...u.shares.flatMap(w=>w.actions.map(S=>`${w.type}:${w.id}:${S.id}`))]),{...m,rights:p}}else return m})}))}})},onSettled:()=>{r([]),s([])}})},pk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),{filters:r,trashed:s}=n,i=["context",{folderId:r.folder,filters:r,trashed:s}];return sn({mutationFn:async o=>await MR({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Vt(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:m,public:p,description:w,slug:S,...g}=a;return{...d,...g,name:h,thumbnail:typeof m=="string"?m:URL.createObjectURL(m),public:p,description:w,slug:S}}else return d})}))}})}})},mk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),{user:r}=_d(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return sn({mutationFn:async i=>await $R({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(Vt(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:a8,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,m=>{if(m)return{...m,pages:m==null?void 0:m.pages.map(p=>({...p,resources:[u,...p.resources]}))}})}})},{trashActions:c8}=fl();function ky(){const[e,t]=x.useState(!1),[n,r]=x.useState("void"),[s,i]=x.useState(),{t:o}=ve(),{hotToast:a}=Ot(Nt),l=ns(),u=Mi(),c=GR(),d=ZR(),h=Li(),m=rs(),p=u8(),w=Ey(),{openResource:S,printSelectedResource:g,openFolder:v,clearSelectedItems:y,clearSelectedIds:b}=Oe(),{data:E}=Ry();x.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(w){t(!1);return}t(!0)},[u,h]);async function k(G){var he;switch((he=document.getElementById("root"))==null||he.setAttribute("aria-hidden","true"),i(G),G.id){case Me.OPEN:return u.length>0?S(c[0]):v({folder:d[0],folderId:d[0].id});case Me.MOVE:return r("move");case Me.PRINT:return g();case Me.DELETE:return r("delete");case Me.RESTORE:return await L();case Me.PUBLISH:return r("publish");case Me.UPD_PROPS:case"edit":return it();case Me.SHARE:return r("share");default:throw Error(`Unknown action: ${G.id}`)}}function R(G){const he=u.length+h.length,jt=u.length===1||h.length===1,Tt=he===1,ln=h.length===0;switch(G.id){case Me.OPEN:return Tt;case Me.MANAGE:return jt;case Me.PUBLISH:return jt&&ln;case Me.UPD_PROPS:return jt&&ln;case Me.SHARE:return ln&&jt;case Me.PRINT:return jt&&ln;case"edit":return Tt;default:return!0}}function P(){return!0}async function L(){try{if(m)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");M()}catch(G){console.error(G)}}function M(){var G;r("void"),s!=null&&s.id&&((G=document.getElementById(s==null?void 0:s.id))==null||G.focus())}const T=G=>()=>{n===G&&(M(),y(),b())},D=T("move"),U=T("move"),C=T("delete"),O=T("delete"),A=T("publish"),$=T("publish"),N=T("edit_folder"),_=T("edit_folder"),z=T("edit_resource"),Z=T("edit_resource"),W=T("share"),an=T("share");function it(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function ye(G){return G.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${G.id}`}return{onRestore:L,actions:m?c8:E,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:ye,handleClick:k,isActivable:m?P:R,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:D,onMoveSuccess:U,isDeleteModalOpen:n==="delete",onDeleteCancel:O,onDeleteSuccess:C,isPublishModalOpen:n==="publish",onPublishCancel:$,onPublishSuccess:A,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:_,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:Z,onEditResourceSuccess:z,isShareResourceOpen:n==="share",onShareResourceCancel:an,onShareResourceSuccess:W,onClearActionBar:M}}function d8({roles:e,rights:t,action:n}){const[r,s]=x.useState(!1),{user:i}=_d(),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 X.rights().sessionHasAtLeastOneResourceRight(e,d);s(h)}else{const h=await X.rights().sessionHasResourceRight(e,d);s(h)}},l=async function(c){if(e instanceof Array){const d=await X.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);s(d)}else{const d=await X.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 m=t.map(p=>p.rights);await l(m)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function f8({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=ve(),{overrideLabel:o}=ky(),{visible:a}=d8({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Oe(),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 h8=x.lazy(async()=>await ge(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Tooltip.js"])),p8=x.lazy(async()=>await ge(()=>import("./DeleteModal.js"),[])),m8=x.lazy(async()=>await ge(()=>import("./MoveModal.js"),[])),g8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),v8=x.lazy(async()=>await ge(()=>import("./EditResourceModal.js"),["EditResourceModal.js","index.esm.js","TextArea.js"])),y8=x.lazy(async()=>await ge(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","TextArea.js"]));function w8(){const{t:e}=ve(),{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:m,isShareResourceOpen:p,onShareResourceCancel:w,onShareResourceSuccess:S,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:y,onDeleteSuccess:b,onPublishCancel:E,onPublishSuccess:k,isActivable:R,handleClick:P}=ky(),L=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:[L((M,T)=>T&&f.jsx(ba.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:M,children:f.jsx(B4,{children:t==null?void 0:t.filter(D=>D.available&&D.target==="actionbar").map(D=>R(D)&&f.jsx(f8,{resourceRights:n,roleExpected:D.right,action:D,children:f.jsx(Jr,{id:D.id,type:"button",color:"primary",variant:"filled",onClick:()=>{P(D)},children:e(l(D))},D.id)},D.id))})})),f.jsxs(x.Suspense,{fallback:f.jsx(ze,{}),children:[r&&f.jsx(m8,{isOpen:r,onCancel:g,onSuccess:v}),s&&f.jsx(p8,{isOpen:s,onCancel:y,onSuccess:b}),i&&f.jsx(y8,{isOpen:i,onCancel:E,onSuccess:k}),a&&f.jsx(g8,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(v8,{edit:!0,isOpen:d,onCancel:h,onSuccess:m}),p&&f.jsx(h8,{isOpen:p,onCancel:w,onSuccess:S})]})]})}const{http:gk}=Ny.instance(),x8={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},S8=()=>{var l;const{user:e,appCode:t}=gt(),n=x8[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}`}},b8=x.lazy(async()=>await ge(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),C8=x.lazy(async()=>await ge(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js"])),E8=x.lazy(async()=>await ge(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js"])),R8=x.lazy(async()=>await ge(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),k8=x.lazy(async()=>await ge(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),P8=x.lazy(async()=>await ge(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),O8=x.lazy(async()=>await ge(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),N8=()=>{const e=JR(),t=rs(),n=e8(),r=st(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=l8(),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(ze,{}),children:f.jsx(E8,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(C8,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(ze,{}),children:[f.jsx(P8,{data:s,isFetching:a}),f.jsx(O8,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(b8,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(R8,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(k8,{})}):null};function j8({isOpen:e,onCancel:t=()=>({})}){const{t:n}=ve();return ki.createPortal(f.jsxs(Sn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(Sn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(Sn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(Sn.Footer,{children:f.jsx(Jr,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const T8=()=>{const e=st(),[t,n]=x.useState(""),r=$4(t,500),s=XR(),i=t8(),{setSearchParams:o}=Oe(),a=c=>{const d=c.target.value;n(d.toString())},l=c=>{(c.key==="Enter"||c.key==="Return")&&(o({search:t||void 0}),c.preventDefault())},u=c=>{o({search:r||void 0}),c.preventDefault()};return x.useEffect(()=>{const d=r.length==0||r.length>=s.minLength?{search:r||void 0}:{};o({...e,...d})},[r,s.minLength]),x.useEffect(()=>{i==="select"&&n("")},[i]),x.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}},I8=()=>{const{appCode:e,currentApp:t}=gt(),{t:n}=ve(),[r,s]=x.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=ns(),a=st(),{setSearchParams:l}=Oe();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)==co.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==co.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)==co.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},_8=()=>{const{appCode:e}=gt(),{t}=ve(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=I8(),{inputSearch:i,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=T8(),u=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",children:[f.jsxs(vc,{id:"search",className:"input-group",children:[f.jsx(W0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:i,onChange:o,onKeyDown:a}),f.jsx(S0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsxs(fr,{placement:"bottom-end",children:[f.jsx(fr.Trigger,{label:t("explorer.filters"),icon:f.jsx(a3,{width:20}),variant:"ghost",badgeContent:u}),f.jsx(fr.Menu,{children:r.map(c=>c.value==="0"?f.jsxs(x.Fragment,{children:[f.jsx(fr.RadioItem,{value:c.value,model:n,onChange:()=>s(c.value),children:c.label}),f.jsx(fr.Separator,{})]},"0"):f.jsx(fr.RadioItem,{value:c.value,model:n,onChange:()=>s(c.value),children:c.label},c.value))})]})]})},A8=({id:e,selected:t,onSelect:n})=>{const{t:r}=ve();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(t3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},L8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),M8=()=>{const e=rt(),{t}=ve(),[n,r]=F4(),s=ts(),i=rs(),o=gf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=Oe(),m=async w=>{await u(w,e)},p=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(MC,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:m}),f.jsx(A8,{id:We.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(v3,{}),onClick:p,children:t("explorer.folder.new")})}),f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:n&&f.jsx(L8,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},D8=()=>{const e=YR(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Oe();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},F8=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await BR();if(i){t(JSON.parse(i==null?void 0:i.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await VR({onSuccess:()=>r(!1)})},setIsOpen:r}},$8=()=>{const e=Ey(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Oe();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},z8=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},U8=x.lazy(async()=>await ge(()=>import("./OnboardingTrash.js"),[])),B8=x.lazy(async()=>await ge(()=>import("./AppAction.js"),[])),V8=x.lazy(async()=>await ge(()=>import("./Library.js"),[])),H8=x.lazy(async()=>await ge(()=>import("./TrashedResourceModal.js"),[]));function q8(){const{currentApp:e}=gt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=F8(),{data:i}=Ry(),{isTrashedModalOpen:o,onTrashedCancel:a}=$8(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=D8();qS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=S8();return f.jsxs(f.Fragment,{children:[f.jsx(j3,{render:()=>z8({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(B8,{})}):null,children:f.jsx(A3,{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(M8,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(V8,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(_8,{}),f.jsx(n8,{}),f.jsx(N8,{})]}),f.jsx(w8,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(U8,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(H8,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(j8,{isOpen:l,onCancel:u})})]})]})}function Q8(){const{init:e}=gt();return e?e?f.jsx(hR,{children:f.jsx(q8,{})}):null:f.jsx(ze,{position:!1})}const K8=document.getElementById("root"),W8=new lw({queryCache:new _m({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});vy(K8).render(f.jsx(x.StrictMode,{children:f.jsxs(RS,{client:W8,children:[f.jsx(zS,{params:fl(),children:f.jsx(HS,{children:f.jsx(Q8,{})})}),f.jsx(pR,{initialIsOpen:!1})]})}));export{ek as $,Nt as A,Jr as B,n5 as C,f3 as D,W0 as E,vc as F,_3 as G,rp as H,u0 as I,uk as J,lk as K,ze as L,Sn as M,rs as N,ck as O,ZR as P,rt as Q,Ky as R,v3 as S,ts as T,MC as U,Es as V,ns as W,dk as X,fk as Y,ob as Z,ge as _,ki as a,mk as a0,z8 as a1,$d as a2,gk as a3,x8 as a4,fl as a5,fr as a6,tk as a7,t3 as a8,pc as a9,Li as aa,ak as ab,U4 as ac,ba as ad,Ue as ae,Ra as af,Mi as ag,nk as ah,rk as ai,ok as aj,X3 as ak,sk as al,Yg as am,Ha as b,F4 as c,gt as d,Oe as e,Ry as f,Y8 as g,Id as h,H as i,f as j,a5 as k,st as l,_d as m,$4 as n,GR as o,pk as p,hk as q,x as r,Ot as s,J8 as t,ve as u,np as v,hc as w,Qa as x,Y4 as y,ik as z};
|
|
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};
|