ode-explorer 1.0.5 → 1.1.1
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/AppAction.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/EditFolderModal.js +1 -1
- package/dist/EditResourceModal.js +3 -1
- package/dist/EmptyScreen.js +1 -1
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/EmptyScreenError.js +1 -1
- package/dist/EmptyScreenNoContentInFolder.js +1 -1
- package/dist/EmptyScreenSearch.js +1 -1
- package/dist/EmptyScreenTrash.js +1 -1
- package/dist/FoldersList.js +1 -1
- package/dist/Library.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/PublishModal.js +1 -1
- package/dist/ResourcesList.js +1 -1
- package/dist/ShareResourceModal.js +1 -1
- package/dist/TextArea.js +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/index.js +41 -41
- package/dist/version.txt +1 -1
- package/package.json +7 -4
- package/dist/Heading.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Py=Object.defineProperty;var Oy=(e,t,n)=>t in e?Py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var lr=(e,t,n)=>(Oy(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as X,APP as fo,FOLDER as We,ACTION as Me,TransportFrameworkFactory as Ny}from"/assets/js/edifice-ts-client/index.js";function im(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 jy="modulepreload",Ty=function(e){return"/"+e},yf={},ge=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Ty(i),i in yf)return;yf[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":jy,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 Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var om={exports:{}},ka={},am={exports:{}},Q={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(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"),_y=Symbol.for("react.portal"),Iy=Symbol.for("react.fragment"),Ay=Symbol.for("react.strict_mode"),Ly=Symbol.for("react.profiler"),My=Symbol.for("react.provider"),Dy=Symbol.for("react.context"),Fy=Symbol.for("react.forward_ref"),$y=Symbol.for("react.suspense"),zy=Symbol.for("react.memo"),Uy=Symbol.for("react.lazy"),wf=Symbol.iterator;function By(e){return e===null||typeof e!="object"?null:(e=wf&&e[wf]||e["@@iterator"],typeof e=="function"?e:null)}var lm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},um=Object.assign,cm={};function Zr(e,t,n){this.props=e,this.context=t,this.refs=cm,this.updater=n||lm}Zr.prototype.isReactComponent={};Zr.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")};Zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dm(){}dm.prototype=Zr.prototype;function Ic(e,t,n){this.props=e,this.context=t,this.refs=cm,this.updater=n||lm}var Ac=Ic.prototype=new dm;Ac.constructor=Ic;um(Ac,Zr.prototype);Ac.isPureReactComponent=!0;var xf=Array.isArray,fm=Object.prototype.hasOwnProperty,Lc={current:null},hm={key:!0,ref:!0,__self:!0,__source:!0};function pm(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)fm.call(t,r)&&!hm.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:Lc.current}}function Vy(e,t){return{$$typeof:Si,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Mc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Si}function Hy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sf=/\/+/g;function vl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Hy(""+e.key):t.toString(36)}function ho(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 _y:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+vl(o,0):r,xf(s)?(n="",e!=null&&(n=e.replace(Sf,"$&/")+"/"),ho(s,t,n,"",function(u){return u})):s!=null&&(Mc(s)&&(s=Vy(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Sf,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",xf(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+vl(i,a);o+=ho(i,t,n,l,s)}else if(l=By(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+vl(i,a++),o+=ho(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 Fi(e,t,n){if(e==null)return e;var r=[],s=0;return ho(e,r,"","",function(i){return t.call(n,i,s++)}),r}function qy(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 _e={current:null},po={transition:null},Qy={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:po,ReactCurrentOwner:Lc};Q.Children={map:Fi,forEach:function(e,t,n){Fi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fi(e,function(){t++}),t},toArray:function(e){return Fi(e,function(t){return t})||[]},only:function(e){if(!Mc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Zr;Q.Fragment=Iy;Q.Profiler=Ly;Q.PureComponent=Ic;Q.StrictMode=Ay;Q.Suspense=$y;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qy;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=um({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Lc.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)fm.call(t,l)&&!hm.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:Dy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:My,_context:e},e.Consumer=e};Q.createElement=pm;Q.createFactory=function(e){var t=pm.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Fy,render:e}};Q.isValidElement=Mc;Q.lazy=function(e){return{$$typeof:Uy,_payload:{_status:-1,_result:e},_init:qy}};Q.memo=function(e,t){return{$$typeof:zy,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=po.transition;po.transition={};try{e()}finally{po.transition=t}};Q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Q.useCallback=function(e,t){return _e.current.useCallback(e,t)};Q.useContext=function(e){return _e.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return _e.current.useDeferredValue(e)};Q.useEffect=function(e,t){return _e.current.useEffect(e,t)};Q.useId=function(){return _e.current.useId()};Q.useImperativeHandle=function(e,t,n){return _e.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return _e.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return _e.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return _e.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return _e.current.useReducer(e,t,n)};Q.useRef=function(e){return _e.current.useRef(e)};Q.useState=function(e){return _e.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return _e.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return _e.current.useTransition()};Q.version="18.2.0";am.exports=Q;var x=am.exports;const Ky=Ra(x),mm=im({__proto__:null,default:Ky},[x]);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(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 s2=b,o2=Symbol.for("react.element"),a2=Symbol.for("react.fragment"),l2=Object.prototype.hasOwnProperty,u2=s2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c2={key:!0,ref:!0,__self:!0,__source:!0};function Am(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)l2.call(t,r)&&!c2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:o2,type:e,key:s,ref:o,props:i,_owner:u2.current}}Aa.Fragment=a2;Aa.jsx=Am;Aa.jsxs=Am;Cm.exports=Aa;var f=Cm.exports;const d2={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 Ho{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||d2,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,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ho(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ho(this.logger,t)}}var Ut=new Ho;class La{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),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function li(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Ff(e){return e==null?"":""+e}function f2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Vc(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!e||typeof e=="string"}const s=typeof t!="string"?[].concat(t):t.split(".");for(;s.length>1;){if(i())return{};const o=r(s.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(s.shift())}}function $f(e,t,n){const{obj:r,k:i}=Vc(e,t,Object);r[i]=n}function h2(e,t,n,r){const{obj:i,k:s}=Vc(e,t,Object);i[s]=i[s]||[],r&&(i[s]=i[s].concat(n)),r||i[s].push(n)}function qo(e,t){const{obj:n,k:r}=Vc(e,t);if(n)return n[r]}function p2(e,t,n){const r=qo(e,n);return r!==void 0?r:qo(t,n)}function Lm(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]):Lm(e[r],t[r],n):e[r]=t[r]);return e}function pr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var m2={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function g2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>m2[t]):e}const v2=[" ",",","?","!",";"];function y2(e,t,n){t=t||"",n=n||"";const r=v2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s}function Qo(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 i=e;for(let s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){let o=2,a=r.slice(s,s+o).join(n),l=i[a];for(;l===void 0&&r.length>s+o;)o++,a=r.slice(s,s+o).join(n),l=i[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(s+o).join(n);return u?Qo(l,u,n):void 0}i=i[r[s]]}return i}function Wo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class zf extends La{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 i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=qo(this.data,a);return l||!o||typeof r!="string"?l:Qo(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),$f(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=qo(this.data,a)||{};i?Lm(l,r,s):l={...l,...r},$f(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(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Mm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const Bf={};class Ko extends La{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),f2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ut.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 i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!y2(t,r,i);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}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 i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=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 S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:`${l}${S}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:o}const d=this.resolve(t,n);let h=d&&d.res;const g=d&&d.usedKey||o,p=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),x=["[object Number]","[object Function]","[object RegExp]"],m=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")&&x.indexOf(y)<0&&!(typeof m=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=S,d):S}if(s){const S=y==="[object Array]",C=S?[]:{},k=S?p:g;for(const O in h)if(Object.prototype.hasOwnProperty.call(h,O)){const R=`${k}${s}${O}`;C[O]=this.translate(R,{...n,joinArrays:!1,ns:a}),C[O]===R&&(C[O]=h[O])}h=C}}else if(v&&typeof m=="string"&&y==="[object Array]")h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let S=!1,C=!1;const k=n.count!==void 0&&typeof n.count!="string",O=Ko.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(u,n.count,n):"",I=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",A=n[`defaultValue${R}`]||n[`defaultValue${I}`]||n.defaultValue;!this.isValidLookup(h)&&O&&(S=!0,h=A),this.isValidLookup(h)||(C=!0,h=o);const z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,B=O&&A!==h&&this.options.updateMissing;if(C||S||B){if(this.logger.log(B?"updateKey":"missingKey",u,l,o,B?A:h),s){const F=this.resolve(o,{...n,keySeparator:!1});F&&F.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 E=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let F=0;F<P.length;F++)E.push(P[F]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const L=(F,j,N)=>{const $=O&&N!==h?N:z;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,j,$,B,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,j,$,B,n),this.emit("missingKey",F,l,j,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?E.forEach(F=>{this.pluralResolver.getSuffixes(F,n).forEach(j=>{L([F],o+j,n[`defaultValue${j}`]||A)})}):L(E,o,A))}h=this.extendTranslation(h,t,n,d,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?h:void 0):h=this.options.parseMissingKeyHandler(h))}return i?(d.res=h,d):h}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},i.usedLng,i.usedNS,i.usedKey,{resolved:i});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),g=h&&h.length;c<g&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return s&&s[0]===g[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):o.translate(...g,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=Mm.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,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;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",g=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=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(x=>{this.isValidLookup(r)||(a=x,!Bf[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Bf[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${i}" 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(m=>{if(this.isValidLookup(r))return;o=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,x,n);else{let S;h&&(S=this.pluralResolver.getSuffix(m,n.count,n));const C=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+S),n.ordinal&&S.indexOf(k)===0&&v.push(c+S.replace(k,this.options.pluralSeparator)),g&&v.push(c+C)),p){const O=`${c}${this.options.contextSeparator}${n.context}`;v.push(O),h&&(v.push(O+S),n.ordinal&&S.indexOf(k)===0&&v.push(O+S.replace(k,this.options.pluralSeparator)),g&&v.push(O+C))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(s=w,r=this.getResource(m,x,w,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}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 kl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Uf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ut.create("languageUtils")}getScriptPartFromCode(t){if(t=Wo(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=Wo(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(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=kl(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]=kl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=kl(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 i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&s.indexOf(i)===0)return s})}),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),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.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"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let w2=[{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}],x2={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 S2=["v1","v2","v3"],b2=["v4"],Vf={zero:0,one:1,two:2,few:3,many:4,other:5};function E2(){const e={};return w2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x2[t.fc]}})}),e}class C2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ut.create("pluralResolver"),(!this.options.compatibilityJSON||b2.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=E2()}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(Wo(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(i=>`${n}${i}`)}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((i,s)=>Vf[i]-Vf[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,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 i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!S2.includes(this.options.compatibilityJSON)}}function Hf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=p2(e,t,n);return!s&&i&&typeof n=="string"&&(s=Qo(e,n,r),s===void 0&&(s=Qo(t,n,r))),s}class k2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ut.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:g2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?pr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?pr(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?pr(n.nestingPrefix):n.nestingPrefixEscaped||pr("$t("),this.nestingSuffix=n.nestingSuffix?pr(n.nestingSuffix):n.nestingSuffixEscaped||pr(")"),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,i){let s,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=Hf(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...i,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),x=y.shift().trim(),m=y.join(this.formatSeparator).trim();return this.format(Hf(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.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;s=p.regex.exec(t);){const y=s[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const m=d(t,s,i);o=typeof m=="string"?m:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(h){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Ff(o));const x=p.safeValue(o);if(t=t.replace(s[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=s[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]:{},i,s,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 g=h.match(/'/g),p=h.match(/"/g);(g&&g.length%2===0&&!p||p.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(;i=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(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),l=c,u=!0}if(s=n(a.call(this,i[1].trim(),o),o),s&&i[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=Ff(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),u&&(s=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}function O2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.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 mr(e){const t={};return function(r,i,s){const o=i+JSON.stringify(s);let a=t[o];return a||(a=e(Wo(i),s),t[o]=a),a(r)}}class R2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ut.create("formatter"),this.options=t,this.formats={number:mr((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:mr((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:mr((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:mr((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:mr((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},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()]=mr(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=O2(l);if(this.formats[u]){let d=a;try{const h=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},g=h.locale||h.lng||i.locale||i.lng||r;d=this.formats[u](a,g,{...c,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function P2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class j2 extends La{constructor(t,n,r){let i=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=i,this.logger=Ut.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},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),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{h2(l.loaded,[s],o),P2(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 i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=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:i,wait:s,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&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);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]:{},i=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."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.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("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,i,s){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:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,l):c=u(t,n,r,i),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,i,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function qf(){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(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Qf(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 Xs(){}function N2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Zi extends La{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qf(t),this.services={},this.logger=Ut,this.modules={external:[]},N2(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 i=qf();this.options={...i,...this.options,...Qf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Ut.init(s(this.modules.logger),this.options):Ut.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=R2);const d=new Uf(this.options);this.store=new zf(this.options.resources,this.options);const h=this.services;h.logger=Ut,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new C2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(h.formatter=s(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new k2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new j2(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(g){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Ko(this.services,this.options),this.translator.on("*",function(g){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Xs),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=li(),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]:Xs;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return r();const s=[],o=a=>{if(!a)return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{s.indexOf(u)<0&&s.push(u)})};i?o(i):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(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=li();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Xs),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}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"&&Mm.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 i=li();this.emit("languageChanging",t);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.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||s(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),i}getFixedT(t,n,r){var i=this;const s=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=i.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix=l.keyPrefix||r||s.keyPrefix;const h=i.options.keySeparator||".";let g;return l.keyPrefix&&Array.isArray(o)?g=o.map(p=>`${l.keyPrefix}${h}${p}`):g=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,i.t(g,l)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}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],i=this.options?this.options.fallbackLng:!1,s=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)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=li();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=li();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0);return s.length?(this.options.preload=i.concat(s),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 Uf(qf());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 Zi(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xs;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new Zi(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new zf(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ko(s.services,i),s.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];s.emit(a,...u)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const je=Zi.createInstance();je.createInstance=Zi.createInstance;je.createInstance;je.dir;je.init;je.loadResources;je.reloadResources;je.use;je.changeLanguage;je.getFixedT;const Zt=je.t;je.exists;je.setDefaultNamespace;je.hasLoadedNamespace;je.loadNamespaces;je.loadLanguages;function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}var Dm=[],T2=Dm.forEach,_2=Dm.slice;function hu(e){return T2.call(_2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Fm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":fu(XMLHttpRequest))==="object"}function I2(e){return!!e&&typeof e.then=="function"}function A2(e){return I2(e)?e:Promise.resolve(e)}function L2(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 pu={exports:{}},Gs={exports:{}},Wf;function M2(){return Wf||(Wf=1,function(e,t){var n=typeof self<"u"?self:He,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(E){return E&&DataView.prototype.isPrototypeOf(E)}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(E){return E&&u.indexOf(Object.prototype.toString.call(E))>-1};function d(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function h(E){return typeof E!="string"&&(E=String(E)),E}function g(E){var P={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return a.iterable&&(P[Symbol.iterator]=function(){return P}),P}function p(E){this.map={},E instanceof p?E.forEach(function(P,L){this.append(L,P)},this):Array.isArray(E)?E.forEach(function(P){this.append(P[0],P[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(P){this.append(P,E[P])},this)}p.prototype.append=function(E,P){E=d(E),P=h(P);var L=this.map[E];this.map[E]=L?L+", "+P:P},p.prototype.delete=function(E){delete this.map[d(E)]},p.prototype.get=function(E){return E=d(E),this.has(E)?this.map[E]:null},p.prototype.has=function(E){return this.map.hasOwnProperty(d(E))},p.prototype.set=function(E,P){this.map[d(E)]=h(P)},p.prototype.forEach=function(E,P){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(P,this.map[L],L,this)},p.prototype.keys=function(){var E=[];return this.forEach(function(P,L){E.push(L)}),g(E)},p.prototype.values=function(){var E=[];return this.forEach(function(P){E.push(P)}),g(E)},p.prototype.entries=function(){var E=[];return this.forEach(function(P,L){E.push([L,P])}),g(E)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function x(E){return new Promise(function(P,L){E.onload=function(){P(E.result)},E.onerror=function(){L(E.error)}})}function m(E){var P=new FileReader,L=x(P);return P.readAsArrayBuffer(E),L}function v(E){var P=new FileReader,L=x(P);return P.readAsText(E),L}function w(E){for(var P=new Uint8Array(E),L=new Array(P.length),F=0;F<P.length;F++)L[F]=String.fromCharCode(P[F]);return L.join("")}function S(E){if(E.slice)return E.slice(0);var P=new Uint8Array(E.byteLength);return P.set(new Uint8Array(E)),P.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(E){this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:a.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:a.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():a.arrayBuffer&&a.blob&&l(E)?(this._bodyArrayBuffer=S(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||c(E))?this._bodyArrayBuffer=S(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(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(I)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(E){var P=E.toUpperCase();return k.indexOf(P)>-1?P:E}function R(E,P){P=P||{};var L=P.body;if(E instanceof R){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,P.headers||(this.headers=new p(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!L&&E._bodyInit!=null&&(L=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new p(P.headers)),this.method=O(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function I(E){var P=new FormData;return E.trim().split("&").forEach(function(L){if(L){var F=L.split("="),j=F.shift().replace(/\+/g," "),N=F.join("=").replace(/\+/g," ");P.append(decodeURIComponent(j),decodeURIComponent(N))}}),P}function A(E){var P=new p,L=E.replace(/\r?\n[\t ]+/g," ");return L.split(/\r?\n/).forEach(function(F){var j=F.split(":"),N=j.shift().trim();if(N){var $=j.join(":").trim();P.append(N,$)}}),P}C.call(R.prototype);function M(E,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new p(P.headers),this.url=P.url||"",this._initBody(E)}C.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},M.error=function(){var E=new M(null,{status:0,statusText:""});return E.type="error",E};var z=[301,302,303,307,308];M.redirect=function(E,P){if(z.indexOf(P)===-1)throw new RangeError("Invalid status code");return new M(null,{status:P,headers:{location:E}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(P,L){this.message=P,this.name=L;var F=Error(P);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function B(E,P){return new Promise(function(L,F){var j=new R(E,P);if(j.signal&&j.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var N=new XMLHttpRequest;function $(){N.abort()}N.onload=function(){var W={status:N.status,statusText:N.statusText,headers:A(N.getAllResponseHeaders()||"")};W.url="responseURL"in N?N.responseURL:W.headers.get("X-Request-URL");var H="response"in N?N.response:N.responseText;L(new M(H,W))},N.onerror=function(){F(new TypeError("Network request failed"))},N.ontimeout=function(){F(new TypeError("Network request failed"))},N.onabort=function(){F(new o.DOMException("Aborted","AbortError"))},N.open(j.method,j.url,!0),j.credentials==="include"?N.withCredentials=!0:j.credentials==="omit"&&(N.withCredentials=!1),"responseType"in N&&a.blob&&(N.responseType="blob"),j.headers.forEach(function(W,H){N.setRequestHeader(H,W)}),j.signal&&(j.signal.addEventListener("abort",$),N.onreadystatechange=function(){N.readyState===4&&j.signal.removeEventListener("abort",$)}),N.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return B.polyfill=!0,s.fetch||(s.fetch=B,s.Headers=p,s.Request=R,s.Response=M),o.Headers=p,o.Request=R,o.Response=M,o.fetch=B,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Gs,Gs.exports)),Gs.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof He<"u"&&He.fetch?n=He.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof L2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||M2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(pu,pu.exports);var $m=pu.exports;const zm=js($m),Kf=By({__proto__:null,default:zm},[$m]);function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}var nn;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?nn=global.fetch:typeof window<"u"&&window.fetch?nn=window.fetch:nn=fetch);var Xi;Fm()&&(typeof global<"u"&&global.XMLHttpRequest?Xi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Xi=window.XMLHttpRequest));var Xo;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Xo=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Xo=window.ActiveXObject));!nn&&Kf&&!Xi&&!Xo&&(nn=zm||Kf);typeof nn!="function"&&(nn=void 0);var mu=function(t,n){if(n&&Zo(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Zf=function(t,n,r){nn(t,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(s){r(null,{status:i.status,data:s})}).catch(r)}).catch(r)},Xf=!1,D2=function(t,n,r,i){t.queryStringParams&&(n=mu(n,t.queryStringParams));var s=hu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(s["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=hu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:s},Xf?{}:o);try{Zf(n,a,i)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return i(l);try{Object.keys(o).forEach(function(u){delete a[u]}),Zf(n,a,i),Xf=!0}catch(u){i(u)}}},F2=function(t,n,r,i){r&&Zo(r)==="object"&&(r=mu("",r).slice(1)),t.queryStringParams&&(n=mu(n,t.queryStringParams));try{var s;Xi?s=new Xi:s=new Xo("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)s.setRequestHeader(a,o[a]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(l){console&&console.log(l)}},$2=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},nn&&n.indexOf("file:")!==0)return D2(t,n,r,i);if(Fm()||typeof ActiveXObject=="function")return F2(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Gi(e){"@babel/helpers - typeof";return Gi=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},Gi(e)}function z2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gf(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 B2(e,t,n){return t&&Gf(e.prototype,t),n&&Gf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U2(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=V2(e,"string");return Gi(t)==="symbol"?t:String(t)}function V2(e,t){if(Gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H2=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,i){return U2({},r,i||"")},parseLoadPayload:function(n,r){},request:$2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Um=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]:{};z2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return B2(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=hu(i,this.options||{},H2()),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=A2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});a.loadUrl(c,o,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var o=this,a=typeof i=="string"?[i]:i,l=typeof s=="string"?[s]:s,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,g;try{typeof d.data=="string"?h=o.options.parse(d.data,i,s):h=d.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,h)})}},{key:"create",value:function(n,r,i,s,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,s),u=0,c=[],d=[];n.forEach(function(h){var g=a.options.addPath;typeof a.options.addPath=="function"&&(g=a.options.addPath(h,r));var p=a.services.interpolator.interpolate(g,{lng:h,ns:r});a.options.request(a.options,p,l,function(y,x){u+=1,c.push(y),d.push(x),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,o=r.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=s.toResolveHierarchy(d);h.forEach(function(g){l.indexOf(g)<0&&l.push(g)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){i.read(c,d,"read",null,null,function(h,g){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&g&&o.log("loaded namespace ".concat(d," for language ").concat(c),g),i.loaded("".concat(c,"|").concat(d),h,g)})})})}}}]),e}();Um.type="backend";function q2(){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 Yf={};function gu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Yf[t[0]]||(typeof t[0]=="string"&&(Yf[t[0]]=new Date),q2(...t))}const Vm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Jf(e,t,n){e.loadNamespaces(t,Vm(e,n))}function eh(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Vm(e,r))}function Q2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=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)&&(!i||o(s,e)))}function W2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(gu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):Q2(e,t,n)}const K2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Z2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},X2=e=>Z2[e],G2=e=>e.replace(K2,X2);let vu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:G2};function Y2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vu={...vu,...e}}function J2(){return vu}let Hm;function ew(e){Hm=e}function tw(){return Hm}const nw={type:"3rdParty",init(e){Y2(e.options.react),ew(e)}},rw=b.createContext();class iw{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const sw=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function xe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=b.useContext(rw)||{},s=n||r||tw();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new iw),!s){gu("You will need to pass in an i18next instance by using initReactI18next");const w=(C,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[w,{},!1];return S.t=w,S.i18n={},S.ready=!1,S}s.options.react&&s.options.react.wait!==void 0&&gu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...J2(),...s.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||i||s.options&&s.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const c=(s.isInitialized||s.initializedStoreOnce)&&u.every(w=>W2(w,s,o));function d(){return s.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,g]=b.useState(d);let p=u.join();t.lng&&(p=`${t.lng}${p}`);const y=sw(p),x=b.useRef(!0);b.useEffect(()=>{const{bindI18n:w,bindI18nStore:S}=o;x.current=!0,!c&&!a&&(t.lng?eh(s,t.lng,u,()=>{x.current&&g(d)}):Jf(s,u,()=>{x.current&&g(d)})),c&&y&&y!==p&&x.current&&g(d);function C(){x.current&&g(d)}return w&&s&&s.on(w,C),S&&s&&s.store.on(S,C),()=>{x.current=!1,w&&s&&w.split(" ").forEach(k=>s.off(k,C)),S&&s&&S.split(" ").forEach(k=>s.store.off(k,C))}},[s,p]);const m=b.useRef(!0);b.useEffect(()=>{x.current&&!m.current&&g(d),m.current=!1},[s,l]);const v=[h,s,c];if(v.t=h,v.i18n=s,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?eh(s,t.lng,u,()=>w()):Jf(s,u,()=>w())})}je.use(Um).use(nw).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 ei{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 Yi=typeof window>"u"||"Deno"in window;function ct(){}function ow(e,t){return typeof e=="function"?e(t):e}function yu(e){return typeof e=="number"&&e>=0&&e!==1/0}function qm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yr(e,t,n){return Ts(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function aw(e,t,n){return Ts(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function mn(e,t,n){return Ts(e)?[{...t,queryKey:e},n]:[e||{},t]}function th(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(Ts(o)){if(r){if(t.queryHash!==Hc(o,t.options))return!1}else if(!Go(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 i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function nh(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:s}=e;if(Ts(s)){if(!t.options.mutationKey)return!1;if(n){if(Zn(t.options.mutationKey)!==Zn(s))return!1}else if(!Go(t.options.mutationKey,s))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Hc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zn)(e)}function Zn(e){return JSON.stringify(e,(t,n)=>wu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Go(e,t){return Qm(e,t)}function Qm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qm(e[n],t[n])):!1}function Wm(e,t){if(e===t)return e;const n=rh(e)&&rh(t);if(n||wu(e)&&wu(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let a=0;for(let l=0;l<s;l++){const u=n?l:i[l];o[u]=Wm(e[u],t[u]),o[u]===e[u]&&a++}return r===s&&a===r?e:o}return t}function Yo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function rh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wu(e){if(!ih(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ih(n)||!n.hasOwnProperty("isPrototypeOf"))}function ih(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ts(e){return Array.isArray(e)}function Km(e){return new Promise(t=>{setTimeout(t,e)})}function sh(e){Km(0).then(e)}function lw(){if(typeof AbortController=="function")return new AbortController}function xu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Wm(e,t):t}class uw extends ei{constructor(){super(),this.setup=t=>{if(!Yi&&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 Jo=new uw,oh=["online","offline"];class cw extends ei{constructor(){super(),this.setup=t=>{if(!Yi&&window.addEventListener){const n=()=>t();return oh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{oh.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 ea=new cw;function dw(e){return Math.min(1e3*2**e,3e4)}function Ma(e){return(e??"online")==="online"?ea.isOnline():!0}class Zm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Oo(e){return e instanceof Zm}function Xm(e){let t=!1,n=0,r=!1,i,s,o;const a=new Promise((x,m)=>{s=x,o=m}),l=x=>{r||(g(new Zm(x)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Jo.isFocused()||e.networkMode!=="always"&&!ea.isOnline(),h=x=>{r||(r=!0,e.onSuccess==null||e.onSuccess(x),i==null||i(),s(x))},g=x=>{r||(r=!0,e.onError==null||e.onError(x),i==null||i(),o(x))},p=()=>new Promise(x=>{i=m=>{const v=r||!d();return v&&x(m),v},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let x;try{x=e.fn()}catch(m){x=Promise.reject(m)}Promise.resolve(x).then(h).catch(m=>{var v,w;if(r)return;const S=(v=e.retry)!=null?v:3,C=(w=e.retryDelay)!=null?w:dw,k=typeof C=="function"?C(n,m):C,O=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,m);if(t||!O){g(m);return}n++,e.onFail==null||e.onFail(n,m),Km(k).then(()=>{if(d())return p()}).then(()=>{t?g(m):y()})})};return Ma(e.networkMode)?y():p().then(y),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const qc=console;function fw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},s=c=>{t?e.push(c):sh(()=>{n(c)})},o=c=>(...d)=>{s(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&sh(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:o,schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ue=fw();class Gm{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Yi?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class hw extends Gm{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||qc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||pw(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=xu(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(ct).catch(ct):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||!qm(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,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const o=lw(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=g=>{Object.defineProperty(g,"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!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=g=>{if(Oo(g)&&g.silent||this.dispatch({type:"error",error:g}),!Oo(g)){var p,y,x,m;(p=(y=this.cache.config).onError)==null||p.call(y,g,this),(x=(m=this.cache.config).onSettled)==null||x.call(m,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Xm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var p,y,x,m;if(typeof g>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(p=(y=this.cache.config).onSuccess)==null||p.call(y,g,this),(x=(m=this.cache.config).onSettled)==null||x.call(m,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(g,p)=>{this.dispatch({type:"failed",failureCount:g,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 i,s;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:(i=t.meta)!=null?i:null,fetchStatus:Ma(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=t.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Oo(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),ue.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function pw(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 Ym extends ei{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const s=n.queryKey,o=(i=n.queryHash)!=null?i:Hc(s,n);let a=this.get(o);return a||(a=new hw({cache:this,logger:t.getLogger(),queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),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(){ue.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=mn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>th(r,i))}findAll(t,n){const[r]=mn(t,n);return Object.keys(r).length>0?this.queries.filter(i=>th(r,i)):this.queries}notify(t){ue.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ue.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ue.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class mw extends Gm{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||qc,this.observers=[],this.state=t.state||Jm(),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 O;return this.retryer=Xm({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(R,I)=>{this.dispatch({type:"failed",failureCount:R,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(O=this.options.retry)!=null?O:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,s,o,a,l,u,c;if(!n){var d,h,g,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 R=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,this.state.variables));R!==this.state.context&&this.dispatch({type:"loading",context:R,variables:this.state.variables})}const O=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,O,this.state.variables,this.state.context,this)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,O,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,O,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,O,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:O}),O}catch(O){try{var y,x,m,v,w,S,C,k;throw await((y=(x=this.mutationCache.config).onError)==null?void 0:y.call(x,O,this.state.variables,this.state.context,this)),await((m=(v=this.options).onError)==null?void 0:m.call(v,O,this.state.variables,this.state.context)),await((w=(S=this.mutationCache.config).onSettled)==null?void 0:w.call(S,void 0,O,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,O,this.state.variables,this.state.context)),O}finally{this.dispatch({type:"error",error:O})}}}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:!Ma(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),ue.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Jm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class gw extends ei{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new mw({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(i),i}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(){ue.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=>nh(t,n))}findAll(t){return this.mutations.filter(n=>nh(t,n))}notify(t){ue.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 ue.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(ct)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Su(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,s,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.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=((s=e.state.data)==null?void 0:s.pages)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let p=g,y=!1;const x=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var O;if((O=e.signal)!=null&&O.aborted)y=!0;else{var R;(R=e.signal)==null||R.addEventListener("abort",()=>{y=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(k,O,R,I)=>(p=I?[O,...p]:[...p,O],I?[R,...k]:[...k,R]),w=(k,O,R,I)=>{if(y)return Promise.reject("Cancelled");if(typeof R>"u"&&!O&&k.length)return Promise.resolve(k);const A={queryKey:e.queryKey,pageParam:R,meta:e.options.meta};x(A);const M=m(A);return Promise.resolve(M).then(B=>v(k,R,B,I))};let S;if(!h.length)S=w([]);else if(c){const k=typeof u<"u",O=k?u:bu(e.options,h);S=w(h,k,O)}else if(d){const k=typeof u<"u",O=k?u:e1(e.options,h);S=w(h,k,O,!0)}else{p=[];const k=typeof e.options.getNextPageParam>"u";S=(a&&h[0]?a(h[0],0,h):!0)?w([],k,g[0]):Promise.resolve(v([],g[0],h[0]));for(let R=1;R<h.length;R++)S=S.then(I=>{if(a&&h[R]?a(h[R],R,h):!0){const M=k?g[R]:bu(e.options,I);return w(I,k,M)}return Promise.resolve(v(I,g[R],h[R]))})}return S.then(k=>({pages:k,pageParams:p}))}}}}function bu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function e1(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function vw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=bu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function yw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=e1(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class ww{constructor(t={}){this.queryCache=t.queryCache||new Ym,this.mutationCache=t.mutationCache||new gw,this.logger=t.logger||qc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Jo.subscribe(()=>{Jo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ea.subscribe(()=>{ea.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]=mn(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 i=yr(t,n,r),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),s=i==null?void 0:i.state.data,o=ow(n,s);if(typeof o>"u")return;const a=yr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ue.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=mn(t,n),i=this.queryCache;ue.batch(()=>{i.findAll(r).forEach(s=>{i.remove(s)})})}resetQueries(t,n,r){const[i,s]=mn(t,n,r),o=this.queryCache,a={type:"active",...i};return ue.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(a,s)))}cancelQueries(t,n,r){const[i,s={}]=mn(t,n,r);typeof s.revert>"u"&&(s.revert=!0);const o=ue.batch(()=>this.queryCache.findAll(i).map(a=>a.cancel(s)));return Promise.all(o).then(ct).catch(ct)}invalidateQueries(t,n,r){const[i,s]=mn(t,n,r);return ue.batch(()=>{var o,a;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(a=i.refetchType)!=null?a:i.type)!=null?o:"active"};return this.refetchQueries(l,s)})}refetchQueries(t,n,r){const[i,s]=mn(t,n,r),o=ue.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let a=Promise.all(o).then(ct);return s!=null&&s.throwOnError||(a=a.catch(ct)),a}fetchQuery(t,n,r){const i=yr(t,n,r),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ct).catch(ct)}fetchInfiniteQuery(t,n,r){const i=yr(t,n,r);return i.behavior=Su(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ct).catch(ct)}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(i=>Zn(t)===Zn(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Go(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>Zn(t)===Zn(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Go(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=Hc(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 t1 extends ei{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),ah(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eu(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,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Yo(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 s=this.hasListeners();s&&lh(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();s&&(this.currentQuery!==i||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 Sw(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(ct)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Yi||this.currentResult.isStale||!yu(this.options.staleTime))return;const n=qm(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,!(Yi||this.options.enabled===!1||!yu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Jo.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,i=this.options,s=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:g,errorUpdatedAt:p,fetchStatus:y,status:x}=d,m=!1,v=!1,w;if(n._optimisticResults){const R=this.hasListeners(),I=!R&&ah(t,n),A=R&&lh(t,r,n,i);(I||A)&&(y=Ma(t.options.networkMode)?"fetching":"paused",h||(x="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&x!=="error")w=c.data,h=c.dataUpdatedAt,x=c.status,m=!0;else if(n.select&&typeof d.data<"u")if(s&&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=xu(s==null?void 0:s.data,w,n),this.selectResult=w,this.selectError=null}catch(R){this.selectError=R}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&x==="loading"){let R;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))R=s.data;else if(R=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof R<"u")try{R=n.select(R),this.selectError=null}catch(I){this.selectError=I}typeof R<"u"&&(x="success",w=xu(s==null?void 0:s.data,R,n),v=!0)}this.selectError&&(g=this.selectError,w=this.selectResult,p=Date.now(),x="error");const S=y==="fetching",C=x==="loading",k=x==="error";return{status:x,fetchStatus:y,isLoading:C,isSuccess:x==="success",isError:k,isInitialLoading:C&&S,data:w,dataUpdatedAt:h,error:g,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:S,isRefetching:S&&!C,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:Qc(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,Yo(r,n))return;this.currentResult=r;const i={cache:!0},s=()=>{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&&s()&&(i.listeners=!0),this.notify({...i,...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"&&!Oo(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ue.batch(()=>{if(t.onSuccess){var n,r,i,s;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,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 xw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ah(e,t){return xw(e,t)||e.state.dataUpdatedAt>0&&Eu(e,t,t.refetchOnMount)}function Eu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qc(e,t)}return!1}function lh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Qc(e,n)}function Qc(e,t){return e.isStaleByTime(t.staleTime)}function Sw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Yo(e.getCurrentResult(),t)}class bw extends t1{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:Su()},n)}getOptimisticResult(t){return t.behavior=Su(),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,i,s,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,g=d&&((r=u.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",p=d&&((s=u.fetchMeta)==null||(o=s.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:yw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:g,isFetchingPreviousPage:p,isRefetching:h&&!g&&!p}}}let Ew=class extends ei{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),Yo(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:Jm(),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){ue.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,s;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,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 n1={exports:{}},ot={},r1={exports:{}},i1={};/**
|
|
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 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)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=gm;ka.jsxs=gm;om.exports=ka;var f=om.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 _o{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 _o(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new _o(this.logger,t)}}var Dt=new _o;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 bf(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 Ef(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 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 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 Ao(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?Ao(l,u,n):void 0}s=s[r[i]]}return s}function Lo(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:Ao(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),Ef(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?vm(l,r,i):l={...l,...r},Ef(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 Rf={};class Mo 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,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(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=y==="[object Array]",C=b?[]:{},k=b?p:m;for(const R in h)if(Object.prototype.hasOwnProperty.call(h,R)){const P=`${k}${i}${R}`;C[R]=this.translate(P,{...n,joinArrays:!1,ns:a}),C[R]===P&&(C[R]=h[R])}h=C}}else if(v&&typeof g=="string"&&y==="[object Array]")h=h.join(g),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,C=!1;const k=n.count!==void 0&&typeof n.count!="string",R=Mo.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)||(C=!0,h=o);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,U=R&&M!==h&&this.options.updateMissing;if(C||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 E=[];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;$++)E.push(O[$]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const A=($,N,I)=>{const z=R&&I!==h?I: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?E.forEach($=>{this.pluralResolver.getSuffixes($,n).forEach(N=>{A([$],o+N,n[`defaultValue${N}`]||M)})}):A(E,o,M))}h=this.extendTranslation(h,t,n,d,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||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=ym.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!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!Rf[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Rf[`${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 C=`${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+C)),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+C))}}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)}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 kf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(t){if(t=Lo(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=Lo(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"],Pf={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(Lo(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)=>Pf[s]-Pf[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 Of(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=Ao(e,n,r),i===void 0&&(i=Ao(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=Of(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),S=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Of(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 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=bf(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(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=bf(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(Lo(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 Nf(){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 jf(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 $i(){}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=jf(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=Nf();this.options={...s,...this.options,...jf(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 kf(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,y=new Array(p>1?p-1:0),S=1;S<p;S++)y[S-1]=arguments[S];t.emit(m,...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 Mo(this.services,this.options),this.translator.on("*",function(m){for(var p=arguments.length,y=new Array(p>1?p-1:0),S=1;S<p;S++)y[S-1]=arguments[S];t.emit(m,...y)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=$i),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]:$i;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=$i),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 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 kf(Nf());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]:$i;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 Mo(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 wm=[],x2=wm.forEach,S2=wm.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 xm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":ou(XMLHttpRequest))==="object"}function b2(e){return!!e&&typeof e.then=="function"}function E2(e){return b2(e)?e:Promise.resolve(e)}function C2(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:{}},zi={exports:{}},Tf;function R2(){return Tf||(Tf=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(E){return E&&DataView.prototype.isPrototypeOf(E)}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(E){return E&&u.indexOf(Object.prototype.toString.call(E))>-1};function d(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function h(E){return typeof E!="string"&&(E=String(E)),E}function m(E){var O={next:function(){var A=E.shift();return{done:A===void 0,value:A}}};return a.iterable&&(O[Symbol.iterator]=function(){return O}),O}function p(E){this.map={},E instanceof p?E.forEach(function(O,A){this.append(A,O)},this):Array.isArray(E)?E.forEach(function(O){this.append(O[0],O[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(O){this.append(O,E[O])},this)}p.prototype.append=function(E,O){E=d(E),O=h(O);var A=this.map[E];this.map[E]=A?A+", "+O:O},p.prototype.delete=function(E){delete this.map[d(E)]},p.prototype.get=function(E){return E=d(E),this.has(E)?this.map[E]:null},p.prototype.has=function(E){return this.map.hasOwnProperty(d(E))},p.prototype.set=function(E,O){this.map[d(E)]=h(O)},p.prototype.forEach=function(E,O){for(var A in this.map)this.map.hasOwnProperty(A)&&E.call(O,this.map[A],A,this)},p.prototype.keys=function(){var E=[];return this.forEach(function(O,A){E.push(A)}),m(E)},p.prototype.values=function(){var E=[];return this.forEach(function(O){E.push(O)}),m(E)},p.prototype.entries=function(){var E=[];return this.forEach(function(O,A){E.push([A,O])}),m(E)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function S(E){return new Promise(function(O,A){E.onload=function(){O(E.result)},E.onerror=function(){A(E.error)}})}function g(E){var O=new FileReader,A=S(O);return O.readAsArrayBuffer(E),A}function v(E){var O=new FileReader,A=S(O);return O.readAsText(E),A}function w(E){for(var O=new Uint8Array(E),A=new Array(O.length),$=0;$<O.length;$++)A[$]=String.fromCharCode(O[$]);return A.join("")}function b(E){if(E.slice)return E.slice(0);var O=new Uint8Array(E.byteLength);return O.set(new Uint8Array(E)),O.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(E){this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:a.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:a.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():a.arrayBuffer&&a.blob&&l(E)?(this._bodyArrayBuffer=b(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||c(E))?this._bodyArrayBuffer=b(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(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(E){var O=E.toUpperCase();return k.indexOf(O)>-1?O:E}function P(E,O){O=O||{};var A=O.body;if(E instanceof P){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,O.headers||(this.headers=new p(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!A&&E._bodyInit!=null&&(A=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);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(E){var O=new FormData;return E.trim().split("&").forEach(function(A){if(A){var $=A.split("="),N=$.shift().replace(/\+/g," "),I=$.join("=").replace(/\+/g," ");O.append(decodeURIComponent(N),decodeURIComponent(I))}}),O}function M(E){var O=new p,A=E.replace(/\r?\n[\t ]+/g," ");return A.split(/\r?\n/).forEach(function($){var N=$.split(":"),I=N.shift().trim();if(I){var z=N.join(":").trim();O.append(I,z)}}),O}C.call(P.prototype);function T(E,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(E)}C.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 E=new T(null,{status:0,statusText:""});return E.type="error",E};var D=[301,302,303,307,308];T.redirect=function(E,O){if(D.indexOf(O)===-1)throw new RangeError("Invalid status code");return new T(null,{status:O,headers:{location:E}})},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(E,O){return new Promise(function(A,$){var N=new P(E,O);if(N.signal&&N.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var I=new XMLHttpRequest;function z(){I.abort()}I.onload=function(){var Z={status:I.status,statusText:I.statusText,headers:M(I.getAllResponseHeaders()||"")};Z.url="responseURL"in I?I.responseURL:Z.headers.get("X-Request-URL");var W="response"in I?I.response:I.responseText;A(new T(W,Z))},I.onerror=function(){$(new TypeError("Network request failed"))},I.ontimeout=function(){$(new TypeError("Network request failed"))},I.onabort=function(){$(new o.DOMException("Aborted","AbortError"))},I.open(N.method,N.url,!0),N.credentials==="include"?I.withCredentials=!0:N.credentials==="omit"&&(I.withCredentials=!1),"responseType"in I&&a.blob&&(I.responseType="blob"),N.headers.forEach(function(Z,W){I.setRequestHeader(W,Z)}),N.signal&&(N.signal.addEventListener("abort",z),I.onreadystatechange=function(){I.readyState===4&&N.signal.removeEventListener("abort",z)}),I.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}(zi,zi.exports)),zi.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 C2<"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 Sm=lu.exports;const bm=Ra(Sm),_f=im({__proto__:null,default:bm},[Sm]);function Do(e){"@babel/helpers - typeof";return Do=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},Do(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;xm()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var Fo;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Fo=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Fo=window.ActiveXObject));!Gt&&_f&&!Vs&&!Fo&&(Gt=bm||_f);typeof Gt!="function"&&(Gt=void 0);var uu=function(t,n){if(n&&Do(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)},Af=!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},Af?{}: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),Af=!0}catch(u){s(u)}}},P2=function(t,n,r,s){r&&Do(r)==="object"&&(r=uu("",r).slice(1)),t.queryStringParams&&(n=uu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new Fo("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(xm()||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 Lf(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,Em(r.key),r)}}function j2(e,t,n){return t&&Lf(e.prototype,t),n&&Lf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T2(e,t,n){return t=Em(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Em(e){var t=_2(e,"string");return Hs(t)==="symbol"?t:String(t)}function _2(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 I2=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||{},I2()),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=E2(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(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(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 Mf={};function cu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Mf[t[0]]||(typeof t[0]=="string"&&(Mf[t[0]]=new Date),A2(...t))}const Rm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Df(e,t,n){e.loadNamespaces(t,Rm(e,n))}function Ff(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 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 km;function V2(e){km=e}function H2(){return km}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 w=(C,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(C)?C[C.length-1]:C,b=[w,{},!1];return b.t=w,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(w=>M2(w,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 y=W2(p),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Ff(i,t.lng,u,()=>{S.current&&m(d)}):Df(i,u,()=>{S.current&&m(d)})),c&&y&&y!==p&&S.current&&m(d);function C(){S.current&&m(d)}return w&&i&&i.on(w,C),b&&i&&i.store.on(b,C),()=>{S.current=!1,w&&i&&w.split(" ").forEach(k=>i.off(k,C)),b&&i&&b.split(" ").forEach(k=>i.store.off(k,C))}},[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(w=>{t.lng?Ff(i,t.lng,u,()=>w()):Df(i,u,()=>w())})}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 Pm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pr(e,t,n){return bi(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function G2(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 dn(e,t,n){return bi(e)?[{...t,queryKey:e},n]:[e||{},t]}function $f(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!==Fc(o,t.options))return!1}else if(!$o(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 zf(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(!$o(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 $o(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=Uf(e)&&Uf(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]=Nm(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function zo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Uf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hu(e){if(!Bf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Bf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Bf(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 Vf(e){jm(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?Nm(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 Uo=new Y2,Hf=["online","offline"];class J2 extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return Hf.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Hf.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 Bo=new J2;function ew(e){return Math.min(1e3*2**e,3e4)}function Oa(e){return(e??"online")==="online"?Bo.isOnline():!0}class Tm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function mo(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||(m(new Tm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Uo.isFocused()||e.networkMode!=="always"&&!Bo.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()}),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,C=(w=e.retryDelay)!=null?w:ew,k=typeof C=="function"?C(n,g):C,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),jm(k).then(()=>{if(d())return p()}).then(()=>{t?m(g):y()})})};return Oa(e.networkMode)?y():p().then(y),{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):Vf(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&Vf(()=>{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||!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 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(mo(m)&&m.silent||this.dispatch({type:"error",error:m}),!mo(m)){var p,y,S,g;(p=(y=this.cache.config).onError)==null||p.call(y,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=_m({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:m=>{var p,y,S,g;if(typeof m>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(p=(y=this.cache.config).onSuccess)==null||p.call(y,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 mo(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 Am 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=>$f(r,s))}findAll(t,n){const[r]=dn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>$f(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||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 R;return this.retryer=_m({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 y,S,g,v,w,b,C,k;throw await((y=(S=this.mutationCache.config).onError)==null?void 0:y.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((w=(b=this.mutationCache.config).onSettled)==null?void 0:w.call(b,void 0,R,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.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 Lm(){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=>zf(t,n))}findAll(t){return this.mutations.filter(n=>zf(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,y=!1;const S=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var R;if((R=e.signal)!=null&&R.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=(k,R,P,L)=>(p=L?[R,...p]:[...p,R],L?[P,...k]:[...k,P]),w=(k,R,P,L)=>{if(y)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=w([]);else if(c){const k=typeof u<"u",R=k?u:gu(e.options,h);b=w(h,k,R)}else if(d){const k=typeof u<"u",R=k?u:Mm(e.options,h);b=w(h,k,R,!0)}else{p=[];const k=typeof e.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?w([],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 w(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 Mm(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=Mm(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class lw{constructor(t={}){this.queryCache=t.queryCache||new Am,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=Uo.subscribe(()=>{Uo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Bo.subscribe(()=>{Bo.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=>$o(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=>$o(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 Dm 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),qf(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),zo(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=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||!fu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Uo.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:y,status:S}=d,g=!1,v=!1,w;if(n._optimisticResults){const P=this.hasListeners(),L=!P&&qf(t,n),M=P&&Qf(t,r,n,s);(L||M)&&(y=Oa(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=pu(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(L){this.selectError=L}typeof P<"u"&&(S="success",w=pu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(m=this.selectError,w=this.selectResult,p=Date.now(),S="error");const b=y==="fetching",C=S==="loading",k=S==="error";return{status:S,fetchStatus:y,isLoading:C,isSuccess:S==="success",isError:k,isInitialLoading:C&&b,data:w,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&&!C,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:y==="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,zo(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"&&!mo(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 qf(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:!zo(e.getCurrentResult(),t)}class dw 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: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),zo(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:{}},tt={},$m={exports:{}},zm={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(
|
|
25
|
+
*/(function(e){function t(N,I){var z=N.length;N.push(I);e:for(;0<z;){var Z=z-1>>>1,W=N[Z];if(0<s(W,I))N[Z]=I,N[z]=W,z=Z;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var I=N[0],z=N.pop();if(z!==I){N[0]=z;e:for(var Z=0,W=N.length,an=W>>>1;Z<an;){var it=2*(Z+1)-1,ye=N[it],G=it+1,he=N[G];if(0>s(ye,z))G<W&&0>s(he,ye)?(N[Z]=he,N[G]=z,Z=G):(N[Z]=ye,N[it]=z,Z=it);else if(G<W&&0>s(he,z))N[Z]=he,N[G]=z,Z=G;else break e}}return I}function s(N,I){var z=N.sortIndex-I.sortIndex;return z!==0?z:N.id-I.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,m=!1,p=!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 I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=N)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function b(N){if(y=!1,w(N),!p)if(n(l)!==null)p=!0,A(C);else{var I=n(u);I!==null&&$(b,I.startTime-N)}}function C(N,I){p=!1,y&&(y=!1,g(P),P=-1),m=!0;var z=h;try{for(w(I),d=n(l);d!==null&&(!(d.expirationTime>I)||N&&!T());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,h=d.priorityLevel;var W=Z(d.expirationTime<=I);I=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),w(I)}else r(l);d=n(l)}if(d!==null)var an=!0;else{var it=n(u);it!==null&&$(b,it.startTime-I),an=!1}return an}finally{d=null,h=z,m=!1}}var k=!1,R=null,P=-1,L=5,M=-1;function T(){return!(e.unstable_now()-M<L)}function D(){if(R!==null){var N=e.unstable_now();M=N;var I=!0;try{I=R(!0,N)}finally{I?U():(k=!1,R=null)}}else k=!1}var U;if(typeof v=="function")U=function(){v(D)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,O=E.port2;E.port1.onmessage=D,U=function(){O.postMessage(null)}}else U=function(){S(D,0)};function A(N){R=N,k||(k=!0,U())}function $(N,I){P=S(function(){N(e.unstable_now())},I)}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(){p||m||(p=!0,A(C))},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"):L=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 I=3;break;default:I=h}var z=h;h=I;try{return N()}finally{h=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,I){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=h;h=N;try{return I()}finally{h=z}},e.unstable_scheduleCallback=function(N,I,z){var Z=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Z+z:Z):z=Z,N){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=z+W,N={id:c++,callback:I,priorityLevel:N,startTime:z,expirationTime:W,sortIndex:-1},z>Z?(N.sortIndex=z,t(u,N),n(l)===null&&N===n(u)&&(y?(g(P),P=-1):y=!0,$(b,z-Z))):(N.sortIndex=W,t(l,N),p||m||(p=!0,A(C))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var I=h;return function(){var z=h;h=I;try{return N.apply(this,arguments)}finally{h=z}}}})(zm);$m.exports=zm;var hw=$m.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,14 +30,14 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,config
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
34
|
-
`+
|
|
35
|
-
`),
|
|
36
|
-
`),o=
|
|
37
|
-
`+i[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{Rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ci(e):""}function jw(e){switch(e.tag){case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function Pu(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 xr:return"Fragment";case wr:return"Portal";case ku:return"Profiler";case Xc:return"StrictMode";case Ou:return"Suspense";case Ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l1:return(e.displayName||"Context")+".Consumer";case a1:return(e._context.displayName||"Context")+".Provider";case Gc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yc:return t=e.displayName||null,t!==null?t:Pu(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return Pu(e(t))}catch{}}return null}function Nw(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 Pu(t);case 8:return t===Xc?"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 Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tw(e){var t=c1(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.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 Js(e){e._valueTracker||(e._valueTracker=Tw(e))}function d1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=c1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ta(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 ju(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(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 f1(e,t){t=t.checked,t!=null&&Zc(e,"checked",t,!1)}function Nu(e,t){f1(e,t);var n=Ln(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")?Tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tu(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hh(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 Tu(e,t,n){(t!=="number"||ta(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ki=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _u(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ph(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(ki(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function h1(e,t){var n=Ln(t.value),r=Ln(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 mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function p1(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 Iu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?p1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var eo,m1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function es(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ti={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},_w=["Webkit","ms","Moz","O"];Object.keys(Ti).forEach(function(e){_w.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ti[t]=Ti[e]})});function g1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ti.hasOwnProperty(e)&&Ti[e]?(""+t).trim():t+"px"}function v1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=g1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Iw=ae({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 Au(e,t){if(t){if(Iw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Lu(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 Mu=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Du=null,Ir=null,Ar=null;function gh(e){if(e=As(e)){if(typeof Du!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ba(t),Du(e.stateNode,e.type,t))}}function y1(e){Ir?Ar?Ar.push(e):Ar=[e]:Ir=e}function w1(){if(Ir){var e=Ir,t=Ar;if(Ar=Ir=null,gh(e),t)for(e=0;e<t.length;e++)gh(t[e])}}function x1(e,t){return e(t)}function S1(){}var jl=!1;function b1(e,t,n){if(jl)return e(t,n);jl=!0;try{return x1(e,t,n)}finally{jl=!1,(Ir!==null||Ar!==null)&&(S1(),w1())}}function ts(e,t){var n=e.stateNode;if(n===null)return null;var r=Ba(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(_(231,t,typeof n));return n}var Fu=!1;if(sn)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{Fu=!1}function Aw(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var _i=!1,na=null,ra=!1,$u=null,Lw={onError:function(e){_i=!0,na=e}};function Mw(e,t,n,r,i,s,o,a,l){_i=!1,na=null,Aw.apply(Lw,arguments)}function Dw(e,t,n,r,i,s,o,a,l){if(Mw.apply(this,arguments),_i){if(_i){var u=na;_i=!1,na=null}else throw Error(_(198));ra||(ra=!0,$u=u)}}function dr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function E1(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 vh(e){if(dr(e)!==e)throw Error(_(188))}function Fw(e){var t=e.alternate;if(!t){if(t=dr(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return vh(i),e;if(s===r)return vh(i),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,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){for(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)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function C1(e){return e=Fw(e),e!==null?k1(e):null}function k1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=k1(e);if(t!==null)return t;e=e.sibling}return null}var O1=it.unstable_scheduleCallback,yh=it.unstable_cancelCallback,$w=it.unstable_shouldYield,zw=it.unstable_requestPaint,ce=it.unstable_now,Bw=it.unstable_getCurrentPriorityLevel,ed=it.unstable_ImmediatePriority,R1=it.unstable_UserBlockingPriority,ia=it.unstable_NormalPriority,Uw=it.unstable_LowPriority,P1=it.unstable_IdlePriority,Da=null,Vt=null;function Vw(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(Da,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:Qw,Hw=Math.log,qw=Math.LN2;function Qw(e){return e>>>=0,e===0?32:31-(Hw(e)/qw|0)|0}var to=64,no=4194304;function Oi(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 sa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Oi(a):(s&=o,s!==0&&(r=Oi(s)))}else o=n&~i,o!==0?r=Oi(o):s!==0&&(r=Oi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ww(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 Kw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Nt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Ww(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function j1(){var e=to;return to<<=1,!(to&4194240)&&(to=64),e}function Nl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _s(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(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 i=31-Nt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function td(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Y=0;function N1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var T1,nd,_1,I1,A1,Bu=!1,ro=[],On=null,Rn=null,Pn=null,ns=new Map,rs=new Map,yn=[],Xw="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 wh(e,t){switch(e){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(t.pointerId)}}function di(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=As(t),t!==null&&nd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gw(e,t,n,r,i){switch(t){case"focusin":return On=di(On,e,t,n,r,i),!0;case"dragenter":return Rn=di(Rn,e,t,n,r,i),!0;case"mouseover":return Pn=di(Pn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ns.set(s,di(ns.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,rs.set(s,di(rs.get(s)||null,e,t,n,r,i)),!0}return!1}function L1(e){var t=Xn(e.target);if(t!==null){var n=dr(t);if(n!==null){if(t=n.tag,t===13){if(t=E1(n),t!==null){e.blockedOn=t,A1(e.priority,function(){_1(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 Ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mu=r,n.target.dispatchEvent(r),Mu=null}else return t=As(n),t!==null&&nd(t),e.blockedOn=n,!1;t.shift()}return!0}function xh(e,t,n){Ro(e)&&n.delete(t)}function Yw(){Bu=!1,On!==null&&Ro(On)&&(On=null),Rn!==null&&Ro(Rn)&&(Rn=null),Pn!==null&&Ro(Pn)&&(Pn=null),ns.forEach(xh),rs.forEach(xh)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,Yw)))}function is(e){function t(i){return fi(i,e)}if(0<ro.length){fi(ro[0],e);for(var n=1;n<ro.length;n++){var r=ro[n];r.blockedOn===e&&(r.blockedOn=null)}}for(On!==null&&fi(On,e),Rn!==null&&fi(Rn,e),Pn!==null&&fi(Pn,e),ns.forEach(t),rs.forEach(t),n=0;n<yn.length;n++)r=yn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<yn.length&&(n=yn[0],n.blockedOn===null);)L1(n),n.blockedOn===null&&yn.shift()}var Lr=dn.ReactCurrentBatchConfig,oa=!0;function Jw(e,t,n,r){var i=Y,s=Lr.transition;Lr.transition=null;try{Y=1,rd(e,t,n,r)}finally{Y=i,Lr.transition=s}}function ex(e,t,n,r){var i=Y,s=Lr.transition;Lr.transition=null;try{Y=4,rd(e,t,n,r)}finally{Y=i,Lr.transition=s}}function rd(e,t,n,r){if(oa){var i=Uu(e,t,n,r);if(i===null)zl(e,t,r,aa,n),wh(e,r);else if(Gw(i,e,t,n,r))r.stopPropagation();else if(wh(e,r),t&4&&-1<Xw.indexOf(e)){for(;i!==null;){var s=As(i);if(s!==null&&T1(s),s=Uu(e,t,n,r),s===null&&zl(e,t,r,aa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else zl(e,t,r,null,n)}}var aa=null;function Uu(e,t,n,r){if(aa=null,e=Jc(r),e=Xn(e),e!==null)if(t=dr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=E1(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 aa=e,null}function M1(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(Bw()){case ed:return 1;case R1:return 4;case ia:case Uw:return 16;case P1:return 536870912;default:return 16}default:return 16}}var Sn=null,id=null,Po=null;function D1(){if(Po)return Po;var e,t=id,n=t.length,r,i="value"in Sn?Sn.value:Sn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Po=i.slice(e,1<r?1-r:void 0)}function jo(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 io(){return!0}function Sh(){return!1}function at(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?io:Sh,this.isPropagationStopped=Sh,this}return ae(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=io)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=io)},persist:function(){},isPersistent:io}),t}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sd=at(ti),Is=ae({},ti,{view:0,detail:0}),tx=at(Is),Tl,_l,hi,Fa=ae({},Is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:od,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!==hi&&(hi&&e.type==="mousemove"?(Tl=e.screenX-hi.screenX,_l=e.screenY-hi.screenY):_l=Tl=0,hi=e),Tl)},movementY:function(e){return"movementY"in e?e.movementY:_l}}),bh=at(Fa),nx=ae({},Fa,{dataTransfer:0}),rx=at(nx),ix=ae({},Is,{relatedTarget:0}),Il=at(ix),sx=ae({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),ox=at(sx),ax=ae({},ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lx=at(ax),ux=ae({},ti,{data:0}),Eh=at(ux),cx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dx={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"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fx[e])?!!t[e]:!1}function od(){return hx}var px=ae({},Is,{key:function(e){if(e.key){var t=cx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:od,charCode:function(e){return e.type==="keypress"?jo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mx=at(px),gx=ae({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ch=at(gx),vx=ae({},Is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:od}),yx=at(vx),wx=ae({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),xx=at(wx),Sx=ae({},Fa,{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}),bx=at(Sx),Ex=[9,13,27,32],ad=sn&&"CompositionEvent"in window,Ii=null;sn&&"documentMode"in document&&(Ii=document.documentMode);var Cx=sn&&"TextEvent"in window&&!Ii,F1=sn&&(!ad||Ii&&8<Ii&&11>=Ii),kh=String.fromCharCode(32),Oh=!1;function $1(e,t){switch(e){case"keyup":return Ex.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function kx(e,t){switch(e){case"compositionend":return z1(t);case"keypress":return t.which!==32?null:(Oh=!0,kh);case"textInput":return e=t.data,e===kh&&Oh?null:e;default:return null}}function Ox(e,t){if(Sr)return e==="compositionend"||!ad&&$1(e,t)?(e=D1(),Po=id=Sn=null,Sr=!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 F1&&t.locale!=="ko"?null:t.data;default:return null}}var Rx={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 Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rx[e.type]:t==="textarea"}function B1(e,t,n,r){y1(r),t=la(t,"onChange"),0<t.length&&(n=new sd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ai=null,ss=null;function Px(e){Y1(e,0)}function $a(e){var t=Cr(e);if(d1(t))return e}function jx(e,t){if(e==="change")return t}var U1=!1;if(sn){var Al;if(sn){var Ll="oninput"in document;if(!Ll){var Ph=document.createElement("div");Ph.setAttribute("oninput","return;"),Ll=typeof Ph.oninput=="function"}Al=Ll}else Al=!1;U1=Al&&(!document.documentMode||9<document.documentMode)}function jh(){Ai&&(Ai.detachEvent("onpropertychange",V1),ss=Ai=null)}function V1(e){if(e.propertyName==="value"&&$a(ss)){var t=[];B1(t,ss,e,Jc(e)),b1(Px,t)}}function Nx(e,t,n){e==="focusin"?(jh(),Ai=t,ss=n,Ai.attachEvent("onpropertychange",V1)):e==="focusout"&&jh()}function Tx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $a(ss)}function _x(e,t){if(e==="click")return $a(t)}function Ix(e,t){if(e==="input"||e==="change")return $a(t)}function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Ax;function os(e,t){if(_t(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 i=n[r];if(!Cu.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function Nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Th(e,t){var n=Nh(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=Nh(n)}}function H1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q1(){for(var e=window,t=ta();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ta(e.document)}return t}function ld(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 Lx(e){var t=q1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H1(n.ownerDocument.documentElement,n)){if(r!==null&&ld(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Th(n,s);var o=Th(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>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 Mx=sn&&"documentMode"in document&&11>=document.documentMode,br=null,Vu=null,Li=null,Hu=!1;function _h(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hu||br==null||br!==ta(r)||(r=br,"selectionStart"in r&&ld(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}),Li&&os(Li,r)||(Li=r,r=la(Vu,"onSelect"),0<r.length&&(t=new sd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function so(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},Ml={},Q1={};sn&&(Q1=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);function za(e){if(Ml[e])return Ml[e];if(!Er[e])return e;var t=Er[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Q1)return Ml[e]=t[n];return e}var W1=za("animationend"),K1=za("animationiteration"),Z1=za("animationstart"),X1=za("transitionend"),G1=new Map,Ih="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 Dn(e,t){G1.set(e,t),cr(t,[e])}for(var Dl=0;Dl<Ih.length;Dl++){var Fl=Ih[Dl],Dx=Fl.toLowerCase(),Fx=Fl[0].toUpperCase()+Fl.slice(1);Dn(Dx,"on"+Fx)}Dn(W1,"onAnimationEnd");Dn(K1,"onAnimationIteration");Dn(Z1,"onAnimationStart");Dn("dblclick","onDoubleClick");Dn("focusin","onFocus");Dn("focusout","onBlur");Dn(X1,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cr("onBeforeInput",["compositionend","keypress","textInput","paste"]);cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),$x=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ri));function Ah(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Dw(r,t,void 0,e),e.currentTarget=null}function Y1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=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!==s&&i.isPropagationStopped())break e;Ah(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Ah(i,a,u),s=l}}}if(ra)throw e=$u,ra=!1,$u=null,e}function te(e,t){var n=t[Zu];n===void 0&&(n=t[Zu]=new Set);var r=e+"__bubble";n.has(r)||(J1(t,e,2,!1),n.add(r))}function $l(e,t,n){var r=0;t&&(r|=4),J1(n,e,r,t)}var oo="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[oo]){e[oo]=!0,o1.forEach(function(n){n!=="selectionchange"&&($x.has(n)||$l(n,!1,e),$l(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oo]||(t[oo]=!0,$l("selectionchange",!1,t))}}function J1(e,t,n,r){switch(M1(t)){case 1:var i=Jw;break;case 4:i=ex;break;default:i=rd}n=i.bind(null,t,n,e),i=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zl(e,t,n,r,i){var s=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===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Xn(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}b1(function(){var u=s,c=Jc(n),d=[];e:{var h=G1.get(e);if(h!==void 0){var g=sd,p=e;switch(e){case"keypress":if(jo(n)===0)break e;case"keydown":case"keyup":g=mx;break;case"focusin":p="focus",g=Il;break;case"focusout":p="blur",g=Il;break;case"beforeblur":case"afterblur":g=Il;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":g=bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=rx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=yx;break;case W1:case K1:case Z1:g=ox;break;case X1:g=xx;break;case"scroll":g=tx;break;case"wheel":g=bx;break;case"copy":case"cut":case"paste":g=lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ch}var y=(t&4)!==0,x=!y&&e==="scroll",m=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,m!==null&&(S=ts(v,m),S!=null&&y.push(ls(v,S,w)))),x)break;v=v.return}0<y.length&&(h=new g(h,p,null,n,c),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==Mu&&(p=n.relatedTarget||n.fromElement)&&(Xn(p)||p[on]))break e;if((g||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,g?(p=n.relatedTarget||n.toElement,g=u,p=p?Xn(p):null,p!==null&&(x=dr(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(g=null,p=u),g!==p)){if(y=bh,S="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ch,S="onPointerLeave",m="onPointerEnter",v="pointer"),x=g==null?h:Cr(g),w=p==null?h:Cr(p),h=new y(S,v+"leave",g,n,c),h.target=x,h.relatedTarget=w,S=null,Xn(c)===u&&(y=new y(m,v+"enter",p,n,c),y.target=w,y.relatedTarget=x,S=y),x=S,g&&p)t:{for(y=g,m=p,v=0,w=y;w;w=gr(w))v++;for(w=0,S=m;S;S=gr(S))w++;for(;0<v-w;)y=gr(y),v--;for(;0<w-v;)m=gr(m),w--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=gr(y),m=gr(m)}y=null}else y=null;g!==null&&Lh(d,h,g,y,!1),p!==null&&x!==null&&Lh(d,x,p,y,!0)}}e:{if(h=u?Cr(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var C=jx;else if(Rh(h))if(U1)C=Ix;else{C=Tx;var k=Nx}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=_x);if(C&&(C=C(e,u))){B1(d,C,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Tu(h,"number",h.value)}switch(k=u?Cr(u):window,e){case"focusin":(Rh(k)||k.contentEditable==="true")&&(br=k,Vu=u,Li=null);break;case"focusout":Li=Vu=br=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,_h(d,n,c);break;case"selectionchange":if(Mx)break;case"keydown":case"keyup":_h(d,n,c)}var O;if(ad)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Sr?$1(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(F1&&n.locale!=="ko"&&(Sr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Sr&&(O=D1()):(Sn=c,id="value"in Sn?Sn.value:Sn.textContent,Sr=!0)),k=la(u,R),0<k.length&&(R=new Eh(R,e,null,n,c),d.push({event:R,listeners:k}),O?R.data=O:(O=z1(n),O!==null&&(R.data=O)))),(O=Cx?kx(e,n):Ox(e,n))&&(u=la(u,"onBeforeInput"),0<u.length&&(c=new Eh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=O))}Y1(d,t)})}function ls(e,t,n){return{instance:e,listener:t,currentTarget:n}}function la(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ts(e,n),s!=null&&r.unshift(ls(e,s,i)),s=ts(e,t),s!=null&&r.push(ls(e,s,i))),e=e.return}return r}function gr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lh(e,t,n,r,i){for(var s=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,i?(l=ts(n,s),l!=null&&o.unshift(ls(n,l,a))):i||(l=ts(n,s),l!=null&&o.push(ls(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zx=/\r\n?/g,Bx=/\u0000|\uFFFD/g;function Mh(e){return(typeof e=="string"?e:""+e).replace(zx,`
|
|
38
|
-
`).replace(Bx,"")}function ao(e,t,n){if(t=Mh(t),Mh(e)!==t&&n)throw Error(_(425))}function ua(){}var qu=null,Qu=null;function Wu(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 Ku=typeof setTimeout=="function"?setTimeout:void 0,Ux=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,Vx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(Hx)}:Ku;function Hx(e){setTimeout(function(){throw e})}function Bl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);is(t)}function jn(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 Fh(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 ni=Math.random().toString(36).slice(2),Bt="__reactFiber$"+ni,us="__reactProps$"+ni,on="__reactContainer$"+ni,Zu="__reactEvents$"+ni,qx="__reactListeners$"+ni,Qx="__reactHandles$"+ni;function Xn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fh(e);e!==null;){if(n=e[Bt])return n;e=Fh(e)}return t}e=n,n=e.parentNode}return null}function As(e){return e=e[Bt]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Ba(e){return e[us]||null}var Xu=[],kr=-1;function Fn(e){return{current:e}}function ne(e){0>kr||(e.current=Xu[kr],Xu[kr]=null,kr--)}function ee(e,t){kr++,Xu[kr]=e.current,e.current=t}var Mn={},Pe=Fn(Mn),Qe=Fn(!1),rr=Mn;function Br(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function ca(){ne(Qe),ne(Pe)}function $h(e,t,n){if(Pe.current!==Mn)throw Error(_(168));ee(Pe,t),ee(Qe,n)}function eg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Nw(e)||"Unknown",i));return ae({},n,r)}function da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,rr=Pe.current,ee(Pe,e),ee(Qe,Qe.current),!0}function zh(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=eg(e,t,rr),r.__reactInternalMemoizedMergedChildContext=e,ne(Qe),ne(Pe),ee(Pe,e)):ne(Qe),ee(Qe,n)}var Jt=null,Ua=!1,Ul=!1;function tg(e){Jt===null?Jt=[e]:Jt.push(e)}function Wx(e){Ua=!0,tg(e)}function $n(){if(!Ul&&Jt!==null){Ul=!0;var e=0,t=Y;try{var n=Jt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Jt=null,Ua=!1}catch(i){throw Jt!==null&&(Jt=Jt.slice(e+1)),O1(ed,$n),i}finally{Y=t,Ul=!1}}return null}var Or=[],Rr=0,fa=null,ha=0,dt=[],ft=0,ir=null,en=1,tn="";function Qn(e,t){Or[Rr++]=ha,Or[Rr++]=fa,fa=e,ha=t}function ng(e,t,n){dt[ft++]=en,dt[ft++]=tn,dt[ft++]=ir,ir=e;var r=en;e=tn;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var s=32-Nt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,en=1<<32-Nt(t)+i|n<<i|r,tn=s+e}else en=1<<s|n<<i|r,tn=e}function ud(e){e.return!==null&&(Qn(e,1),ng(e,1,0))}function cd(e){for(;e===fa;)fa=Or[--Rr],Or[Rr]=null,ha=Or[--Rr],Or[Rr]=null;for(;e===ir;)ir=dt[--ft],dt[ft]=null,tn=dt[--ft],dt[ft]=null,en=dt[--ft],dt[ft]=null}var rt=null,tt=null,re=!1,Rt=null;function rg(e,t){var n=mt(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 Bh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,tt=jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:en,overflow:tn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,tt=null,!0):!1;default:return!1}}function Gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yu(e){if(re){var t=tt;if(t){var n=t;if(!Bh(e,t)){if(Gu(e))throw Error(_(418));t=jn(n.nextSibling);var r=rt;t&&Bh(e,t)?rg(r,n):(e.flags=e.flags&-4097|2,re=!1,rt=e)}}else{if(Gu(e))throw Error(_(418));e.flags=e.flags&-4097|2,re=!1,rt=e}}}function Uh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function lo(e){if(e!==rt)return!1;if(!re)return Uh(e),re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wu(e.type,e.memoizedProps)),t&&(t=tt)){if(Gu(e))throw ig(),Error(_(418));for(;t;)rg(e,t),t=jn(t.nextSibling)}if(Uh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){tt=jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=rt?jn(e.stateNode.nextSibling):null;return!0}function ig(){for(var e=tt;e;)e=jn(e.nextSibling)}function Ur(){tt=rt=null,re=!1}function dd(e){Rt===null?Rt=[e]:Rt.push(e)}var Kx=dn.ReactCurrentBatchConfig;function kt(e,t){if(e&&e.defaultProps){t=ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var pa=Fn(null),ma=null,Pr=null,fd=null;function hd(){fd=Pr=ma=null}function pd(e){var t=pa.current;ne(pa),e._currentValue=t}function Ju(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 Mr(e,t){ma=e,fd=Pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(fd!==e)if(e={context:e,memoizedValue:t,next:null},Pr===null){if(ma===null)throw Error(_(308));Pr=e,ma.dependencies={lanes:0,firstContext:e}}else Pr=Pr.next=e;return t}var Gn=null;function md(e){Gn===null?Gn=[e]:Gn.push(e)}function sg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,md(t)):(n.next=i.next,i.next=n),t.interleaved=n,an(e,r)}function an(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 vn=!1;function gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function og(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,an(e,n)}return i=r.interleaved,i===null?(t.next=t,md(r)):(t.next=i.next,i.next=t),r.interleaved=t,an(e,n)}function No(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,td(e,n)}}function Vh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 ga(e,t,n,r){var i=e.updateQueue;vn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=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(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var h=a.lane,g=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,y=a;switch(h=t,g=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(g,d,h);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,h=typeof p=="function"?p.call(g,d,h):p,h==null)break e;d=ae({},d,h);break e;case 2:vn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else g={eventTime:g,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);or|=o,e.lanes=o,e.memoizedState=d}}function Hh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var ag=new s1.Component().refs;function ec(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Va={isMounted:function(e){return(e=e._reactInternals)?dr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=_n(e),s=rn(r,i);s.payload=t,n!=null&&(s.callback=n),t=Nn(e,s,i),t!==null&&(Tt(t,e,i,r),No(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=_n(e),s=rn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Nn(e,s,i),t!==null&&(Tt(t,e,i,r),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ie(),r=_n(e),i=rn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Nn(e,i,r),t!==null&&(Tt(t,e,r,n),No(t,e,r))}};function qh(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!os(n,r)||!os(i,s):!0}function lg(e,t,n){var r=!1,i=Mn,s=t.contextType;return typeof s=="object"&&s!==null?s=yt(s):(i=We(t)?rr:Pe.current,r=t.contextTypes,s=(r=r!=null)?Br(e,i):Mn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qh(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&&Va.enqueueReplaceState(t,t.state,null)}function tc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ag,gd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=yt(s):(s=We(t)?rr:Pe.current,i.context=Br(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ec(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Va.enqueueReplaceState(i,i.state,null),ga(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function pi(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(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;a===ag&&(a=i.refs={}),o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function uo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wh(e){var t=e._init;return t(e._payload)}function ug(e){function t(m,v){if(e){var w=m.deletions;w===null?(m.deletions=[v],m.flags|=16):w.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=In(m,v),m.index=0,m.sibling=null,m}function s(m,v,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<v?(m.flags|=2,v):w):(m.flags|=2,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,v,w,S){return v===null||v.tag!==6?(v=Zl(w,m.mode,S),v.return=m,v):(v=i(v,w),v.return=m,v)}function l(m,v,w,S){var C=w.type;return C===xr?c(m,v,w.props.children,S,w.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Wh(C)===v.type)?(S=i(v,w.props),S.ref=pi(m,v,w),S.return=m,S):(S=Mo(w.type,w.key,w.props,null,m.mode,S),S.ref=pi(m,v,w),S.return=m,S)}function u(m,v,w,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Xl(w,m.mode,S),v.return=m,v):(v=i(v,w.children||[]),v.return=m,v)}function c(m,v,w,S,C){return v===null||v.tag!==7?(v=tr(w,m.mode,S,C),v.return=m,v):(v=i(v,w),v.return=m,v)}function d(m,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Zl(""+v,m.mode,w),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ys:return w=Mo(v.type,v.key,v.props,null,m.mode,w),w.ref=pi(m,null,v),w.return=m,w;case wr:return v=Xl(v,m.mode,w),v.return=m,v;case gn:var S=v._init;return d(m,S(v._payload),w)}if(ki(v)||ui(v))return v=tr(v,m.mode,w,null),v.return=m,v;uo(m,v)}return null}function h(m,v,w,S){var C=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(m,v,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ys:return w.key===C?l(m,v,w,S):null;case wr:return w.key===C?u(m,v,w,S):null;case gn:return C=w._init,h(m,v,C(w._payload),S)}if(ki(w)||ui(w))return C!==null?null:c(m,v,w,S,null);uo(m,w)}return null}function g(m,v,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(w)||null,a(v,m,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ys:return m=m.get(S.key===null?w:S.key)||null,l(v,m,S,C);case wr:return m=m.get(S.key===null?w:S.key)||null,u(v,m,S,C);case gn:var k=S._init;return g(m,v,w,k(S._payload),C)}if(ki(S)||ui(S))return m=m.get(w)||null,c(v,m,S,C,null);uo(v,S)}return null}function p(m,v,w,S){for(var C=null,k=null,O=v,R=v=0,I=null;O!==null&&R<w.length;R++){O.index>R?(I=O,O=null):I=O.sibling;var A=h(m,O,w[R],S);if(A===null){O===null&&(O=I);break}e&&O&&A.alternate===null&&t(m,O),v=s(A,v,R),k===null?C=A:k.sibling=A,k=A,O=I}if(R===w.length)return n(m,O),re&&Qn(m,R),C;if(O===null){for(;R<w.length;R++)O=d(m,w[R],S),O!==null&&(v=s(O,v,R),k===null?C=O:k.sibling=O,k=O);return re&&Qn(m,R),C}for(O=r(m,O);R<w.length;R++)I=g(O,m,R,w[R],S),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?R:I.key),v=s(I,v,R),k===null?C=I:k.sibling=I,k=I);return e&&O.forEach(function(M){return t(m,M)}),re&&Qn(m,R),C}function y(m,v,w,S){var C=ui(w);if(typeof C!="function")throw Error(_(150));if(w=C.call(w),w==null)throw Error(_(151));for(var k=C=null,O=v,R=v=0,I=null,A=w.next();O!==null&&!A.done;R++,A=w.next()){O.index>R?(I=O,O=null):I=O.sibling;var M=h(m,O,A.value,S);if(M===null){O===null&&(O=I);break}e&&O&&M.alternate===null&&t(m,O),v=s(M,v,R),k===null?C=M:k.sibling=M,k=M,O=I}if(A.done)return n(m,O),re&&Qn(m,R),C;if(O===null){for(;!A.done;R++,A=w.next())A=d(m,A.value,S),A!==null&&(v=s(A,v,R),k===null?C=A:k.sibling=A,k=A);return re&&Qn(m,R),C}for(O=r(m,O);!A.done;R++,A=w.next())A=g(O,m,R,A.value,S),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?R:A.key),v=s(A,v,R),k===null?C=A:k.sibling=A,k=A);return e&&O.forEach(function(z){return t(m,z)}),re&&Qn(m,R),C}function x(m,v,w,S){if(typeof w=="object"&&w!==null&&w.type===xr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ys:e:{for(var C=w.key,k=v;k!==null;){if(k.key===C){if(C=w.type,C===xr){if(k.tag===7){n(m,k.sibling),v=i(k,w.props.children),v.return=m,m=v;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Wh(C)===k.type){n(m,k.sibling),v=i(k,w.props),v.ref=pi(m,k,w),v.return=m,m=v;break e}n(m,k);break}else t(m,k);k=k.sibling}w.type===xr?(v=tr(w.props.children,m.mode,S,w.key),v.return=m,m=v):(S=Mo(w.type,w.key,w.props,null,m.mode,S),S.ref=pi(m,v,w),S.return=m,m=S)}return o(m);case wr:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(m,v.sibling),v=i(v,w.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Xl(w,m.mode,S),v.return=m,m=v}return o(m);case gn:return k=w._init,x(m,v,k(w._payload),S)}if(ki(w))return p(m,v,w,S);if(ui(w))return y(m,v,w,S);uo(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,w),v.return=m,m=v):(n(m,v),v=Zl(w,m.mode,S),v.return=m,m=v),o(m)):n(m,v)}return x}var Vr=ug(!0),cg=ug(!1),Ls={},Ht=Fn(Ls),cs=Fn(Ls),ds=Fn(Ls);function Yn(e){if(e===Ls)throw Error(_(174));return e}function vd(e,t){switch(ee(ds,t),ee(cs,e),ee(Ht,Ls),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Iu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Iu(t,e)}ne(Ht),ee(Ht,t)}function Hr(){ne(Ht),ne(cs),ne(ds)}function dg(e){Yn(ds.current);var t=Yn(Ht.current),n=Iu(t,e.type);t!==n&&(ee(cs,e),ee(Ht,n))}function yd(e){cs.current===e&&(ne(Ht),ne(cs))}var se=Fn(0);function va(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 Vl=[];function wd(){for(var e=0;e<Vl.length;e++)Vl[e]._workInProgressVersionPrimary=null;Vl.length=0}var To=dn.ReactCurrentDispatcher,Hl=dn.ReactCurrentBatchConfig,sr=0,oe=null,pe=null,ve=null,ya=!1,Mi=!1,fs=0,Zx=0;function ke(){throw Error(_(321))}function xd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function Sd(e,t,n,r,i,s){if(sr=s,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,To.current=e===null||e.memoizedState===null?Jx:eS,e=n(r,i),Mi){s=0;do{if(Mi=!1,fs=0,25<=s)throw Error(_(301));s+=1,ve=pe=null,t.updateQueue=null,To.current=tS,e=n(r,i)}while(Mi)}if(To.current=wa,t=pe!==null&&pe.next!==null,sr=0,ve=pe=oe=null,ya=!1,t)throw Error(_(300));return e}function bd(){var e=fs!==0;return fs=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?oe.memoizedState=ve=e:ve=ve.next=e,ve}function wt(){if(pe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ve===null?oe.memoizedState:ve.next;if(t!==null)ve=t,pe=e;else{if(e===null)throw Error(_(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ve===null?oe.memoizedState=ve=e:ve=ve.next=e}return ve}function hs(e,t){return typeof t=="function"?t(e):t}function ql(e){var t=wt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=pe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((sr&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,oe.lanes|=c,or|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,_t(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,oe.lanes|=s,or|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ql(e){var t=wt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);_t(s,t.memoizedState)||(qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function fg(){}function hg(e,t){var n=oe,r=wt(),i=t(),s=!_t(r.memoizedState,i);if(s&&(r.memoizedState=i,qe=!0),r=r.queue,Ed(gg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,ps(9,mg.bind(null,n,r,i,t),void 0,null),ye===null)throw Error(_(349));sr&30||pg(n,t,i)}return i}function pg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mg(e,t,n,r){t.value=n,t.getSnapshot=r,vg(t)&&yg(e)}function gg(e,t,n){return n(function(){vg(t)&&yg(e)})}function vg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function yg(e){var t=an(e,1);t!==null&&Tt(t,e,1,-1)}function Kh(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t.queue=e,e=e.dispatch=Yx.bind(null,oe,e),[t.memoizedState,e]}function ps(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.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 wg(){return wt().memoizedState}function _o(e,t,n,r){var i=$t();oe.flags|=e,i.memoizedState=ps(1|t,n,void 0,r===void 0?null:r)}function Ha(e,t,n,r){var i=wt();r=r===void 0?null:r;var s=void 0;if(pe!==null){var o=pe.memoizedState;if(s=o.destroy,r!==null&&xd(r,o.deps)){i.memoizedState=ps(t,n,s,r);return}}oe.flags|=e,i.memoizedState=ps(1|t,n,s,r)}function Zh(e,t){return _o(8390656,8,e,t)}function Ed(e,t){return Ha(2048,8,e,t)}function xg(e,t){return Ha(4,2,e,t)}function Sg(e,t){return Ha(4,4,e,t)}function bg(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 Eg(e,t,n){return n=n!=null?n.concat([e]):null,Ha(4,4,bg.bind(null,t,e),n)}function Cd(){}function Cg(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kg(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Og(e,t,n){return sr&21?(_t(n,t)||(n=j1(),oe.lanes|=n,or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Xx(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Hl.transition;Hl.transition={};try{e(!1),t()}finally{Y=n,Hl.transition=r}}function Rg(){return wt().memoizedState}function Gx(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pg(e))jg(t,n);else if(n=sg(e,t,n,r),n!==null){var i=Ie();Tt(n,e,r,i),Ng(n,t,r)}}function Yx(e,t,n){var r=_n(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pg(e))jg(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,_t(a,o)){var l=t.interleaved;l===null?(i.next=i,md(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=sg(e,t,i,r),n!==null&&(i=Ie(),Tt(n,e,r,i),Ng(n,t,r))}}function Pg(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function jg(e,t){Mi=ya=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ng(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,td(e,n)}}var wa={readContext:yt,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},Jx={readContext:yt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_o(4194308,4,bg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _o(4194308,4,e,t)},useInsertionEffect:function(e,t){return _o(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();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=Gx.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:Kh,useDebugValue:Cd,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Kh(!1),t=e[0];return e=Xx.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=$t();if(re){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ye===null)throw Error(_(349));sr&30||pg(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Zh(gg.bind(null,r,s,e),[e]),r.flags|=2048,ps(9,mg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=ye.identifierPrefix;if(re){var n=tn,r=en;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eS={readContext:yt,useCallback:Cg,useContext:yt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:ql,useRef:wg,useState:function(){return ql(hs)},useDebugValue:Cd,useDeferredValue:function(e){var t=wt();return Og(t,pe.memoizedState,e)},useTransition:function(){var e=ql(hs)[0],t=wt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1},tS={readContext:yt,useCallback:Cg,useContext:yt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:Ql,useRef:wg,useState:function(){return Ql(hs)},useDebugValue:Cd,useDeferredValue:function(e){var t=wt();return pe===null?t.memoizedState=e:Og(t,pe.memoizedState,e)},useTransition:function(){var e=Ql(hs)[0],t=wt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1};function qr(e,t){try{var n="",r=t;do n+=jw(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
-
Error generating stack: `+
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nS=typeof WeakMap=="function"?WeakMap:Map;function Tg(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sa||(Sa=!0,fc=r),nc(e,t)},n}function _g(e,t,n){n=rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){nc(e,t),typeof r!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nS;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=gS.bind(null,e,t,n),t.then(e,e))}function Gh(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 Yh(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=rn(-1,1),t.tag=2,Nn(n,t,1))),n.lanes|=1),e)}var rS=dn.ReactCurrentOwner,qe=!1;function Te(e,t,n,r){t.child=e===null?cg(t,null,n,r):Vr(t,e.child,n,r)}function Jh(e,t,n,r,i){n=n.render;var s=t.ref;return Mr(t,i),r=Sd(e,t,n,r,s,i),n=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(re&&n&&ud(t),t.flags|=1,Te(e,t,r,i),t.child)}function ep(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!_d(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Ig(e,t,s,r,i)):(e=Mo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:os,n(o,r)&&e.ref===t.ref)return ln(e,t,i)}return t.flags|=1,e=In(s,r),e.ref=t.ref,e.return=t,t.child=e}function Ig(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(os(s,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,ln(e,t,i)}return rc(e,t,n,r,i)}function Ag(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(Nr,Je),Je|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(Nr,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ee(Nr,Je),Je|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ee(Nr,Je),Je|=r;return Te(e,t,i,n),t.child}function Lg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rc(e,t,n,r,i){var s=We(n)?rr:Pe.current;return s=Br(t,s),Mr(t,i),n=Sd(e,t,n,r,s,i),r=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(re&&r&&ud(t),t.flags|=1,Te(e,t,n,i),t.child)}function tp(e,t,n,r,i){if(We(n)){var s=!0;da(t)}else s=!1;if(Mr(t,i),t.stateNode===null)Io(e,t),lg(t,n,r),tc(t,n,r,i),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=yt(u):(u=We(n)?rr:Pe.current,u=Br(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)&&Qh(t,o,r,u),vn=!1;var h=t.memoizedState;o.state=h,ga(t,r,o,i),l=t.memoizedState,a!==r||h!==l||Qe.current||vn?(typeof c=="function"&&(ec(t,n,c,r),l=t.memoizedState),(a=vn||qh(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,og(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:kt(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=yt(l):(l=We(n)?rr:Pe.current,l=Br(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Qh(t,o,r,l),vn=!1,h=t.memoizedState,o.state=h,ga(t,r,o,i);var p=t.memoizedState;a!==d||h!==p||Qe.current||vn?(typeof g=="function"&&(ec(t,n,g,r),p=t.memoizedState),(u=vn||qh(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 ic(e,t,n,r,s,i)}function ic(e,t,n,r,i,s){Lg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&zh(t,n,!1),ln(e,t,s);r=t.stateNode,rS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Vr(t,e.child,null,s),t.child=Vr(t,null,a,s)):Te(e,t,a,s),t.memoizedState=r.state,i&&zh(t,n,!0),t.child}function Mg(e){var t=e.stateNode;t.pendingContext?$h(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$h(e,t.context,!1),vd(e,t.containerInfo)}function np(e,t,n,r,i){return Ur(),dd(i),t.flags|=256,Te(e,t,n,r),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0};function oc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dg(e,t,n){var r=t.pendingProps,i=se.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ee(se,i&1),e===null)return Yu(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,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Wa(o,r,0,null),e=tr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=oc(n),t.memoizedState=sc,e):kd(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return iS(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=In(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=In(a,s):(s=tr(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?oc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=sc,r}return s=e.child,e=s.sibling,r=In(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function kd(e,t){return t=Wa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function co(e,t,n,r){return r!==null&&dd(r),Vr(t,e.child,null,n),e=kd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iS(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Wl(Error(_(422))),co(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Wa({mode:"visible",children:r.children},i,0,null),s=tr(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vr(t,e.child,null,o),t.child.memoizedState=oc(o),t.memoizedState=sc,s);if(!(t.mode&1))return co(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(_(419)),r=Wl(s,r,void 0),co(e,t,o,r)}if(a=(o&e.childLanes)!==0,qe||a){if(r=ye,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,an(e,i),Tt(r,e,i,-1))}return Td(),r=Wl(Error(_(421))),co(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=vS.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,tt=jn(i.nextSibling),rt=t,re=!0,Rt=null,e!==null&&(dt[ft++]=en,dt[ft++]=tn,dt[ft++]=ir,en=e.id,tn=e.overflow,ir=t),t=kd(t,r.children),t.flags|=4096,t)}function rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ju(e.return,t,n)}function Kl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Fg(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Te(e,t,r.children,n),r=se.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&&rp(e,n,t);else if(e.tag===19)rp(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(ee(se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&va(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&va(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kl(t,!0,n,null,s);break;case"together":Kl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Io(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=In(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=In(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sS(e,t,n){switch(t.tag){case 3:Mg(t),Ur();break;case 5:dg(t);break;case 1:We(t.type)&&da(t);break;case 4:vd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ee(pa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(se,se.current&1),t.flags|=128,null):n&t.child.childLanes?Dg(e,t,n):(ee(se,se.current&1),e=ln(e,t,n),e!==null?e.sibling:null);ee(se,se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ee(se,se.current),r)break;return null;case 22:case 23:return t.lanes=0,Ag(e,t,n)}return ln(e,t,n)}var $g,ac,zg,Bg;$g=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}};ac=function(){};zg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yn(Ht.current);var s=null;switch(n){case"input":i=ju(e,i),r=ju(e,r),s=[];break;case"select":i=ae({},i,{value:void 0}),r=ae({},r,{value:void 0}),s=[];break;case"textarea":i=_u(e,i),r=_u(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ua)}Au(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ji.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[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||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ji.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&te("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Bg=function(e,t,n,r){n!==r&&(t.flags|=4)};function mi(e,t){if(!re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oS(e,t,n){var r=t.pendingProps;switch(cd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return We(t.type)&&ca(),Oe(t),null;case 3:return r=t.stateNode,Hr(),ne(Qe),ne(Pe),wd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(lo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(mc(Rt),Rt=null))),ac(e,t),Oe(t),null;case 5:yd(t);var i=Yn(ds.current);if(n=t.type,e!==null&&t.stateNode!=null)zg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Oe(t),null}if(e=Yn(Ht.current),lo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Bt]=t,r[us]=s,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(i=0;i<Ri.length;i++)te(Ri[i],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":fh(r,s),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},te("invalid",r);break;case"textarea":ph(r,s),te("invalid",r)}Au(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,a,e),i=["children",""+a]):Ji.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&te("scroll",r)}switch(n){case"input":Js(r),hh(r,s,!0);break;case"textarea":Js(r),mh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ua)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=p1(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[Bt]=t,e[us]=r,$g(e,t,!1,!1),t.stateNode=e;e:{switch(o=Lu(n,r),n){case"dialog":te("cancel",e),te("close",e),i=r;break;case"iframe":case"object":case"embed":te("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ri.length;i++)te(Ri[i],e);i=r;break;case"source":te("error",e),i=r;break;case"img":case"image":case"link":te("error",e),te("load",e),i=r;break;case"details":te("toggle",e),i=r;break;case"input":fh(e,r),i=ju(e,r),te("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ae({},r,{value:void 0}),te("invalid",e);break;case"textarea":ph(e,r),i=_u(e,r),te("invalid",e);break;default:i=r}Au(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?v1(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&m1(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&es(e,l):typeof l=="number"&&es(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ji.hasOwnProperty(s)?l!=null&&s==="onScroll"&&te("scroll",e):l!=null&&Zc(e,s,l,o))}switch(n){case"input":Js(e),hh(e,r,!1);break;case"textarea":Js(e),mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?_r(e,!!r.multiple,s,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ua)}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 Oe(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(_(166));if(n=Yn(ds.current),Yn(Ht.current),lo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(s=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ao(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return Oe(t),null;case 13:if(ne(se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&tt!==null&&t.mode&1&&!(t.flags&128))ig(),Ur(),t.flags|=98560,s=!1;else if(s=lo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[Bt]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),s=!1}else Rt!==null&&(mc(Rt),Rt=null),s=!0;if(!s)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||se.current&1?me===0&&(me=3):Td())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return Hr(),ac(e,t),e===null&&as(t.stateNode.containerInfo),Oe(t),null;case 10:return pd(t.type._context),Oe(t),null;case 17:return We(t.type)&&ca(),Oe(t),null;case 19:if(ne(se),s=t.memoizedState,s===null)return Oe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)mi(s,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=va(e),o!==null){for(t.flags|=128,mi(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(se,se.current&1|2),t.child}e=e.sibling}s.tail!==null&&ce()>Qr&&(t.flags|=128,r=!0,mi(s,!1),t.lanes=4194304)}else{if(!r)if(e=va(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!re)return Oe(t),null}else 2*ce()-s.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,mi(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ce(),t.sibling=null,n=se.current,ee(se,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function aS(e,t){switch(cd(t),t.tag){case 1:return We(t.type)&&ca(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hr(),ne(Qe),ne(Pe),wd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yd(t),null;case 13:if(ne(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(se),null;case 4:return Hr(),null;case 10:return pd(t.type._context),null;case 22:case 23:return Nd(),null;case 24:return null;default:return null}}var fo=!1,Re=!1,lS=typeof WeakSet=="function"?WeakSet:Set,D=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function lc(e,t,n){try{n()}catch(r){le(e,t,r)}}var ip=!1;function uS(e,t){if(qu=oa,e=q1(),ld(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.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 g;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++u===i&&(a=o),h===s&&++c===r&&(l=o),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qu={focusedElem:e,selectionRange:n},oa=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;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 y=p.memoizedProps,x=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:kt(t.type,y),x);m.__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(_(163))}}catch(S){le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return p=ip,ip=!1,p}function Di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&lc(t,n,s)}i=i.next}while(i!==r)}}function qa(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 uc(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 Ug(e){var t=e.alternate;t!==null&&(e.alternate=null,Ug(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[us],delete t[Zu],delete t[qx],delete t[Qx])),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 Vg(e){return e.tag===5||e.tag===3||e.tag===4}function sp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vg(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 cc(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=ua));else if(r!==4&&(e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function dc(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(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}var Se=null,Ot=!1;function hn(e,t,n){for(n=n.child;n!==null;)Hg(e,t,n),n=n.sibling}function Hg(e,t,n){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Da,n)}catch{}switch(n.tag){case 5:Re||jr(n,t);case 6:var r=Se,i=Ot;Se=null,hn(e,t,n),Se=r,Ot=i,Se!==null&&(Ot?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(Ot?(e=Se,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),is(e)):Bl(Se,n.stateNode));break;case 4:r=Se,i=Ot,Se=n.stateNode.containerInfo,Ot=!0,hn(e,t,n),Se=r,Ot=i;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&lc(n,t,o),i=i.next}while(i!==r)}hn(e,t,n);break;case 1:if(!Re&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,hn(e,t,n),Re=r):hn(e,t,n);break;default:hn(e,t,n)}}function op(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lS),t.forEach(function(r){var i=yS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,Ot=!1;break e;case 3:Se=a.stateNode.containerInfo,Ot=!0;break e;case 4:Se=a.stateNode.containerInfo,Ot=!0;break e}a=a.return}if(Se===null)throw Error(_(160));Hg(s,o,i),Se=null,Ot=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){le(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qg(t,e),t=t.sibling}function qg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Dt(e),r&4){try{Di(3,e,e.return),qa(3,e)}catch(y){le(e,e.return,y)}try{Di(5,e,e.return)}catch(y){le(e,e.return,y)}}break;case 1:Ct(t,e),Dt(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(Ct(t,e),Dt(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{es(i,"")}catch(y){le(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&f1(i,s),Lu(a,o);var u=Lu(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?v1(i,d):c==="dangerouslySetInnerHTML"?m1(i,d):c==="children"?es(i,d):Zc(i,c,d,u)}switch(a){case"input":Nu(i,s);break;case"textarea":h1(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?_r(i,!!s.multiple,g,!1):h!==!!s.multiple&&(s.defaultValue!=null?_r(i,!!s.multiple,s.defaultValue,!0):_r(i,!!s.multiple,s.multiple?[]:"",!1))}i[us]=s}catch(y){le(e,e.return,y)}}break;case 6:if(Ct(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){le(e,e.return,y)}}break;case 3:if(Ct(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(y){le(e,e.return,y)}break;case 4:Ct(t,e),Dt(e);break;case 13:Ct(t,e),Dt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Pd=ce())),r&4&&op(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,Ct(t,e),Re=u):Ct(t,e),Dt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(d=D=c;D!==null;){switch(h=D,g=h.child,h.tag){case 0:case 11:case 14:case 15:Di(4,h,h.return);break;case 1:jr(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(y){le(r,n,y)}}break;case 5:jr(h,h.return);break;case 22:if(h.memoizedState!==null){lp(d);continue}}g!==null?(g.return=h,D=g):lp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=g1("display",o))}catch(y){le(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){le(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:Ct(t,e),Dt(e),r&4&&op(e);break;case 21:break;default:Ct(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vg(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(es(i,""),r.flags&=-33);var s=sp(e);dc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=sp(e);cc(e,a,o);break;default:throw Error(_(161))}}catch(l){le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cS(e,t,n){D=e,Qg(e)}function Qg(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||fo;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Re;a=fo;var u=Re;if(fo=o,(Re=l)&&!u)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?up(i):l!==null?(l.return=o,D=l):up(i);for(;s!==null;)D=s,Qg(s),s=s.sibling;D=i,fo=a,Re=u}ap(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):ap(e)}}function ap(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||qa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Hh(t,s,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}Hh(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&&is(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Re||t.flags&512&&uc(t)}catch(h){le(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function lp(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function up(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qa(4,t)}catch(l){le(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){le(t,i,l)}}var s=t.return;try{uc(t)}catch(l){le(t,s,l)}break;case 5:var o=t.return;try{uc(t)}catch(l){le(t,o,l)}}}catch(l){le(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var dS=Math.ceil,xa=dn.ReactCurrentDispatcher,Od=dn.ReactCurrentOwner,gt=dn.ReactCurrentBatchConfig,X=0,ye=null,fe=null,be=0,Je=0,Nr=Fn(0),me=0,ms=null,or=0,Qa=0,Rd=0,Fi=null,Ue=null,Pd=0,Qr=1/0,Gt=null,Sa=!1,fc=null,Tn=null,ho=!1,bn=null,ba=0,$i=0,hc=null,Ao=-1,Lo=0;function Ie(){return X&6?ce():Ao!==-1?Ao:Ao=ce()}function _n(e){return e.mode&1?X&2&&be!==0?be&-be:Kx.transition!==null?(Lo===0&&(Lo=j1()),Lo):(e=Y,e!==0||(e=window.event,e=e===void 0?16:M1(e.type)),e):1}function Tt(e,t,n,r){if(50<$i)throw $i=0,hc=null,Error(_(185));_s(e,n,r),(!(X&2)||e!==ye)&&(e===ye&&(!(X&2)&&(Qa|=n),me===4&&wn(e,be)),Ke(e,r),n===1&&X===0&&!(t.mode&1)&&(Qr=ce()+500,Ua&&$n()))}function Ke(e,t){var n=e.callbackNode;Kw(e,t);var r=sa(e,e===ye?be:0);if(r===0)n!==null&&yh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yh(n),t===1)e.tag===0?Wx(cp.bind(null,e)):tg(cp.bind(null,e)),Vx(function(){!(X&6)&&$n()}),n=null;else{switch(N1(r)){case 1:n=ed;break;case 4:n=R1;break;case 16:n=ia;break;case 536870912:n=P1;break;default:n=ia}n=e0(n,Wg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wg(e,t){if(Ao=-1,Lo=0,X&6)throw Error(_(327));var n=e.callbackNode;if(Dr()&&e.callbackNode!==n)return null;var r=sa(e,e===ye?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ea(e,r);else{t=r;var i=X;X|=2;var s=Zg();(ye!==e||be!==t)&&(Gt=null,Qr=ce()+500,er(e,t));do try{pS();break}catch(a){Kg(e,a)}while(1);hd(),xa.current=s,X=i,fe!==null?t=0:(ye=null,be=0,t=me)}if(t!==0){if(t===2&&(i=zu(e),i!==0&&(r=i,t=pc(e,i))),t===1)throw n=ms,er(e,0),wn(e,r),Ke(e,ce()),n;if(t===6)wn(e,r);else{if(i=e.current.alternate,!(r&30)&&!fS(i)&&(t=Ea(e,r),t===2&&(s=zu(e),s!==0&&(r=s,t=pc(e,s))),t===1))throw n=ms,er(e,0),wn(e,r),Ke(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Wn(e,Ue,Gt);break;case 3:if(wn(e,r),(r&130023424)===r&&(t=Pd+500-ce(),10<t)){if(sa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ie(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ku(Wn.bind(null,e,Ue,Gt),t);break}Wn(e,Ue,Gt);break;case 4:if(wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Nt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dS(r/1960))-r,10<r){e.timeoutHandle=Ku(Wn.bind(null,e,Ue,Gt),r);break}Wn(e,Ue,Gt);break;case 5:Wn(e,Ue,Gt);break;default:throw Error(_(329))}}}return Ke(e,ce()),e.callbackNode===n?Wg.bind(null,e):null}function pc(e,t){var n=Fi;return e.current.memoizedState.isDehydrated&&(er(e,t).flags|=256),e=Ea(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&mc(t)),e}function mc(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function fS(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!_t(s(),i))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 wn(e,t){for(t&=~Rd,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function cp(e){if(X&6)throw Error(_(327));Dr();var t=sa(e,0);if(!(t&1))return Ke(e,ce()),null;var n=Ea(e,t);if(e.tag!==0&&n===2){var r=zu(e);r!==0&&(t=r,n=pc(e,r))}if(n===1)throw n=ms,er(e,0),wn(e,t),Ke(e,ce()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wn(e,Ue,Gt),Ke(e,ce()),null}function jd(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Qr=ce()+500,Ua&&$n())}}function ar(e){bn!==null&&bn.tag===0&&!(X&6)&&Dr();var t=X;X|=1;var n=gt.transition,r=Y;try{if(gt.transition=null,Y=1,e)return e()}finally{Y=r,gt.transition=n,X=t,!(X&6)&&$n()}}function Nd(){Je=Nr.current,ne(Nr)}function er(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ux(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(cd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ca();break;case 3:Hr(),ne(Qe),ne(Pe),wd();break;case 5:yd(r);break;case 4:Hr();break;case 13:ne(se);break;case 19:ne(se);break;case 10:pd(r.type._context);break;case 22:case 23:Nd()}n=n.return}if(ye=e,fe=e=In(e.current,null),be=Je=t,me=0,ms=null,Rd=Qa=or=0,Ue=Fi=null,Gn!==null){for(t=0;t<Gn.length;t++)if(n=Gn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Gn=null}return e}function Kg(e,t){do{var n=fe;try{if(hd(),To.current=wa,ya){for(var r=oe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ya=!1}if(sr=0,ve=pe=oe=null,Mi=!1,fs=0,Od.current=null,n===null||n.return===null){me=1,ms=t,fe=null;break}e:{var s=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 g=Gh(o);if(g!==null){g.flags&=-257,Yh(g,o,a,s,t),g.mode&1&&Xh(s,u,t),t=g,l=u;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){Xh(s,u,t),Td();break e}l=Error(_(426))}}else if(re&&a.mode&1){var x=Gh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Yh(x,o,a,s,t),dd(qr(l,a));break e}}s=l=qr(l,a),me!==4&&(me=2),Fi===null?Fi=[s]:Fi.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Tg(s,l,t);Vh(s,m);break e;case 1:a=l;var v=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Tn===null||!Tn.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=_g(s,a,t);Vh(s,S);break e}}s=s.return}while(s!==null)}Gg(n)}catch(C){t=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function Zg(){var e=xa.current;return xa.current=wa,e===null?wa:e}function Td(){(me===0||me===3||me===2)&&(me=4),ye===null||!(or&268435455)&&!(Qa&268435455)||wn(ye,be)}function Ea(e,t){var n=X;X|=2;var r=Zg();(ye!==e||be!==t)&&(Gt=null,er(e,t));do try{hS();break}catch(i){Kg(e,i)}while(1);if(hd(),X=n,xa.current=r,fe!==null)throw Error(_(261));return ye=null,be=0,me}function hS(){for(;fe!==null;)Xg(fe)}function pS(){for(;fe!==null&&!$w();)Xg(fe)}function Xg(e){var t=Jg(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?Gg(e):fe=t,Od.current=null}function Gg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aS(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,fe=null;return}}else if(n=oS(n,t,Je),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);me===0&&(me=5)}function Wn(e,t,n){var r=Y,i=gt.transition;try{gt.transition=null,Y=1,mS(e,t,n,r)}finally{gt.transition=i,Y=r}return null}function mS(e,t,n,r){do Dr();while(bn!==null);if(X&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Zw(e,s),e===ye&&(fe=ye=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ho||(ho=!0,e0(ia,function(){return Dr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=gt.transition,gt.transition=null;var o=Y;Y=1;var a=X;X|=4,Od.current=null,uS(e,n),qg(n,e),Lx(Qu),oa=!!qu,Qu=qu=null,e.current=n,cS(n),zw(),X=a,Y=o,gt.transition=s}else e.current=n;if(ho&&(ho=!1,bn=e,ba=i),s=e.pendingLanes,s===0&&(Tn=null),Vw(n.stateNode),Ke(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sa)throw Sa=!1,e=fc,fc=null,e;return ba&1&&e.tag!==0&&Dr(),s=e.pendingLanes,s&1?e===hc?$i++:($i=0,hc=e):$i=0,$n(),null}function Dr(){if(bn!==null){var e=N1(ba),t=gt.transition,n=Y;try{if(gt.transition=null,Y=16>e?16:e,bn===null)var r=!1;else{if(e=bn,bn=null,ba=0,X&6)throw Error(_(331));var i=X;for(X|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Di(8,c,s)}var d=c.child;if(d!==null)d.return=c,D=d;else for(;D!==null;){c=D;var h=c.sibling,g=c.return;if(Ug(c),c===u){D=null;break}if(h!==null){h.return=g,D=h;break}D=g}}}var p=s.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Di(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var v=e.current;for(D=v;D!==null;){o=D;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,D=w;else e:for(o=v;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:qa(9,a)}}catch(C){le(a,a.return,C)}if(a===o){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(X=i,$n(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(Da,e)}catch{}r=!0}return r}finally{Y=n,gt.transition=t}}return!1}function dp(e,t,n){t=qr(n,t),t=Tg(e,t,1),e=Nn(e,t,1),t=Ie(),e!==null&&(_s(e,1,t),Ke(e,t))}function le(e,t,n){if(e.tag===3)dp(e,e,n);else for(;t!==null;){if(t.tag===3){dp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tn===null||!Tn.has(r))){e=qr(n,e),e=_g(t,e,1),t=Nn(t,e,1),e=Ie(),t!==null&&(_s(t,1,e),Ke(t,e));break}}t=t.return}}function gS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ie(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(be&n)===n&&(me===4||me===3&&(be&130023424)===be&&500>ce()-Pd?er(e,0):Rd|=n),Ke(e,t)}function Yg(e,t){t===0&&(e.mode&1?(t=no,no<<=1,!(no&130023424)&&(no=4194304)):t=1);var n=Ie();e=an(e,t),e!==null&&(_s(e,t,n),Ke(e,n))}function vS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yg(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Yg(e,n)}var Jg;Jg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,sS(e,t,n);qe=!!(e.flags&131072)}else qe=!1,re&&t.flags&1048576&&ng(t,ha,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Io(e,t),e=t.pendingProps;var i=Br(t,Pe.current);Mr(t,n),i=Sd(null,t,r,e,i,n);var s=bd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(s=!0,da(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gd(t),i.updater=Va,t.stateNode=i,i._reactInternals=t,tc(t,r,e,n),t=ic(null,t,r,!0,s,n)):(t.tag=0,re&&s&&ud(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Io(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=xS(r),e=kt(r,e),i){case 0:t=rc(null,t,r,e,n);break e;case 1:t=tp(null,t,r,e,n);break e;case 11:t=Jh(null,t,r,e,n);break e;case 14:t=ep(null,t,r,kt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),rc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),tp(e,t,r,i,n);case 3:e:{if(Mg(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,i=s.element,og(e,t),ga(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qr(Error(_(423)),t),t=np(e,t,r,n,i);break e}else if(r!==i){i=qr(Error(_(424)),t),t=np(e,t,r,n,i);break e}else for(tt=jn(t.stateNode.containerInfo.firstChild),rt=t,re=!0,Rt=null,n=cg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===i){t=ln(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return dg(t),e===null&&Yu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Wu(r,i)?o=null:s!==null&&Wu(r,s)&&(t.flags|=32),Lg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Yu(t),null;case 13:return Dg(e,t,n);case 4:return vd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vr(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Jh(e,t,r,i,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,i=t.pendingProps,s=t.memoizedProps,o=i.value,ee(pa,r._currentValue),r._currentValue=o,s!==null)if(_t(s.value,o)){if(s.children===i.children&&!Qe.current){t=ln(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=rn(-1,n&-n),l.tag=2;var u=s.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}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ju(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ju(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mr(t,n),i=yt(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),ep(e,t,r,i,n);case 15:return Ig(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Io(e,t),t.tag=1,We(r)?(e=!0,da(t)):e=!1,Mr(t,n),lg(t,r,i),tc(t,r,i,n),ic(null,t,r,!0,e,n);case 19:return Fg(e,t,n);case 22:return Ag(e,t,n)}throw Error(_(156,t.tag))};function e0(e,t){return O1(e,t)}function wS(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 mt(e,t,n,r){return new wS(e,t,n,r)}function _d(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xS(e){if(typeof e=="function")return _d(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gc)return 11;if(e===Yc)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=mt(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 Mo(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")_d(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case xr:return tr(n.children,i,s,t);case Xc:o=8,i|=8;break;case ku:return e=mt(12,n,t,i|2),e.elementType=ku,e.lanes=s,e;case Ou:return e=mt(13,n,t,i),e.elementType=Ou,e.lanes=s,e;case Ru:return e=mt(19,n,t,i),e.elementType=Ru,e.lanes=s,e;case u1:return Wa(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a1:o=10;break e;case l1:o=9;break e;case Gc:o=11;break e;case Yc:o=14;break e;case gn:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=mt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function tr(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Wa(e,t,n,r){return e=mt(22,e,r,t),e.elementType=u1,e.lanes=n,e.stateNode={isHidden:!1},e}function Zl(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Xl(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SS(e,t,n,r,i){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=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Id(e,t,n,r,i,s,o,a,l){return e=new SS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=mt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gd(s),e}function bS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function t0(e){if(!e)return Mn;e=e._reactInternals;e:{if(dr(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(We(n))return eg(e,n,t)}return t}function n0(e,t,n,r,i,s,o,a,l){return e=Id(n,r,!0,e,i,s,o,a,l),e.context=t0(null),n=e.current,r=Ie(),i=_n(n),s=rn(r,i),s.callback=t??null,Nn(n,s,i),e.current.lanes=i,_s(e,i,r),Ke(e,r),e}function Ka(e,t,n,r){var i=t.current,s=Ie(),o=_n(i);return n=t0(n),t.context===null?t.context=n:t.pendingContext=n,t=rn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nn(i,t,o),e!==null&&(Tt(e,i,o,s),No(e,i,o)),o}function Ca(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 fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ad(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function ES(){return null}var r0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ld(e){this._internalRoot=e}Za.prototype.render=Ld.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Ka(e,t,null,null)};Za.prototype.unmount=Ld.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ar(function(){Ka(null,e,null,null)}),t[on]=null}};function Za(e){this._internalRoot=e}Za.prototype.unstable_scheduleHydration=function(e){if(e){var t=I1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yn.length&&t!==0&&t<yn[n].priority;n++);yn.splice(n,0,e),n===0&&L1(e)}};function Md(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hp(){}function CS(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ca(o);s.call(u)}}var o=n0(t,r,e,0,null,!1,!1,"",hp);return e._reactRootContainer=o,e[on]=o.current,as(e.nodeType===8?e.parentNode:e),ar(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ca(l);a.call(u)}}var l=Id(e,0,!1,null,null,!1,!1,"",hp);return e._reactRootContainer=l,e[on]=l.current,as(e.nodeType===8?e.parentNode:e),ar(function(){Ka(t,l,n,r)}),l}function Ga(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ca(o);a.call(l)}}Ka(t,o,e,i)}else o=CS(n,t,e,i,r);return Ca(o)}T1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Oi(t.pendingLanes);n!==0&&(td(t,n|1),Ke(t,ce()),!(X&6)&&(Qr=ce()+500,$n()))}break;case 13:ar(function(){var r=an(e,1);if(r!==null){var i=Ie();Tt(r,e,1,i)}}),Ad(e,1)}};nd=function(e){if(e.tag===13){var t=an(e,134217728);if(t!==null){var n=Ie();Tt(t,e,134217728,n)}Ad(e,134217728)}};_1=function(e){if(e.tag===13){var t=_n(e),n=an(e,t);if(n!==null){var r=Ie();Tt(n,e,t,r)}Ad(e,t)}};I1=function(){return Y};A1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Du=function(e,t,n){switch(t){case"input":if(Nu(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 i=Ba(r);if(!i)throw Error(_(90));d1(r),Nu(r,i)}}}break;case"textarea":h1(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};x1=jd;S1=ar;var kS={usingClientEntryPoint:!1,Events:[As,Cr,Ba,y1,w1,jd]},gi={findFiberByHostInstance:Xn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},OS={bundleType:gi.bundleType,version:gi.version,rendererPackageName:gi.rendererPackageName,rendererConfig:gi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=C1(e),e===null?null:e.stateNode},findFiberByHostInstance:gi.findFiberByHostInstance||ES,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 po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!po.isDisabled&&po.supportsFiber)try{Da=po.inject(OS),Vt=po}catch{}}ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kS;ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Md(t))throw Error(_(200));return bS(e,t,null,n)};ot.createRoot=function(e,t){if(!Md(e))throw Error(_(299));var n=!1,r="",i=r0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Id(e,1,!1,null,null,n,!1,r,i),e[on]=t.current,as(e.nodeType===8?e.parentNode:e),new Ld(t)};ot.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(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=C1(t),e=e===null?null:e.stateNode,e};ot.flushSync=function(e){return ar(e)};ot.hydrate=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!0,n)};ot.hydrateRoot=function(e,t,n){if(!Md(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=r0;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=n0(t,null,e,1,n??null,i,!1,s,o),e[on]=t.current,as(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Za(t)};ot.render=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!1,n)};ot.unmountComponentAtNode=function(e){if(!Xa(e))throw Error(_(40));return e._reactRootContainer?(ar(function(){Ga(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};ot.unstable_batchedUpdates=jd;ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xa(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Ga(e,t,n,!1,r)};ot.version="18.2.0-next-9e3b772b8-20220608";function i0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i0)}catch(e){console.error(e)}}i0(),n1.exports=ot;var Ms=n1.exports,s0={exports:{}},o0={};/**
|
|
33
|
+
*/var Um=x,et=hw;function _(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 ir(e,t){Fr(e,t),Fr(e+"Capture",t)}function Fr(e,t){for(Qs[e]=t,e=0;e<t.length;e++)Bm.add(t[e])}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=Object.prototype.hasOwnProperty,pw=/^[: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]*$/,Kf={},Wf={};function mw(e){return yu.call(Wf,e)?!0:yu.call(Kf,e)?!1:pw.test(e)?Wf[e]=!0:(Kf[e]=!0,!1)}function gw(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 vw(e,t,n,r){if(t===null||typeof t>"u"||gw(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 Ie(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 Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Ie(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){Se[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uc=/[\-:]([a-z])/g;function Bc(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(Uc,Bc);Se[t]=new Ie(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(Uc,Bc);Se[t]=new Ie(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(Uc,Bc);Se[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vc(e,t,n,r){var s=Se.hasOwnProperty(t)?Se[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(vw(t,n,s,r)&&(n=null),r||s===null?mw(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 rn=Um.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),mr=Symbol.for("react.portal"),gr=Symbol.for("react.fragment"),Hc=Symbol.for("react.strict_mode"),wu=Symbol.for("react.profiler"),Vm=Symbol.for("react.provider"),Hm=Symbol.for("react.context"),qc=Symbol.for("react.forward_ref"),xu=Symbol.for("react.suspense"),Su=Symbol.for("react.suspense_list"),Qc=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),qm=Symbol.for("react.offscreen"),Zf=Symbol.iterator;function is(e){return e===null||typeof e!="object"?null:(e=Zf&&e[Zf]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,wl;function ws(e){if(wl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);wl=t&&t[1]||""}return`
|
|
34
|
+
`+wl+e}var xl=!1;function Sl(e,t){if(!e||xl)return"";xl=!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
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),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 Hm:return(e.displayName||"Context")+".Consumer";case Vm: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 Bi(e){e._valueTracker||(e._valueTracker=xw(e))}function Km(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 Vo(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 Eu(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=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 Wm(e,t){t=t.checked,t!=null&&Vc(e,"checked",t,!1)}function Cu(e,t){Wm(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 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 Ru(e,t,n){(t!=="number"||Vo(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(_(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(_(92));if(xs(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tn(n)}}function Zm(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 Jf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Gm(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"?Gm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vi,Xm=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(Vi=Vi||document.createElement("div"),Vi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vi.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 Ym(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=Ym(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(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(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 eh(e){if(e=Ri(e)){if(typeof Tu!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ia(t),Tu(e.stateNode,e.type,t))}}function e1(e){Nr?jr?jr.push(e):jr=[e]:Nr=e}function t1(){if(Nr){var e=Nr,t=jr;if(jr=Nr=null,eh(e),t)for(e=0;e<t.length;e++)eh(t[e])}}function n1(e,t){return e(t)}function r1(){}var bl=!1;function s1(e,t,n){if(bl)return e(t,n);bl=!0;try{return n1(e,t,n)}finally{bl=!1,(Nr!==null||jr!==null)&&(r1(),t1())}}function Ws(e,t){var n=e.stateNode;if(n===null)return null;var r=Ia(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(_(231,t,typeof n));return n}var _u=!1;if(Yt)try{var os={};Object.defineProperty(os,"passive",{get:function(){_u=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{_u=!1}function Ew(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,Ho=null,qo=!1,Iu=null,Cw={onError:function(e){Ps=!0,Ho=e}};function Rw(e,t,n,r,s,i,o,a,l){Ps=!1,Ho=null,Ew.apply(Cw,arguments)}function kw(e,t,n,r,s,i,o,a,l){if(Rw.apply(this,arguments),Ps){if(Ps){var u=Ho;Ps=!1,Ho=null}else throw Error(_(198));qo||(qo=!0,Iu=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 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 th(e){if(or(e)!==e)throw Error(_(188))}function Pw(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(_(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 th(s),e;if(i===r)return th(s),t;i=i.sibling}throw Error(_(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(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function o1(e){return e=Pw(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=et.unstable_scheduleCallback,nh=et.unstable_cancelCallback,Ow=et.unstable_shouldYield,Nw=et.unstable_requestPaint,le=et.unstable_now,jw=et.unstable_getCurrentPriorityLevel,Wc=et.unstable_ImmediatePriority,u1=et.unstable_UserBlockingPriority,Qo=et.unstable_NormalPriority,Tw=et.unstable_LowPriority,c1=et.unstable_IdlePriority,Na=null,Ft=null;function _w(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Na,e,void 0,(e.current.flags&128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:Lw,Iw=Math.log,Aw=Math.LN2;function Lw(e){return e>>>=0,e===0?32:31-(Iw(e)/Aw|0)|0}var Hi=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-Ct(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-Ct(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 d1(){var e=Hi;return Hi<<=1,!(Hi&4194240)&&(Hi=64),e}function El(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(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-Ct(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-Ct(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Y=0;function f1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h1,Gc,p1,m1,g1,Lu=!1,Qi=[],bn=null,En=null,Cn=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 rh(e,t){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":En=null;break;case"mouseover":case"mouseout":Cn=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=Ri(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 En=as(En,e,t,n,r,s),!0;case"mouseover":return Cn=as(Cn,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 v1(e){var t=Qn(e.target);if(t!==null){var n=or(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 go(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=Ri(n),t!==null&&Gc(t),e.blockedOn=n,!1;t.shift()}return!0}function sh(e,t,n){go(e)&&n.delete(t)}function Uw(){Lu=!1,bn!==null&&go(bn)&&(bn=null),En!==null&&go(En)&&(En=null),Cn!==null&&go(Cn)&&(Cn=null),Zs.forEach(sh),Gs.forEach(sh)}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),En!==null&&ls(En,e),Cn!==null&&ls(Cn,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);)v1(n),n.blockedOn===null&&pn.shift()}var Tr=rn.ReactCurrentBatchConfig,Wo=!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(Wo){var s=Mu(e,t,n,r);if(s===null)Il(e,t,r,Zo,n),rh(e,r);else if(zw(s,e,t,n,r))r.stopPropagation();else if(rh(e,r),t&4&&-1<$w.indexOf(e)){for(;s!==null;){var i=Ri(s);if(i!==null&&h1(i),i=Mu(e,t,n,r),i===null&&Il(e,t,r,Zo,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Il(e,t,r,null,n)}}var Zo=null;function Mu(e,t,n,r){if(Zo=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=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 Zo=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(jw()){case Wc:return 1;case u1:return 4;case Qo:case Tw:return 16;case c1:return 536870912;default:return 16}default:return 16}}var vn=null,Yc=null,vo=null;function w1(){if(vo)return vo;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 vo=s.slice(e,1<r?1-r:void 0)}function yo(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 ih(){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)?Ki:ih,this.isPropagationStopped=ih,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 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),Cl,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"?(Cl=e.screenX-us.screenX,Rl=e.screenY-us.screenY):Rl=Cl=0,us=e),Cl)},movementY:function(e){return"movementY"in e?e.movementY:Rl}}),oh=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}),ah=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=yo(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"?yo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yo(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}),lh=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,x1=Yt&&(!td||Os&&8<Os&&11>=Os),uh=String.fromCharCode(32),ch=!1;function S1(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 b1(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 b1(t);case"keypress":return t.which!==32?null:(ch=!0,uh);case"textInput":return e=t.data,e===uh&&ch?null:e;default:return null}}function mx(e,t){if(vr)return e==="compositionend"||!td&&S1(e,t)?(e=w1(),vo=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 x1&&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 dh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gx[e.type]:t==="textarea"}function E1(e,t,n,r){e1(r),t=Go(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){A1(e,0)}function Ta(e){var t=xr(e);if(Km(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 fh=document.createElement("div");fh.setAttribute("oninput","return;"),Ol=typeof fh.oninput=="function"}Pl=Ol}else Pl=!1;C1=Pl&&(!document.documentMode||9<document.documentMode)}function hh(){Ns&&(Ns.detachEvent("onpropertychange",R1),Ys=Ns=null)}function R1(e){if(e.propertyName==="value"&&Ta(Ys)){var t=[];E1(t,Ys,e,Kc(e)),s1(vx,t)}}function wx(e,t,n){e==="focusin"?(hh(),Ns=t,Ys=n,Ns.attachEvent("onpropertychange",R1)):e==="focusout"&&hh()}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 Ex(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:Ex;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 ph(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mh(e,t){var n=ph(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=ph(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=Vo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vo(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 Cx(e){var t=P1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&k1(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=mh(n,i);var o=mh(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 gh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fu||yr==null||yr!==Vo(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=Go(Du,"onSelect"),0<r.length&&(t=new Jc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function Wi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionend:Wi("Transition","TransitionEnd")},Nl={},O1={};Yt&&(O1=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 _a(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 O1)return Nl[e]=t[n];return e}var N1=_a("animationend"),j1=_a("animationiteration"),T1=_a("animationstart"),_1=_a("transitionend"),I1=new Map,vh="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<vh.length;jl++){var Tl=vh[jl],kx=Tl.toLowerCase(),Px=Tl[0].toUpperCase()+Tl.slice(1);Ln(kx,"on"+Px)}Ln(N1,"onAnimationEnd");Ln(j1,"onAnimationIteration");Ln(T1,"onAnimationStart");Ln("dblclick","onDoubleClick");Ln("focusin","onFocus");Ln("focusout","onBlur");Ln(_1,"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 yh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kw(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;yh(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;yh(s,a,u),i=l}}}if(qo)throw e=Iu,qo=!1,Iu=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)||(L1(t,e,2,!1),n.add(r))}function _l(e,t,n){var r=0;t&&(r|=4),L1(n,e,r,t)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Zi]){e[Zi]=!0,Bm.forEach(function(n){n!=="selectionchange"&&(Ox.has(n)||_l(n,!1,e),_l(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zi]||(t[Zi]=!0,_l("selectionchange",!1,t))}}function L1(e,t,n,r){switch(y1(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,!_u||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 Il(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}s1(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(yo(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=oh;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 N1:case j1:case T1:m=Zw;break;case _1: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=lh}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=Ws(v,g),b!=null&&y.push(ti(v,b,w)))),S)break;v=v.return}0<y.length&&(h=new m(h,p,null,n,c),d.push({event:h,listeners:y}))}}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(y=oh,b="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=lh,b="onPointerLeave",g="onPointerEnter",v="pointer"),S=m==null?h:xr(m),w=p==null?h:xr(p),h=new y(b,v+"leave",m,n,c),h.target=S,h.relatedTarget=w,b=null,Qn(c)===u&&(y=new y(g,v+"enter",p,n,c),y.target=w,y.relatedTarget=S,b=y),S=b,m&&p)t:{for(y=m,g=p,v=0,w=y;w;w=dr(w))v++;for(w=0,b=g;b;b=dr(b))w++;for(;0<v-w;)y=dr(y),v--;for(;0<w-v;)g=dr(g),w--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=dr(y),g=dr(g)}y=null}else y=null;m!==null&&wh(d,h,m,y,!1),p!==null&&S!==null&&wh(d,S,p,y,!0)}}e:{if(h=u?xr(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var C=yx;else if(dh(h))if(C1)C=bx;else{C=xx;var k=wx}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=Sx);if(C&&(C=C(e,u))){E1(d,C,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":(dh(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,gh(d,n,c);break;case"selectionchange":if(Rx)break;case"keydown":case"keyup":gh(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?S1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(x1&&n.locale!=="ko"&&(vr||P!=="onCompositionStart"?P==="onCompositionEnd"&&vr&&(R=w1()):(vn=c,Yc="value"in vn?vn.value:vn.textContent,vr=!0)),k=Go(u,P),0<k.length&&(P=new ah(P,e,null,n,c),d.push({event:P,listeners:k}),R?P.data=R:(R=b1(n),R!==null&&(P.data=R)))),(R=hx?px(e,n):mx(e,n))&&(u=Go(u,"onBeforeInput"),0<u.length&&(c=new ah("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=R))}A1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Go(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 wh(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 xh(e){return(typeof e=="string"?e:""+e).replace(Nx,`
|
|
38
|
+
`).replace(jx,"")}function Gi(e,t,n){if(t=xh(t),xh(e)!==t&&n)throw Error(_(425))}function Xo(){}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,Sh=typeof Promise=="function"?Promise:void 0,_x=typeof queueMicrotask=="function"?queueMicrotask:typeof Sh<"u"?function(e){return Sh.resolve(null).then(e).catch(Ix)}:Bu;function Ix(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 bh(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=bh(e);e!==null;){if(n=e[Mt])return n;e=bh(e)}return t}e=n,n=e.parentNode}return null}function Ri(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(_(33))}function Ia(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 _n={},ke=Mn(_n),Ve=Mn(!1),Yn=_n;function $r(e,t){var n=e.type.contextTypes;if(!n)return _n;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 Yo(){te(Ve),te(ke)}function Eh(e,t,n){if(ke.current!==_n)throw Error(_(168));J(ke,t),J(Ve,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(_(108,ww(e)||"Unknown",s));return ie({},n,r)}function Jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,Yn=ke.current,J(ke,e),J(Ve,Ve.current),!0}function Ch(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=M1(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 D1(e){Kt===null?Kt=[e]:Kt.push(e)}function Mx(e){Aa=!0,D1(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)),l1(Wc,Dn),s}finally{Y=t,Ll=!1}}return null}var br=[],Er=0,ea=null,ta=0,at=[],lt=0,Jn=null,Wt=1,Zt="";function Bn(e,t){br[Er++]=ta,br[Er++]=ea,ea=e,ta=t}function F1(e,t,n){at[lt++]=Wt,at[lt++]=Zt,at[lt++]=Jn,Jn=e;var r=Wt;e=Zt;var s=32-Ct(r)-1;r&=~(1<<s),n+=1;var i=32-Ct(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Wt=1<<32-Ct(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),F1(e,1,0))}function sd(e){for(;e===ea;)ea=br[--Er],br[Er]=null,ta=br[--Er],br[Er]=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 $1(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 Rh(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(!Rh(e,t)){if(qu(e))throw Error(_(418));t=Rn(n.nextSibling);var r=Ye;t&&Rh(e,t)?$1(r,n):(e.flags=e.flags&-4097|2,ne=!1,Ye=e)}}else{if(qu(e))throw Error(_(418));e.flags=e.flags&-4097|2,ne=!1,Ye=e}}}function kh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Xi(e){if(e!==Ye)return!1;if(!ne)return kh(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 z1(),Error(_(418));for(;t;)$1(e,t),t=Rn(t.nextSibling)}if(kh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(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 z1(){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 na=Mn(null),ra=null,Cr=null,od=null;function ad(){od=Cr=ra=null}function ld(e){var t=na.current;te(na),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 _r(e,t){ra=e,od=Cr=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},Cr===null){if(ra===null)throw Error(_(308));Cr=e,ra.dependencies={lanes:0,firstContext:e}}else Cr=Cr.next=e;return t}var Kn=null;function ud(e){Kn===null?Kn=[e]:Kn.push(e)}function U1(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 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 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 wo(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 Ph(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 sa(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,y=a;switch(h=t,m=n,y.tag){case 1:if(p=y.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=y.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 Oh(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(_(191,s));s.call(r)}}}var V1=new Um.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),wo(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),wo(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),wo(t,e,r))}};function Nh(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=_n,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):_n),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 jh(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=V1,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),sa(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(_(309));var r=n.stateNode}if(!r)throw Error(_(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(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Yi(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Th(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=Nn(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=Bl(w,g.mode,b),v.return=g,v):(v=s(v,w),v.return=g,v)}function l(g,v,w,b){var C=w.type;return C===gr?c(g,v,w.props.children,b,w.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===fn&&Th(C)===v.type)?(b=s(v,w.props),b.ref=cs(g,v,w),b.return=g,b):(b=Ro(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=Vl(w,g.mode,b),v.return=g,v):(v=s(v,w.children||[]),v.return=g,v)}function c(g,v,w,b,C){return v===null||v.tag!==7?(v=Xn(w,g.mode,b,C),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=Bl(""+v,g.mode,w),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ui:return w=Ro(v.type,v.key,v.props,null,g.mode,w),w.ref=cs(g,null,v),w.return=g,w;case mr:return v=Vl(v,g.mode,w),v.return=g,v;case fn:var b=v._init;return d(g,b(v._payload),w)}if(xs(v)||is(v))return v=Xn(v,g.mode,w,null),v.return=g,v;Yi(g,v)}return null}function h(g,v,w,b){var C=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(g,v,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ui:return w.key===C?l(g,v,w,b):null;case mr:return w.key===C?u(g,v,w,b):null;case fn:return C=w._init,h(g,v,C(w._payload),b)}if(xs(w)||is(w))return C!==null?null:c(g,v,w,b,null);Yi(g,w)}return null}function m(g,v,w,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(w)||null,a(v,g,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ui:return g=g.get(b.key===null?w:b.key)||null,l(v,g,b,C);case mr:return g=g.get(b.key===null?w:b.key)||null,u(v,g,b,C);case fn:var k=b._init;return m(g,v,w,k(b._payload),C)}if(xs(b)||is(b))return g=g.get(w)||null,c(v,g,b,C,null);Yi(v,b)}return null}function p(g,v,w,b){for(var C=null,k=null,R=v,P=v=0,L=null;R!==null&&P<w.length;P++){R.index>P?(L=R,R=null):L=R.sibling;var M=h(g,R,w[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?C=M:k.sibling=M,k=M,R=L}if(P===w.length)return n(g,R),ne&&Bn(g,P),C;if(R===null){for(;P<w.length;P++)R=d(g,w[P],b),R!==null&&(v=i(R,v,P),k===null?C=R:k.sibling=R,k=R);return ne&&Bn(g,P),C}for(R=r(g,R);P<w.length;P++)L=m(R,g,P,w[P],b),L!==null&&(e&&L.alternate!==null&&R.delete(L.key===null?P:L.key),v=i(L,v,P),k===null?C=L:k.sibling=L,k=L);return e&&R.forEach(function(T){return t(g,T)}),ne&&Bn(g,P),C}function y(g,v,w,b){var C=is(w);if(typeof C!="function")throw Error(_(150));if(w=C.call(w),w==null)throw Error(_(151));for(var k=C=null,R=v,P=v=0,L=null,M=w.next();R!==null&&!M.done;P++,M=w.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?C=T:k.sibling=T,k=T,R=L}if(M.done)return n(g,R),ne&&Bn(g,P),C;if(R===null){for(;!M.done;P++,M=w.next())M=d(g,M.value,b),M!==null&&(v=i(M,v,P),k===null?C=M:k.sibling=M,k=M);return ne&&Bn(g,P),C}for(R=r(g,R);!M.done;P++,M=w.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?C=M:k.sibling=M,k=M);return e&&R.forEach(function(D){return t(g,D)}),ne&&Bn(g,P),C}function S(g,v,w,b){if(typeof w=="object"&&w!==null&&w.type===gr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ui:e:{for(var C=w.key,k=v;k!==null;){if(k.key===C){if(C=w.type,C===gr){if(k.tag===7){n(g,k.sibling),v=s(k,w.props.children),v.return=g,g=v;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===fn&&Th(C)===k.type){n(g,k.sibling),v=s(k,w.props),v.ref=cs(g,k,w),v.return=g,g=v;break e}n(g,k);break}else t(g,k);k=k.sibling}w.type===gr?(v=Xn(w.props.children,g.mode,b,w.key),v.return=g,g=v):(b=Ro(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 mr:e:{for(k=w.key;v!==null;){if(v.key===k)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=Vl(w,g.mode,b),v.return=g,g=v}return o(g);case fn:return k=w._init,S(g,v,k(w._payload),b)}if(xs(w))return p(g,v,w,b);if(is(w))return y(g,v,w,b);Yi(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=Bl(w,g.mode,b),v.return=g,g=v),o(g)):n(g,v)}return S}var Ur=q1(!0),Q1=q1(!1),ki={},$t=Mn(ki),ri=Mn(ki),si=Mn(ki);function Wn(e){if(e===ki)throw Error(_(174));return e}function dd(e,t){switch(J(si,t),J(ri,e),J($t,ki),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 K1(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 ia(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 xo=rn.ReactCurrentDispatcher,Dl=rn.ReactCurrentBatchConfig,er=0,se=null,de=null,pe=null,oa=!1,Ts=!1,ii=0,Fx=0;function Ee(){throw Error(_(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,xo.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(_(301));i+=1,pe=de=null,t.updateQueue=null,xo.current=Hx,e=n(r,s)}while(Ts)}if(xo.current=aa,t=de!==null&&de.next!==null,er=0,pe=de=se=null,oa=!1,t)throw Error(_(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(_(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(_(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(_(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 W1(){}function Z1(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(Y1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,ai(9,X1.bind(null,n,r,s,t),void 0,null),me===null)throw Error(_(349));er&30||G1(n,t,s)}return s}function G1(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 X1(e,t,n,r){t.value=n,t.getSnapshot=r,J1(t)&&eg(e)}function Y1(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!kt(e,n)}catch{return!0}}function eg(e){var t=en(e,1);t!==null&&Rt(t,e,1,-1)}function _h(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 tg(){return pt().memoizedState}function So(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 So(8390656,8,e,t)}function vd(e,t){return Ma(2048,8,e,t)}function ng(e,t){return Ma(4,2,e,t)}function rg(e,t){return Ma(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,Ma(4,4,sg.bind(null,t,e),n)}function yd(){}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]:(n.memoizedState=[e,t],e)}function ag(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 lg(e,t,n){return er&21?(kt(n,t)||(n=d1(),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 ug(){return pt().memoizedState}function zx(e,t,n){var r=On(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=Te();Rt(n,e,r,s),fg(n,t,r)}}function Ux(e,t,n){var r=On(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,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=U1(e,t,s,r),n!==null&&(s=Te(),Rt(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=oa=!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,Zc(e,n)}}var aa={readContext:ht,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,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,So(4194308,4,sg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return So(4194308,4,e,t)},useInsertionEffect:function(e,t){return So(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:_h,useDebugValue:yd,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=_h(!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(_(407));n=n()}else{if(n=t(),me===null)throw Error(_(349));er&30||G1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Ih(Y1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,X1.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-Ct(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:og,useContext:ht,useEffect:vd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Fl,useRef:tg,useState:function(){return Fl(oi)},useDebugValue:yd,useDeferredValue:function(e){var t=pt();return lg(t,de.memoizedState,e)},useTransition:function(){var e=Fl(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:W1,useSyncExternalStore:Z1,useId:ug,unstable_isNewReconciler:!1},Hx={readContext:ht,useCallback:og,useContext:ht,useEffect:vd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:$l,useRef:tg,useState:function(){return $l(oi)},useDebugValue:yd,useDeferredValue:function(e){var t=pt();return de===null?t.memoizedState=e:lg(t,de.memoizedState,e)},useTransition:function(){var e=$l(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:W1,useSyncExternalStore:Z1,useId:ug,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=`
|
|
39
|
+
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 hg(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ua||(ua=!0,oc=r),Gu(e,t)},n}function pg(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 Ah(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 Lh(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 Mh(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 Dh(e,t,n,r,s){n=n.render;var i=t.ref;return _r(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 Fh(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,mg(e,t,i,r,s)):(e=Ro(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 mg(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 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(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 vg(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),_r(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 $h(e,t,n,r,s){if(He(n)){var i=!0;Jo(t)}else i=!1;if(_r(t,s),t.stateNode===null)bo(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=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)&&jh(t,o,r,u),hn=!1;var h=t.memoizedState;o.state=h,sa(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||Nh(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: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)&&jh(t,o,r,l),hn=!1,h=t.memoizedState,o.state=h,sa(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||Nh(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){vg(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 yg(e){var t=e.stateNode;t.pendingContext?Eh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Eh(e,t.context,!1),dd(e,t.containerInfo)}function zh(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 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 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 Ji(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(_(422))),Ji(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 Ji(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(_(419)),r=zl(i,r,void 0),Ji(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(_(421))),Ji(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 Uh(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 xg(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&&Uh(e,n,t);else if(e.tag===19)Uh(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&&ia(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&&ia(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 bo(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(_(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:yg(t),zr();break;case 5:K1(t);break;case 1:He(t.type)&&Jo(t);break;case 4:dd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(na,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=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 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 tn(e,t,n)}var Sg,tc,bg,Eg;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}};tc=function(){};bg=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=Eu(e,s),r=Eu(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=Xo)}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)}};Eg=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 Ce(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 Ce(t),null;case 1:return He(t.type)&&Yo(),Ce(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)&&(Xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(uc(St),St=null))),tc(e,t),Ce(t),null;case 5:fd(t);var s=Wn(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(_(166));return Ce(t),null}if(e=Wn($t.current),Xi(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":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)}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&&Gi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Gi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Bi(r),Xf(r,i,!0);break;case"textarea":Bi(r),Jf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Xo)}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=Gm(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,Sg(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":Gf(e,r),s=Eu(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=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"?Jm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xm(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":Bi(e),Xf(e,r,!1);break;case"textarea":Bi(e),Jf(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=Xo)}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 Ce(t),null;case 6:if(e&&t.stateNode!=null)Eg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Wn(si.current),Wn($t.current),Xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mt]=t,(i=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:Gi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gi(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 Ce(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))z1(),zr(),t.flags|=98560,i=!1;else if(i=Xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[Mt]=t}else zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ce(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),Ce(t),null);case 4:return Br(),tc(e,t),e===null&&ei(t.stateNode.containerInfo),Ce(t),null;case 10:return ld(t.type._context),Ce(t),null;case 17:return He(t.type)&&Yo(),Ce(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return Ce(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=ia(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=ia(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 Ce(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):(Ce(t),null);case 22:case 23:return Cd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function Gx(e,t){switch(sd(t),t.tag){case 1:return He(t.type)&&Yo(),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(_(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 Cd(),null;case 24:return null;default:return null}}var eo=!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 Bh=!1;function Yx(e,t){if($u=Wo,e=P1(),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},Wo=!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 y=p.memoizedProps,S=p.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:wt(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(_(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=Bh,Bh=!1,p}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&&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 Rg(e){return e.tag===5||e.tag===3||e.tag===4}function Vh(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 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=Xo));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;)kg(e,t,n),n=n.sibling}function kg(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 Hh(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(_(160));kg(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;)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(yt(t,e),_t(e),r&4){try{_s(3,e,e.return),Da(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:yt(t,e),_t(e),r&512&&n!==null&&Rr(n,n.return);break;case 5:if(yt(t,e),_t(e),r&512&&n!==null&&Rr(n,n.return),e.flags&32){var s=e.stateNode;try{Ks(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&&Wm(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"?Jm(s,d):c==="dangerouslySetInnerHTML"?Xm(s,d):c==="children"?Ks(s,d):Vc(s,c,d,u)}switch(a){case"input":Cu(s,i);break;case"textarea":Zm(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(y){oe(e,e.return,y)}}break;case 6:if(yt(t,e),_t(e),r&4){if(e.stateNode===null)throw Error(_(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){oe(e,e.return,y)}}break;case 3:if(yt(t,e),_t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xs(t.containerInfo)}catch(y){oe(e,e.return,y)}break;case 4:yt(t,e),_t(e);break;case 13:yt(t,e),_t(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&&Hh(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),_t(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:_s(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(y){oe(r,n,y)}}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=Ym("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:yt(t,e),_t(e),r&4&&Hh(e);break;case 21:break;default:yt(t,e),_t(e)}}function _t(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(_(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ks(s,""),r.flags&=-33);var i=Vh(e);ic(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Vh(e);sc(e,a,o);break;default:throw Error(_(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jx(e,t,n){F=e,Og(e)}function Og(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||eo;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Re;a=eo;var u=Re;if(eo=o,(Re=l)&&!u)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Kh(s):l!==null?(l.return=o,F=l):Kh(s);for(;i!==null;)F=i,Og(i),i=i.sibling;F=s,eo=a,Re=u}qh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):qh(e)}}function qh(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&&Oh(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}Oh(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(_(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 Kh(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,la=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,Is=null,$e=null,bd=0,Hr=1/0,qt=null,ua=!1,oc=null,Pn=null,to=!1,yn=null,ca=0,As=0,ac=null,Eo=-1,Co=0;function Te(){return K&6?le():Eo!==-1?Eo:Eo=le()}function On(e){return e.mode&1?K&2&&xe!==0?xe&-xe:Dx.transition!==null?(Co===0&&(Co=d1()),Co):(e=Y,e!==0||(e=window.event,e=e===void 0?16:y1(e.type)),e):1}function Rt(e,t,n,r){if(50<As)throw As=0,ac=null,Error(_(185));Ei(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=Ko(e,e===me?xe:0);if(r===0)n!==null&&nh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nh(n),t===1)e.tag===0?Mx(Wh.bind(null,e)):D1(Wh.bind(null,e)),_x(function(){!(K&6)&&Dn()}),n=null;else{switch(f1(r)){case 1:n=Wc;break;case 4:n=u1;break;case 16:n=Qo;break;case 536870912:n=c1;break;default:n=Qo}n=Mg(n,Ng.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ng(e,t){if(Eo=-1,Co=0,K&6)throw Error(_(327));var n=e.callbackNode;if(Ir()&&e.callbackNode!==n)return null;var r=Ko(e,e===me?xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=da(e,r);else{t=r;var s=K;K|=2;var i=Tg();(me!==e||xe!==t)&&(qt=null,Hr=le()+500,Gn(e,t));do try{rS();break}catch(a){jg(e,a)}while(1);ad(),la.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=da(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(_(345));case 2:Vn(e,$e,qt);break;case 3:if(mn(e,r),(r&130023424)===r&&(t=bd+500-le(),10<t)){if(Ko(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-Ct(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(_(329))}}}return qe(e,le()),e.callbackNode===n?Ng.bind(null,e):null}function lc(e,t){var n=Is;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=da(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-Ct(t),r=1<<n;e[n]=-1,t&=~r}}function Wh(e){if(K&6)throw Error(_(327));Ir();var t=Ko(e,0);if(!(t&1))return qe(e,le()),null;var n=da(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(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e,$e,qt),qe(e,le()),null}function Ed(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)&&Ir();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 Cd(){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&&Yo();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:Cd()}n=n.return}if(me=e,ce=e=Nn(e.current,null),xe=Ke=t,fe=0,li=null,Sd=Fa=tr=0,$e=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=ce;try{if(ad(),xo.current=aa,oa){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}oa=!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=Lh(o);if(m!==null){m.flags&=-257,Mh(m,o,a,i,t),m.mode&1&&Ah(i,u,t),t=m,l=u;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){Ah(i,u,t),Rd();break e}l=Error(_(426))}}else if(ne&&a.mode&1){var S=Lh(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Mh(S,o,a,i,t),id(Vr(l,a));break e}}i=l=Vr(l,a),fe!==4&&(fe=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);Ph(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"&&(Pn===null||!Pn.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=pg(i,a,t);Ph(i,b);break e}}i=i.return}while(i!==null)}Ig(n)}catch(C){t=C,ce===n&&n!==null&&(ce=n=n.return);continue}break}while(1)}function Tg(){var e=la.current;return la.current=aa,e===null?aa:e}function Rd(){(fe===0||fe===3||fe===2)&&(fe=4),me===null||!(tr&268435455)&&!(Fa&268435455)||mn(me,xe)}function da(e,t){var n=K;K|=2;var r=Tg();(me!==e||xe!==t)&&(qt=null,Gn(e,t));do try{nS();break}catch(s){jg(e,s)}while(1);if(ad(),K=n,la.current=r,ce!==null)throw Error(_(261));return me=null,xe=0,fe}function nS(){for(;ce!==null;)_g(ce)}function rS(){for(;ce!==null&&!Ow();)_g(ce)}function _g(e){var t=Lg(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 Ir();while(yn!==null);if(K&6)throw Error(_(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(_(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)||to||(to=!0,Mg(Qo,function(){return Ir(),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),Pg(n,e),Cx(zu),Wo=!!$u,zu=$u=null,e.current=n,Jx(n),Nw(),K=a,Y=o,ft.transition=i}else e.current=n;if(to&&(to=!1,yn=e,ca=s),i=e.pendingLanes,i===0&&(Pn=null),_w(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(ua)throw ua=!1,e=oc,oc=null,e;return ca&1&&e.tag!==0&&Ir(),i=e.pendingLanes,i&1?e===ac?As++:(As=0,ac=e):As=0,Dn(),null}function Ir(){if(yn!==null){var e=f1(ca),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,ca=0,K&6)throw Error(_(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:_s(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 y=p.child;if(y!==null){p.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==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:_s(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 w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,F=w;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(C){oe(a,a.return,C)}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 Zh(e,t,n){t=Vr(n,t),t=hg(e,t,1),e=kn(e,t,1),t=Te(),e!==null&&(Ei(e,1,t),qe(e,t))}function oe(e,t,n){if(e.tag===3)Zh(e,e,n);else for(;t!==null;){if(t.tag===3){Zh(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=pg(t,e,1),t=kn(t,e,1),e=Te(),t!==null&&(Ei(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 Ag(e,t){t===0&&(e.mode&1?(t=qi,qi<<=1,!(qi&130023424)&&(qi=4194304)):t=1);var n=Te();e=en(e,t),e!==null&&(Ei(e,t,n),qe(e,n))}function oS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(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(_(314))}r!==null&&r.delete(t),Ag(e,n)}var Lg;Lg=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&&F1(t,ta,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bo(e,t),e=t.pendingProps;var s=$r(t,ke.current);_r(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,Jo(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(bo(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=$h(null,t,r,e,n);break e;case 11:t=Dh(null,t,r,e,n);break e;case 14:t=Fh(null,t,r,wt(r.type,e),n);break e}throw Error(_(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),$h(e,t,r,s,n);case 3:e:{if(yg(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,s=i.element,B1(e,t),sa(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(_(423)),t),t=zh(e,t,r,n,s);break e}else if(r!==s){s=Vr(Error(_(424)),t),t=zh(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 K1(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),vg(e,t),Ne(e,t,o,n),t.child;case 6:return e===null&&Qu(t),null;case 13:return wg(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),Dh(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(na,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(_(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,_r(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),Fh(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:wt(r,s),bo(e,t),t.tag=1,He(r)?(e=!0,Jo(t)):e=!1,_r(t,n),H1(t,r,s),Zu(t,r,s,n),Yu(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return gg(e,t,n)}throw Error(_(156,t.tag))};function Mg(e,t){return l1(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 Ro(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 qm:return $a(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 qc:o=11;break e;case Qc:o=14;break e;case fn:o=16,r=null;break e}throw Error(_(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=qm,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=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(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 Dg(e){if(!e)return _n;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(_(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(_(171))}if(e.tag===1){var n=e.type;if(He(n))return M1(e,n,t)}return t}function Fg(e,t,n,r,s,i,o,a,l){return e=Pd(n,r,!0,e,s,i,o,a,l),e.context=Dg(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,Ei(e,s,r),qe(e,r),e}function za(e,t,n,r){var s=t.current,i=Te(),o=On(s);return n=Dg(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),wo(e,s,o)),o}function fa(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 Od(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function fS(){return null}var $g=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(_(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=m1();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&&v1(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 Xh(){}function hS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=fa(o);i.call(u)}}var o=Fg(t,r,e,0,null,!1,!1,"",Xh);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=fa(l);a.call(u)}}var l=Pd(e,0,!1,null,null,!1,!1,"",Xh);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=fa(o);a.call(l)}}za(t,o,e,s)}else o=hS(n,t,e,s,r);return fa(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&&(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)}};p1=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)}};m1=function(){return Y};g1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Tu=function(e,t,n){switch(t){case"input":if(Cu(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=Ia(r);if(!s)throw Error(_(90));Km(r),Cu(r,s)}}}break;case"textarea":Zm(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};n1=Ed;r1=nr;var pS={usingClientEntryPoint:!1,Events:[Ri,xr,Ia,e1,t1,Ed]},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=o1(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 no=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!no.isDisabled&&no.supportsFiber)try{Na=no.inject(mS),Ft=no}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(_(200));return dS(e,t,null,n)};tt.createRoot=function(e,t){if(!jd(e))throw Error(_(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=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(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=o1(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(_(200));return Va(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!jd(e))throw Error(_(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[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(_(200));return Va(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!Ba(e))throw Error(_(40));return e._reactRootContainer?(nr(function(){Va(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};tt.unstable_batchedUpdates=Ed;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ba(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Va(e,t,n,!1,r)};tt.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=tt;var Pi=Fm.exports,Ug={exports:{}},Bg={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* use-sync-external-store-shim.production.min.js
|
|
43
43
|
*
|
|
@@ -45,7 +45,7 @@ Error generating stack: `+s.message+`
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var Wr=b;function RS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PS=typeof Object.is=="function"?Object.is:RS,jS=Wr.useState,NS=Wr.useEffect,TS=Wr.useLayoutEffect,_S=Wr.useDebugValue;function IS(e,t){var n=t(),r=jS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return TS(function(){i.value=n,i.getSnapshot=t,Gl(i)&&s({inst:i})},[e,n,t]),NS(function(){return Gl(i)&&s({inst:i}),e(function(){Gl(i)&&s({inst:i})})},[e]),_S(n),n}function Gl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!PS(e,n)}catch{return!0}}function AS(e,t){return t()}var LS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?AS:IS;o0.useSyncExternalStore=Wr.useSyncExternalStore!==void 0?Wr.useSyncExternalStore:LS;s0.exports=o0;var a0=s0.exports;const l0=a0.useSyncExternalStore,pp=b.createContext(void 0),u0=b.createContext(!1);function c0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pp),window.ReactQueryClientContext):pp)}const lt=({context:e}={})=>{const t=b.useContext(c0(e,b.useContext(u0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MS=({client:e,children:t,context:n,contextSharing:r=!1})=>{b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=c0(n,r);return b.createElement(u0.Provider,{value:!n&&r},b.createElement(i.Provider,{value:e},t))},d0=b.createContext(!1),DS=()=>b.useContext(d0);d0.Provider;function FS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $S=b.createContext(FS()),zS=()=>b.useContext($S);function f0(e,t){return typeof e=="function"?e(...t):!!e}const BS=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},US=e=>{b.useEffect(()=>{e.clearReset()},[e])},VS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&f0(n,[e.error,r]),HS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qS=(e,t)=>e.isLoading&&e.isFetching&&!t,QS=(e,t,n)=>(e==null?void 0:e.suspense)&&qS(t,n),WS=(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 h0(e,t){const n=lt({context:e.context}),r=DS(),i=zS(),s=n.defaultQueryOptions(e);s._optimisticResults=r?"isRestoring":"optimistic",s.onError&&(s.onError=ue.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ue.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ue.batchCalls(s.onSettled)),HS(s),BS(s,i),US(i);const[o]=b.useState(()=>new t(n,s)),a=o.getOptimisticResult(s);if(l0(b.useCallback(l=>{const u=r?()=>{}:o.subscribe(ue.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),b.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),QS(s,a,r))throw WS(s,o,i);if(VS({result:a,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return s.notifyOnChangeProps?a:o.trackResult(a)}function Dd(e,t,n){const r=yr(e,t,n);return h0(r,t1)}function fn(e,t,n){const r=aw(e,t,n),i=lt({context:r.context}),[s]=b.useState(()=>new Ew(i,r));b.useEffect(()=>{s.setOptions(r)},[s,r]);const o=l0(b.useCallback(l=>s.subscribe(ue.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=b.useCallback((l,u)=>{s.mutate(l,u).catch(KS)},[s]);if(o.error&&f0(s.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function KS(){}function ZS(e,t,n){const r=yr(e,t,n);return h0(r,bw)}function XS(){return Dd({queryKey:["session"],queryFn:async()=>await G.session().getSession(),suspense:!0})}function p0({appCode:e}){return Dd({queryKey:["conf"],queryFn:async()=>await G.conf().getConf(e),suspense:!0})}const m0=b.createContext(null);function GS({children:e,params:t}){const n=t.app,r=XS(),i=p0({appCode:n}),s=(i==null?void 0:i.isSuccess)&&(r==null?void 0:r.isSuccess);b.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=b.useMemo(()=>{var a,l,u,c,d,h;return{appCode:n,applications:(a=i==null?void 0:i.data)==null?void 0:a.applications,confQuery:i,currentApp:(l=i==null?void 0:i.data)==null?void 0:l.currentApp,currentLanguage:(u=r==null?void 0:r.data)==null?void 0:u.currentLanguage,init:s,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,i,s,r]);return f.jsx(m0.Provider,{value:o,children:e})}function bt(){const e=b.useContext(m0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function YS(){var r;const{sessionQuery:e}=bt(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(i=>{const s=t.has(i.displayName);return t.add(i.displayName),!s})}function zi(e){const[t,n]=b.useState();return b.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await G.rights().sessionHasWorkflowRight(e):await G.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function JS(){const e=typeof document<"u",[t,n]=b.useState(()=>document.title);return b.useEffect(()=>{e&&n(document.title)},[e]),t}function g0(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{t(!0)},i=()=>{t(!1)};return b.useEffect(()=>{const s=n.current;if(s)return s.addEventListener("mouseover",r),s.addEventListener("mouseout",i),()=>{s.removeEventListener("mouseover",r),s.removeEventListener("mouseout",i)}},[n]),[n,e]}function e4({user:e,avatar:t}){const{t:n}=xe(),r=JS(),[i,s]=b.useState(!0),[o,a]=g0(),l=b.useId(),u=b.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.username}),g=YS(),p=zi("net.atos.entng.community.controllers.CommunityController|view"),y=zi("org.entcore.conversation.controllers.ConversationController|view"),x=zi("fr.openent.searchengine.controllers.SearchEngineController|view"),m=b.useCallback(()=>{s(!i)},[i]),v=async()=>{await G.session().logout(),window.location.href="/auth/login"};return b.useMemo(()=>({title:r,bookmarkedApps:g,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:p,conversationWorflow:y,searchWorkflow:x,isCollapsed:i,toggleCollapsedNav:m,handleLogout:v}),[o,g,p,y,a,i,l,u,x,r,m,c,d,h])}function v0(){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 i(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function s(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:i,getBackgroundLightIconClass:s,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Ya(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const y0=b.createContext(null);function t4({children:e}){var i;const{appCode:t}=bt(),n=p0({appCode:t});b.useEffect(()=>{var u,c,d,h,g,p,y,x,m;const s=document.getElementById("favicon");s.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=(g=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:g.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(y=(p=n==null?void 0:n.data)==null?void 0:p.theme)==null?void 0:y.skinName},{data:"data-theme",value:(m=(x=n==null?void 0:n.data)==null?void 0:x.theme)==null?void 0:m.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=b.useMemo(()=>{var s;return{theme:(s=n==null?void 0:n.data)==null?void 0:s.theme}},[(i=n==null?void 0:n.data)==null?void 0:i.theme]);return f.jsx(y0.Provider,{value:r,children:e})}function Fd(){const e=b.useContext(y0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function $d(){const{user:e,userDescription:t,userProfile:n}=bt(),{theme:r}=Fd();function i(){let s=t==null?void 0:t.picture;return(!s||s==="no-avatar.jpg"||s==="no-avatar.svg")&&(s=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),s}return{user:{...e,type:n},avatar:i(),userDescription:t}}function n4(){const[e,t]=b.useState("pending"),{currentApp:n}=bt();b.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await G.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(i){console.error("[Xiti] Error Tracking Page Load",i),t(`[Xiti] Error Tracking Page Load: ${i}`)}};return{xitiStatus:e}}const mp=["mousedown","touchstart"];function r4(e,t,n){const r=b.useRef();return b.useEffect(()=>{const i=s=>{const{target:o}=s??{};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&&!s.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||mp).forEach(s=>{document.addEventListener(s,i)}),()=>{(t||mp).forEach(s=>{document.removeEventListener(s,i)})}},[r,e,n,t]),r}let i4={data:""},s4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||i4,o4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a4=/\/\*[^]*?\*\/| +/g,gp=/\n+/g,xn=(e,t)=>{let n="",r="",i="";for(let s in e){let o=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":r+=s[1]=="f"?xn(o,s):s+"{"+xn(o,s[1]=="k"?"":t)+"}":typeof o=="object"?r+=xn(o,t?t.replace(/([^,])+/g,a=>s.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=xn.p?xn.p(s,o):s+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Xt={},w0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+w0(e[n]);return t}return e},l4=(e,t,n,r,i)=>{let s=w0(e),o=Xt[s]||(Xt[s]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(s));if(!Xt[o]){let l=s!==e?e:(u=>{let c,d,h=[{}];for(;c=o4.exec(u.replace(a4,""));)c[4]?h.shift():c[3]?(d=c[3].replace(gp," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(gp," ").trim();return h[0]})(e);Xt[o]=xn(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Xt.g?Xt.g:null;return n&&(Xt.g=Xt[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)})(Xt[o],t,r,a),o},u4=(e,t,n)=>e.reduce((r,i,s)=>{let o=t[s];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?"":xn(a,""):a===!1?"":a}return r+i+(o??"")},"");function Ja(e){let t=this||{},n=e.call?e(t.p):e;return l4(n.unshift?n.raw?u4(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,s4(t.target),t.g,t.o,t.k)}let x0,gc,vc;Ja.bind({g:1});let un=Ja.bind({k:1});function c4(e,t,n,r){xn.p=t,x0=e,gc=n,vc=r}function zn(e,t){let n=this||{};return function(){let r=arguments;function i(s,o){let a=Object.assign({},s),l=a.className||i.className;n.p=Object.assign({theme:gc&&gc()},a),n.o=/ *go\d+/.test(l),a.className=Ja.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),vc&&u[0]&&vc(a),x0(u,a)}return t?t(i):i}}var d4=e=>typeof e=="function",ka=(e,t)=>d4(e)?e(t):e,f4=(()=>{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}})(),h4=20,Do=new Map,p4=1e3,vp=e=>{if(Do.has(e))return;let t=setTimeout(()=>{Do.delete(e),fr({type:4,toastId:e})},p4);Do.set(e,t)},m4=e=>{let t=Do.get(e);t&&clearTimeout(t)},yc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,h4)};case 1:return t.toast.id&&m4(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?yc(e,{type:1,toast:n}):yc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?vp(r):e.toasts.forEach(s=>{vp(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},Fo=[],$o={toasts:[],pausedAt:void 0},fr=e=>{$o=yc($o,e),Fo.forEach(t=>{t($o)})},g4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},v4=(e={})=>{let[t,n]=b.useState($o);b.useEffect(()=>(Fo.push(n),()=>{let i=Fo.indexOf(n);i>-1&&Fo.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var s,o;return{...e,...e[i.type],...i,duration:i.duration||((s=e[i.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||g4[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},y4=(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)||f4()}),Ds=e=>(t,n)=>{let r=y4(t,e,n);return fr({type:2,toast:r}),r.id},nt=(e,t)=>Ds("blank")(e,t);nt.error=Ds("error");nt.success=Ds("success");nt.loading=Ds("loading");nt.custom=Ds("custom");nt.dismiss=e=>{fr({type:3,toastId:e})};nt.remove=e=>fr({type:4,toastId:e});nt.promise=(e,t,n)=>{let r=nt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(nt.success(ka(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{nt.error(ka(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var w4=(e,t)=>{fr({type:1,toast:{id:e,height:t}})},x4=()=>{fr({type:5,time:Date.now()})},S4=e=>{let{toasts:t,pausedAt:n}=v4(e);b.useEffect(()=>{if(n)return;let s=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&nt.dismiss(a.id);return}return setTimeout(()=>nt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=b.useCallback(()=>{n&&fr({type:6,time:Date.now()})},[n]),i=b.useCallback((s,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),d=c.findIndex(g=>g.id===s.id),h=c.filter((g,p)=>p<d&&g.visible).length;return c.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,p)=>g+(p.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:w4,startPause:x4,endPause:r,calculateOffset:i}}},b4=un`
|
|
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 ES(e,t){return t()}var CS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ES:bS;Bg.useSyncExternalStore=qr.useSyncExternalStore!==void 0?qr.useSyncExternalStore:CS;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 rt=({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},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(qg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},Kg=x.createContext(!1),kS=()=>x.useContext(Kg);Kg.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 Wg(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])},_S=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Wg(n,[e.error,r]),IS=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 Zg(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)),IS(i),jS(i,s),TS(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]),LS(i,a,r))throw MS(i,o,s);if(_S({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 Zg(r,Dm)}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=Hg(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&&Wg(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 Zg(r,dw)}function $S(){return Td({queryKey:["session"],queryFn:async()=>await X.session().getSession(),suspense:!0})}function Gg({appCode:e}){return Td({queryKey:["conf"],queryFn:async()=>await X.conf().getConf(e),suspense:!0})}const Xg=x.createContext(null);function zS({children:e,params:t}){const n=t.app,r=$S(),s=Gg({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(Xg.Provider,{value:o,children:e})}function gt(){const e=x.useContext(Xg);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 Yg(){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]=Yg(),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"),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 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:y,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:g,handleLogout:v}),[o,m,p,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 Ha(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const e0=x.createContext(null);function HS({children:e}){var s;const{appCode:t}=gt(),n=Gg({appCode:t});x.useEffect(()=>{var u,c,d,h,m,p,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=(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:(y=(p=n==null?void 0:n.data)==null?void 0:p.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 _d(){const e=x.useContext(e0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Id(){const{user:e,userDescription:t,userProfile:n}=gt(),{theme:r}=_d();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 Jh=["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||Jh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Jh).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,ep=/\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={},n0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+n0(e[n]);return t}return e},GS=(e,t,n,r,s)=>{let i=n0(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(ep," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(ep," ").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 r0,cc,dc;qa.bind({g:1});let nn=qa.bind({k:1});function YS(e,t,n,r){gn.p=t,r0=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),r0(u,a)}return t?t(s):s}}var JS=e=>typeof e=="function",ha=(e,t)=>JS(e)?e(t):e,e4=(()=>{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}})(),t4=20,ko=new Map,n4=1e3,tp=e=>{if(ko.has(e))return;let t=setTimeout(()=>{ko.delete(e),ar({type:4,toastId:e})},n4);ko.set(e,t)},r4=e=>{let t=ko.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?tp(r):e.toasts.forEach(i=>{tp(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}))}}},Po=[],Oo={toasts:[],pausedAt:void 0},ar=e=>{Oo=fc(Oo,e),Po.forEach(t=>{t(Oo)})},s4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},i4=(e={})=>{let[t,n]=x.useState(Oo);x.useEffect(()=>(Po.push(n),()=>{let s=Po.indexOf(n);s>-1&&Po.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()}),Oi=e=>(t,n)=>{let r=o4(t,e,n);return ar({type:2,toast:r}),r.id},Ge=(e,t)=>Oi("blank")(e,t);Ge.error=Oi("error");Ge.success=Oi("success");Ge.loading=Oi("loading");Ge.custom=Oi("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(ha(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ge.error(ha(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
49
|
from {
|
|
50
50
|
transform: scale(0) rotate(45deg);
|
|
51
51
|
opacity: 0;
|
|
@@ -53,7 +53,7 @@ from {
|
|
|
53
53
|
to {
|
|
54
54
|
transform: scale(1) rotate(45deg);
|
|
55
55
|
opacity: 1;
|
|
56
|
-
}`,
|
|
56
|
+
}`,d4=nn`
|
|
57
57
|
from {
|
|
58
58
|
transform: scale(0);
|
|
59
59
|
opacity: 0;
|
|
@@ -61,7 +61,7 @@ from {
|
|
|
61
61
|
to {
|
|
62
62
|
transform: scale(1);
|
|
63
63
|
opacity: 1;
|
|
64
|
-
}`,
|
|
64
|
+
}`,f4=nn`
|
|
65
65
|
from {
|
|
66
66
|
transform: scale(0) rotate(90deg);
|
|
67
67
|
opacity: 0;
|
|
@@ -69,7 +69,7 @@ from {
|
|
|
69
69
|
to {
|
|
70
70
|
transform: scale(1) rotate(90deg);
|
|
71
71
|
opacity: 1;
|
|
72
|
-
}`,
|
|
72
|
+
}`,h4=Fn("div")`
|
|
73
73
|
width: 20px;
|
|
74
74
|
opacity: 0;
|
|
75
75
|
height: 20px;
|
|
@@ -78,14 +78,14 @@ to {
|
|
|
78
78
|
position: relative;
|
|
79
79
|
transform: rotate(45deg);
|
|
80
80
|
|
|
81
|
-
animation: ${
|
|
81
|
+
animation: ${c4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
82
82
|
forwards;
|
|
83
83
|
animation-delay: 100ms;
|
|
84
84
|
|
|
85
85
|
&:after,
|
|
86
86
|
&:before {
|
|
87
87
|
content: '';
|
|
88
|
-
animation: ${
|
|
88
|
+
animation: ${d4} 0.15s ease-out forwards;
|
|
89
89
|
animation-delay: 150ms;
|
|
90
90
|
position: absolute;
|
|
91
91
|
border-radius: 3px;
|
|
@@ -98,18 +98,18 @@ to {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
&:before {
|
|
101
|
-
animation: ${
|
|
101
|
+
animation: ${f4} 0.15s ease-out forwards;
|
|
102
102
|
animation-delay: 180ms;
|
|
103
103
|
transform: rotate(90deg);
|
|
104
104
|
}
|
|
105
|
-
`,
|
|
105
|
+
`,p4=nn`
|
|
106
106
|
from {
|
|
107
107
|
transform: rotate(0deg);
|
|
108
108
|
}
|
|
109
109
|
to {
|
|
110
110
|
transform: rotate(360deg);
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
112
|
+
`,m4=Fn("div")`
|
|
113
113
|
width: 12px;
|
|
114
114
|
height: 12px;
|
|
115
115
|
box-sizing: border-box;
|
|
@@ -117,8 +117,8 @@ to {
|
|
|
117
117
|
border-radius: 100%;
|
|
118
118
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
119
119
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
120
|
-
animation: ${
|
|
121
|
-
`,
|
|
120
|
+
animation: ${p4} 1s linear infinite;
|
|
121
|
+
`,g4=nn`
|
|
122
122
|
from {
|
|
123
123
|
transform: scale(0) rotate(45deg);
|
|
124
124
|
opacity: 0;
|
|
@@ -126,7 +126,7 @@ from {
|
|
|
126
126
|
to {
|
|
127
127
|
transform: scale(1) rotate(45deg);
|
|
128
128
|
opacity: 1;
|
|
129
|
-
}`,
|
|
129
|
+
}`,v4=nn`
|
|
130
130
|
0% {
|
|
131
131
|
height: 0;
|
|
132
132
|
width: 0;
|
|
@@ -140,7 +140,7 @@ to {
|
|
|
140
140
|
100% {
|
|
141
141
|
opacity: 1;
|
|
142
142
|
height: 10px;
|
|
143
|
-
}`,
|
|
143
|
+
}`,y4=Fn("div")`
|
|
144
144
|
width: 20px;
|
|
145
145
|
opacity: 0;
|
|
146
146
|
height: 20px;
|
|
@@ -149,13 +149,13 @@ to {
|
|
|
149
149
|
position: relative;
|
|
150
150
|
transform: rotate(45deg);
|
|
151
151
|
|
|
152
|
-
animation: ${
|
|
152
|
+
animation: ${g4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
153
153
|
forwards;
|
|
154
154
|
animation-delay: 100ms;
|
|
155
155
|
&:after {
|
|
156
156
|
content: '';
|
|
157
157
|
box-sizing: border-box;
|
|
158
|
-
animation: ${
|
|
158
|
+
animation: ${v4} 0.2s ease-out forwards;
|
|
159
159
|
opacity: 0;
|
|
160
160
|
animation-delay: 200ms;
|
|
161
161
|
position: absolute;
|
|
@@ -167,16 +167,16 @@ to {
|
|
|
167
167
|
height: 10px;
|
|
168
168
|
width: 6px;
|
|
169
169
|
}
|
|
170
|
-
`,
|
|
170
|
+
`,w4=Fn("div")`
|
|
171
171
|
position: absolute;
|
|
172
|
-
`,
|
|
172
|
+
`,x4=Fn("div")`
|
|
173
173
|
position: relative;
|
|
174
174
|
display: flex;
|
|
175
175
|
justify-content: center;
|
|
176
176
|
align-items: center;
|
|
177
177
|
min-width: 20px;
|
|
178
178
|
min-height: 20px;
|
|
179
|
-
`,
|
|
179
|
+
`,S4=nn`
|
|
180
180
|
from {
|
|
181
181
|
transform: scale(0.6);
|
|
182
182
|
opacity: 0.4;
|
|
@@ -184,20 +184,20 @@ from {
|
|
|
184
184
|
to {
|
|
185
185
|
transform: scale(1);
|
|
186
186
|
opacity: 1;
|
|
187
|
-
}`,
|
|
187
|
+
}`,b4=Fn("div")`
|
|
188
188
|
position: relative;
|
|
189
189
|
transform: scale(0.6);
|
|
190
190
|
opacity: 0.4;
|
|
191
191
|
min-width: 20px;
|
|
192
|
-
animation: ${
|
|
192
|
+
animation: ${S4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
193
193
|
forwards;
|
|
194
|
-
`,
|
|
194
|
+
`,E4=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?x.createElement(b4,null,t):t:n==="blank"?null:x.createElement(x4,null,x.createElement(m4,{...r}),n!=="loading"&&x.createElement(w4,null,n==="error"?x.createElement(h4,{...r}):x.createElement(y4,{...r})))},C4=e=>`
|
|
195
195
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
196
196
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
197
|
-
`,
|
|
197
|
+
`,R4=e=>`
|
|
198
198
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
199
199
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
200
|
-
`,
|
|
200
|
+
`,k4="0%{opacity:0;} 100%{opacity:1;}",P4="0%{opacity:1;} 100%{opacity:0;}",O4=Fn("div")`
|
|
201
201
|
display: flex;
|
|
202
202
|
align-items: center;
|
|
203
203
|
background: #fff;
|
|
@@ -209,21 +209,21 @@ to {
|
|
|
209
209
|
pointer-events: auto;
|
|
210
210
|
padding: 8px 10px;
|
|
211
211
|
border-radius: 8px;
|
|
212
|
-
`,
|
|
212
|
+
`,N4=Fn("div")`
|
|
213
213
|
display: flex;
|
|
214
214
|
justify-content: center;
|
|
215
215
|
margin: 4px 10px;
|
|
216
216
|
color: inherit;
|
|
217
217
|
flex: 1 1 auto;
|
|
218
218
|
white-space: pre-line;
|
|
219
|
-
`,
|
|
219
|
+
`,j4=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=s0()?[k4,P4]:[C4(n),R4(n)];return{animation:t?`${nn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${nn(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},T4=x.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?j4(e.position||t||"top-center",e.visible):{opacity:0},i=x.createElement(E4,{toast:e}),o=x.createElement(N4,{...e.ariaProps},ha(e.message,e));return x.createElement(O4,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):x.createElement(x.Fragment,null,i,o))});YS(x.createElement);var _4=({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)},I4=(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}},A4=qa`
|
|
220
220
|
z-index: 9999;
|
|
221
221
|
> * {
|
|
222
222
|
pointer-events: auto;
|
|
223
223
|
}
|
|
224
|
-
`,mo=16,W4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=S4(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:mo,left:mo,right:mo,bottom:mo,pointerEvents:"none",...s},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=q4(c,d);return b.createElement(H4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Q4:"",style:h},u.type==="custom"?ka(u.message,u):i?i(u):b.createElement(V4,{toast:u,position:c}))}))},vi=nt;function At(e){return{hotToast:{success:(n,r)=>vi.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)=>vi.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)=>vi.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)=>vi.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:vi.loading}}}function K4({src:e,placeholder:t}){const[n,r]=b.useState(e||t),i=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:i}}function Z4(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function X4(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(i=>!i)},[]);return[t,r]}function G4(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const i=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(i)}},[e,t]),n}function Y4(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],i=n.querySelectorAll(t),s=e&&(i==null?void 0:i[i.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(s.focus(),a.preventDefault()):document.activeElement===s&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function J4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const b0=b.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));b0.displayName="ActionBar";const e3=b0,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:"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"})]}),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:"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"})]}),i3=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:"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"})]}),Ek=s3,o3=({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"})]}),Ck=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:"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"})]}),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:"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"})]}),kk=u3,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:"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"})]}),Ok=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:"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"})]}),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:"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"})]}),Rk=h3,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:"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"})]}),m3=p3,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("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"})]}),Pk=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:"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"})]}),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:"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"})]}),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:"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"})]}),jk=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:"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"})]}),E3=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:"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"})]}),k3=C3,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("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"})]}),Nk=O3,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:"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"})]}),P3=R3,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",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"})]}),wc=j3,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:"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"})]}),T3=N3,_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",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"})]}),yp=_3,I3=({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"})]}),A3=I3,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:"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"})]}),Tk=L3,M3=({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"})]}),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",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"})]}),$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("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"})})})]}),_k=z3;function E0(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=E0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Z(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const C0=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:i=!1,isToast:s=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=b.useState(!0),g=b.useRef(null),p=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(c,()=>({show:y,hide:p,...g.current})),b.useLayoutEffect(()=>{u==null||u(d)},[d,u]),b.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},x={success:{icon:f.jsx($3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(n3,{}),classModifier:"alert-warning"},info:{icon:f.jsx(E3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(m3,{}),classModifier:"alert-danger"}},m={"is-dismissible":i,"is-toast ":s},v=Z("alert gap-12",x[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:g,className:v,role:"alert",children:[x[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),i&&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})});C0.displayName="Alert";const Lt=C0,k0=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const i=Z("d-flex p-16 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:i,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});k0.displayName="AppHeader";const B3=k0,O0=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:i,className:s,...o},a)=>{const[l]=Ya(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=K4({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"},g={"object-fit-contain":i==="contain","object-fit-cover":i==="cover","object-fit-fill":i==="fill","object-fit-scale":i==="scale","object-fit-none":i==="none"},p=Z({...h}),y=Z({...g},s),x=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:x}):x});O0.displayName="Image";const R0=O0,P0=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},i)=>{const{isIconUrl:s,getIconCode:o}=v0(),[,a]=Ya(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",g={"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},y={"icon-contain":d,"icon-ratio":h},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",m=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=s(x),S=v||"placeholder",C=Z("app-icon",{...g,...p,...y,[`bg-light-${S}`]:S&&!d,[`color-app-${S}`]:S});return w?f.jsx(R0,{src:x,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:i,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#${S}`})})})});P0.displayName="AppIcon";const xc=P0,j0=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:i,className:s,...o},a)=>{const[l]=Ya(),u=i||`${l}/avatar/no-avatar.svg`,y=Z("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"}},s);return f.jsx("div",{ref:a,className:y,children:f.jsx(R0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});j0.displayName="Avatar";const wp=j0,N0=b.forwardRef(({children:e,className:t,...n},r)=>{const i=Z("breadcrumb-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});N0.displayName="BreadcrumbItem";const Yl=N0,T0=b.forwardRef(({children:e,className:t},n)=>{const r=Z("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});T0.displayName="BreadcrumbList";const U3=T0,_0=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:i}=xe(),{getIconClass:s}=v0(),o=Z("d-flex align-items-center mb-0",s(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":i("breadcrumb"),style:a,children:e})});_0.displayName="BreadcrumbNav";const V3=_0,I0=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:i="left",children:s,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(k3,{...o,"aria-label":"Loading"}),u},l=Z("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!i||i==="left")&&a(),s,i==="right"&&a()]})});I0.displayName="Loading";const H3=I0,A0=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:i,loadingIcon:s,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const g=Z("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":i,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:g,type:t,...d,children:i?f.jsx(H3,{isLoading:!0,loadingIcon:s,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});A0.displayName="Button";const ri=A0,L0=b.forwardRef(({icon:e,className:t,...n},r)=>{const i={...n,className:Z("btn-icon",t)};return f.jsx(ri,{ref:r,...i,children:e})});L0.displayName="IconButton";const zd=L0,M0=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=xe();return f.jsx(V3,{app:e,ref:n,children:f.jsx(U3,{className:"gap-12",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Yl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(zd,{variant:"ghost",color:"tertiary",icon:f.jsx(T3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(xc,{app:e,size:"40"})]})}),f.jsx(Yl,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(Yl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(xc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});M0.displayName="Breadcrumb";const q3=M0,D0=b.forwardRef(({icon:e=f.jsx(D3,{}),onClick:t,...n},r)=>{const i=Z("btn-search btn-sm");return f.jsx(zd,{ref:r,className:i,icon:e,...n,onClick:t})});D0.displayName="SearchButton";const F0=D0,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:"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"})]}),W3=Q3,K3=({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"})]}),xp=K3,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:"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"})]}),X3=Z3,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",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"})]}),Sp=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:"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"})]}),J3=Y3,e5=({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"})]}),bp=e5,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:"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"})]}),n5=t5,r5=({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"})]}),i5=r5,s5=({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"})]}),o5=s5,a5=({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"})})})]}),l5=a5,u5=({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"})]}),c5=u5,d5=({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"})]}),f5=d5;var Ep=function(t){return t.reduce(function(n,r){var i=r[0],s=r[1];return n[i]=s,n},{})},Cp=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Ze="top",xt="bottom",St="right",Xe="left",Bd="auto",Fs=[Ze,xt,St,Xe],Kr="start",gs="end",h5="clippingParents",$0="viewport",yi="popper",p5="reference",kp=Fs.reduce(function(e,t){return e.concat([t+"-"+Kr,t+"-"+gs])},[]),z0=[].concat(Fs,[Bd]).reduce(function(e,t){return e.concat([t,t+"-"+Kr,t+"-"+gs])},[]),m5="beforeRead",g5="read",v5="afterRead",y5="beforeMain",w5="main",x5="afterMain",S5="beforeWrite",b5="write",E5="afterWrite",C5=[m5,g5,v5,y5,w5,x5,S5,b5,E5];function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function st(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lr(e){var t=st(e).Element;return e instanceof t||e instanceof Element}function vt(e){var t=st(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ud(e){if(typeof ShadowRoot>"u")return!1;var t=st(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!vt(s)||!Qt(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function O5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!vt(i)||!Qt(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const R5={name:"applyStyles",enabled:!0,phase:"write",fn:k5,effect:O5,requires:["computeStyles"]};function qt(e){return e.split("-")[0]}var nr=Math.max,Oa=Math.min,Zr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function Xr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&vt(e)&&(i=e.offsetWidth>0&&Zr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Zr(r.height)/e.offsetHeight||1);var o=lr(e)?st(e):window,a=o.visualViewport,l=!B0()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,h=r.height/s;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function Vd(e){var t=Xr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ud(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(e){return st(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(Qt(e))>=0}function Bn(e){return((lr(e)?e.ownerDocument:e.document)||window.document).documentElement}function el(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ud(e)?e.host:null)||Bn(e)}function Op(e){return!vt(e)||cn(e).position==="fixed"?null:e.offsetParent}function j5(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&vt(e)){var r=cn(e);if(r.position==="fixed")return null}var i=el(e);for(Ud(i)&&(i=i.host);vt(i)&&["html","body"].indexOf(Qt(i))<0;){var s=cn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function $s(e){for(var t=st(e),n=Op(e);n&&P5(n)&&cn(n).position==="static";)n=Op(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&cn(n).position==="static")?t:n||j5(e)||t}function Hd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bi(e,t,n){return nr(e,Oa(t,n))}function N5(e,t,n){var r=Bi(e,t,n);return r>n?n:r}function V0(){return{top:0,right:0,bottom:0,left:0}}function H0(e){return Object.assign({},V0(),e)}function q0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H0(typeof t!="number"?t:q0(t,Fs))};function _5(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=qt(n.placement),l=Hd(a),u=[Xe,St].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var d=T5(i.padding,n),h=Vd(s),g=l==="y"?Ze:Xe,p=l==="y"?xt:St,y=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],x=o[l]-n.rects.reference[l],m=$s(s),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=y/2-x/2,S=d[g],C=v-h[c]-d[p],k=v/2-h[c]/2+w,O=Bi(S,k,C),R=l;n.modifiersData[r]=(t={},t[R]=O,t.centerOffset=O-k,t)}}function I5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||U0(t.elements.popper,i)&&(t.elements.arrow=i))}const A5={name:"arrow",enabled:!0,phase:"main",fn:_5,effect:I5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gr(e){return e.split("-")[1]}var L5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zr(n*i)/i||0,y:Zr(r*i)/i||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=o.x,g=h===void 0?0:h,p=o.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:g,y}):{x:g,y};g=x.x,y=x.y;var m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Xe,S=Ze,C=window;if(u){var k=$s(n),O="clientHeight",R="clientWidth";if(k===st(n)&&(k=Bn(n),cn(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",R="scrollWidth")),k=k,i===Ze||(i===Xe||i===St)&&s===gs){S=xt;var I=d&&k===C&&C.visualViewport?C.visualViewport.height:k[O];y-=I-r.height,y*=l?1:-1}if(i===Xe||(i===Ze||i===xt)&&s===gs){w=St;var A=d&&k===C&&C.visualViewport?C.visualViewport.width:k[R];g-=A-r.width,g*=l?1:-1}}var M=Object.assign({position:a},u&&L5),z=c===!0?M5({x:g,y},st(n)):{x:g,y};if(g=z.x,y=z.y,l){var B;return Object.assign({},M,(B={},B[S]=v?"0":"",B[w]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},M,(t={},t[S]=v?y+"px":"",t[w]=m?g+"px":"",t.transform="",t))}function D5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:qt(t.placement),variation:Gr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const F5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D5,data:{}};var go={passive:!0};function $5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=st(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,go)}),a&&l.addEventListener("resize",n.update,go),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,go)}),a&&l.removeEventListener("resize",n.update,go)}}const z5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$5,data:{}};var B5={left:"right",right:"left",bottom:"top",top:"bottom"};function zo(e){return e.replace(/left|right|bottom|top/g,function(t){return B5[t]})}var U5={start:"end",end:"start"};function Pp(e){return e.replace(/start|end/g,function(t){return U5[t]})}function qd(e){var t=st(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qd(e){return Xr(Bn(e)).left+qd(e).scrollLeft}function V5(e,t){var n=st(e),r=Bn(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=B0();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Qd(e),y:l}}function H5(e){var t,n=Bn(e),r=qd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=nr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=nr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Qd(e),l=-r.scrollTop;return cn(i||n).direction==="rtl"&&(a+=nr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Wd(e){var t=cn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Q0(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:vt(e)&&Wd(e)?e:Q0(el(e))}function Ui(e,t){var n;t===void 0&&(t=[]);var r=Q0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=st(r),o=i?[s].concat(s.visualViewport||[],Wd(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Ui(el(o)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q5(e,t){var n=Xr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jp(e,t,n){return t===$0?bc(V5(e,n)):lr(t)?q5(t,n):bc(H5(Bn(e)))}function Q5(e){var t=Ui(el(e)),n=["absolute","fixed"].indexOf(cn(e).position)>=0,r=n&&vt(e)?$s(e):e;return lr(r)?t.filter(function(i){return lr(i)&&U0(i,r)&&Qt(i)!=="body"}):[]}function W5(e,t,n,r){var i=t==="clippingParents"?Q5(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,u){var c=jp(e,u,r);return l.top=nr(c.top,l.top),l.right=Oa(c.right,l.right),l.bottom=Oa(c.bottom,l.bottom),l.left=nr(c.left,l.left),l},jp(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function W0(e){var t=e.reference,n=e.element,r=e.placement,i=r?qt(r):null,s=r?Gr(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Ze:l={x:o,y:t.y-n.height};break;case xt:l={x:o,y:t.y+t.height};break;case St:l={x:t.x+t.width,y:a};break;case Xe:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?Hd(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Kr:l[u]=l[u]-(t[c]/2-n[c]/2);break;case gs:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function vs(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?h5:a,u=n.rootBoundary,c=u===void 0?$0:u,d=n.elementContext,h=d===void 0?yi:d,g=n.altBoundary,p=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,m=H0(typeof x!="number"?x:q0(x,Fs)),v=h===yi?p5:yi,w=e.rects.popper,S=e.elements[p?v:h],C=W5(lr(S)?S:S.contextElement||Bn(e.elements.popper),l,c,o),k=Xr(e.elements.reference),O=W0({reference:k,element:w,strategy:"absolute",placement:i}),R=bc(Object.assign({},w,O)),I=h===yi?R:k,A={top:C.top-I.top+m.top,bottom:I.bottom-C.bottom+m.bottom,left:C.left-I.left+m.left,right:I.right-C.right+m.right},M=e.modifiersData.offset;if(h===yi&&M){var z=M[i];Object.keys(A).forEach(function(B){var E=[St,xt].indexOf(B)>=0?1:-1,P=[Ze,xt].indexOf(B)>=0?"y":"x";A[B]+=z[P]*E})}return A}function K5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?z0:l,c=Gr(r),d=c?a?kp:kp.filter(function(p){return Gr(p)===c}):Fs,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var g=h.reduce(function(p,y){return p[y]=vs(e,{placement:y,boundary:i,rootBoundary:s,padding:o})[qt(y)],p},{});return Object.keys(g).sort(function(p,y){return g[p]-g[y]})}function Z5(e){if(qt(e)===Bd)return[];var t=zo(e);return[Pp(e),t,Pp(t)]}function X5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,m=qt(x),v=m===x,w=l||(v||!p?[zo(x)]:Z5(x)),S=[x].concat(w).reduce(function(he,J){return he.concat(qt(J)===Bd?K5(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:y}):J)},[]),C=t.rects.reference,k=t.rects.popper,O=new Map,R=!0,I=S[0],A=0;A<S.length;A++){var M=S[A],z=qt(M),B=Gr(M)===Kr,E=[Ze,xt].indexOf(z)>=0,P=E?"width":"height",L=vs(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),F=E?B?St:Xe:B?xt:Ze;C[P]>k[P]&&(F=zo(F));var j=zo(F),N=[];if(s&&N.push(L[z]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(he){return he})){I=M,R=!1;break}O.set(M,N)}if(R)for(var $=p?3:1,W=function(J){var K=S.find(function(ie){var ge=O.get(ie);if(ge)return ge.slice(0,J).every(function(Fe){return Fe})});if(K)return I=K,"break"},H=$;H>0;H--){var Ye=W(H);if(Ye==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const G5={name:"flip",enabled:!0,phase:"main",fn:X5,requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tp(e){return[Ze,St,xt,Xe].some(function(t){return e[t]>=0})}function Y5(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=vs(t,{elementContext:"reference"}),a=vs(t,{altBoundary:!0}),l=Np(o,r),u=Np(a,i,s),c=Tp(l),d=Tp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const J5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y5};function eb(e,t,n){var r=qt(e),i=[Xe,Ze].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Xe,St].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=z0.reduce(function(c,d){return c[d]=eb(d,t.rects,s),c},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const nb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tb};function rb(e){var t=e.state,n=e.name;t.modifiersData[n]=W0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ib={name:"popperOffsets",enabled:!0,phase:"read",fn:rb,data:{}};function sb(e){return e==="x"?"y":"x"}function ob(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,y=p===void 0?0:p,x=vs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=qt(t.placement),v=Gr(t.placement),w=!v,S=Hd(m),C=sb(S),k=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(s){var B,E=S==="y"?Ze:Xe,P=S==="y"?xt:St,L=S==="y"?"height":"width",F=k[S],j=F+x[E],N=F-x[P],$=g?-R[L]/2:0,W=v===Kr?O[L]:R[L],H=v===Kr?-R[L]:-O[L],Ye=t.elements.arrow,he=g&&Ye?Vd(Ye):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V0(),K=J[E],ie=J[P],ge=Bi(0,O[L],he[L]),Fe=w?O[L]/2-$-ge-K-A.mainAxis:W-ge-K-A.mainAxis,Mt=w?-O[L]/2+$+ge+ie+A.mainAxis:H+ge+ie+A.mainAxis,bl=t.elements.arrow&&$s(t.elements.arrow),Ay=bl?S==="y"?bl.clientTop||0:bl.clientLeft||0:0,kf=(B=M==null?void 0:M[S])!=null?B:0,Ly=F+Fe-kf-Ay,My=F+Mt-kf,Of=Bi(g?Oa(j,Ly):j,F,g?nr(N,My):N);k[S]=Of,z[S]=Of-F}if(a){var Rf,Dy=S==="x"?Ze:Xe,Fy=S==="x"?xt:St,qn=k[C],Ks=C==="y"?"height":"width",Pf=qn+x[Dy],jf=qn-x[Fy],El=[Ze,Xe].indexOf(m)!==-1,Nf=(Rf=M==null?void 0:M[C])!=null?Rf:0,Tf=El?Pf:qn-O[Ks]-R[Ks]-Nf+A.altAxis,_f=El?qn+O[Ks]+R[Ks]-Nf-A.altAxis:jf,If=g&&El?N5(Tf,qn,_f):Bi(g?Tf:Pf,qn,g?_f:jf);k[C]=If,z[C]=If-qn}t.modifiersData[r]=z}}const ab={name:"preventOverflow",enabled:!0,phase:"main",fn:ob,requiresIfExists:["offset"]};function lb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ub(e){return e===st(e)||!vt(e)?qd(e):lb(e)}function cb(e){var t=e.getBoundingClientRect(),n=Zr(t.width)/e.offsetWidth||1,r=Zr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function db(e,t,n){n===void 0&&(n=!1);var r=vt(t),i=vt(t)&&cb(t),s=Bn(t),o=Xr(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qt(t)!=="body"||Wd(s))&&(a=ub(t)),vt(t)?(l=Xr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Qd(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function fb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function hb(e){var t=fb(e);return C5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mb(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function Ip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?_p:i;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,g={state:c,setOptions:function(m){var v=typeof m=="function"?m(c.options):m;y(),c.options=Object.assign({},s,c.options,v),c.scrollParents={reference:lr(a)?Ui(a):a.contextElement?Ui(a.contextElement):[],popper:Ui(l)};var w=hb(mb([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),p(),g.update()},forceUpdate:function(){if(!h){var m=c.elements,v=m.reference,w=m.popper;if(Ip(v,w)){c.rects={reference:db(v,$s(w),c.options.strategy==="fixed"),popper:Vd(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],k=C.fn,O=C.options,R=O===void 0?{}:O,I=C.name;typeof k=="function"&&(c=k({state:c,options:R,name:I,instance:g})||c)}}}},update:pb(function(){return new Promise(function(x){g.forceUpdate(),x(c)})}),destroy:function(){y(),h=!0}};if(!Ip(a,l))return g;g.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function p(){c.orderedModifiers.forEach(function(x){var m=x.name,v=x.options,w=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var C=S({state:c,name:m,instance:g,options:w}),k=function(){};d.push(C||k)}})}function y(){d.forEach(function(x){return x()}),d=[]}return g}}var vb=[z5,ib,F5,R5,nb,G5,ab,A5,J5],yb=gb({defaultModifiers:vb}),wb=typeof Element<"u",xb=typeof Map=="function",Sb=typeof Set=="function",bb=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bo(e[r],t[r]))return!1;return!0}var s;if(xb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Bo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Sb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wb&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Bo(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Eb=function(t,n){try{return Bo(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Cb=js(Eb);var kb=[],Ob=function(t,n,r){r===void 0&&(r={});var i=b.useRef(null),s={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||kb},o=b.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var p=g.state,y=Object.keys(p.elements);Ms.flushSync(function(){l({styles:Ep(y.map(function(x){return[x,p.styles[x]||{}]})),attributes:Ep(y.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=b.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Cb(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,u]),d=b.useRef();return Cp(function(){d.current&&d.current.setOptions(c)},[c]),Cp(function(){if(!(t==null||n==null)){var h=r.createPopper||yb,g=h(t,n,c);return d.current=g,function(){g.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Rb=Object.defineProperty,Pb=(e,t)=>{for(var n in t)Rb(e,n,{get:t[n],enumerable:!0})},It={};Pb(It,{assign:()=>Tb,colors:()=>An,createStringInterpolator:()=>ef,skipAnimation:()=>ev,to:()=>J0,willAdvance:()=>tf});var Kd=Bs(),V=e=>zs(e,Kd),Zd=Bs();V.write=e=>zs(e,Zd);var tl=Bs();V.onStart=e=>zs(e,tl);var Xd=Bs();V.onFrame=e=>zs(e,Xd);var Gd=Bs();V.onFinish=e=>zs(e,Gd);var Fr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const s=Fr.findIndex(o=>o.cancel==r);~s&&Fr.splice(s,1),Cn-=~s?1:0},i={time:n,handler:e,cancel:r};return Fr.splice(K0(n),0,i),Cn+=1,Z0(),i};var K0=e=>~(~Fr.findIndex(t=>t.time>e)||~Fr.length);V.cancel=e=>{tl.delete(e),Xd.delete(e),Gd.delete(e),Kd.delete(e),Zd.delete(e)};V.sync=e=>{Ec=!0,V.batchedUpdates(e),Ec=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,V.onStart(n)}return r.handler=e,r.cancel=()=>{tl.delete(n),t=null},r};var Yd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Yd=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"):G0()};var En=-1,Cn=0,Ec=!1;function zs(e,t){Ec?(t.delete(e),e(0)):(t.add(e),Z0())}function Z0(){En<0&&(En=0,V.frameLoop!=="demand"&&Yd(X0))}function jb(){En=-1}function X0(){~En&&(Yd(X0),V.batchedUpdates(G0))}function G0(){const e=En;En=V.now();const t=K0(En);if(t&&(Y0(Fr.splice(0,t),n=>n.handler()),Cn-=t),!Cn){jb();return}tl.flush(),Kd.flush(e?Math.min(64,En-e):16.667),Xd.flush(),Zd.flush(),Gd.flush()}function Bs(){let e=new Set,t=e;return{add(n){Cn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Cn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Cn-=t.size,Y0(t,r=>r(n)&&e.add(r)),Cn+=e.size,t=e)}}}function Y0(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function Cc(){}var Nb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={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 Yt(e,t){if(T.arr(e)){if(!T.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 U=(e,t)=>e.forEach(t);function Wt(e,t,n){if(T.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 _e=e=>T.und(e)?[]:T.arr(e)?e:[e];function Vi(e,t){if(e.size){const n=Array.from(e);e.clear(),U(n,t)}}var Pi=(e,...t)=>Vi(e,n=>n(...t)),Jd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ef,J0,An=null,ev=!1,tf=Cc,Tb=e=>{e.to&&(J0=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(An=e.colors),e.skipAnimation!=null&&(ev=e.skipAnimation),e.createStringInterpolator&&(ef=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tf=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Hi=new Set,pt=[],Jl=[],Ra=0,nl={get idle(){return!Hi.size&&!pt.length},start(e){Ra>e.priority?(Hi.add(e),V.onStart(_b)):(tv(e),V(kc))},advance:kc,sort(e){if(Ra)V.onFrame(()=>nl.sort(e));else{const t=pt.indexOf(e);~t&&(pt.splice(t,1),nv(e))}},clear(){pt=[],Hi.clear()}};function _b(){Hi.forEach(tv),Hi.clear(),V(kc)}function tv(e){pt.includes(e)||nv(e)}function nv(e){pt.splice(Ib(pt,t=>t.priority>e.priority),0,e)}function kc(e){const t=Jl;for(let n=0;n<pt.length;n++){const r=pt[n];Ra=r.priority,r.idle||(tf(r),r.advance(e),r.idle||t.push(r))}return Ra=0,Jl=pt,Jl.length=0,pt=t,pt.length>0}function Ib(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Ab=(e,t,n)=>Math.min(Math.max(n,e),t),Lb={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},jt="[-+]?\\d*\\.?\\d+",Pa=jt+"%";function rl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Mb=new RegExp("rgb"+rl(jt,jt,jt)),Db=new RegExp("rgba"+rl(jt,jt,jt,jt)),Fb=new RegExp("hsl"+rl(jt,Pa,Pa)),$b=new RegExp("hsla"+rl(jt,Pa,Pa,jt)),zb=/^#([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})$/,Ub=/^#([0-9a-fA-F]{6})$/,Vb=/^#([0-9a-fA-F]{8})$/;function Hb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ub.exec(e))?parseInt(t[1]+"ff",16)>>>0:An&&An[e]!==void 0?An[e]:(t=Mb.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|255)>>>0:(t=Db.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|Mp(t[4]))>>>0:(t=zb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vb.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=Fb.exec(e))?(Ap(Lp(t[1]),vo(t[2]),vo(t[3]))|255)>>>0:(t=$b.exec(e))?(Ap(Lp(t[1]),vo(t[2]),vo(t[3]))|Mp(t[4]))>>>0:null}function eu(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 Ap(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=eu(i,r,e+1/3),o=eu(i,r,e),a=eu(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function vr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lp(e){return(parseFloat(e)%360+360)%360/360}function Mp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function vo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dp(e){let t=Hb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var ys=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ys({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return ef(e);const r=e,i=r.output,s=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=Qb(u,s);return qb(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function qb(e,t,n,r,i,s,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===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Qb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Wb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Ab(0,1,i/e)},ja=1.70158,yo=ja*1.525,Fp=ja+1,$p=2*Math.PI/3,zp=2*Math.PI/4.5,wo=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,Kb={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=>Fp*e*e*e-ja*e*e,easeOutBack:e=>1+Fp*Math.pow(e-1,3)+ja*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((yo+1)*2*e-yo)/2:(Math.pow(2*e-2,2)*((yo+1)*(e*2-2)+yo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*$p),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*$p)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zp)/2+1,easeInBounce:e=>1-wo(1-e),easeOutBounce:wo,easeInOutBounce:e=>e<.5?(1-wo(1-2*e))/2:(1+wo(2*e-1))/2,steps:Wb},ws=Symbol.for("FluidValue.get"),Yr=Symbol.for("FluidValue.observers"),ht=e=>!!(e&&e[ws]),ze=e=>e&&e[ws]?e[ws]():e,Bp=e=>e[Yr]||null;function Zb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function xs(e,t){const n=e[Yr];n&&n.forEach(r=>{Zb(r,t)})}var rv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Xb(this,e)}},Xb=(e,t)=>iv(e,ws,t);function ii(e,t){if(e[ws]){let n=e[Yr];n||iv(e,Yr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ss(e,t){const n=e[Yr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Yr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var iv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Uo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gb=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Up=new RegExp(`(${Uo.source})(%|[a-z]+)`,"i"),Yb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,il=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sv=e=>{const[t,n]=Jb(e);if(!t||Jd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&il.test(n))return sv(n);if(n)return n}return e},Jb=e=>{const t=il.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},tu,eE=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ov=e=>{tu||(tu=An?new RegExp(`(${Object.keys(An).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>ze(s).replace(il,sv).replace(Gb,Dp).replace(tu,Dp)),n=t.map(s=>s.match(Uo).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>ys({...e,output:s}));return s=>{var l;const o=!Up.test(t[0])&&((l=t.find(u=>Up.test(u)))==null?void 0:l.replace(Uo,""));let a=0;return t[0].replace(Uo,()=>`${i[a++](s)}${o||""}`).replace(Yb,eE)}},nf="react-spring: ",av=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},tE=av(console.warn);function nE(){tE(`${nf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rE=av(console.warn);function iE(){rE(`${nf}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 sl(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jd()&&il.test(e)||e in(An||{}))}var Jn=Jd()?b.useEffect:b.useLayoutEffect,sE=()=>{const e=b.useRef(!1);return Jn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function rf(){const e=b.useState()[1],t=sE();return()=>{t.current&&e(Math.random())}}function oE(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&aE(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function aE(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 sf=e=>b.useEffect(e,lE),lE=[];function Oc(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var bs=Symbol.for("Animated:node"),uE=e=>!!e&&e[bs]===e,zt=e=>e&&e[bs],of=(e,t)=>Nb(e,bs,t),ol=e=>e&&e[bs]&&e[bs].getPayload(),lv=class{constructor(){of(this,this)}getPayload(){return this.payload||[]}},Us=class extends lv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Us(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.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,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Es=class extends Us{constructor(e){super(0),this._string=null,this._toString=ys({output:[e,e]})}static create(e){return new Es(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(T.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=ys({output:[this.getValue(),e]})),this._value=0,super.reset()}},Na={dependencies:null},al=class extends lv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Wt(this.source,(n,r)=>{uE(n)?t[r]=n.getValue(e):ht(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Wt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Na.dependencies&&ht(e)&&Na.dependencies.add(e);const t=ol(e);t&&U(t,n=>this.add(n))}},uv=class extends al{constructor(e){super(e)}static create(e){return new uv(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(cE)),!0)}};function cE(e){return(sl(e)?Es:Us).create(e)}function Rc(e){const t=zt(e);return t?t.constructor:T.arr(e)?uv:sl(e)?Es:Us}var Vp=(e,t)=>{const n=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(p=>{s.current=hE(i,p)},[i]),[a,l]=fE(r,t),u=rf(),c=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new dE(c,l),h=b.useRef();Jn(()=>(h.current=d,U(l,p=>ii(p,d)),()=>{h.current&&(U(h.current.deps,p=>Ss(p,h.current)),V.cancel(h.current.update))})),b.useEffect(c,[]),sf(()=>()=>{const p=h.current;U(p.deps,y=>Ss(y,p))});const g=t.getComponentProps(a.getValue());return b.createElement(e,{...g,ref:o})})},dE=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function fE(e,t){const n=new Set;return Na.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new al(e),Na.dependencies=null,[e,n]}function hE(e,t){return e&&(T.fun(e)?e(t):e.current=t),t}var Hp=Symbol.for("AnimatedComponent"),pE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new al(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=qp(o)||"Anonymous";return T.str(o)?o=s[o]||(s[o]=Vp(o,i)):o=o[Hp]||(o[Hp]=Vp(o,i)),o.displayName=`Animated(${a})`,o};return Wt(e,(o,a)=>{T.arr(e)&&(a=qp(o)),s[a]=s(o)}),{animated:s}},qp=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Be(e,...t){return T.fun(e)?e(...t):e}var qi=(e,t)=>e===!0||!!(t&&e&&(T.fun(e)?e(t):_e(e).includes(t))),cv=(e,t)=>T.obj(e)?t&&e[t]:e,dv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,mE=e=>e,ll=(e,t=mE)=>{let n=gE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);T.und(s)||(r[i]=s)}return r},gE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],vE={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 yE(e){const t={};let n=0;if(Wt(e,(r,i)=>{vE[i]||(t[i]=r,n++)}),n)return t}function af(e){const t=yE(e);if(t){const n={to:t};return Wt(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Cs(e){return e=ze(e),T.arr(e)?e.map(Cs):sl(e)?It.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function fv(e){for(const t in e)return!0;return!1}function Pc(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function jc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function hv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var wE={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}},Nc={...wE.default,mass:1,damping:1,easing:Kb.linear,clamp:!1},xE=class{constructor(){this.velocity=0,Object.assign(this,Nc)}};function SE(e,t,n){n&&(n={...n},Qp(n,t),t={...n,...t}),Qp(e,t),Object.assign(e,t);for(const o in Nc)e[o]==null&&(e[o]=Nc[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Qp(e,t){if(!T.und(t.decay))e.duration=void 0;else{const n=!T.und(t.tension)||!T.und(t.friction);(n||!T.und(t.frequency)||!T.und(t.damping)||!T.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Wp=[],bE=class{constructor(){this.changed=!1,this.values=Wp,this.toValues=null,this.fromValues=Wp,this.config=new xE,this.immediate=!1}};function pv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=qi(n.cancel??(r==null?void 0:r.cancel),t);if(c)g();else{T.und(n.pause)||(i.paused=qi(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||qi(p,t)),l=Be(n.delay||0,t),p?(i.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!It.skipAnimation?(i.delayed=!0,u=V.setTimeout(g,l),i.pauseQueue.add(d),i.timeouts.add(u)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var lf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$r(e.get()):t.every(n=>n.noop)?mv(e.get()):Pt(e.get(),t.every(n=>n.finished)),mv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$r=e=>({value:e,cancelled:!0,finished:!1});function gv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=ll(t,(x,m)=>m==="onRest"?void 0:x);let c,d;const h=new Promise((x,m)=>(c=x,d=m)),g=x=>{const m=i<=(n.cancelId||0)&&$r(r)||i!==n.asyncId&&Pt(r,!1);if(m)throw x.result=m,d(x),x},p=(x,m)=>{const v=new Kp,w=new Zp;return(async()=>{if(It.skipAnimation)throw ks(n),w.result=Pt(r,!1),d(w),w;g(v);const S=T.obj(x)?{...x}:{...m,to:x};S.parentId=i,Wt(u,(k,O)=>{T.und(S[O])&&(S[O]=k)});const C=await r.start(S);return g(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(It.skipAnimation)return ks(n),Pt(r,!1);try{let x;T.arr(e)?x=(async m=>{for(const v of m)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),h]),y=Pt(r.get(),!0,!1)}catch(x){if(x instanceof Kp)y=x.result;else if(x instanceof Zp)y=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return T.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function ks(e,t){Vi(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kp=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.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Tc=e=>e instanceof uf,EE=1,uf=class extends rv{constructor(){super(...arguments),this.id=EE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=zt(this);return e&&e.getValue()}to(...e){return It.to(this,e)}interpolate(...e){return nE(),It.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){xs(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nl.sort(this),xs(this,{type:"priority",parent:this,priority:e})}},ur=Symbol.for("SpringPhase"),vv=1,_c=2,Ic=4,nu=e=>(e[ur]&vv)>0,pn=e=>(e[ur]&_c)>0,wi=e=>(e[ur]&Ic)>0,Xp=(e,t)=>t?e[ur]|=_c|vv:e[ur]&=~_c,Gp=(e,t)=>t?e[ur]|=Ic:e[ur]&=~Ic,CE=class extends uf{constructor(e,t){if(super(),this.animation=new bE,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,!T.und(e)||!T.und(t)){const n=T.obj(e)?{...e}:{...t,from:e};T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(pn(this)||this._state.asyncTo)||wi(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=zt(this);return e instanceof Us?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return nu(this)}get isAnimating(){return pn(this)}get isPaused(){return wi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=ol(r.to);!o&&ht(r.to)&&(i=_e(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Es?1:o?o[c].lastPosition:i[c];let h=r.immediate,g=d;if(!h){if(g=u.lastPosition,s.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=T.arr(s.velocity)?s.velocity[c]:s.velocity;let m;const v=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(T.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,S=Math.exp(-(1-w)*p);g=y+x/(1-w)*(1-S),h=Math.abs(u.lastPosition-g)<=v,m=x*S}else{m=u.lastVelocity==null?x:u.lastVelocity;const w=s.restVelocity||v/10,S=s.clamp?0:s.bounce,C=!T.und(S),k=y==d?u.v0>0:y<d;let O,R=!1;const I=1,A=Math.ceil(e/I);for(let M=0;M<A&&(O=Math.abs(m)>w,!(!O&&(h=Math.abs(d-g)<=v,h)));++M){C&&(R=g==d||g>d==k,R&&(m=-m*S,g=d));const z=-s.tension*1e-6*(g-d),B=-s.friction*.001*m,E=(z+B)/s.mass;m=m+E*I,g=g+m*I}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(s.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),g=y+s.easing(w)*(d-y),m=(g-u.lastPosition)/e,h=w==1}u.lastVelocity=m,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(g,s.round)&&(n=!0)});const a=zt(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.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(pn(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 T.und(e)?(n=this.queue||[],this.queue=[]):n=[T.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>lf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ks(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=T.obj(n)?n[t]:n,(n==null||Pc(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return nu(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),T.und(r)?zt(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ll(e,(o,a)=>/^on/.test(a)?cv(o,n):o)),Jp(this,e,"onProps"),Si(this,"onProps",e,this);const i=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 s=this._state;return pv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{wi(this)||(Gp(this,!0),Pi(s.pauseQueue),Si(this,"onPause",Pt(this,xi(this,this.animation.to)),this))},resume:()=>{wi(this)&&(Gp(this,!1),pn(this)&&this._resume(),Pi(s.resumeQueue),Si(this,"onResume",Pt(this,xi(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=yv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($r(this));const r=!T.und(e.to),i=!T.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($r(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||T.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Yt(d,u);h&&(a.from=d),d=ze(d);const g=!Yt(c,l);g&&this._focus(c);const p=Pc(t.to),{config:y}=a,{decay:x,velocity:m}=y;(r||i)&&(y.velocity=0),t.config&&!p&&SE(y,Be(t.config,s),t.config!==o.config?Be(o.config,s):void 0);let v=zt(this);if(!v||T.und(c))return n(Pt(this,!0));const w=T.und(t.reset)?i&&!t.default:!T.und(d)&&qi(t.reset,s),S=w?d:this.get(),C=Cs(c),k=T.num(C)||T.arr(C)||sl(C),O=!p&&(!k||qi(o.immediate||t.immediate,s));if(g){const M=Rc(c);if(M!==v.constructor)if(O)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${M.name}, as the "to" prop suggests`)}const R=v.constructor;let I=ht(c),A=!1;if(!I){const M=w||!nu(this)&&h;(g||M)&&(A=Yt(Cs(S),C),I=!A),(!Yt(a.immediate,O)&&!O||!Yt(y.decay,x)||!Yt(y.velocity,m))&&(I=!0)}if(A&&pn(this)&&(a.changed&&!w?I=!0:I||this._stop(l)),!p&&((I||ht(l))&&(a.values=v.getPayload(),a.toValues=ht(c)?null:R==Es?[1]:_e(C)),a.immediate!=O&&(a.immediate=O,!O&&!w&&this._set(l)),I)){const{onRest:M}=a;U(OE,B=>Jp(this,t,B));const z=Pt(this,xi(this,l));Pi(this._pendingCalls,z),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var B;a.changed=!w,M==null||M(z,this),w?Be(o.onRest,z):(B=a.onStart)==null||B.call(a,z,this)})}w&&this._set(S),p?n(gv(t.to,t,this._state,this)):I?this._start():pn(this)&&!g?this._pendingCalls.add(n):n(mv(S))}_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;ht(t)&&(ii(t,this),Tc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ht(e)&&Ss(e,this)}_set(e,t=!0){const n=ze(e);if(!T.und(n)){const r=zt(this);if(!r||!Yt(n,r.getValue())){const i=Rc(n);!r||r.constructor!=i?of(this,i.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return zt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Si(this,"onStart",Pt(this,xi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),pn(this)||(Xp(this,!0),wi(this)||this._resume())}_resume(){It.skipAnimation?this.finish():nl.start(this)}_stop(e,t){if(pn(this)){Xp(this,!1);const n=this.animation;U(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),xs(this,{type:"idle",parent:this});const r=t?$r(this.get()):Pt(this.get(),xi(this,e??n.to));Pi(this._pendingCalls,r),n.changed&&(n.changed=!1,Si(this,"onRest",r,this))}}};function xi(e,t){const n=Cs(t),r=Cs(e.get());return Yt(r,n)}function yv(e,t=e.loop,n=e.to){const r=Be(t);if(r){const i=r!==!0&&af(r),s=(i||e).reverse,o=!i||i.reset;return Os({...e,loop:t,default:!1,pause:void 0,to:!s||Pc(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Os(e){const{to:t,from:n}=e=af(e),r=new Set;return T.obj(t)&&Yp(t,r),T.obj(n)&&Yp(n,r),e.keys=r.size?Array.from(r):null,e}function kE(e){const t=Os(e);return T.und(t.default)&&(t.default=ll(t)),t}function Yp(e,t){Wt(e,(n,r)=>n!=null&&t.add(r))}var OE=["onStart","onRest","onChange","onPause","onResume"];function Jp(e,t,n){e.animation[n]=t[n]!==dv(t,n)?cv(t[n],e.key):void 0}function Si(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var RE=["onStart","onChange","onRest"],PE=1,wv=class{constructor(e,t){this.id=PE++,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];T.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Os(e)),this}start(e){let{queue:t}=this;return e?t=_e(e).map(Os):this.queue=[],this._flush?this._flush(this,t):(Cv(this,t),Ac(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;U(_e(t),r=>n[r].stop(!!e))}else ks(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{const t=this.springs;U(_e(e),n=>t[n].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{const t=this.springs;U(_e(e),n=>t[n].resume())}return this}each(e){Wt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Vi(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Vi(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Vi(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 Ac(e,t){return Promise.all(t.map(n=>xv(e,n))).then(n=>lf(e,n))}async function xv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=T.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=T.arr(i)||T.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):U(RE,y=>{const x=t[y];if(T.fun(x)){const m=e._events[y];t[y]=({finished:v,cancelled:w})=>{const S=m.get(x);S?(v||(S.finished=!1),w&&(S.cancelled=!0)):m.set(x,{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,Pi(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)),g=t.cancel===!0||dv(t,"cancel")===!0;(c||g&&d.asyncId)&&h.push(pv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Cc,resume:Cc,start(y,x){g?(ks(d,e._lastAsyncId),x($r(e))):(y.onRest=a,x(gv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=lf(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=yv(t,o,i);if(y)return Cv(e,[y]),xv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function Lc(e,t){const n={...e.springs};return t&&U(_e(t),r=>{T.und(r.keys)&&(r=Os(r)),T.obj(r.to)||(r={...r,to:void 0}),Ev(n,r,i=>bv(i))}),Sv(e,n),n}function Sv(e,t){Wt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ii(n,e))})}function bv(e,t){const n=new CE;return n.key=e,t&&ii(n,t),n}function Ev(e,t,n){t.keys&&U(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Cv(e,t){U(t,n=>{Ev(e.springs,n,r=>bv(r,e))})}var Vs=({children:e,...t})=>{const n=b.useContext(Ta),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=oE(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Ta;return b.createElement(s,{value:t},e)},Ta=jE(Vs,{});Vs.Provider=Ta.Provider;Vs.Consumer=Ta.Consumer;function jE(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var kv=()=>{const e=[],t=function(r){iE();const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return U(e,r=>r.pause(...arguments)),this},t.resume=function(){return U(e,r=>r.resume(...arguments)),this},t.set=function(r){U(e,(i,s)=>{const o=T.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return U(e,r=>r.stop(...arguments)),this},t.update=function(r){return U(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return T.fun(r)?r(s,i):r};return t._getProps=n,t};function NE(e,t,n){const r=T.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),s=b.useRef(0),o=rf(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const w=Lc(m,v);return s.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!m.springs[C])?Ac(m,v):new Promise(C=>{Sv(m,w),a.queue.push(()=>{C(Ac(m,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Oc(e)||0;b.useMemo(()=>{U(l.current.slice(e,c),m=>{jc(m,i),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let w=m;w<v;w++){const S=l.current[w]||(l.current[w]=new wv(null,a.flush)),C=r?r(w,S):t[w];C&&(u[w]=kE(C))}}const h=l.current.map((m,v)=>Lc(m,u[v])),g=b.useContext(Vs),p=Oc(g),y=g!==p&&fv(g);Jn(()=>{s.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],U(m,v=>v())),U(l.current,(v,w)=>{i==null||i.add(v),y&&v.start({default:g});const S=u[w];S&&(hv(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),sf(()=>()=>{U(a.ctrls,m=>m.stop(!0))});const x=h.map(m=>({...m}));return i?[x,i]:x}function Ik(e,t){const n=T.fun(e),[[r],i]=NE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function ul(e,t,n){const r=T.fun(t)&&t,{reset:i,sort:s,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),g=_e(e),p=[],y=b.useRef(null),x=i?null:y.current;Jn(()=>{y.current=p}),sf(()=>(U(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{U(y.current,E=>{E.expired&&clearTimeout(E.expirationId),jc(E.ctrl,h),E.ctrl.stop(!0)})}));const m=_E(g,r?r():t,x),v=i&&y.current||[];Jn(()=>U(v,({ctrl:E,item:P,key:L})=>{jc(E,h),Be(u,P,L)}));const w=[];if(x&&U(x,(E,P)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(P=w[P]=m.indexOf(E.key),~P&&(p[P]=E))}),U(g,(E,P)=>{p[P]||(p[P]={key:m[P],item:E,phase:"mount",ctrl:new wv},p[P].ctrl.item=E)}),w.length){let E=-1;const{leave:P}=r?r():t;U(w,(L,F)=>{const j=x[F];~L?(E=p.indexOf(j),p[E]={...j,item:g[L]}):P&&p.splice(++E,0,j)})}T.fun(s)&&p.sort((E,P)=>s(E.item,P.item));let S=-o;const C=rf(),k=ll(t),O=new Map,R=b.useRef(new Map),I=b.useRef(!1);U(p,(E,P)=>{const L=E.key,F=E.phase,j=r?r():t;let N,$;const W=Be(j.delay||0,L);if(F=="mount")N=j.enter,$="enter";else{const J=m.indexOf(L)<0;if(F!="leave")if(J)N=j.leave,$="leave";else if(N=j.update)$="update";else return;else if(!J)N=j.enter,$="enter";else return}if(N=Be(N,E.item,P),N=T.obj(N)?af(N):{to:N},!N.config){const J=d||k.config;N.config=Be(J,E.item,P,$)}S+=o;const H={...k,delay:W+S,ref:c,immediate:j.immediate,reset:!1,...N};if($=="enter"&&T.und(H.from)){const J=r?r():t,K=T.und(J.initial)||x?J.from:J.initial;H.from=Be(K,E.item,P)}const{onResolve:Ye}=H;H.onResolve=J=>{Be(Ye,J);const K=y.current,ie=K.find(ge=>ge.key===L);if(ie&&!(J.cancelled&&ie.phase!="update")&&ie.ctrl.idle){const ge=K.every(Fe=>Fe.ctrl.idle);if(ie.phase=="leave"){const Fe=Be(a,ie.item);if(Fe!==!1){const Mt=Fe===!0?0:Fe;if(ie.expired=!0,!ge&&Mt>0){Mt<=2147483647&&(ie.expirationId=setTimeout(C,Mt));return}}}ge&&K.some(Fe=>Fe.expired)&&(R.current.delete(ie),l&&(I.current=!0),C())}};const he=Lc(E.ctrl,H);$==="leave"&&l?R.current.set(E,{phase:$,springs:he,payload:H}):O.set(E,{phase:$,springs:he,payload:H})});const A=b.useContext(Vs),M=Oc(A),z=A!==M&&fv(A);Jn(()=>{z&&U(p,E=>{E.ctrl.start({default:A})})},[A]),U(O,(E,P)=>{if(R.current.size){const L=p.findIndex(F=>F.key===P.key);p.splice(L,1)}}),Jn(()=>{U(R.current.size?R.current:O,({phase:E,payload:P},L)=>{const{ctrl:F}=L;L.phase=E,h==null||h.add(F),z&&E=="enter"&&F.start({default:A}),P&&(hv(F,P.ref),(F.ref||h)&&!I.current?F.update(P):(F.start(P),I.current&&(I.current=!1)))})},i?void 0:n);const B=E=>b.createElement(b.Fragment,null,p.map((P,L)=>{const{springs:F}=O.get(P)||P.ctrl,j=E({...F},P.item,P,L);return j&&j.type?b.createElement(j.type,{...j.props,key:T.str(P.key)||T.num(P.key)?P.key:P.ctrl.id,ref:j.ref}):j}));return h?[B,h]:B}var TE=1;function _E(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(s=>{const o=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!i.has(a));return o?(i.add(o),o.key):TE++})}return T.und(n)?e:T.fun(n)?e.map(n):_e(n)}var IE=class extends uf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ys(...t);const n=this._get(),r=Rc(n);of(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Yt(t,n)||(zt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&em(this._active)&&ru(this)}_get(){const e=T.arr(this.source)?this.source.map(ze):_e(ze(this.source));return this.calc(...e)}_start(){this.idle&&!em(this._active)&&(this.idle=!1,U(ol(this),e=>{e.done=!1}),It.skipAnimation?(V.batchedUpdates(()=>this.advance()),ru(this)):nl.start(this))}_attach(){let e=1;U(_e(this.source),t=>{ht(t)&&ii(t,this),Tc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(_e(this.source),e=>{ht(e)&&Ss(e,this)}),this._active.clear(),ru(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=_e(this.source).reduce((t,n)=>Math.max(t,(Tc(n)?n.priority:0)+1),0))}};function AE(e){return e.idle!==!1}function em(e){return!e.size||Array.from(e).every(AE)}function ru(e){e.idle||(e.idle=!0,U(ol(e),t=>{t.done=!0}),xs(e,{type:"idle",parent:e}))}It.assign({createStringInterpolator:ov,to:(e,t)=>new IE(e,t)});var Ov=/^--/;function LE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ov.test(e)&&!(Qi.hasOwnProperty(e)&&Qi[e])?t+"px":(""+t).trim()}var tm={};function ME(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:tm[d]||(tm[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const h=LE(d,r[d]);Ov.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var Qi={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},DE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FE=["Webkit","Ms","Moz","O"];Qi=Object.keys(Qi).reduce((e,t)=>(FE.forEach(n=>e[DE(n,t)]=e[t]),e),Qi);var $E=/^(matrix|translate|scale|rotate|skew)/,zE=/^(translate)/,BE=/^(rotate|skew)/,iu=(e,t)=>T.num(e)&&e!==0?e+t:e,Vo=(e,t)=>T.arr(e)?e.every(n=>Vo(n,t)):T.num(e)?e===t:parseFloat(e)===t,UE=class extends al{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>iu(a,"px")).join(",")})`,Vo(o,0)])),Wt(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if($E.test(a)){if(delete r[a],T.und(o))return;const l=zE.test(a)?"px":BE.test(a)?"deg":"";i.push(_e(o)),s.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${iu(h,l)})`,Vo(h,0)]:u=>[`${a}(${u.map(c=>iu(c,l)).join(",")})`,Vo(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new VE(i,s)),super(r)}},VE=class extends rv{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 U(this.inputs,(n,r)=>{const i=ze(n[0]),[s,o]=this.transforms[r](T.arr(i)?i:n.map(ze));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&U(this.inputs,t=>U(t,n=>ht(n)&&ii(n,this)))}observerRemoved(e){e==0&&U(this.inputs,t=>U(t,n=>ht(n)&&Ss(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),xs(this,e)}},HE=["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"];It.assign({batchedUpdates:Ms.unstable_batchedUpdates,createStringInterpolator:ov,colors:Lb});var qE=pE(HE,{applyAnimatedValues:ME,createAnimatedStyle:e=>new UE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Rs=qE.animated;const Rv=({trigger:e,content:t})=>{const[n,r]=b.useState(null),[i,s]=b.useState(null),{styles:o,attributes:a}=Ob(n,i,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[l,u]=b.useState(!1),c=ul(l,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),d=()=>{u(g=>!g)},h=Im.cloneElement(e,{ref:r,onClick:d,state:l?"selected":"default"});return b.useEffect(()=>{const g=p=>{i&&!i.contains(p.target)&&n&&!n.contains(p.target)&&u(!1)};return document.addEventListener("mousedown",g,!0),document.addEventListener("touchstart",g,!0),()=>{document.removeEventListener("mousedown",g,!0),document.removeEventListener("touchstart",g,!0)}},[i,n]),f.jsxs(f.Fragment,{children:[h,c((g,p)=>f.jsx(f.Fragment,{children:p&&f.jsx(Rs.div,{className:Z("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:s,style:{...o.popper,...g},...a.popper,children:t})}))]})};Rv.displayName="Dropdown";const QE=Rv,Pv=b.forwardRef(({title:e="",state:t,variant:n,icon:r,size:i="lg",grow:s=!1,badgeContent:o,...a},l)=>{const u=Z("dropdown-trigger",t,i,n,s&&"flex-grow-1 justify-content-between");return f.jsxs("button",{ref:l,className:u,...a,type:"button",children:[r&&f.jsx("div",{className:"dropdown-trigger-icon",children:r}),f.jsx("div",{children:e}),o?f.jsx("div",{children:f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:o})}):f.jsx("div",{className:"dropdown-trigger-carret-icon",children:f.jsx(A3,{width:16,height:16})})]})});Pv.displayName="DropdownTrigger";const WE=Pv,jv=({options:e,hideCheckbox:t,isMonoSelection:n,onChange:r,model:i=[]})=>{const[s,o]=b.useState(i),a=l=>{o(n?[l]:u=>{const c=[...u];return u.includes(l)?c.splice(c.indexOf(l),1):c.push(l),c})};return b.useEffect(()=>{r==null||r(s)},[s]),f.jsx(f.Fragment,{children:f.jsx("div",{className:"select-list",children:e==null?void 0:e.map(l=>f.jsxs("div",{className:Z("select-list-option",t&&s.includes(l.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(l.value),onMouseUp:()=>{a(l.value)},tabIndex:0,onKeyDown:u=>{u.key==="Enter"&&a(l.value)},children:[f.jsx("div",{className:"select-list-option-icon",children:l.icon&&Im.createElement(l.icon,{width:"20px",height:"20px"})}),f.jsx("div",{className:"select-list-option-label",children:l.label}),!t&&f.jsx("div",{className:"select-list-option-checkbox",children:f.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(l.value),className:"form-check-input c-pointer",id:"option.value"})})]},l.value))})})};jv.displayName="SelectList";const KE=jv,Nv=b.createContext(null),cf=()=>{const e=b.useContext(Nv);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Tv=({children:e})=>{const{status:t}=cf(),n=Z("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Tv.displayName="Text";const ZE=Tv,_v=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:i},s)=>{const{id:o,isOptional:a,isRequired:l}=cf(),u=Z("form-label",{"has-icon":e},i),c=a&&!l,d=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:s,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});_v.displayName="Label";const XE=_v,Iv=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:i,...s},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=cf(),d=Z({"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},i);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...s})});Iv.displayName="Input";const Av=Iv,Lv=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:i,isRequired:s,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:s,isReadOnly:i,status:o}),[n,r,i,s,o]);return f.jsx(Nv.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),GE=Object.assign(Lv,{Label:XE,Input:Av,Text:ZE});Lv.displayName="FormControl";const Mc=GE,Wi=({children:e,className:t,...n})=>{const r=Z("grid",t);return f.jsx("div",{className:r,...n,children:e})},Mv=({sm:e,md:t,lg:n,xl:r,children:i,className:s,as:o,...a})=>{const l=o||"div",u=Z({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},s);return f.jsx(l,{className:u,...a,children:i})};Wi.displayName="Grid";Mv.displayName="Grid.Col";Wi.Col=Mv;const Dv=b.forwardRef(({position:e=!0},t)=>{const[n]=Ya(),r=`${n}/loading/screen-loading.gif`,i=Z("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:i,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"})]})});Dv.displayName="LoadingScreen";const Ve=Dv,Fv=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const i=Z("navbar-brand d-none d-md-block"),s=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:i,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:s,width:"300",height:"52"})})});Fv.displayName="Logo";const nm=Fv,df=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});df.displayName="ModalContext";const $v=()=>{const e=b.useContext(df);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},zv=e=>{const{ariaDescriptionId:t}=$v(),{children:n,className:r}=e,i=Z("modal-body",r);return f.jsx("div",{id:t,className:i,children:n})};zv.displayName="Modal.Body";const YE=zv,Bv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Bv.displayName="Modal.Footer";const JE=Bv,Uv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:i}=$v(),s=b.useRef(null);return b.useEffect(()=>{var o;i||(o=s.current)==null||o.focus()},[i]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx("button",{ref:s,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t})]})};Uv.displayName="Modal.Header";const eC=Uv,Vv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Vv.displayName="Modal.Subtitle";const tC=Vv,Hv=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:i,size:s="md",scrollable:o,focusId:a,children:l}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=r4(i),h=Y4();Z4(i,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const x=document.getElementById(a);x==null||x.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const g=Z("modal-dialog",{[`modal-${s}`]:s,"modal-dialog-scrollable":o}),p={ariaLabelId:u,ariaDescriptionId:c,focusId:a},y=ul(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(df.Provider,{value:p,children:y((x,m)=>f.jsxs(f.Fragment,{children:[m&&f.jsx(Rs.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":c,className:`modal fade ${m?"show d-block":""}`,style:x,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:v=>{d.current=v,m&&(h.current=v)},className:g,children:f.jsx("div",{className:"modal-content",children:l})})}),m&&f.jsx(Rs.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),nC=Object.assign(Hv,{Header:eC,Subtitle:tC,Body:YE,Footer:JE});Hv.displayName="Modal";const kn=nC,rC=({children:e,className:t})=>{const n=Z("popover-body",t);return f.jsx("div",{className:n,children:e})},iC=({children:e,className:t})=>{const n=Z("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},ff=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...i},s)=>{const o=Z("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return ul(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Rs.div,{ref:s,"aria-labelledby":n,className:o,role:"tooltip",style:l,...i,children:e}))});ff.displayName="Popover";function sC(e,t,n,r,i,s,o,a,l){const u=x=>{x.preventDefault(),i==null||i(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),i==null||i(e),x.stopPropagation())},d=()=>{r(!n),n?s==null||s(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),d(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),d(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),a==null||a(e)},handleItemBlur:x=>{x.preventDefault(),l==null||l(e)}}}const qv=e=>{const{nodeId:t,label:n,children:r,section:i,selected:s,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,g]=b.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:w}=sC(t,n,h,g,o,a,l,u,c);b.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(O=>O===t&&t!==k?(g(!0),O===t):(g(!1),!1))}else g(!1)},[t,d]);const S=i?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":s,"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:x,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(yp,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&f.jsx(wc,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&f.jsx(yp,{title:"RafterRight",width:S,height:S,"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:y,onFocus:v,onBlur:w,children:[i&&f.jsx(x3,{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 i?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};qv.displayName="TreeItem";const oC=qv,Qv=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:i,onTreeItemUnfold:s,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=m=>{c(m),r==null||r(m)},h=m=>{i==null||i(m)},g=m=>{s==null||s(m)},p=m=>{o==null||o(m)},y=m=>{a==null||a(m)},x=m=>f.jsx(oC,{nodeId:m.id,label:m.name,section:m.section,selectedNodesIds:l,selected:u===m.id,onItemSelect:d,onItemFold:h,onItemUnfold:g,onItemFocus:p,onItemBlur:y,children:Array.isArray(m.children)?m.children.map(v=>x(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});Qv.displayName="TreeView";const aC=Qv,Wv=b.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Wv.displayName="VisuallyHidden";const ji=Wv,lC=()=>{const e=zi("fr.openent.zimbra.controllers.ZimbraController|view"),t=zi("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[i,s]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await G.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 G.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=b.useCallback(()=>{let l="";G.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"}}),s(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:i,zimbraWorkflow:e}},uC=lC;function su({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ou({children:e,className:t,...n}){const r=Z("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function rm({children:e,className:t,...n}){const r=Z("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const de=b.forwardRef(({children:e,className:t,...n},r)=>{const i=Z("nav-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});de.displayName="NavItem";function bi({link:e,className:t,children:n,translate:r,...i}){const s=Z("nav-link",t);return f.jsxs("a",{href:e,className:s,...i,children:[n,r&&f.jsx(ji,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const cC=()=>{const{t:e}=xe();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")})})})},dC=({bookmarkedApps:e})=>{const{t}=xe();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(xc,{app:n,size:"32"})},r))]})};var hf={},pf={};(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})(pf);var q={},Un=He&&He.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},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)}}(),Ki=He&&He.__assign||function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ki.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 Ge=pf,mf=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),gf(this,t)},e}();q.Node=mf;var cl=function(e){Un(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}(mf);q.DataNode=cl;var Kv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(cl);q.Text=Kv;var Zv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(cl);q.Comment=Zv;var Xv=function(e){Un(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=Ge.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(cl);q.ProcessingInstruction=Xv;var dl=function(e){Un(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}(mf);q.NodeWithChildren=dl;var Gv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(dl);q.CDATA=Gv;var Yv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(dl);q.Document=Yv;var Jv=function(e){Un(t,e);function t(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?Ge.ElementType.Script:n==="style"?Ge.ElementType.Style:Ge.ElementType.Tag);var o=e.call(this,i)||this;return o.name=n,o.attribs=r,o.type=s,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 i,s;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(dl);q.Element=Jv;function ey(e){return(0,Ge.isTag)(e)}q.isTag=ey;function ty(e){return e.type===Ge.ElementType.CDATA}q.isCDATA=ty;function ny(e){return e.type===Ge.ElementType.Text}q.isText=ny;function ry(e){return e.type===Ge.ElementType.Comment}q.isComment=ry;function iy(e){return e.type===Ge.ElementType.Directive}q.isDirective=iy;function sy(e){return e.type===Ge.ElementType.Root}q.isDocument=sy;function fC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=fC;function gf(e,t){t===void 0&&(t=!1);var n;if(ny(e))n=new Kv(e.data);else if(ry(e))n=new Zv(e.data);else if(ey(e)){var r=t?au(e.children):[],i=new Jv(e.name,Ki({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Ki({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Ki({},e["x-attribsPrefix"])),n=i}else if(ty(e)){var r=t?au(e.children):[],s=new Gv(r);r.forEach(function(u){return u.parent=s}),n=s}else if(sy(e)){var r=t?au(e.children):[],o=new Yv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(iy(e)){var a=new Xv(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=gf;function au(e){for(var t=e.map(function(r){return gf(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=He&&He.__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=He&&He.__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=pf,i=q;n(q,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=s),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??s,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new i.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 i.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 i.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 i.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.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 i.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})(hf);var im="html",sm="head",xo="body",hC=/<([a-zA-Z]+[0-9]?)/,om=/<head[^]*>/i,am=/<body[^]*>/i,_a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Dc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lm=typeof window=="object"&&window.DOMParser;if(typeof lm=="function"){var pC=new lm,mC="text/html";Dc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),pC.parseFromString(e,mC)},_a=Dc}if(typeof document=="object"&&document.implementation){var So=document.implementation.createHTMLDocument();_a=function(e,t){if(t){var n=So.documentElement.querySelector(t);return n.innerHTML=e,So}return So.documentElement.innerHTML=e,So}}var lu=typeof document=="object"?document.createElement("template"):{},Fc;lu.content&&(Fc=function(e){return lu.innerHTML=e,lu.content.childNodes});function gC(e){var t,n=e.match(hC);n&&n[1]&&(t=n[1].toLowerCase());var r,i,s;switch(t){case im:return r=Dc(e),om.test(e)||(i=r.querySelector(sm),i&&i.parentNode.removeChild(i)),am.test(e)||(i=r.querySelector(xo),i&&i.parentNode.removeChild(i)),r.querySelectorAll(im);case sm:case xo:return r=_a(e),s=r.querySelectorAll(t),am.test(e)&&om.test(e)?s[0].parentNode.childNodes:s;default:return Fc?Fc(e):(i=_a(e,xo).querySelector(xo),i.childNodes)}}var vC=gC,vf={},oy={};oy.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 fl=hf,yC=oy,um=yC.CASE_SENSITIVE_TAG_NAMES,wC=fl.Comment,xC=fl.Element,SC=fl.ProcessingInstruction,bC=fl.Text,ay={},uu;for(var cu=0,EC=um.length;cu<EC;cu++)uu=um[cu],ay[uu.toLowerCase()]=uu;function CC(e){return ay[e]}function ly(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function kC(e){e=e.toLowerCase();var t=CC(e);return t||e}function uy(e,t,n){t=t||null;for(var r=[],i,s=0,o=e.length;s<o;s++){var a=e[s],l;switch(a.nodeType){case 1:i=kC(a.nodeName),l=new xC(i,ly(a.attributes)),l.children=uy(i==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new bC(a.nodeValue);break;case 8:l=new wC(a.nodeValue);break;default:continue}var u=r[s-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new SC(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}vf.formatAttributes=ly;vf.formatDOM=uy;var OC=vC,RC=vf,PC=RC.formatDOM,jC=/<(![a-zA-Z\s]+)>/;function NC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(jC),n;return t&&t[1]&&(n=t[1]),PC(OC(e),null,n)}var TC=NC,Et={},hl={},_C=0;hl.SAME=_C;var IC=1;hl.CAMELCASE=IC;hl.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(Et,"__esModule",{value:!0});function AC(e,t){return LC(e)||MC(e,t)||DC(e,t)||FC()}function LC(e){if(Array.isArray(e))return e}function MC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function DC(e,t){if(e){if(typeof e=="string")return cm(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 cm(e,t)}}function cm(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 FC(){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
|
-
`,hm="/",pm="*",Kn="",n8="comment",r8="declaration",i8=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 i(p){var y=p.match(KC);y&&(n+=y.length);var x=p.lastIndexOf(t8);r=~x?p.length-x:r+p.length}function s(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(p){var y=p.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function u(){l(ZC)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=s();if(!(hm!=e.charAt(0)||pm!=e.charAt(1))){for(var y=2;Kn!=e.charAt(y)&&(pm!=e.charAt(y)||hm!=e.charAt(y+1));)++y;if(y+=2,Kn===e.charAt(y-1))return a("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,p({type:n8,comment:x})}}function h(){var p=s(),y=l(XC);if(y){if(d(),!l(GC))return a("property missing ':'");var x=l(YC),m=p({type:r8,property:mm(y[0].replace(fm,Kn)),value:x?mm(x[0].replace(fm,Kn)):Kn});return l(JC),m}}function g(){var p=[];c(p);for(var y;y=h();)y!==!1&&(p.push(y),c(p));return p}return u(),g()};function mm(e){return e?e.replace(e8,Kn):Kn}var s8=i8;function py(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=s8(e),s=typeof t=="function",o,a,l=0,u=i.length;l<u;l++)r=i[l],o=r.property,a=r.value,s?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}bf.exports=py;bf.exports.default=py;var o8=bf.exports,gl={};gl.__esModule=!0;gl.camelCase=void 0;var a8=/^--[a-zA-Z0-9-]+$/,l8=/-([a-z])/g,u8=/^[^-]+$/,c8=/^-(webkit|moz|ms|o|khtml)-/,d8=/^-(ms)-/,f8=function(e){return!e||u8.test(e)||a8.test(e)},h8=function(e,t){return t.toUpperCase()},gm=function(e,t){return"".concat(t,"-")},p8=function(e,t){return t===void 0&&(t={}),f8(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(d8,gm):e=e.replace(c8,gm),e.replace(l8,h8))};gl.camelCase=p8;(function(e){var t=He&&He.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};e.__esModule=!0;var n=t(o8),r=gl;function i(s,o){var a={};return!s||typeof s!="string"||(0,n.default)(s,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=i})(hy);var m8=b,g8=hy.default;function v8(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,i=typeof t=="function",s={},o={};for(n in e){if(r=e[n],i&&(s=t(n,r),s&&s.length===2)){o[s[0]]=s[1];continue}typeof r=="string"&&(o[r]=n)}return o}function y8(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 w8={reactCompat:!0};function x8(e,t){if(e!=null)try{t.style=g8(e,w8)}catch{t.style={}}}var S8=m8.version.split(".")[0]>=16,my=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function b8(e){return!my.has(e.name)}var gy={PRESERVE_CUSTOM_ATTRIBUTES:S8,invertObject:v8,isCustomComponent:y8,setStyleProp:x8,canTextBeChildOfNode:b8,elementsWithNoTextChildren:my},Ni=Et,vm=gy,E8=["checked","value"],C8=["input","select","textarea"],k8={reset:!0,submit:!0},vy=function(t,n){t=t||{};var r,i,s,o,a,l={},u=t.type&&k8[t.type];for(r in t){if(s=t[r],Ni.isCustomAttribute(r)){l[r]=s;continue}if(i=r.toLowerCase(),o=ym(i),o){switch(a=Ni.getPropertyInfo(o),E8.indexOf(o)!==-1&&C8.indexOf(n)!==-1&&!u&&(o=ym("default"+i)),l[o]=s,a&&a.type){case Ni.BOOLEAN:l[o]=!0;break;case Ni.OVERLOADED_BOOLEAN:s===""&&(l[o]=!0);break}continue}vm.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=s)}return vm.setStyleProp(t.style,l),l};function ym(e){return Ni.possibleStandardNames[e]}var O8=b,R8=vy,Ia=gy,P8=Ia.setStyleProp,j8=Ia.canTextBeChildOfNode;function yy(e,t){t=t||{};for(var n=t.library||O8,r=n.cloneElement,i=n.createElement,s=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,g=t.trim,p=0,y=e.length;p<y;p++){if(a=e[p],u&&(c=t.replace(a),s(c))){y>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&&!j8(a.parent)||g&&l)continue;o.push(a.data);continue}switch(d=a.attribs,N8(a)?P8(d.style,d):d&&(d=R8(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=yy(a.children,t));break;default:continue}y>1&&(d.key=p),o.push(i(a.name,d,h))}return o.length===1?o[0]:o}function N8(e){return Ia.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Ia.isCustomComponent(e.name,e.attribs)}var T8=yy,vl=hf,Tr=TC,_8=vy,wy=T8;Tr=typeof Tr.default=="function"?Tr.default:Tr;var I8={lowerCaseAttributeNames:!1};function Kt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},wy(Tr(e,t.htmlparser2||I8),t))}Kt.domToReact=wy;Kt.htmlToDOM=Tr;Kt.attributesToProps=_8;Kt.Comment=vl.Comment;Kt.Element=vl.Element;Kt.ProcessingInstruction=vl.ProcessingInstruction;Kt.Text=vl.Text;var A8=Kt;Kt.default=Kt;const Hn=js(A8);var bo=Hn.domToReact;Hn.htmlToDOM;var du=Hn.attributesToProps;Hn.Comment;Hn.Element;Hn.ProcessingInstruction;Hn.Text;function L8(){var y;const{appCode:e}=bt(),{theme:t}=Fd(),[n,r]=b.useState(""),[i,s]=b.useState(!0),[o,a]=b.useState(!1),[l,u]=b.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";b.useEffect(()=>{(async()=>{let x="";x=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?x=c+"/application/portal/":window.location.pathname==="/adapter"?x=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?x=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"))&&(x=c+"/application/userbook/");try{const m=await fetch(x),v=await m.text();if(m.status===404){u(!0);return}r(v),u(!1)}catch(m){u(!0),console.error(m)}})()},[e,c]);const h=Hn(n,{replace:x=>{const m=x;if(m.attribs&&m.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(ri,{onClick:()=>{s(!i)},children:f.jsx(l3,{})}),bo(m.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:bo(w.children,{replace:S=>{const C=S;if(C.attribs&&C.name==="a")return f.jsx("a",{...du(C.attribs),children:f.jsx("span",{onClick:()=>{s(!1)},children:bo(C.children)})})}})})}})]});if(m.attribs&&m.attribs.class==="section level2"){const v=du(x.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:m.attribs.id!=="présentation"?"none":"block"},children:bo(m.children,{replace:w=>{const S=w;if(S.attribs&&S.name==="p")return f.jsx(f.Fragment,{});if(S.attribs&&S.name==="img"){const C=w.attribs.src;return f.jsx("img",{...du(S.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),g=(y=h==null?void 0:h.props)==null?void 0:y.children.find(x=>x.type==="body").props.children,p=g==null?void 0:g.find(x=>x.type==="p").props.children;return{html:n,visibility:i,isModalOpen:o,setIsModalOpen:a,parsedContent:g,parsedHeadline:p,error:l}}const xy=()=>{const[e,t]=g0(),n=b.useRef(null),r=b.useId(),{t:i}=xe();function s(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(de,{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(c5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:i("navbar.search")})]}),f.jsx(ff,{id:r,isVisible:t,children:f.jsxs(Mc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(Mc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(F0,{type:"submit",size:"sm",onClick:s,"aria-label":i("navbar.search")})]})})]})};xy.displayName="SearchEngine";const M8=xy;function wm({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:i}){const{t:s}=xe(),o=()=>{t(!1)};return e?Ms.createPortal(f.jsxs(kn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"xl",children:[f.jsx(kn.Header,{onModalClose:o,children:s("navbar.help")}),f.jsx(kn.Subtitle,{children:i?s("help.notfound.title"):n}),f.jsx(kn.Body,{className:i?"d-flex":null,children:i?s("help.notfound.text"):r})]}),document.getElementById("portal")):null}const Sy=({is1d:e=!1,src:t=""})=>{const{t:n}=xe(),{messages:r,msgLink:i,zimbraWorkflow:s}=uC(),{user:o,avatar:a}=$d(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=L8(),g=Z("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:x,isAppsHovered:m,popoverAppsId:v,userAvatar:w,userName:S,welcomeUser:C,communityWorkflow:k,conversationWorflow:O,searchWorkflow:R,isCollapsed:I,toggleCollapsedNav:A,handleLogout:M}=e4({user:o,avatar:a}),z=r>0;return f.jsx("header",{className:g,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ou,{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(wp,{alt:S,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(rm,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[O&&f.jsx(de,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(o5,{className:"icon notification"}),z&&f.jsx(su,{children:r}),f.jsx(ji,{children:n("navbar.messages")})]})}),f.jsx(de,{children:f.jsx(bi,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(l5,{className:"icon user"})})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(i5,{className:"icon help"}),f.jsx(ji,{children:n("navbar.help")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("button",{className:"nav-link",onClick:M,children:[f.jsx(xp,{className:"icon logout"}),f.jsx(ji,{children:n("navbar.disconnect")})]})}),f.jsx(de,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!I,"aria-label":n("navbar.secondary.navigation"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ou,{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 ${I?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(nm,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(rm,{className:"gap-8",children:[f.jsx(de,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(n5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(f5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(Sp,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ou,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(nm,{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(de,{children:f.jsx(bi,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(X3,{color:"#fff"})})}),f.jsxs(de,{className:"position-relative",ref:x,id:v,"aria-haspopup":"true","aria-expanded":m,children:[f.jsx(bi,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(Sp,{color:"#fff"})}),f.jsxs(ff,{className:"top-100 widget",id:v,isVisible:m,children:[f.jsx(rC,{children:f.jsx(dC,{bookmarkedApps:y})}),f.jsx(iC,{className:"widget-footer border-top border-ghost",children:f.jsx(cC,{})})]})]}),O&&f.jsx(de,{children:f.jsxs(bi,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),s&&f.jsx(de,{children:f.jsxs(bi,{className:"position-relative",link:i,translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(J3,{color:"#fff"}),f.jsx(ji,{children:n("support")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{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":!I,"aria-label":n("navbar.open.menu"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${I?"":"show"}`,id:"dropdown-navbar",children:[k&&f.jsx(de,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(W3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),R?f.jsx(M8,{}):null,f.jsx(de,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(wp,{alt:S,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(de,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(de,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(xp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};Sy.displayName="Header";const D8=Sy;function by({children:e,className:t,...n}){const r=Z("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}by.displayName="Main";const Ey=({children:e,...t})=>{const{theme:n}=Fd();return f.jsxs(f.Fragment,{children:[f.jsx(D8,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(by,{className:Z("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(W4,{toastOptions:{position:"top-right"}})]})};Ey.displayName="Layout";const F8=Ey,$8=function(){return null};var Cy,xm=Ms;Cy=xm.createRoot,xm.hydrateRoot;const Ft=document.querySelector("[data-ode-app]");let Ei;function Hs(){var e;if(Ei)return Ei;if(Ei={app:Eo.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Ft==null?void 0:Ft.dataset)!=null&&e.odeApp){const{odeApp:t}=Ft.dataset;try{const n=JSON.parse(t);Object.assign(Ei,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Ft==null?void 0:Ft.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Ft==null?void 0:Ft.dataset);return Ei}const Sm=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))}},i=()=>t,a={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,i,a),a},z8=e=>e?Sm(e):Sm;var ky={exports:{}},Oy={};/**
|
|
224
|
+
`,ro=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:ro,left:ro,right:ro,bottom:ro,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=I4(c,d);return x.createElement(_4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?A4:"",style:h},u.type==="custom"?ha(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 i0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));i0.displayName="ActionBar";const B4=i0,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"})]}),sk=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"})]}),ik=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"})]}),ok=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"})]}),ak=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"})]}),lk=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"})]}),uk=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"})]}),ck=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"})]}),np=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"})]}),E3=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:"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"})]}),dk=C3,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"})})})]}),fk=N3;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 H(){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),m=x.useRef(null),p=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:p,...m.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{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})});a0.displayName="Alert";const Nt=a0,l0=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]})});l0.displayName="AppHeader";const j3=l0,u0=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}),y=H({...m},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,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]=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},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",C=H("app-icon",{...m,...p,...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:C,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 pc=d0,f0=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`,y=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:y,children:f.jsx(c0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});f0.displayName="Avatar";const rp=f0,h0=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})});h0.displayName="BreadcrumbItem";const ql=h0,p0=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})});p0.displayName="BreadcrumbList";const T3=p0,m0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ve(),{getIconClass:i}=Jg(),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})});m0.displayName="BreadcrumbNav";const _3=m0,g0=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})});g0.displayName="Heading";const sp=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(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()]})});v0.displayName="Loading";const I3=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 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(I3,{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:H("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});w0.displayName="IconButton";const Qa=w0,x0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=ve();return f.jsx(_3,{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(sp,{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(sp,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x0.displayName="Breadcrumb";const A3=x0,S0=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})});S0.displayName="SearchButton";const b0=S0,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"})]}),ip=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"})]}),op=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"})]}),ap=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,E0=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})]})});E0.displayName="Checkbox";const n5=E0,C0=x.createContext(null),Ni=()=>{const e=x.useContext(C0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},R0=({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=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})]})})};R0.displayName="Dropdown.CheckboxItem";const r5=R0,k0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{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]})})};k0.displayName="Dropdown.Item";const s5=k0,P0=x.forwardRef(({children:e},t)=>{const{menuProps:n,visible:r}=Ni();return r?f.jsx("div",{ref:t,...n,children:e}):null});P0.displayName="Dropdown.Menu";const i5=P0,O0=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]}));O0.displayName="Dropdown.MenuGroup";const o5=O0,N0=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})]})});N0.displayName="Radio";const a5=N0,j0=({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=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"})]})})};j0.displayName="Dropdown.RadioItem";const l5=j0,T0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});T0.displayName="Dropdown.Separator";const u5=T0,_0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i},o)=>{const{triggerProps:a,block:l}=Ni(),{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(E3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});_0.displayName="Dropdown.Trigger";const c5=_0;function In(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 lp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function ji(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(In(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(In(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(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lp(e)&&e.host||on(e);return lp(t)?t.host:t}function A0(e){const t=Qr(e);return Ka(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&ji(t)?t:A0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=A0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Je(s);return i?t.concat(o,o.visualViewport||[],ji(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const mc=Math.min,Ar=Math.max,pa=Math.round,so=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 L0(e){return e==="y"?"height":"width"}function Dd(e){return["top","bottom"].includes(Kr(e))?"y":"x"}function M0(e){return m5(Dd(e))}function g5(e,t,n){n===void 0&&(n=!1);const r=Za(e),s=M0(e),i=L0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ma(o)),[o,ma(o)]}function v5(e){const t=ma(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 ma(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 ga(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function up(e,t,n){let{reference:r,floating:s}=e;const i=Dd(t),o=M0(t),a=L0(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}=up(u,r,l),h=r,m={},p=0;for(let y=0;y<a.length;y++){const{name:S,fn:g}=a[y],{x:v,y:w,data:b,reset:C}=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=w??d,m={...m,[S]:{...m[S],...b}},C&&p<=50){p++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:d}=up(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:m}};async function E5(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=ga(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},C=ga(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-C.top+p.top)/b.y,bottom:(C.bottom-g.bottom+p.bottom)/b.y,left:(g.left-C.left+p.left)/b.x,right:(C.right-g.right+p.right)/b.x}}const C5=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:y=!0,...S}=Md(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Kr(s),v=Kr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[ma(a)]:v5(a));!h&&p!=="none"&&b.push(...w5(a,y,p,w));const C=[a,...b],k=await E5(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,w);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=C[D];if(U)return{data:{index:D,overflows:P},reset:{placement:U}};let E=(M=P.filter(O=>O.overflows[0]<=0).sort((O,A)=>O.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!E)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&&(E=O);break}case"initialPlacement":E=a;break}if(s!==E)return{reset:{placement:E}}}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 D0(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=pa(n)!==i||pa(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}=D0(t);let o=(i?pa(n.width):n.width)/r,a=(i?pa(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 F0(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)?F0(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 y=Lr(p),S=p.getBoundingClientRect(),g=mt(p),v=S.left+(p.clientLeft+parseFloat(g.paddingLeft))*y.x,w=S.top+(p.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,p=Je(p).frameElement}}return ga({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")&&((In(n)!=="body"||ji(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 $0(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+$0(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 _5(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 I5(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 cp(e,t,n){let r;if(t==="viewport")r=_5(e,n);else if(t==="document")r=T5(on(e));else if(Xe(t))r=I5(t,n);else{const s=F0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return ga(r)}function z0(e,t){const n=Qr(e);return n===t||!Xe(n)||Ka(n)?!1:mt(n).position==="fixed"||z0(n,t)}function A5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Xe(a)&&In(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)||ji(o)&&!l&&z0(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=cp(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},cp(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function M5(e){return D0(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((In(t)!=="body"||ji(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=$0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function dp(e,t){return!zt(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function U0(e,t){const n=Je(e);if(!zt(e))return n;let r=dp(e,t);for(;r&&d5(r)&&mt(r).position==="static";)r=dp(r,t);return r&&(In(r)==="html"||In(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||U0,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:U0,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=so(c),p=so(s.clientWidth-(u+d)),y=so(s.clientHeight-(c+h)),S=so(u),v={rootMargin:-m+"px "+-p+"px "+-y+"px "+-S+"px",threshold:Ar(0,mc(1,l))||1};let w=!0;function b(C){const k=C[0].intersectionRatio;if(k!==l){if(!w)return o();k?o(!1,k):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 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,y=l?rr(e):null;l&&S();function S(){const g=rr(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=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 No=typeof document<"u"?x.useLayoutEffect:x.useEffect;function va(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(!va(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)&&!va(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function B0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fp(e,t){const n=B0(e);return Math.round(t*n)/n}function hp(e){const t=x.useRef(e);return No(()=>{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);va(h,r)||m(r);const[p,y]=x.useState(null),[S,g]=x.useState(null),v=x.useCallback(A=>{A!=k.current&&(k.current=A,y(A))},[y]),w=x.useCallback(A=>{A!==R.current&&(R.current=A,g(A))},[g]),b=i||p,C=o||S,k=x.useRef(null),R=x.useRef(null),P=x.useRef(c),L=hp(l),M=hp(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&&!va(P.current,N)&&(P.current=N,Pi.flushSync(()=>{d(N)}))})},[h,t,n,M]);No(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const D=x.useRef(!1);No(()=>(D.current=!0,()=>{D.current=!1}),[]),No(()=>{if(b&&(k.current=b),C&&(R.current=C),b&&C){if(L.current)return L.current(b,C,T);T()}},[b,C,T,L]);const U=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:w}),[v,w]),E=x.useMemo(()=>({reference:b,floating:C}),[b,C]),O=x.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const $=fp(E.floating,c.x),N=fp(E.floating,c.y);return a?{...A,transform:"translate("+$+"px, "+N+"px)",...B0(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:N}},[n,a,E.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:T,refs:U,elements:E,floatingStyles:O}),[c,T,U,E,O])}var V0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Ql=!1,q5=0;const pp=()=>"floating-ui-"+q5++;function Q5(){const[e,t]=x.useState(()=>Ql?pp():void 0);return V0(()=>{e==null&&t(pp())},[]),x.useEffect(()=>{Ql||(Ql=!0)},[]),e}const K5=mm["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=mm["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,C)=>{b&&(h.current.openEvent=C),r==null||r(b,C)}),d=x.useRef(null),h=x.useRef({}),m=x.useState(()=>Z5())[0],p=W5(),y=x.useCallback(b=>{const C=Xe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(C)},[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: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:p,events:m,open:n,onOpenChange:c}),[l,s,p,m,n,c,g,v]);return V0(()=>{const b=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:g,elements:v}),[l,g,v,w])}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),C5({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)},y=()=>{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))},[]),w=(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}w(D,T)},[v,g]),C=T=>{const U=Object.values(h.current).findIndex(E=>E.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":y(),U=!0;break;case"End":S(),U=!0;break}w(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:C,onMenuItemClick:P,onMenuItemKeyDown:k},setVisible:r}},rb=nb,H0=({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=t0(()=>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})})};H0.displayName="Dropdown";const sb=Object.assign(H0,{Trigger:c5,Menu:i5,Item:s5,Separator:u5,CheckboxItem:r5,RadioItem:l5,MenuGroup:o5}),fr=sb,q0=x.createContext(null),$d=()=>{const e=x.useContext(q0);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,K0=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})]})});K0.displayName="Label";const ob=K0,W0=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})});W0.displayName="Input";const Z0=W0,G0=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(q0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),ab=Object.assign(G0,{Label:ob,Input:Z0,Text:ib});G0.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})},X0=({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";X0.displayName="Grid.Col";Ms.Col=X0;const Y0=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"})]})});Y0.displayName="LoadingScreen";const ze=Y0,J0=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"})})});J0.displayName="Logo";const mp=J0;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:()=>ov,to:()=>iv,willAdvance:()=>Kd});var zd=_i(),V=e=>Ti(e,zd),Ud=_i();V.write=e=>Ti(e,Ud);var Ga=_i();V.onStart=e=>Ti(e,Ga);var Bd=_i();V.onFrame=e=>Ti(e,Bd);var Vd=_i();V.onFinish=e=>Ti(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(ev(n),0,s),xn+=1,tv(),s};var ev=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"):rv()};var wn=-1,xn=0,yc=!1;function Ti(e,t){yc?(t.delete(e),e(0)):(t.add(e),tv())}function tv(){wn<0&&(wn=0,V.frameLoop!=="demand"&&Hd(nv))}function cb(){wn=-1}function nv(){~wn&&(Hd(nv),V.batchedUpdates(rv))}function rv(){const e=wn;wn=V.now();const t=ev(wn);if(t&&(sv(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 _i(){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,sv(t,r=>r(n)&&e.add(r)),xn+=e.size,t=e)}}}function sv(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 Es=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,iv,jn=null,ov=!1,Kd=wc,fb=e=>{e.to&&(iv=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(jn=e.colors),e.skipAnimation!=null&&(ov=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=[],ya=0,Xa={get idle(){return!Fs.size&&!ct.length},start(e){ya>e.priority?(Fs.add(e),V.onStart(hb)):(av(e),V(xc))},advance:xc,sort(e){if(ya)V.onFrame(()=>Xa.sort(e));else{const t=ct.indexOf(e);~t&&(ct.splice(t,1),lv(e))}},clear(){ct=[],Fs.clear()}};function hb(){Fs.forEach(av),Fs.clear(),V(xc)}function av(e){ct.includes(e)||lv(e)}function lv(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];ya=r.priority,r.idle||(Kd(r),r.advance(e),r.idle||t.push(r))}return ya=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},Et="[-+]?\\d*\\.?\\d+",wa=Et+"%";function Ya(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var vb=new RegExp("rgb"+Ya(Et,Et,Et)),yb=new RegExp("rgba"+Ya(Et,Et,Et,Et)),wb=new RegExp("hsl"+Ya(Et,wa,wa)),xb=new RegExp("hsla"+Ya(Et,wa,wa,Et)),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})$/,Eb=/^#([0-9a-fA-F]{6})$/,Cb=/^#([0-9a-fA-F]{8})$/;function Rb(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: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|yp(t[4]))>>>0:(t=Sb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Cb.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))?(gp(vp(t[1]),io(t[2]),io(t[3]))|255)>>>0:(t=xb.exec(e))?(gp(vp(t[1]),io(t[2]),io(t[3]))|yp(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 gp(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 vp(e){return(parseFloat(e)%360+360)%360/360}function yp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function io(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wp(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)},xa=1.70158,oo=xa*1.525,xp=xa+1,Sp=2*Math.PI/3,bp=2*Math.PI/4.5,ao=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=>xp*e*e*e-xa*e*e,easeOutBack:e=>1+xp*Math.pow(e-1,3)+xa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((oo+1)*2*e-oo)/2:(Math.pow(2*e-2,2)*((oo+1)*(e*2-2)+oo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Sp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Sp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bp)/2+1,easeInBounce:e=>1-ao(1-e),easeOutBounce:ao,easeInOutBounce:e=>e<.5?(1-ao(1-2*e))/2:(1+ao(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,Ep=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 uv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Tb(this,e)}},Tb=(e,t)=>cv(e,di,t);function es(e,t){if(e[di]){let n=e[Wr];n||cv(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 cv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_b=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cp=new RegExp(`(${jo.source})(%|[a-z]+)`,"i"),Ib=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ja=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,dv=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 dv(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})`,fv=e=>{Zl||(Zl=jn?new RegExp(`(${Object.keys(jn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>De(i).replace(Ja,dv).replace(_b,wp).replace(Zl,wp)),n=t.map(i=>i.match(jo).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(jo,""));let a=0;return t[0].replace(jo,()=>`${s[a++](i)}${o||""}`).replace(Ib,Lb)}},Wd="react-spring: ",hv=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=hv(console.warn);function Db(){Mb(`${Wd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Fb=hv(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(),pv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ii=class extends pv{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()}},Sa={dependencies:null},nl=class extends pv{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){Sa.dependencies&&ut(e)&&Sa.dependencies.add(e);const t=tl(e);t&&B(t,n=>this.add(n))}},mv=class extends nl{constructor(e){super(e)}static create(e){return new mv(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)?mv:el(e)?mi:Ii}var Rp=(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,y=>hi(y,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 Sa.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new nl(e),Sa.dependencies=null,[e,n]}function Wb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var kp=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=Pp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Rp(o,s)):o=o[kp]||(o[kp]=Rp(o,s)),o.displayName=`Animated(${a})`,o};return Ut(e,(o,a)=>{j.arr(e)&&(a=Pp(o)),i[a]=i(o)}),{animated:i}},Pp=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))),gv=(e,t)=>j.obj(e)?t&&e[t]:e,vv=(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 yv(e){for(const t in e)return!0;return!1}function Ec(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function Cc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function wv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var eE={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={...eE.default,mass:1,damping:1,easing:Nb.linear,clamp:!1},tE=class{constructor(){this.velocity=0,Object.assign(this,Rc)}};function nE(e,t,n){n&&(n={...n},Op(n,t),t={...n,...t}),Op(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 Op(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 Np=[],rE=class{constructor(){this.changed=!1,this.values=Np,this.toValues=null,this.fromValues=Np,this.config=new tE,this.immediate=!1}};function xv(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)?Sv(e.get()):bt(e.get(),t.every(n=>n.finished)),Sv=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 bv(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 jp,w=new Tp;return(async()=>{if(Pt.skipAnimation)throw vi(n),w.result=bt(r,!1),d(w),w;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 C=await r.start(b);return m(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;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]),y=bt(r.get(),!0,!1)}catch(S){if(S instanceof jp)y=S.result;else if(S instanceof Tp)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)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}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 jp=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.")}},Tp=class extends Error{constructor(){super("SkipAnimationSignal")}},kc=e=>e instanceof ef,sE=1,ef=class extends uv{constructor(){super(...arguments),this.id=sE++,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"),Ev=1,Pc=2,Oc=4,Gl=e=>(e[sr]&Ev)>0,cn=e=>(e[sr]&Pc)>0,ps=e=>(e[sr]&Oc)>0,_p=(e,t)=>t?e[sr]|=Pc|Ev:e[sr]&=~Pc,Ip=(e,t)=>t?e[sr]|=Oc:e[sr]&=~Oc,iE=class extends ef{constructor(e,t){if(super(),this.animation=new rE,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 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)*p);m=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-m)<=v,g=S*b}else{g=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,C=!j.und(b),k=y==d?u.v0>0:y<d;let R,P=!1;const L=1,M=Math.ceil(e/L);for(let T=0;T<M&&(R=Math.abs(g)>w,!(!R&&(h=Math.abs(d-m)<=v,h)));++T){C&&(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,E=(D+U)/i.mass;g=g+E*L,m=m+g*L}}else{let w=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)),w=(i.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),m=y+i.easing(w)*(d-y),g=(m-u.lastPosition)/e,h=w==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||Ec(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)?gv(o,n):o)),Lp(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 xv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(Ip(this,!0),Es(i.pauseQueue),gs(this,"onPause",bt(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(Ip(this,!1),cn(this)&&this._resume(),Es(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=Ec(t.to),{config:y}=a,{decay:S,velocity:g}=y;(r||s)&&(y.velocity=0),t.config&&!p&&nE(y,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 w=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=w?d:this.get(),C=gi(c),k=j.num(C)||j.arr(C)||el(C),R=!p&&(!k||$s(o.immediate||t.immediate,i));if(m){const T=bc(c);if(T!==v.constructor)if(R)v=this._set(C);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=w||!Gl(this)&&h;(m||T)&&(M=Qt(gi(b),C),L=!M),(!Qt(a.immediate,R)&&!R||!Qt(y.decay,S)||!Qt(y.velocity,g))&&(L=!0)}if(M&&cn(this)&&(a.changed&&!w?L=!0:L||this._stop(l)),!p&&((L||ut(l))&&(a.values=v.getPayload(),a.toValues=ut(c)?null:P==mi?[1]:je(C)),a.immediate!=R&&(a.immediate=R,!R&&!w&&this._set(l)),L)){const{onRest:T}=a;B(aE,U=>Lp(this,t,U));const D=bt(this,ms(this,l));Es(this._pendingCalls,D),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var U;a.changed=!w,T==null||T(D,this),w?Fe(o.onRest,D):(U=a.onStart)==null||U.call(a,D,this)})}w&&this._set(b),p?n(bv(t.to,t,this._state,this)):L?this._start():cn(this)&&!m?this._pendingCalls.add(n):n(Sv(b))}_focus(e){const t=this.animation;e!==t.to&&(Ep(this)&&this._detach(),t.to=e,Ep(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)||(_p(this,!0),ps(this)||this._resume())}_resume(){Pt.skipAnimation?this.finish():Xa.start(this)}_stop(e,t){if(cn(this)){_p(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));Es(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||Ec(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)&&Ap(t,r),j.obj(n)&&Ap(n,r),e.keys=r.size?Array.from(r):null,e}function oE(e){const t=yi(e);return j.und(t.default)&&(t.default=rl(t)),t}function Ap(e,t){Ut(e,(n,r)=>n!=null&&t.add(r))}var aE=["onStart","onRest","onChange","onPause","onResume"];function Lp(e,t,n){e.animation[n]=t[n]!==vv(t,n)?gv(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 lE=["onStart","onChange","onRest"],uE=1,Rv=class{constructor(e,t){this.id=uE++,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):(jv(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=>kv(e,n))).then(n=>Jd(e,n))}async function kv(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(lE,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,Es(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)),m=t.cancel===!0||vv(t,"cancel")===!0;(c||m&&d.asyncId)&&h.push(xv(++e._lastAsyncId,{props:t,state:d,actions:{pause:wc,resume:wc,start(y,S){m?(vi(d,e._lastAsyncId),S(Dr(e))):(y.onRest=a,S(bv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=Jd(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=Cv(t,o,s);if(y)return jv(e,[y]),kv(e,y,!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}),Nv(n,r,s=>Ov(s))}),Pv(e,n),n}function Pv(e,t){Ut(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Ov(e,t){const n=new iE;return n.key=e,t&&es(n,t),n}function Nv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function jv(e,t){B(t,n=>{Nv(e.springs,n,r=>Ov(r,e))})}var Ai=({children:e,...t})=>{const n=x.useContext(ba),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Ub(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=ba;return x.createElement(i,{value:t},e)},ba=cE(Ai,{});Ai.Provider=ba.Provider;Ai.Consumer=ba.Consumer;function cE(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Tv=()=>{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 dE(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?Tv():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const w=jc(g,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!g.springs[C])?Nc(g,v):new Promise(C=>{Pv(g,w),a.queue.push(()=>{C(Nc(g,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Sc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),g=>{Cc(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 Rv(null,a.flush)),C=r?r(w,b):t[w];C&&(u[w]=oE(C))}}const h=l.current.map((g,v)=>jc(g,u[v])),m=x.useContext(Ai),p=Sc(m),y=m!==p&&yv(m);Zn(()=>{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:m});const b=u[w];b&&(wv(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 hk(e,t){const n=j.fun(e),[[r],s]=dE(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?Tv():void 0,[]),m=je(e),p=[],y=x.useRef(null),S=s?null:y.current;Zn(()=>{y.current=p}),Gd(()=>(B(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{B(y.current,E=>{E.expired&&clearTimeout(E.expirationId),Cc(E.ctrl,h),E.ctrl.stop(!0)})}));const g=hE(m,r?r():t,S),v=s&&y.current||[];Zn(()=>B(v,({ctrl:E,item:O,key:A})=>{Cc(E,h),Fe(u,O,A)}));const w=[];if(S&&B(S,(E,O)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(O=w[O]=g.indexOf(E.key),~O&&(p[O]=E))}),B(m,(E,O)=>{p[O]||(p[O]={key:g[O],item:E,phase:"mount",ctrl:new Rv},p[O].ctrl.item=E)}),w.length){let E=-1;const{leave:O}=r?r():t;B(w,(A,$)=>{const N=S[$];~A?(E=p.indexOf(N),p[E]={...N,item:m[A]}):O&&p.splice(++E,0,N)})}j.fun(i)&&p.sort((E,O)=>i(E.item,O.item));let b=-o;const C=Zd(),k=rl(t),R=new Map,P=x.useRef(new Map),L=x.useRef(!1);B(p,(E,O)=>{const A=E.key,$=E.phase,N=r?r():t;let I,z;const Z=Fe(N.delay||0,A);if($=="mount")I=N.enter,z="enter";else{const ye=g.indexOf(A)<0;if($!="leave")if(ye)I=N.leave,z="leave";else if(I=N.update)z="update";else return;else if(!ye)I=N.enter,z="enter";else return}if(I=Fe(I,E.item,O),I=j.obj(I)?Yd(I):{to:I},!I.config){const ye=d||k.config;I.config=Fe(ye,E.item,O,z)}b+=o;const W={...k,delay:Z+b,ref:c,immediate:N.immediate,reset:!1,...I};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,E.item,O)}const{onResolve:an}=W;W.onResolve=ye=>{Fe(an,ye);const G=y.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(C,ln));return}}}jt&&G.some(Tt=>Tt.expired)&&(P.current.delete(he),l&&(L.current=!0),C())}};const it=jc(E.ctrl,W);z==="leave"&&l?P.current.set(E,{phase:z,springs:it,payload:W}):R.set(E,{phase:z,springs:it,payload:W})});const M=x.useContext(Ai),T=Sc(M),D=M!==T&&yv(M);Zn(()=>{D&&B(p,E=>{E.ctrl.start({default:M})})},[M]),B(R,(E,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:E,payload:O},A)=>{const{ctrl:$}=A;A.phase=E,h==null||h.add($),D&&E=="enter"&&$.start({default:M}),O&&(wv($,O.ref),($.ref||h)&&!L.current?$.update(O):($.start(O),L.current&&(L.current=!1)))})},s?void 0:n);const U=E=>x.createElement(x.Fragment,null,p.map((O,A)=>{const{springs:$}=R.get(O)||O.ctrl,N=E({...$},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 fE=1;function hE(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):fE++})}return j.und(n)?e:j.fun(n)?e.map(n):je(n)}var pE=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&&Mp(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&&!Mp(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 mE(e){return e.idle!==!1}function Mp(e){return!e.size||Array.from(e).every(mE)}function Xl(e){e.idle||(e.idle=!0,B(tl(e),t=>{t.done=!0}),fi(e,{type:"idle",parent:e}))}Pt.assign({createStringInterpolator:fv,to:(e,t)=>new pE(e,t)});var _v=/^--/;function gE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!_v.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Dp={};function vE(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:Dp[d]||(Dp[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=gE(d,r[d]);_v.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},yE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),wE=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(wE.forEach(n=>e[yE(n,t)]=e[t]),e),zs);var xE=/^(matrix|translate|scale|rotate|skew)/,SE=/^(translate)/,bE=/^(rotate|skew)/,Yl=(e,t)=>j.num(e)&&e!==0?e+t:e,To=(e,t)=>j.arr(e)?e.every(n=>To(n,t)):j.num(e)?e===t:parseFloat(e)===t,EE=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(",")})`,To(o,0)])),Ut(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(xE.test(a)){if(delete r[a],j.und(o))return;const l=SE.test(a)?"px":bE.test(a)?"deg":"";s.push(je(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${Yl(h,l)})`,To(h,0)]:u=>[`${a}(${u.map(c=>Yl(c,l)).join(",")})`,To(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new CE(s,i)),super(r)}},CE=class extends uv{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)}},RE=["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:Pi.unstable_batchedUpdates,createStringInterpolator:fv,colors:gb});var kE=Zb(RE,{applyAnimatedValues:vE,createAnimatedStyle:e=>new EE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ea=kE.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},Av=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})};Av.displayName="Modal.Body";const PE=Av,Lv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Lv.displayName="Modal.Footer";const OE=Lv,Mv=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"})]})};Mv.displayName="Modal.Header";const NE=Mv,Dv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Dv.displayName="Modal.Subtitle";const jE=Dv,Fv=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),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}),y=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,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:p,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,w&&(m.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}})]}))})}),TE=Object.assign(Fv,{Header:NE,Subtitle:jE,Body:PE,Footer:OE});Fv.displayName="Modal";const Sn=TE,_E=({children:e,className:t})=>{const n=H("popover-body",t);return f.jsx("div",{className:n,children:e})},IE=({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(Ea.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function AE(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 $v=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:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:w}=AE(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,C=()=>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(np,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(hc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(np,{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:y,onFocus:v,onBlur:w,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:C()}):C()};$v.displayName="TreeItem";const LE=$v,zv=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)},y=g=>{a==null||a(g)},S=g=>f.jsx(LE,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:d,onItemFold:h,onItemUnfold:m,onItemFocus:p,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)})});zv.displayName="TreeView";const ME=zv,Uv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Uv.displayName="VisuallyHidden";const Cs=Uv,DE=()=>{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}},FE=DE;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 Fp({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(Cs,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const $E=()=>{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")})})})},zE=({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 Bv=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=Bv;var Vv=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=Vv;var Hv=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=Hv;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 qv=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=qv;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 Kv=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=Kv;function Wv(e){return(0,Qe.isTag)(e)}q.isTag=Wv;function Zv(e){return e.type===Qe.ElementType.CDATA}q.isCDATA=Zv;function Gv(e){return e.type===Qe.ElementType.Text}q.isText=Gv;function Xv(e){return e.type===Qe.ElementType.Comment}q.isComment=Xv;function Yv(e){return e.type===Qe.ElementType.Directive}q.isDirective=Yv;function Jv(e){return e.type===Qe.ElementType.Root}q.isDocument=Jv;function UE(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=UE;function lf(e,t){t===void 0&&(t=!1);var n;if(Gv(e))n=new Bv(e.data);else if(Xv(e))n=new Vv(e.data);else if(Wv(e)){var r=t?tu(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(Zv(e)){var r=t?tu(e.children):[],i=new qv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Jv(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(Yv(e)){var a=new Hv(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 $p="html",zp="head",lo="body",BE=/<([a-zA-Z]+[0-9]?)/,Up=/<head[^]*>/i,Bp=/<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`")},Vp=typeof window=="object"&&window.DOMParser;if(typeof Vp=="function"){var VE=new Vp,HE="text/html";Tc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),VE.parseFromString(e,HE)},Ca=Tc}if(typeof document=="object"&&document.implementation){var uo=document.implementation.createHTMLDocument();Ca=function(e,t){if(t){var n=uo.documentElement.querySelector(t);return n.innerHTML=e,uo}return uo.documentElement.innerHTML=e,uo}}var nu=typeof document=="object"?document.createElement("template"):{},_c;nu.content&&(_c=function(e){return nu.innerHTML=e,nu.content.childNodes});function qE(e){var t,n=e.match(BE);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case $p:return r=Tc(e),Up.test(e)||(s=r.querySelector(zp),s&&s.parentNode.removeChild(s)),Bp.test(e)||(s=r.querySelector(lo),s&&s.parentNode.removeChild(s)),r.querySelectorAll($p);case zp:case lo:return r=Ca(e),i=r.querySelectorAll(t),Bp.test(e)&&Up.test(e)?i[0].parentNode.childNodes:i;default:return _c?_c(e):(s=Ca(e,lo).querySelector(lo),s.childNodes)}}var QE=qE,uf={},ey={};ey.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,KE=ey,Hp=KE.CASE_SENSITIVE_TAG_NAMES,WE=ol.Comment,ZE=ol.Element,GE=ol.ProcessingInstruction,XE=ol.Text,ty={},ru;for(var su=0,YE=Hp.length;su<YE;su++)ru=Hp[su],ty[ru.toLowerCase()]=ru;function JE(e){return ty[e]}function ny(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function eC(e){e=e.toLowerCase();var t=JE(e);return t||e}function ry(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=eC(a.nodeName),l=new ZE(s,ny(a.attributes)),l.children=ry(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new XE(a.nodeValue);break;case 8:l=new WE(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 GE(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=ny;uf.formatDOM=ry;var tC=QE,nC=uf,rC=nC.formatDOM,sC=/<(![a-zA-Z\s]+)>/;function iC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(sC),n;return t&&t[1]&&(n=t[1]),rC(tC(e),null,n)}var oC=iC,vt={},al={},aC=0;al.SAME=aC;var lC=1;al.CAMELCASE=lC;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 uC(e,t){return cC(e)||dC(e,t)||fC(e,t)||hC()}function cC(e){if(Array.isArray(e))return e}function dC(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 fC(e,t){if(e){if(typeof e=="string")return qp(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 qp(e,t)}}function qp(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 hC(){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 sy=0,zn=1,ll=2,ul=3,cf=4,iy=5,oy=6;function pC(e){return be.hasOwnProperty(e)?be[e]:null}function Ae(e,t,n,r,s,i,o){this.acceptsBooleans=t===ll||t===ul||t===cf,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var be={},mC=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];mC.forEach(function(e){be[e]=new Ae(e,sy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=uC(e,2),n=t[0],r=t[1];be[n]=new Ae(n,zn,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new Ae(e,ll,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new Ae(e,ll,!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){be[e]=new Ae(e,ul,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new Ae(e,ul,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){be[e]=new Ae(e,cf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){be[e]=new Ae(e,oy,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new Ae(e,iy,!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);be[t]=new Ae(t,zn,!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);be[t]=new Ae(t,zn,!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);be[t]=new Ae(t,zn,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){be[e]=new Ae(e,zn,!1,e.toLowerCase(),null,!1,!1)});var gC="xlinkHref";be[gC]=new Ae("xlinkHref",zn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){be[e]=new Ae(e,zn,!1,e.toLowerCase(),null,!0,!0)});var hf=al,vC=hf.CAMELCASE,yC=hf.SAME,Qp=hf.possibleStandardNames,wC=":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",xC=wC+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",SC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+xC+"]*$")),bC=Object.keys(Qp).reduce(function(e,t){var n=Qp[t];return n===yC?e[t]=t:n===vC?e[t.toLowerCase()]=t:e[t]=n,e},{});vt.BOOLEAN=ul;vt.BOOLEANISH_STRING=ll;vt.NUMERIC=iy;vt.OVERLOADED_BOOLEAN=cf;vt.POSITIVE_NUMERIC=oy;vt.RESERVED=sy;vt.STRING=zn;vt.getPropertyInfo=pC;vt.isCustomAttribute=SC;vt.possibleStandardNames=bC;var pf={},mf={exports:{}},Kp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EC=/\n/g,CC=/^\s*/,RC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,kC=/^:\s*/,PC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,OC=/^[;\s]*/,NC=/^\s+|\s+$/g,jC=`
|
|
226
|
+
`,Wp="/",Zp="*",Hn="",TC="comment",_C="declaration",IC=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 y=p.match(EC);y&&(n+=y.length);var S=p.lastIndexOf(jC);r=~S?p.length-S:r+p.length}function i(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(p){var y=p.exec(e);if(y){var S=y[0];return s(S),e=e.slice(S.length),y}}function u(){l(CC)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=i();if(!(Wp!=e.charAt(0)||Zp!=e.charAt(1))){for(var y=2;Hn!=e.charAt(y)&&(Zp!=e.charAt(y)||Wp!=e.charAt(y+1));)++y;if(y+=2,Hn===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,p({type:TC,comment:S})}}function h(){var p=i(),y=l(RC);if(y){if(d(),!l(kC))return a("property missing ':'");var S=l(PC),g=p({type:_C,property:Gp(y[0].replace(Kp,Hn)),value:S?Gp(S[0].replace(Kp,Hn)):Hn});return l(OC),g}}function m(){var p=[];c(p);for(var y;y=h();)y!==!1&&(p.push(y),c(p));return p}return u(),m()};function Gp(e){return e?e.replace(NC,Hn):Hn}var AC=IC;function ay(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=AC(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}mf.exports=ay;mf.exports.default=ay;var LC=mf.exports,cl={};Object.defineProperty(cl,"__esModule",{value:!0});cl.camelCase=void 0;var MC=/^--[a-zA-Z0-9-]+$/,DC=/-([a-z])/g,FC=/^[^-]+$/,$C=/^-(webkit|moz|ms|o|khtml)-/,zC=/^-(ms)-/,UC=function(e){return!e||FC.test(e)||MC.test(e)},BC=function(e,t){return t.toUpperCase()},Xp=function(e,t){return"".concat(t,"-")},VC=function(e,t){return t===void 0&&(t={}),UC(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(zC,Xp):e=e.replace($C,Xp),e.replace(DC,BC))};cl.camelCase=VC;var HC=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pf,"__esModule",{value:!0});var qC=HC(LC),QC=cl;function KC(e,t){var n={};return!e||typeof e!="string"||(0,qC.default)(e,function(r,s){r&&s&&(n[(0,QC.camelCase)(r,t)]=s)}),n}pf.default=KC;var WC=x,ZC=pf.default;function GC(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n=typeof t=="function",r={},s={};for(var i in e){var o=e[i];if(n&&(r=t(i,o),r&&r.length===2)){s[r[0]]=r[1];continue}typeof o=="string"&&(s[o]=i)}return s}var XC=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function YC(e,t){return e.indexOf("-")===-1?t&&typeof t.is=="string":!XC.has(e)}var JC={reactCompat:!0};function eR(e,t){if(e!=null)try{t.style=ZC(e,JC)}catch{t.style={}}}var tR=WC.version.split(".")[0]>=16,ly=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function nR(e){return!ly.has(e.name)}function rR(e){return e}var uy={PRESERVE_CUSTOM_ATTRIBUTES:tR,ELEMENTS_WITH_NO_TEXT_CHILDREN:ly,invertObject:GC,isCustomComponent:YC,setStyleProp:eR,canTextBeChildOfNode:nR,returnFirstArg:rR},Rs=vt,Yp=uy,sR=["checked","value"],iR=["input","select","textarea"],oR={reset:!0,submit:!0},cy=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&oR[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Jp(s),o){switch(a=Rs.getPropertyInfo(o),sR.indexOf(o)!==-1&&iR.indexOf(n)!==-1&&!u&&(o=Jp("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 Jp(e){return Rs.possibleStandardNames[e]}var aR=x,lR=cy,wi=uy,uR=wi.setStyleProp,cR=wi.canTextBeChildOfNode;function dy(e,t){t=t||{};for(var n=t.library||aR,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c=t.transform||wi.returnFirstArg,d,h,m,p=t.trim,y=0,S=e.length;y<S;y++){if(a=e[y],u&&(d=t.replace(a),i(d))){S>1&&(d=r(d,{key:d.key||y})),o.push(c(d,a,y));continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!cR(a.parent)||p&&l)continue;o.push(c(a.data,a,y));continue}switch(h=a.attribs,dR(a)?uR(h.style,h):h&&(h=lR(h,a.name)),m=null,a.type){case"script":case"style":a.children[0]&&(h.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?h.defaultValue=a.children[0].data:a.children&&a.children.length&&(m=dy(a.children,t));break;default:continue}S>1&&(h.key=y),o.push(c(s(a.name,h,m),a,y))}return o.length===1?o[0]:o}function dR(e){return wi.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&wi.isCustomComponent(e.name,e.attribs)}var fR=dy,dl=sf,Pr=oC,hR=cy,fy=fR;Pr=typeof Pr.default=="function"?Pr.default:Pr;var pR={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||pR),t))}Bt.domToReact=fy;Bt.htmlToDOM=Pr;Bt.attributesToProps=hR;Bt.Comment=dl.Comment;Bt.Element=dl.Element;Bt.ProcessingInstruction=dl.ProcessingInstruction;Bt.Text=dl.Text;var mR=Bt;Bt.default=Bt;const Un=Ra(mR);var co=Un.domToReact;Un.htmlToDOM;var iu=Un.attributesToProps;Un.Comment;Un.Element;Un.ProcessingInstruction;Un.Text;function gR(){var y;const{appCode:e}=gt(),{theme:t}=_d(),[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=Un(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(G4,{})}),co(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:co(w.children,{replace:b=>{const C=b;if(C.attribs&&C.name==="a")return f.jsx("a",{...iu(C.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:co(C.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:co(g.children,{replace:w=>{const b=w;if(b.attribs&&b.name==="p")return f.jsx(f.Fragment,{});if(b.attribs&&b.name==="img"){const C=w.attribs.src;return f.jsx("img",{...iu(b.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),m=(y=h==null?void 0:h.props)==null?void 0:y.children.find(S=>S.type==="body").props.children,p=m==null?void 0:m.find(S=>S.type==="p").props.children;return{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:m,parsedHeadline:p,error:l}}const hy=()=>{const[e,t]=Yg(),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(b0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};hy.displayName="SearchEngine";const vR=hy;function em({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ve(),o=()=>{t(!1)};return e?Pi.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}=FE(),{user:o,avatar:a}=Id(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=gR(),m=H("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:S,isAppsHovered:g,popoverAppsId:v,userAvatar:w,userName:b,welcomeUser:C,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(rp,{alt:b,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(Fp,{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(Cs,{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(Cs,{children:n("navbar.help")})]}),f.jsx(em,{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(ip,{className:"icon logout"}),f.jsx(Cs,{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(mp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Fp,{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(op,{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(mp,{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(op,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:g,children:[f.jsx(_E,{children:f.jsx(zE,{bookmarkedApps:y})}),f.jsx(IE,{className:"widget-footer border-top border-ghost",children:f.jsx($E,{})})]})]}),R&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(ap,{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(ap,{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(Cs,{children:n("support")})]}),f.jsx(em,{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(vR,{}):null,f.jsx(ue,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(rp,{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(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(ip,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};py.displayName="Header";const yR=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}=_d();return f.jsxs(f.Fragment,{children:[f.jsx(yR,{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 wR=gy,xR=function(){return null};var vy,tm=Pi;vy=tm.createRoot,tm.hydrateRoot;const It=document.querySelector("[data-ode-app]");let ys;function fl(){var e;if(ys)return ys;if(ys={app:fo.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=It==null?void 0:It.dataset)!=null&&e.odeApp){const{odeApp:t}=It.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:",It==null?void 0:It.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",It==null?void 0:It.dataset);return ys}const nm=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},SR=e=>e?nm(e):nm;var yy={exports:{}},wy={};/**
|
|
227
227
|
* @license React
|
|
228
228
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
229
229
|
*
|
|
@@ -231,4 +231,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
231
231
|
*
|
|
232
232
|
* This source code is licensed under the MIT license found in the
|
|
233
233
|
* LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/var yl=b,B8=a0;function U8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var V8=typeof Object.is=="function"?Object.is:U8,H8=B8.useSyncExternalStore,q8=yl.useRef,Q8=yl.useEffect,W8=yl.useMemo,K8=yl.useDebugValue;Oy.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=q8(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=W8(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var p=o.value;if(i(p,g))return d=p}return d=g}if(p=d,V8(c,g))return p;var y=r(g);return i!==void 0&&i(p,y)?p:(c=g,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,i]);var a=H8(e,s[0],s[1]);return Q8(function(){o.hasValue=!0,o.value=a},[a]),K8(a),a};ky.exports=Oy;var Z8=ky.exports;const X8=js(Z8),{useSyncExternalStoreWithSelector:G8}=X8;function Y8(e,t=e.getState,n){const r=G8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const bm=e=>{const t=typeof e=="function"?z8(e):e,n=(r,i)=>Y8(t,r,i);return Object.assign(n,t),n},J8=e=>e?bm(e):bm,Ry=async e=>{const t=await G.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},e6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await G.resource(e.app).createFolder(r)},t6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const i={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await G.resource(t.app).updateFolder(i)},n6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).trashAll(i,n)},r6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).deleteAll(i,n)},i6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await G.resource(e.app).restoreAll(i,r)},s6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:i})=>{const s={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await G.resource(e.app).moveToFolder(s,i)},o6=async({searchParams:e,entId:t,shares:n})=>await G.share().saveRights(e.app,t,n),a6=async({searchParams:e,params:t})=>await G.resource(e.app).update(t),l6=async e=>await G.rights().sessionHasWorkflowRights(e),u6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoView(t),c6=({searchParams:e,params:t})=>G.resource(e.app).create(t),d6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoPrint(t),f6=async({searchParams:e,params:t})=>await G.resource(e.app).publish(t),h6=async()=>await G.conf().getPreference("showOnboardingTrash"),p6=async({onSuccess:e})=>{const t=await G.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function Ef(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Ps(e,t){var r,i;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((i=t==null?void 0:t.children)==null||i.every(s=>(n=Ps(e,s),n===void 0))),n)}function m6(e,t){var r;const n=Ps(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===et.BIN?[et.BIN]:[et.DEFAULT]}function Py(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Py(t.id,n)):!1}function qs(e,t){return jy(e,t)||e}function jy(e,t,n){var i;const r=t(e,n);if((i=r==null?void 0:r.children)!=null&&i.length){const s=[];for(const o of(r==null?void 0:r.children)||[]){const a=jy(o,t,r);a&&s.push(a)}return{...r,children:s}}return r}class wl{constructor(t){hr(this,"id");hr(this,"name");hr(this,"childNumber");hr(this,"section",!1);hr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ny=(e,t,n)=>qs(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(i=>new wl(i))),r)),{app:g6,types:v6,filters:y6,orders:w6}=Hs(),De=J8()((e,t)=>({filters:y6,orders:w6,searchConfig:{minLength:1},searchParams:{app:g6,types:v6,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:et.DEFAULT,name:Zt("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})=>(console.log(r.search!==n.search),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();u6({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:i}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const s=r.find(o=>o.id===i[0]);d6({searchParams:n,assetId:s.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:i}=t();return await f6({searchParams:i,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:i,treeData:s}=t(),o=i.filters.folder,a=m6(n,s),l=Ef([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...i,search:void 0,filters:{...i.filters,folder:n},trashed:n===et.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:i,searchParams:s}=t();if(e(o=>({...o,status:"unfold"})),!Py(n,i)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ry({...s,filters:{...s.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ny(i,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||et.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:i}=t().updaters,s=Ps(n,r);J4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),i({folder:s,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:i}=t().updaters,s=n.length;if(s<2)return;const o=Ps(n[s-2],r);i({folder:o,folderId:(o==null?void 0:o.id)||et.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:et.BIN},trashed:!0},currentFolder:{id:et.BIN}}))}})),ut=()=>De(e=>e.searchParams),Cf=()=>De(e=>e.selectedNodesIds),si=()=>De(e=>e.treeData),x6=()=>De(e=>e.selectedFolders),S6=()=>De(e=>e.selectedResources),b6=()=>De(e=>e.searchConfig),Qs=()=>De(e=>e.folderIds),Ws=()=>De(e=>e.resourceIds),xl=()=>De(e=>e.selectedResources.map(t=>t.assetId)),Sl=()=>De(e=>e.selectedResources.filter(t=>t.assetId===t.id)),oi=()=>De(e=>e.currentFolder),Ne=()=>De(e=>e.updaters),ai=()=>{const e=oi();return(e==null?void 0:e.id)===et.BIN},Ty=()=>De(e=>e.resourceIsTrash),E6=()=>De(e=>e.resourceActionDisable),C6=()=>{const e=oi();return(e==null?void 0:e.id)==="default"},k6=()=>Cf().length>1,O6=()=>De(e=>e.status);function R6(){const{appCode:e}=bt(),{t}=xe(["common",e]),n=Cf(),r=ai(),i=oi(),{gotoPreviousFolder:s}=Ne(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(i==null?void 0:i.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(zd,{icon:f.jsx(i3,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:s}),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 P6(e,{parentId:t,newFolder:n}){return qs(e,r=>{var i;if(r.id===t){const s=[...((i=r.folder)==null?void 0:i.ancestors)||[]],o=Ef([...s,r.id]);return{...r,children:[...r.children||[],new wl({...n,ancestors:o})]}}else return r})}function j6(e,{folders:t}){return qs(e,n=>{if(!t.includes(n.id))return n})}function N6(e,{destinationId:t,folders:n}){return qs(e,(r,i)=>{var s,o;if(t===r.id){const a=[...((s=r.folder)==null?void 0:s.ancestors)||[]],l=Ef([...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 g=Ps(h,e);g&&u.push({...g,folder:{...g==null?void 0:g.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(i==null?void 0:i.id)?void 0:r})}function T6(e,{folderId:t,newFolder:n}){return qs(e,r=>r.id===t?new wl(n):r)}const{actions:Em,app:_6}=Hs(),_y=()=>Dd({queryKey:["actions"],queryFn:async()=>{const e=Em.map(n=>n.workflow);return await l6(e)},select:e=>Em.map(t=>({...t,available:e[t.workflow]}))}),I6=()=>{const{hotToast:e}=At(Lt),{appCode:t}=bt(),{t:n}=xe(),r=lt(),i=ut(),s=oi(),o=si(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ne(),{filters:c,trashed:d,search:h}=i,g=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return ZS({queryKey:g,queryFn:async({pageParam:p=0})=>await Ry({...i,pagination:{...i.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var x,m,v;await r.cancelQueries({queryKey:g});const y=[...((x=p==null?void 0:p.pages[0])==null?void 0:x.folders)??[]];(m=p==null?void 0:p.pages[0])!=null&&m.searchConfig&&u(p.pages[0].searchConfig),i.search||((s==null?void 0:s.id)==="default"?a({id:et.DEFAULT,section:!0,children:y.map(w=>new wl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ny(o,y,i.filters.folder||et.DEFAULT))),l({...i,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})},Ak=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),i=Qs(),s=xl(),o=Ws(),a=Sl().length>0,l=a?s:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return fn({mutationFn:async()=>await n6({searchParams:n,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Zt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const S={...v,pages:v==null?void 0:v.pages.map(k=>{var O;return{...k,folders:k.folders.filter(R=>!i.includes(R.id)),pagination:{...k.pagination,maxIdx:((O=k==null?void 0:k.pagination)==null?void 0:O.maxIdx)-x.resources.length},resources:k.resources.filter(R=>a?!s.includes(R.assetId):!l.includes(R.id))}})},C=j6(r,{folders:i});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-x.resources.length}}),S}})},onSettled:()=>{u(),c()}})},A6=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=Qs(),i=xl(),s=Ws(),o=Sl().length>0,a=o?i:s,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Ne(),{filters:h,trashed:g}=n,p=["context",{folderId:h.folder,filters:h,trashed:g}];return fn({mutationFn:async()=>await i6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(Zt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!i.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},Lk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=Qs(),i=xl(),s=Ws(),o=Sl().length>0,a=o?i:s,{clearSelectedItems:l,clearSelectedIds:u}=Ne(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return fn({mutationFn:async()=>await r6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(g){typeof g=="string"&&e.error(Zt(g))},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(x=>({...x,folders:x.folders.filter(m=>!r.includes(m.id)),resources:x.resources.filter(m=>o?!i.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},Mk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),i=Qs(),s=xl(),o=Ws(),a=Sl().length>0,l=a?s:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return fn({mutationFn:async x=>await s6({searchParams:n,folderId:x,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Zt(x))},onSuccess:async(x,m)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var S;if(w){const C=N6(r,{destinationId:m,folders:i}),k={...w,pages:w==null?void 0:w.pages.map(O=>{var R;return{...O,folders:O.folders.filter(I=>!i.includes(I.id)),pagination:{...O.pagination,maxIdx:((R=O.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:O.resources.filter(I=>a?!s.includes(I.assetId):!l.includes(I.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-x.resources.length}}),k}})},onSettled:()=>{c(),u()}})},Dk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),{setTreeData:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return fn({mutationFn:async({name:l,parentId:u})=>await e6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(Zt(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 g={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},p=P6(r,{parentId:u.parentId,newFolder:d});return i(p),g}})}})},Fk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),{setFolderIds:i,setSelectedFolders:s,setTreeData:o}=Ne(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return fn({mutationFn:async({folderId:c,name:d,parentId:h})=>await t6({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(Zt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,g=>{if(g){const p={...g,pages:g==null?void 0:g.pages.map(x=>({...x,folders:x.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},y=T6(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{i([]),s([])}})},$k=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),{setResourceIds:r,setSelectedResources:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return fn({mutationFn:async({entId:l,shares:u})=>await o6({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(Zt(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(g=>{if(g.assetId===(u==null?void 0:u.entId)){let p=[`creator:${g.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(p=[...p,...u.shares.flatMap(y=>y.actions.map(x=>`${y.type}:${y.id}:${x.id}`))]),{...g,rights:p}}else return g})}))}})},onSettled:()=>{r([]),i([])}})},zk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),{filters:r,trashed:i}=n,s=["context",{folderId:r.folder,filters:r,trashed:i}];return fn({mutationFn:async o=>await a6({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Zt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:s}),t.getQueryData(s))return t.setQueryData(s,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:g,public:p,description:y,slug:x,...m}=a;return{...d,...m,name:h,thumbnail:g,public:p,description:y,slug:x}}else return d})}))}})}})},Bk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),{user:r}=$d(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return fn({mutationFn:async s=>await c6({searchParams:n,params:s}),onError(s){typeof s=="string"&&e.error(Zt(s))},onSuccess:async(s,o)=>{var u,c,d;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),l={...o,thumbnail:o.thumbnail,application:_6,assetId:s._id||s.entId||"",id:s._id||s.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),modifiedAt:((u=s.modified)==null?void 0:u.$date)||"",modifierId:((c=s.author)==null?void 0:c.userId)||"",modifierName:((d=s.author)==null?void 0:d.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(g=>({...g,resources:[l,...g.resources]}))}})}})},{trashActions:L6}=Hs();function Iy(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[i,s]=b.useState(),{t:o}=xe(),{hotToast:a}=At(Lt),l=oi(),u=Ws(),c=S6(),d=x6(),h=Qs(),g=ai(),p=A6(),y=Ty(),{openResource:x,printSelectedResource:m,openFolder:v,clearSelectedItems:w,clearSelectedIds:S}=Ne(),{data:C}=_y();b.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function k(K){var ie;switch((ie=document.getElementById("root"))==null||ie.setAttribute("aria-hidden","true"),s(K),K.id){case $e.OPEN:return u.length>0?x(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return m();case $e.DELETE:return r("delete");case $e.RESTORE:return await I();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return he();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${K.id}`)}}function O(K){const ie=u.length+h.length,ge=u.length===1||h.length===1,Fe=ie===1,Mt=h.length===0;switch(K.id){case $e.OPEN:return Fe;case $e.MANAGE:return ge;case $e.PUBLISH:return ge&&Mt;case $e.UPD_PROPS:return ge&&Mt;case $e.SHARE:return Mt&≥case $e.PRINT:return ge&&Mt;case"edit":return Fe;default:return!0}}function R(){return!0}async function I(){try{if(g)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");A()}catch(K){console.error(K)}}function A(){var K;r("void"),i!=null&&i.id&&((K=document.getElementById(i==null?void 0:i.id))==null||K.focus())}const M=K=>()=>{n===K&&(A(),w(),S())},z=M("move"),B=M("move"),E=M("delete"),P=M("delete"),L=M("publish"),F=M("publish"),j=M("edit_folder"),N=M("edit_folder"),$=M("edit_resource"),W=M("edit_resource"),H=M("share"),Ye=M("share");function he(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function J(K){return K.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${K.id}`}return{onRestore:I,actions:g?L6:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:J,handleClick:k,isActivable:g?R:O,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:z,onMoveSuccess:B,isDeleteModalOpen:n==="delete",onDeleteCancel:P,onDeleteSuccess:E,isPublishModalOpen:n==="publish",onPublishCancel:F,onPublishSuccess:L,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:N,onEditFolderSuccess:j,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:W,onEditResourceSuccess:$,isShareResourceOpen:n==="share",onShareResourceCancel:Ye,onShareResourceSuccess:H,onClearActionBar:A}}function M6({roles:e,rights:t,action:n}){const[r,i]=b.useState(!1),{user:s}=$d(),o=ai();b.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await G.rights().sessionHasAtLeastOneResourceRight(e,d);i(h)}else{const h=await G.rights().sessionHasResourceRight(e,d);i(h)}},l=async function(c){if(e instanceof Array){const d=await G.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);i(d)}else{const d=await G.rights().sessionHasResourceRightForEachList(e,c);i(d)}},u=async function(){var c,d,h;if(e===void 0){i(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(s==null?void 0:s.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){i(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const g=t.map(p=>p.rights);await l(g)}else i(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function D6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:i}){const{t:s}=xe(),{overrideLabel:o}=Iy(),{visible:a}=M6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ne(),u=ai();return a?f.jsx(f.Fragment,{children:r}):i?i():u&&!a?f.jsx(ri,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:s(o(n))}):f.jsx(f.Fragment,{})}const F6=b.lazy(async()=>await we(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),$6=b.lazy(async()=>await we(()=>import("./DeleteModal.js"),[])),z6=b.lazy(async()=>await we(()=>import("./MoveModal.js"),[])),B6=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),U6=b.lazy(async()=>await we(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),V6=b.lazy(async()=>await we(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function H6(){const{t:e}=xe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:i,isPublishModalOpen:s,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:g,isShareResourceOpen:p,onShareResourceCancel:y,onShareResourceSuccess:x,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:k,isActivable:O,handleClick:R}=Iy(),I=ul(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:[I((A,M)=>M&&f.jsx(Rs.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:A,children:f.jsx(e3,{children:t==null?void 0:t.filter(z=>z.available&&z.target==="actionbar").map(z=>O(z)&&f.jsx(D6,{resourceRights:n,roleExpected:z.right,action:z,children:f.jsx(ri,{id:z.id,type:"button",color:"primary",variant:"filled",onClick:()=>{R(z)},children:e(l(z))},z.id)},z.id))})})),f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(z6,{isOpen:r,onCancel:m,onSuccess:v}),i&&f.jsx($6,{isOpen:i,onCancel:w,onSuccess:S}),s&&f.jsx(V6,{isOpen:s,onCancel:C,onSuccess:k}),a&&f.jsx(B6,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(U6,{edit:!0,isOpen:d,onCancel:h,onSuccess:g}),p&&f.jsx(F6,{isOpen:p,onCancel:y,onSuccess:x})]})]})}function q6(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Q6=()=>{var a;const{user:e}=bt(),t=q6(Hs().app),n=(a=e.apps.find(l=>l.isExternal&&l.address.includes("library")&&l.name.includes("library")))==null?void 0:a.address.split("?");let r=n==null?void 0:n[0];r!=null&&r.endsWith("/")||(r=`${r}/`);const i=n==null?void 0:n[1],s=`application%5B0%5D=${t}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${r}search/?${i}&${s}`}},W6=b.lazy(async()=>await we(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),K6=b.lazy(async()=>await we(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),Z6=b.lazy(async()=>await we(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),X6=b.lazy(async()=>await we(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),G6=b.lazy(async()=>await we(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),Y6=b.lazy(async()=>await we(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),J6=b.lazy(async()=>await we(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),ek=()=>{const e=C6(),t=ai(),n=k6(),r=ut(),{data:i,isError:s,isLoading:o,isFetching:a,fetchNextPage:l}=I6(),u=(i==null?void 0:i.pages[0].folders.length)===0,c=(i==null?void 0:i.pages[0].resources.length)===0,d=u&&c;return s?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Z6,{})}):r.search&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(K6,{})}):!d&&!o?f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(Y6,{data:i,isFetching:a}),f.jsx(J6,{data:i,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(W6,{})}):n&&d&&!t?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(X6,{})}):t&&(i==null?void 0:i.pages[0].resources.length)===0?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(G6,{})}):null};function tk({isOpen:e,onCancel:t=()=>({})}){const{t:n}=xe();return Ms.createPortal(f.jsxs(kn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(kn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(kn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(kn.Footer,{children:f.jsx(ri,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const nk=()=>{const e=ut(),[t,n]=b.useState(""),r=G4(t,500),i=b6(),s=O6(),{setSearchParams:o}=Ne(),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 b.useEffect(()=>{const d=r.length==0||r.length>=i.minLength?{search:r||void 0}:{};o({...e,...d})},[r,i.minLength]),b.useEffect(()=>{s==="select"&&n("")},[s]),b.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}},rk=()=>{const{appCode:e,currentApp:t}=bt(),{t:n}=xe(),[r,i]=b.useState([0]),s=oi(),o=ut(),{setSearchParams:a}=Ne();b.useEffect(()=>{const u=()=>r.includes(1)?!0:void 0,c=()=>r.includes(2)?!0:void 0,d=()=>r.includes(7)?!0:void 0;a({...o,filters:{owner:u(),public:d(),shared:c(),folder:s?s.id:"default"}})},[s,a,r]);const l=[{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)==Eo.EXERCIZER?[{label:"Exercices interactifs",value:3}]:[],...(t==null?void 0:t.displayName)==Eo.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)==Eo.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:7}]:[]];return{selectedFilters:r,options:l,setSelectedFilters:i}},ik=()=>{const{appCode:e}=bt(),{t}=xe(),{selectedFilters:n,options:r,setSelectedFilters:i}=rk(),{inputSearch:s,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=nk();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(Mc,{id:"search",className:"input-group",children:[f.jsx(Av,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:s,onChange:o,onKeyDown:a}),f.jsx(F0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsx(QE,{content:f.jsx(KE,{isMonoSelection:!0,model:n,onChange:u=>i(u),options:r}),trigger:f.jsx(WE,{icon:f.jsx(y3,{width:20}),title:t("explorer.filters"),variant:"ghost",badgeContent:n.length>0?n.length:void 0})})]})},sk=({id:e,selected:t,onSelect:n})=>{const{t:r}=xe();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(f3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},ok=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),ak=()=>{const e=lt(),{t}=xe(),[n,r]=X4(),i=si(),s=ai(),o=Cf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c}=Ne(),d=async h=>{await u(h,e)};return i?f.jsxs(f.Fragment,{children:[f.jsx(aC,{data:i,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:d}),f.jsx(sk,{id:et.BIN,selected:s,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(ri,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(P3,{}),onClick:r,children:t("explorer.folder.new")})}),f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(ok,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},lk=()=>{const e=E6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ne();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},uk=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!0);return b.useEffect(()=>{(async()=>{const s=await h6();if(s){t(JSON.parse(s==null?void 0:s.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await p6({onSuccess:()=>r(!1)})},setIsOpen:r}},ck=()=>{const e=Ty(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ne();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},dk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},fk=b.lazy(async()=>await we(()=>import("./OnboardingTrash.js"),[])),hk=b.lazy(async()=>await we(()=>import("./AppAction.js"),[])),pk=b.lazy(async()=>await we(()=>import("./Library.js"),[])),mk=b.lazy(async()=>await we(()=>import("./TrashedResourceModal.js"),[]));function gk(){const{currentApp:e}=bt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:i}=uk(),{data:s}=_y(),{isTrashedModalOpen:o,onTrashedCancel:a}=ck(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=lk();n4();const c=s==null?void 0:s.find(h=>h.id==="publish"),{libraryUrl:d}=Q6();return f.jsxs(f.Fragment,{children:[f.jsx(B3,{render:()=>dk({workflow:"create",actions:s})?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(hk,{})}):null,children:f.jsx(q3,{app:e})}),f.jsxs(Wi,{className:"flex-grow-1",children:[f.jsxs(Wi.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(ak,{}),(c==null?void 0:c.available)&&d&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(pk,{url:d})})]}),f.jsxs(Wi.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(ik,{}),f.jsx(R6,{}),f.jsx(ek,{})]}),f.jsx(H6,{}),t&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(fk,{isOpen:n,setIsOpen:r,handleSavePreference:i})}),o&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(mk,{isOpen:o,onCancel:a})}),l&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(tk,{isOpen:l,onCancel:u})})]})]})}function vk(){const{init:e}=bt();return e?e?f.jsx(F8,{children:f.jsx(gk,{})}):null:f.jsx(Ve,{position:!1})}const yk=document.getElementById("root"),wk=new ww({queryCache:new Ym({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});Cy(yk).render(f.jsx(b.StrictMode,{children:f.jsxs(MS,{client:wk,children:[f.jsx(GS,{params:Hs(),children:f.jsx(t4,{children:f.jsx(vk,{})})}),f.jsx($8,{initialIsOpen:!1})]})}));export{_y as $,Lt as A,ri as B,KE as C,Lk as D,Ak as E,Mc as F,ai as G,Mk as H,R0 as I,x6 as J,Ne as K,Ve as L,kn as M,lt as N,si as O,oi as P,Dk as Q,Im as R,P3 as S,aC as T,Fk as U,ji as V,XE as W,ZE as X,Ok as Y,Bk as Z,we as _,Ms as a,dk as a0,cf as a1,q6 as a2,Hs as a3,QE as a4,WE as a5,Rk as a6,f3 as a7,xc as a8,Qs as a9,Ik as aa,J4 as ab,Rs as ac,He as ad,js as ae,Ws as af,Pk as ag,jk as ah,_k as ai,l5 as aj,Nk as ak,v0 as al,Ob as am,Ya as b,X4 as c,bt as d,Ek as e,Fd as f,Z as g,ut as h,$d as i,f as j,G4 as k,S6 as l,zk as m,$k as n,At as o,Ck as p,wp as q,b as r,wc as s,zd as t,xe as u,kk as v,Tk as w,E3 as x,Av as y,H3 as z};
|
|
234
|
+
*/var hl=x,bR=Vg;function ER(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var CR=typeof Object.is=="function"?Object.is:ER,RR=bR.useSyncExternalStore,kR=hl.useRef,PR=hl.useEffect,OR=hl.useMemo,NR=hl.useDebugValue;wy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=kR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=OR(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,CR(c,m))return p;var y=r(m);return s!==void 0&&s(p,y)?p:(c=m,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=RR(e,i[0],i[1]);return PR(function(){o.hasValue=!0,o.value=a},[a]),NR(a),a};yy.exports=wy;var jR=yy.exports;const TR=Ra(jR),{useSyncExternalStoreWithSelector:_R}=TR;function IR(e,t=e.getState,n){const r=_R(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return x.useDebugValue(r),r}const rm=e=>{const t=typeof e=="function"?SR(e):e,n=(r,s)=>IR(t,r,s);return Object.assign(n,t),n},AR=e=>e?rm(e):rm,xy=async e=>{const t=await X.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},LR=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)},MR=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)},DR=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)},FR=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)},zR=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)},UR=async({searchParams:e,entId:t,shares:n})=>await X.share().saveRights(e.app,t,n),BR=async({searchParams:e,params:t})=>await X.resource(e.app).update(t),VR=async e=>await X.rights().sessionHasWorkflowRights(e),HR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoView(t),qR=({searchParams:e,params:t})=>X.resource(e.app).create(t),QR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoPrint(t),KR=async({searchParams:e,params:t})=>await X.resource(e.app).publish(t),WR=async()=>await X.conf().getPreference("showOnboardingTrash"),ZR=async({onSuccess:e})=>{const t=await X.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function gf(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 GR(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===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 Li(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 Ey=(e,t,n)=>Li(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new pl(s))),r)),{app:XR,types:YR,filters:JR,orders:e8}=fl(),Le=AR()((e,t)=>({filters:JR,orders:e8,searchConfig:{minLength:1},searchParams:{app:XR,types:YR,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();HR({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]);QR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await KR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=GR(n,i),l=gf([...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:Ey(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=xi(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=xi(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),vf=()=>Le(e=>e.selectedNodesIds),ts=()=>Le(e=>e.treeData),t8=()=>Le(e=>e.selectedFolders),n8=()=>Le(e=>e.selectedResources),r8=()=>Le(e=>e.searchConfig),Mi=()=>Le(e=>e.folderIds),Di=()=>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},Cy=()=>Le(e=>e.resourceIsTrash),s8=()=>Le(e=>e.resourceActionDisable),i8=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},o8=()=>vf().length>1,a8=()=>Le(e=>e.status);function l8(){const{appCode:e}=gt(),{t}=ve(["common",e]),n=vf(),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 u8(e,{parentId:t,newFolder:n}){return Li(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=gf([...i,r.id]);return{...r,children:[...r.children||[],new pl({...n,ancestors:o})]}}else return r})}function c8(e,{folders:t}){return Li(e,n=>{if(!t.includes(n.id))return n})}function d8(e,{destinationId:t,folders:n}){return Li(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=gf([...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=xi(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 f8(e,{folderId:t,newFolder:n}){return Li(e,r=>r.id===t?new pl(n):r)}const{actions:sm,app:h8}=fl(),Ry=()=>Td({queryKey:["actions"],queryFn:async()=>{const e=sm.map(n=>n.workflow);return await VR(e)},select:e=>sm.map(t=>({...t,available:e[t.workflow]}))}),p8=()=>{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 y=[...((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:y.map(w=>new pl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ey(o,y,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})},pk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Mi(),i=ml(),o=Di(),a=gl().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:m,trashed:p}=n,y=["context",{folderId:m.folder,filters:m,trashed:p}];return sn({mutationFn:async()=>await DR({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:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;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))}})},C=c8(r,{folders:s});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},m8=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Mi(),s=ml(),i=Di(),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(y){typeof y=="string"&&e.error(Vt(y))},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([])}})},mk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Mi(),s=ml(),i=Di(),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 FR({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()}})},gk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Mi(),i=ml(),o=Di(),a=gl().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:m,trashed:p}=n,y=["context",{folderId:m.folder,filters:m,trashed:p}];return sn({mutationFn:async S=>await zR({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(y))return t.setQueryData(y,w=>{var b;if(w){const C=d8(r,{destinationId:g,folders:s}),k={...w,pages:w==null?void 0:w.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(C),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),k}})},onSettled:()=>{c(),u()}})},vk=()=>{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 LR({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(y=>({...y,folders:[...y.folders,d]}))},p=u8(r,{parentId:u.parentId,newFolder:d});return s(p),m}})}})},yk=()=>{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 MR({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)}))},y=f8(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{s([]),i([])}})},wk=()=>{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 UR({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(y=>y.actions.map(S=>`${y.type}:${y.id}:${S.id}`))]),{...m,rights:p}}else return m})}))}})},onSettled:()=>{r([]),s([])}})},xk=()=>{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 BR({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:y,slug:S,...g}=a;return{...d,...g,name:h,thumbnail:typeof m=="string"?m:URL.createObjectURL(m),public:p,description:y,slug:S}}else return d})}))}})}})},Sk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),{user:r}=Id(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return sn({mutationFn:async i=>await qR({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:h8,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:g8}=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=Di(),c=n8(),d=t8(),h=Mi(),m=rs(),p=m8(),y=Cy(),{openResource:S,printSelectedResource:g,openFolder:v,clearSelectedItems:w,clearSelectedIds:b}=Oe(),{data:C}=Ry();x.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){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(),w(),b())},D=T("move"),U=T("move"),E=T("delete"),O=T("delete"),A=T("publish"),$=T("publish"),N=T("edit_folder"),I=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?g8:C,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:E,isPublishModalOpen:n==="publish",onPublishCancel:$,onPublishSuccess:A,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:I,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:Z,onEditResourceSuccess:z,isShareResourceOpen:n==="share",onShareResourceCancel:an,onShareResourceSuccess:W,onClearActionBar:M}}function v8({roles:e,rights:t,action:n}){const[r,s]=x.useState(!1),{user:i}=Id(),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 y8({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=ve(),{overrideLabel:o}=ky(),{visible:a}=v8({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 w8=x.lazy(async()=>await ge(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Tooltip.js"])),x8=x.lazy(async()=>await ge(()=>import("./DeleteModal.js"),[])),S8=x.lazy(async()=>await ge(()=>import("./MoveModal.js"),[])),b8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),E8=x.lazy(async()=>await ge(()=>import("./EditResourceModal.js"),["EditResourceModal.js","index.esm.js","TextArea.js"])),C8=x.lazy(async()=>await ge(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","TextArea.js"]));function R8(){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:y,onShareResourceSuccess:S,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:b,onPublishCancel:C,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(Ea.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(y8,{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(S8,{isOpen:r,onCancel:g,onSuccess:v}),s&&f.jsx(x8,{isOpen:s,onCancel:w,onSuccess:b}),i&&f.jsx(C8,{isOpen:i,onCancel:C,onSuccess:k}),a&&f.jsx(b8,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(E8,{edit:!0,isOpen:d,onCancel:h,onSuccess:m}),p&&f.jsx(w8,{isOpen:p,onCancel:y,onSuccess:S})]})]})}const{http:bk}=Ny.instance(),k8={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},P8=()=>{var l;const{user:e,appCode:t}=gt(),n=k8[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}`}},O8=x.lazy(async()=>await ge(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),N8=x.lazy(async()=>await ge(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js"])),j8=x.lazy(async()=>await ge(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js"])),T8=x.lazy(async()=>await ge(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),_8=x.lazy(async()=>await ge(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),I8=x.lazy(async()=>await ge(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),A8=x.lazy(async()=>await ge(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),L8=()=>{const e=i8(),t=rs(),n=o8(),r=st(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=p8(),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(j8,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(N8,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(ze,{}),children:[f.jsx(I8,{data:s,isFetching:a}),f.jsx(A8,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(O8,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(T8,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(_8,{})}):null};function M8({isOpen:e,onCancel:t=()=>({})}){const{t:n}=ve();return Pi.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 D8=()=>{const e=st(),[t,n]=x.useState(""),r=$4(t,500),s=r8(),i=a8(),{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}},F8=()=>{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)==fo.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==fo.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)==fo.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}=F8(),{inputSearch:i,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=D8(),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(Z0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:i,onChange:o,onKeyDown:a}),f.jsx(b0,{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))})]})]})},z8=({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")})]})})})})})})})},U8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),B8=()=>{const e=rt(),{t}=ve(),[n,r]=F4(),s=ts(),i=rs(),o=vf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=Oe(),m=async y=>{await u(y,e)},p=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(ME,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:m}),f.jsx(z8,{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(U8,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},V8=()=>{const e=s8(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Oe();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},H8=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await WR();if(i){t(JSON.parse(i==null?void 0:i.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await ZR({onSuccess:()=>r(!1)})},setIsOpen:r}},q8=()=>{const e=Cy(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Oe();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},Q8=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},K8=x.lazy(async()=>await ge(()=>import("./OnboardingTrash.js"),[])),W8=x.lazy(async()=>await ge(()=>import("./AppAction.js"),[])),Z8=x.lazy(async()=>await ge(()=>import("./Library.js"),[])),G8=x.lazy(async()=>await ge(()=>import("./TrashedResourceModal.js"),[]));function X8(){const{currentApp:e}=gt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=H8(),{data:i}=Ry(),{isTrashedModalOpen:o,onTrashedCancel:a}=q8(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=V8();qS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=P8();return f.jsxs(f.Fragment,{children:[f.jsx(j3,{render:()=>Q8({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(W8,{})}):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(B8,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(Z8,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx($8,{}),f.jsx(l8,{}),f.jsx(L8,{})]}),f.jsx(R8,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(K8,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(G8,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(M8,{isOpen:l,onCancel:u})})]})]})}function Y8(){const{init:e}=gt();return e?e?f.jsx(wR,{children:f.jsx(X8,{})}):null:f.jsx(ze,{position:!1})}const J8=document.getElementById("root"),ek=new lw({queryCache:new Am({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});vy(J8).render(f.jsx(x.StrictMode,{children:f.jsxs(RS,{client:ek,children:[f.jsx(zS,{params:fl(),children:f.jsx(HS,{children:f.jsx(Y8,{})})}),f.jsx(xR,{initialIsOpen:!1})]})}));export{ok as $,Nt as A,Jr as B,n5 as C,f3 as D,Z0 as E,vc as F,I3 as G,sp as H,c0 as I,mk as J,pk as K,ze as L,Sn as M,rs as N,gk as O,t8 as P,rt as Q,Ky as R,v3 as S,ts as T,ME as U,Cs as V,ns as W,vk as X,yk as Y,ob as Z,ge as _,Pi as a,Sk as a0,Q8 as a1,$d as a2,bk as a3,k8 as a4,fl as a5,fr as a6,ak as a7,t3 as a8,pc as a9,Mi as aa,hk as ab,U4 as ac,Ea as ad,Ue as ae,Ra as af,Di as ag,lk as ah,uk as ai,fk as aj,X3 as ak,ck as al,Jg as am,Ha as b,F4 as c,gt as d,Oe as e,Ry as f,sk as g,_d as h,H as i,f as j,a5 as k,st as l,Id as m,$4 as n,n8 as o,xk as p,wk as q,x as r,Ot as s,ik as t,ve as u,rp as v,hc as w,Qa as x,Y4 as y,dk as z};
|