ode-explorer 1.0.5-dev.202310191217 → 1.0.5-dev.202310191218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ var Ry=Object.defineProperty;var ky=(e,t,n)=>t in e?Ry(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 xi=Symbol.for("react.element"),Ny=Symbol.for("react.portal"),jy=Symbol.for("react.fragment"),Ty=Symbol.for("react.strict_mode"),Iy=Symbol.for("react.profiler"),_y=Symbol.for("react.provider"),Ay=Symbol.for("react.context"),Ly=Symbol.for("react.forward_ref"),My=Symbol.for("react.suspense"),Dy=Symbol.for("react.memo"),Fy=Symbol.for("react.lazy"),yf=Symbol.iterator;function $y(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},am=Object.assign,lm={};function Zr(e,t,n){this.props=e,this.context=t,this.refs=lm,this.updater=n||om}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 um(){}um.prototype=Zr.prototype;function Ic(e,t,n){this.props=e,this.context=t,this.refs=lm,this.updater=n||om}var _c=Ic.prototype=new um;_c.constructor=Ic;am(_c,Zr.prototype);_c.isPureReactComponent=!0;var wf=Array.isArray,cm=Object.prototype.hasOwnProperty,Ac={current:null},dm={key:!0,ref:!0,__self:!0,__source:!0};function fm(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)cm.call(t,r)&&!dm.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:xi,type:e,key:i,ref:o,props:s,_owner:Ac.current}}function zy(e,t){return{$$typeof:xi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Lc(e){return typeof e=="object"&&e!==null&&e.$$typeof===xi}function Uy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xf=/\/+/g;function gl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Uy(""+e.key):t.toString(36)}function fo(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 xi:case Ny:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+gl(o,0):r,wf(s)?(n="",e!=null&&(n=e.replace(xf,"$&/")+"/"),fo(s,t,n,"",function(u){return u})):s!=null&&(Lc(s)&&(s=zy(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(xf,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",wf(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+gl(i,a);o+=fo(i,t,n,l,s)}else if(l=$y(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+gl(i,a++),o+=fo(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 Di(e,t,n){if(e==null)return e;var r=[],s=0;return fo(e,r,"","",function(i){return t.call(n,i,s++)}),r}function By(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 Ie={current:null},ho={transition:null},Vy={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:ho,ReactCurrentOwner:Ac};Q.Children={map:Di,forEach:function(e,t,n){Di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Di(e,function(){t++}),t},toArray:function(e){return Di(e,function(t){return t})||[]},only:function(e){if(!Lc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Zr;Q.Fragment=jy;Q.Profiler=Iy;Q.PureComponent=Ic;Q.StrictMode=Ty;Q.Suspense=My;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vy;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=am({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Ac.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)cm.call(t,l)&&!dm.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:xi,type:e.type,key:s,ref:i,props:r,_owner:o}};Q.createContext=function(e){return e={$$typeof:Ay,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_y,_context:e},e.Consumer=e};Q.createElement=fm;Q.createFactory=function(e){var t=fm.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Ly,render:e}};Q.isValidElement=Lc;Q.lazy=function(e){return{$$typeof:Fy,_payload:{_status:-1,_result:e},_init:By}};Q.memo=function(e,t){return{$$typeof:Dy,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=ho.transition;ho.transition={};try{e()}finally{ho.transition=t}};Q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Q.useCallback=function(e,t){return Ie.current.useCallback(e,t)};Q.useContext=function(e){return Ie.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};Q.useEffect=function(e,t){return Ie.current.useEffect(e,t)};Q.useId=function(){return Ie.current.useId()};Q.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return Ie.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};Q.useRef=function(e){return Ie.current.useRef(e)};Q.useState=function(e){return Ie.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return Ie.current.useTransition()};Q.version="18.2.0";im.exports=Q;var x=im.exports;const Hy=Ra(x),hm=rm({__proto__:null,default:Hy},[x]);/**
9
+ */var xi=Symbol.for("react.element"),Ny=Symbol.for("react.portal"),jy=Symbol.for("react.fragment"),Ty=Symbol.for("react.strict_mode"),Iy=Symbol.for("react.profiler"),_y=Symbol.for("react.provider"),Ay=Symbol.for("react.context"),Ly=Symbol.for("react.forward_ref"),My=Symbol.for("react.suspense"),Dy=Symbol.for("react.memo"),Fy=Symbol.for("react.lazy"),yf=Symbol.iterator;function $y(e){return e===null||typeof e!="object"?null:(e=yf&&e[yf]||e["@@iterator"],typeof e=="function"?e:null)}var om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},am=Object.assign,lm={};function Zr(e,t,n){this.props=e,this.context=t,this.refs=lm,this.updater=n||om}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 um(){}um.prototype=Zr.prototype;function _c(e,t,n){this.props=e,this.context=t,this.refs=lm,this.updater=n||om}var Ac=_c.prototype=new um;Ac.constructor=_c;am(Ac,Zr.prototype);Ac.isPureReactComponent=!0;var wf=Array.isArray,cm=Object.prototype.hasOwnProperty,Lc={current:null},dm={key:!0,ref:!0,__self:!0,__source:!0};function fm(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)cm.call(t,r)&&!dm.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:xi,type:e,key:i,ref:o,props:s,_owner:Lc.current}}function zy(e,t){return{$$typeof:xi,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===xi}function Uy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xf=/\/+/g;function vl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Uy(""+e.key):t.toString(36)}function fo(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 xi:case Ny:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+vl(o,0):r,wf(s)?(n="",e!=null&&(n=e.replace(xf,"$&/")+"/"),fo(s,t,n,"",function(u){return u})):s!=null&&(Mc(s)&&(s=zy(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(xf,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",wf(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+vl(i,a);o+=fo(i,t,n,l,s)}else if(l=$y(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+vl(i,a++),o+=fo(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 Di(e,t,n){if(e==null)return e;var r=[],s=0;return fo(e,r,"","",function(i){return t.call(n,i,s++)}),r}function By(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 Ie={current:null},ho={transition:null},Vy={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:ho,ReactCurrentOwner:Lc};Q.Children={map:Di,forEach:function(e,t,n){Di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Di(e,function(){t++}),t},toArray:function(e){return Di(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=jy;Q.Profiler=Iy;Q.PureComponent=_c;Q.StrictMode=Ty;Q.Suspense=My;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vy;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=am({},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)cm.call(t,l)&&!dm.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:xi,type:e.type,key:s,ref:i,props:r,_owner:o}};Q.createContext=function(e){return e={$$typeof:Ay,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_y,_context:e},e.Consumer=e};Q.createElement=fm;Q.createFactory=function(e){var t=fm.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Ly,render:e}};Q.isValidElement=Mc;Q.lazy=function(e){return{$$typeof:Fy,_payload:{_status:-1,_result:e},_init:By}};Q.memo=function(e,t){return{$$typeof:Dy,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=ho.transition;ho.transition={};try{e()}finally{ho.transition=t}};Q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Q.useCallback=function(e,t){return Ie.current.useCallback(e,t)};Q.useContext=function(e){return Ie.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};Q.useEffect=function(e,t){return Ie.current.useEffect(e,t)};Q.useId=function(){return Ie.current.useId()};Q.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return Ie.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};Q.useRef=function(e){return Ie.current.useRef(e)};Q.useState=function(e){return Ie.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return Ie.current.useTransition()};Q.version="18.2.0";im.exports=Q;var x=im.exports;const Hy=Ra(x),hm=rm({__proto__:null,default:Hy},[x]);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var Ry=Object.defineProperty;var ky=(e,t,n)=>t in e?Ry(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 qy=x,Qy=Symbol.for("react.element"),Ky=Symbol.for("react.fragment"),Wy=Object.prototype.hasOwnProperty,Zy=qy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gy={key:!0,ref:!0,__self:!0,__source:!0};function pm(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)Wy.call(t,r)&&!Gy.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:Qy,type:e,key:i,ref:o,props:s,_owner:Zy.current}}ka.Fragment=Ky;ka.jsx=pm;ka.jsxs=pm;sm.exports=ka;var f=sm.exports;const Xy={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class To{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Xy,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new To(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new To(this.logger,t)}}var Dt=new To;class Pa{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function ss(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Sf(e){return e==null?"":""+e}function Yy(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Mc(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function bf(e,t,n){const{obj:r,k:s}=Mc(e,t,Object);r[s]=n}function Jy(e,t,n,r){const{obj:s,k:i}=Mc(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}=Mc(e,t);if(n)return n[r]}function e2(e,t,n){const r=Io(e,n);return r!==void 0?r:Io(t,n)}function mm(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]):mm(e[r],t[r],n):e[r]=t[r]);return e}function ur(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var t2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function n2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>t2[t]):e}const r2=[" ",",","?","!",";"];function s2(e,t,n){t=t||"",n=n||"";const r=r2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function _o(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(i+o).join(n);return u?_o(l,u,n):void 0}s=s[r[i]]}return s}function Ao(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Cf extends Pa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=Io(this.data,a);return l||!o||typeof r!="string"?l:_o(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),bf(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=Io(this.data,a)||{};s?mm(l,r,i):l={...l,...r},bf(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var gm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Ef={};class Lo extends Pa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Yy(["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&&!s2(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 g=d&&d.usedKey||o,p=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),S=["[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")&&S.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 b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,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]",E=b?[]:{},k=b?p:g;for(const R in h)if(Object.prototype.hasOwnProperty.call(h,R)){const P=`${k}${i}${R}`;E[R]=this.translate(P,{...n,joinArrays:!1,ns:a}),E[R]===P&&(E[R]=h[R])}h=E}}else if(v&&typeof m=="string"&&y==="[object Array]")h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,E=!1;const k=n.count!==void 0&&typeof n.count!="string",R=Lo.hasDefaultValue(n),P=k?this.pluralResolver.getSuffix(u,n.count,n):"",L=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",M=n[`defaultValue${P}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(h)&&R&&(b=!0,h=M),this.isValidLookup(h)||(E=!0,h=o);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:h,U=R&&M!==h&&this.options.updateMissing;if(E||b||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,o,U?M:h),i){const $=this.resolve(o,{...n,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let C=[];const O=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&O&&O[0])for(let $=0;$<O.length;$++)C.push(O[$]);else this.options.saveMissingTo==="all"?C=this.languageUtils.toResolveHierarchy(n.lng||this.language):C.push(n.lng||this.language);const A=($,N,_)=>{const z=R&&_!==h?_:D;this.options.missingKeyHandler?this.options.missingKeyHandler($,l,N,z,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,l,N,z,U,n),this.emit("missingKey",$,l,N,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?C.forEach($=>{this.pluralResolver.getSuffixes($,n).forEach(N=>{A([$],o+N,n[`defaultValue${N}`]||M)})}):A(C,o,M))}h=this.extendTranslation(h,t,n,d,r),E&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,b?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),g=h&&h.length;c<g&&(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,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return i&&i[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=gm.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",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(S=>{this.isValidLookup(r)||(a=S,!Ef[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Ef[`${y[0]}-${S}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(m=>{if(this.isValidLookup(r))return;o=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,S,n);else{let b;h&&(b=this.pluralResolver.getSuffix(m,n.count,n));const E=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+b),n.ordinal&&b.indexOf(k)===0&&v.push(c+b.replace(k,this.options.pluralSeparator)),g&&v.push(c+E)),p){const R=`${c}${this.options.contextSeparator}${n.context}`;v.push(R),h&&(v.push(R+b),n.ordinal&&b.indexOf(k)===0&&v.push(R+b.replace(k,this.options.pluralSeparator)),g&&v.push(R+E))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(i=w,r=this.getResource(m,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 vl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Rf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(t){if(t=Ao(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ao(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=vl(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]=vl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=vl(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 i2=[{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}],o2={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 a2=["v1","v2","v3"],l2=["v4"],kf={zero:0,one:1,two:2,few:3,many:4,other:5};function u2(){const e={};return i2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:o2[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=Dt.create("pluralResolver"),(!this.options.compatibilityJSON||l2.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=u2()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ao(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>kf[s]-kf[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!a2.includes(this.options.compatibilityJSON)}}function Pf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e2(e,t,n);return!i&&s&&typeof n=="string"&&(i=_o(e,n,r),i===void 0&&(i=_o(t,n,r))),i}class d2{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:n2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ur(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ur(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ur(n.nestingPrefix):n.nestingPrefixEscaped||ur("$t("),this.nestingSuffix=n.nestingSuffix?ur(n.nestingSuffix):n.nestingSuffixEscaped||ur(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=Pf(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),S=y.shift().trim(),m=y.join(this.formatSeparator).trim();return this.format(Pf(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),m,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 m=d(t,i,s);o=typeof m=="string"?m:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Sf(o));const S=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 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(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Sf(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function f2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function cr(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(Ao(s),i),t[o]=a),a(r)}}class h2{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}=f2(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},g=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,g,{...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 p2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class m2 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=>{Jy(l.loaded,[i],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 s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,l):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Of(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Fi(){}function g2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Bs extends Pa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nf(t),this.services={},this.logger=Dt,this.modules={external:[]},g2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Of();this.options={...s,...this.options,...Nf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Dt.init(i(this.modules.logger),this.options):Dt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=h2);const d=new Rf(this.options);this.store=new Cf(this.options.resources,this.options);const h=this.services;h.logger=Dt,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new c2(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 d2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new m2(i(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),S=1;S<p;S++)y[S-1]=arguments[S];t.emit(g,...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 Lo(this.services,this.options),this.translator.on("*",function(g){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(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Fi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ss(),u=()=>{const c=(d,h)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fi;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode")return r();const i=[],o=a=>{if(!a)return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=ss();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Fi),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&gm.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 g;return l.keyPrefix&&Array.isArray(o)?g=o.map(p=>`${l.keyPrefix}${h}${p}`):g=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(g,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=ss();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ss();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Rf(Of());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Bs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new Bs(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Cf(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Lo(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pe=Bs.createInstance();Pe.createInstance=Bs.createInstance;Pe.createInstance;Pe.dir;Pe.init;Pe.loadResources;Pe.reloadResources;Pe.use;Pe.changeLanguage;Pe.getFixedT;const Vt=Pe.t;Pe.exists;Pe.setDefaultNamespace;Pe.hasLoadedNamespace;Pe.loadNamespaces;Pe.loadLanguages;function iu(e){"@babel/helpers - typeof";return iu=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},iu(e)}var vm=[],v2=vm.forEach,y2=vm.slice;function ou(e){return v2.call(y2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function ym(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":iu(XMLHttpRequest))==="object"}function w2(e){return!!e&&typeof e.then=="function"}function x2(e){return w2(e)?e:Promise.resolve(e)}function S2(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 au={exports:{}},$i={exports:{}},jf;function b2(){return jf||(jf=1,function(e,t){var n=typeof self<"u"?self:Ue,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function l(C){return C&&DataView.prototype.isPrototypeOf(C)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(C){return C&&u.indexOf(Object.prototype.toString.call(C))>-1};function d(C){if(typeof C!="string"&&(C=String(C)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(C))throw new TypeError("Invalid character in header field name");return C.toLowerCase()}function h(C){return typeof C!="string"&&(C=String(C)),C}function g(C){var O={next:function(){var A=C.shift();return{done:A===void 0,value:A}}};return a.iterable&&(O[Symbol.iterator]=function(){return O}),O}function p(C){this.map={},C instanceof p?C.forEach(function(O,A){this.append(A,O)},this):Array.isArray(C)?C.forEach(function(O){this.append(O[0],O[1])},this):C&&Object.getOwnPropertyNames(C).forEach(function(O){this.append(O,C[O])},this)}p.prototype.append=function(C,O){C=d(C),O=h(O);var A=this.map[C];this.map[C]=A?A+", "+O:O},p.prototype.delete=function(C){delete this.map[d(C)]},p.prototype.get=function(C){return C=d(C),this.has(C)?this.map[C]:null},p.prototype.has=function(C){return this.map.hasOwnProperty(d(C))},p.prototype.set=function(C,O){this.map[d(C)]=h(O)},p.prototype.forEach=function(C,O){for(var A in this.map)this.map.hasOwnProperty(A)&&C.call(O,this.map[A],A,this)},p.prototype.keys=function(){var C=[];return this.forEach(function(O,A){C.push(A)}),g(C)},p.prototype.values=function(){var C=[];return this.forEach(function(O){C.push(O)}),g(C)},p.prototype.entries=function(){var C=[];return this.forEach(function(O,A){C.push([A,O])}),g(C)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(C){if(C.bodyUsed)return Promise.reject(new TypeError("Already read"));C.bodyUsed=!0}function S(C){return new Promise(function(O,A){C.onload=function(){O(C.result)},C.onerror=function(){A(C.error)}})}function m(C){var O=new FileReader,A=S(O);return O.readAsArrayBuffer(C),A}function v(C){var O=new FileReader,A=S(O);return O.readAsText(C),A}function w(C){for(var O=new Uint8Array(C),A=new Array(O.length),$=0;$<O.length;$++)A[$]=String.fromCharCode(O[$]);return A.join("")}function b(C){if(C.slice)return C.slice(0);var O=new Uint8Array(C.byteLength);return O.set(new Uint8Array(C)),O.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(C){this._bodyInit=C,C?typeof C=="string"?this._bodyText=C:a.blob&&Blob.prototype.isPrototypeOf(C)?this._bodyBlob=C:a.formData&&FormData.prototype.isPrototypeOf(C)?this._bodyFormData=C:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)?this._bodyText=C.toString():a.arrayBuffer&&a.blob&&l(C)?(this._bodyArrayBuffer=b(C.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(C)||c(C))?this._bodyArrayBuffer=b(C):this._bodyText=C=Object.prototype.toString.call(C):this._bodyText="",this.headers.get("content-type")||(typeof C=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var C=y(this);if(C)return C;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var C=y(this);if(C)return C;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(C){var O=C.toUpperCase();return k.indexOf(O)>-1?O:C}function P(C,O){O=O||{};var A=O.body;if(C instanceof P){if(C.bodyUsed)throw new TypeError("Already read");this.url=C.url,this.credentials=C.credentials,O.headers||(this.headers=new p(C.headers)),this.method=C.method,this.mode=C.mode,this.signal=C.signal,!A&&C._bodyInit!=null&&(A=C._bodyInit,C.bodyUsed=!0)}else this.url=String(C);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new p(O.headers)),this.method=R(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(A)}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function L(C){var O=new FormData;return C.trim().split("&").forEach(function(A){if(A){var $=A.split("="),N=$.shift().replace(/\+/g," "),_=$.join("=").replace(/\+/g," ");O.append(decodeURIComponent(N),decodeURIComponent(_))}}),O}function M(C){var O=new p,A=C.replace(/\r?\n[\t ]+/g," ");return A.split(/\r?\n/).forEach(function($){var N=$.split(":"),_=N.shift().trim();if(_){var z=N.join(":").trim();O.append(_,z)}}),O}E.call(P.prototype);function T(C,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new p(O.headers),this.url=O.url||"",this._initBody(C)}E.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},T.error=function(){var C=new T(null,{status:0,statusText:""});return C.type="error",C};var D=[301,302,303,307,308];T.redirect=function(C,O){if(D.indexOf(O)===-1)throw new RangeError("Invalid status code");return new T(null,{status:O,headers:{location:C}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,A){this.message=O,this.name=A;var $=Error(O);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function U(C,O){return new Promise(function(A,$){var N=new P(C,O);if(N.signal&&N.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var _=new XMLHttpRequest;function z(){_.abort()}_.onload=function(){var Z={status:_.status,statusText:_.statusText,headers:M(_.getAllResponseHeaders()||"")};Z.url="responseURL"in _?_.responseURL:Z.headers.get("X-Request-URL");var W="response"in _?_.response:_.responseText;A(new T(W,Z))},_.onerror=function(){$(new TypeError("Network request failed"))},_.ontimeout=function(){$(new TypeError("Network request failed"))},_.onabort=function(){$(new o.DOMException("Aborted","AbortError"))},_.open(N.method,N.url,!0),N.credentials==="include"?_.withCredentials=!0:N.credentials==="omit"&&(_.withCredentials=!1),"responseType"in _&&a.blob&&(_.responseType="blob"),N.headers.forEach(function(Z,W){_.setRequestHeader(W,Z)}),N.signal&&(N.signal.addEventListener("abort",z),_.onreadystatechange=function(){_.readyState===4&&N.signal.removeEventListener("abort",z)}),_.send(typeof N._bodyInit>"u"?null:N._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=p,i.Request=P,i.Response=T),o.Headers=p,o.Request=P,o.Response=T,o.fetch=U,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}($i,$i.exports)),$i.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ue<"u"&&Ue.fetch?n=Ue.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof S2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||b2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(au,au.exports);var wm=au.exports;const xm=Ra(wm),Tf=rm({__proto__:null,default:xm},[wm]);function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}var Gt;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Gt=global.fetch:typeof window<"u"&&window.fetch?Gt=window.fetch:Gt=fetch);var Vs;ym()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var Do;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Do=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Do=window.ActiveXObject));!Gt&&Tf&&!Vs&&!Do&&(Gt=xm||Tf);typeof Gt!="function"&&(Gt=void 0);var lu=function(t,n){if(n&&Mo(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},If=function(t,n,r){Gt(t,n).then(function(s){if(!s.ok)return r(s.statusText||"Error",{status:s.status});s.text().then(function(i){r(null,{status:s.status,data:i})}).catch(r)}).catch(r)},_f=!1,C2=function(t,n,r,s){t.queryStringParams&&(n=lu(n,t.queryStringParams));var i=ou({},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=ou({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},_f?{}:o);try{If(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),If(n,a,s),_f=!0}catch(u){s(u)}}},E2=function(t,n,r,s){r&&Mo(r)==="object"&&(r=lu("",r).slice(1)),t.queryStringParams&&(n=lu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new Do("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},R2=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Gt&&n.indexOf("file:")!==0)return C2(t,n,r,s);if(ym()||typeof ActiveXObject=="function")return E2(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 k2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sm(r.key),r)}}function P2(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O2(e,t,n){return t=Sm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sm(e){var t=N2(e,"string");return Hs(t)==="symbol"?t:String(t)}function N2(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 j2=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 O2({},r,s||"")},parseLoadPayload:function(n,r){},request:R2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},bm=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]:{};k2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return P2(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=ou(s,this.options||{},j2()),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=x2(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,g;try{typeof d.data=="string"?h=o.options.parse(d.data,s,i):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,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 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,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(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){s.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),s.loaded("".concat(c,"|").concat(d),h,g)})})})}}}]),e}();bm.type="backend";function T2(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Lf={};function uu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Lf[t[0]]||(typeof t[0]=="string"&&(Lf[t[0]]=new Date),T2(...t))}const Cm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Mf(e,t,n){e.loadNamespaces(t,Cm(e,n))}function Df(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Cm(e,r))}function I2(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 _2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(uu("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}}):I2(e,t,n)}const A2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,L2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},M2=e=>L2[e],D2=e=>e.replace(A2,M2);let cu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:D2};function F2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cu={...cu,...e}}function $2(){return cu}let Em;function z2(e){Em=e}function U2(){return Em}const B2={type:"3rdParty",init(e){F2(e.options.react),z2(e)}},V2=x.createContext();class H2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q2=(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(V2)||{},i=n||r||U2();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new H2),!i){uu("You will need to pass in an i18next instance by using initReactI18next");const w=(E,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(E)?E[E.length-1]:E,b=[w,{},!1];return b.t=w,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&uu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...$2(),...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=>_2(w,i,o));function d(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,g]=x.useState(d);let p=u.join();t.lng&&(p=`${t.lng}${p}`);const y=q2(p),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Df(i,t.lng,u,()=>{S.current&&g(d)}):Mf(i,u,()=>{S.current&&g(d)})),c&&y&&y!==p&&S.current&&g(d);function E(){S.current&&g(d)}return w&&i&&i.on(w,E),b&&i&&i.store.on(b,E),()=>{S.current=!1,w&&i&&w.split(" ").forEach(k=>i.off(k,E)),b&&i&&b.split(" ").forEach(k=>i.store.off(k,E))}},[i,p]);const m=x.useRef(!0);x.useEffect(()=>{S.current&&!m.current&&g(d),m.current=!1},[i,l]);const v=[h,i,c];if(v.t=h,v.i18n=i,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?Df(i,t.lng,u,()=>w()):Mf(i,u,()=>w())})}Pe.use(bm).use(B2).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 Q2(e,t){return typeof e=="function"?e(t):e}function du(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pr(e,t,n){return Si(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function K2(e,t,n){return Si(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function dn(e,t,n){return Si(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ff(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(Si(o)){if(r){if(t.queryHash!==Dc(o,t.options))return!1}else if(!Fo(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function $f(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(Si(i)){if(!t.options.mutationKey)return!1;if(n){if(qn(t.options.mutationKey)!==qn(i))return!1}else if(!Fo(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function Dc(e,t){return((t==null?void 0:t.queryKeyHashFn)||qn)(e)}function qn(e){return JSON.stringify(e,(t,n)=>fu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Fo(e,t){return km(e,t)}function km(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!km(e[n],t[n])):!1}function Pm(e,t){if(e===t)return e;const n=zf(e)&&zf(t);if(n||fu(e)&&fu(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]=Pm(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function $o(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fu(e){if(!Uf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Uf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Uf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Si(e){return Array.isArray(e)}function Om(e){return new Promise(t=>{setTimeout(t,e)})}function Bf(e){Om(0).then(e)}function W2(){if(typeof AbortController=="function")return new AbortController}function hu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Pm(e,t):t}class Z2 extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const zo=new Z2,Vf=["online","offline"];class G2 extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return Vf.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Vf.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Uo=new G2;function X2(e){return Math.min(1e3*2**e,3e4)}function Oa(e){return(e??"online")==="online"?Uo.isOnline():!0}class Nm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function po(e){return e instanceof Nm}function jm(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((S,m)=>{i=S,o=m}),l=S=>{r||(g(new Nm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!zo.isFocused()||e.networkMode!=="always"&&!Uo.isOnline(),h=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),s==null||s(),i(S))},g=S=>{r||(r=!0,e.onError==null||e.onError(S),s==null||s(),o(S))},p=()=>new Promise(S=>{s=m=>{const v=r||!d();return v&&S(m),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(m){S=Promise.reject(m)}Promise.resolve(S).then(h).catch(m=>{var v,w;if(r)return;const b=(v=e.retry)!=null?v:3,E=(w=e.retryDelay)!=null?w:X2,k=typeof E=="function"?E(n,m):E,R=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,m);if(t||!R){g(m);return}n++,e.onFail==null||e.onFail(n,m),Om(k).then(()=>{if(d())return p()}).then(()=>{t?g(m):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 Fc=console;function Y2(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},i=c=>{t?e.push(c):Bf(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&Bf(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ae=Y2();class Tm{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),du(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 J2 extends Tm{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Fc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||ew(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=hu(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||!Rm(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 g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const o=W2(),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!==((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=g=>{if(po(g)&&g.silent||this.dispatch({type:"error",error:g}),!po(g)){var p,y,S,m;(p=(y=this.cache.config).onError)==null||p.call(y,g,this),(S=(m=this.cache.config).onSettled)==null||S.call(m,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=jm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var p,y,S,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),(S=(m=this.cache.config).onSettled)==null||S.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 s,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:Oa(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return po(o)&&o.revert&&this.revertState?{...this.revertState}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function ew(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 Im 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:Dc(i,n);let a=this.get(o);return a||(a=new J2({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=dn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Ff(r,s))}findAll(t,n){const[r]=dn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>Ff(r,s)):this.queries}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ae.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class tw extends Tm{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Fc,this.observers=[],this.state=t.state||_m(),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=jm({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,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 P=await((g=(p=this.options).onMutate)==null?void 0:g.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,m,v,w,b,E,k;throw await((y=(S=this.mutationCache.config).onError)==null?void 0:y.call(S,R,this.state.variables,this.state.context,this)),await((m=(v=this.options).onError)==null?void 0:m.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((E=(k=this.options).onSettled)==null?void 0:E.call(k,void 0,R,this.state.variables,this.state.context)),R}finally{this.dispatch({type:"error",error:R})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Oa(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function _m(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class nw extends Gr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new tw({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(s),s}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ae.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>$f(t,n))}findAll(t){return this.mutations.filter(n=>$f(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ae.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(ot)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function pu(){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)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let p=g,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}})},m=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=m(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:mu(e.options,h);b=w(h,k,R)}else if(d){const k=typeof u<"u",R=k?u:Am(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,g[0]):Promise.resolve(v([],g[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?g[P]:mu(e.options,L);return w(L,k,T)}return Promise.resolve(v(L,g[P],h[P]))})}return b.then(k=>({pages:k,pageParams:p}))}}}}function mu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Am(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function rw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=mu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function sw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Am(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class iw{constructor(t={}){this.queryCache=t.queryCache||new Im,this.mutationCache=t.mutationCache||new nw,this.logger=t.logger||Fc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=zo.subscribe(()=>{zo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Uo.subscribe(()=>{Uo.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=dn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const s=pr(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=Q2(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=pu(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ot).catch(ot)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(s=>qn(t)===qn(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Fo(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>qn(t)===qn(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Fo(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Dc(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 Lm extends Gr{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Hf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return gu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return gu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),$o(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&qf(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return aw(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||!du(this.options.staleTime))return;const n=Rm(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||!du(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||zo.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,s=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:h,error:g,errorUpdatedAt:p,fetchStatus:y,status:S}=d,m=!1,v=!1,w;if(n._optimisticResults){const P=this.hasListeners(),L=!P&&Hf(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,m=!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=hu(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=hu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(g=this.selectError,w=this.selectResult,p=Date.now(),S="error");const b=y==="fetching",E=S==="loading",k=S==="error";return{status:S,fetchStatus:y,isLoading:E,isSuccess:S==="success",isError:k,isInitialLoading:E&&b,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:b,isRefetching:b&&!E,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:$c(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,$o(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!po(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ae.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function ow(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return ow(e,t)||e.state.dataUpdatedAt>0&&gu(e,t,t.refetchOnMount)}function gu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&$c(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")&&$c(e,n)}function $c(e,t){return e.isStaleByTime(t.staleTime)}function aw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!$o(e.getCurrentResult(),t)}class lw extends Lm{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:pu()},n)}getOptimisticResult(t){return t.behavior=pu(),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,g=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:rw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:sw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:g,isFetchingPreviousPage:p,isRefetching:h&&!g&&!p}}}let uw=class extends Gr{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),$o(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:_m(),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 Mm={exports:{}},tt={},Dm={exports:{}},Fm={};/**
17
+ */var qy=x,Qy=Symbol.for("react.element"),Ky=Symbol.for("react.fragment"),Wy=Object.prototype.hasOwnProperty,Zy=qy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gy={key:!0,ref:!0,__self:!0,__source:!0};function pm(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)Wy.call(t,r)&&!Gy.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:Qy,type:e,key:i,ref:o,props:s,_owner:Zy.current}}ka.Fragment=Ky;ka.jsx=pm;ka.jsxs=pm;sm.exports=ka;var f=sm.exports;const Xy={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class To{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Xy,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new To(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new To(this.logger,t)}}var Dt=new To;class Pa{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function ss(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Sf(e){return e==null?"":""+e}function Yy(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Dc(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function bf(e,t,n){const{obj:r,k:s}=Dc(e,t,Object);r[s]=n}function Jy(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 e2(e,t,n){const r=Io(e,n);return r!==void 0?r:Io(t,n)}function mm(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]):mm(e[r],t[r],n):e[r]=t[r]);return e}function ur(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var t2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function n2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>t2[t]):e}const r2=[" ",",","?","!",";"];function s2(e,t,n){t=t||"",n=n||"";const r=r2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function _o(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(i+o).join(n);return u?_o(l,u,n):void 0}s=s[r[i]]}return s}function Ao(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Cf extends Pa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=Io(this.data,a);return l||!o||typeof r!="string"?l:_o(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),bf(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=Io(this.data,a)||{};s?mm(l,r,i):l={...l,...r},bf(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var gm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Ef={};class Lo extends Pa{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Yy(["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&&!s2(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 g=d&&d.usedKey||o,p=d&&d.exactUsedKey||o,w=Object.prototype.toString.apply(h),S=["[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")&&S.indexOf(w)<0&&!(typeof m=="string"&&w==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(d.res=b,d):b}if(i){const b=w==="[object Array]",E=b?[]:{},k=b?p:g;for(const R in h)if(Object.prototype.hasOwnProperty.call(h,R)){const P=`${k}${i}${R}`;E[R]=this.translate(P,{...n,joinArrays:!1,ns:a}),E[R]===P&&(E[R]=h[R])}h=E}}else if(v&&typeof m=="string"&&w==="[object Array]")h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,E=!1;const k=n.count!==void 0&&typeof n.count!="string",R=Lo.hasDefaultValue(n),P=k?this.pluralResolver.getSuffix(u,n.count,n):"",L=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",M=n[`defaultValue${P}`]||n[`defaultValue${L}`]||n.defaultValue;!this.isValidLookup(h)&&R&&(b=!0,h=M),this.isValidLookup(h)||(E=!0,h=o);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:h,U=R&&M!==h&&this.options.updateMissing;if(E||b||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,o,U?M:h),i){const $=this.resolve(o,{...n,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let C=[];const O=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&O&&O[0])for(let $=0;$<O.length;$++)C.push(O[$]);else this.options.saveMissingTo==="all"?C=this.languageUtils.toResolveHierarchy(n.lng||this.language):C.push(n.lng||this.language);const A=($,N,_)=>{const z=R&&_!==h?_:D;this.options.missingKeyHandler?this.options.missingKeyHandler($,l,N,z,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,l,N,z,U,n),this.emit("missingKey",$,l,N,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?C.forEach($=>{this.pluralResolver.getSuffixes($,n).forEach(N=>{A([$],o+N,n[`defaultValue${N}`]||M)})}):A(C,o,M))}h=this.extendTranslation(h,t,n,d,r),E&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,b?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),g=h&&h.length;c<g&&(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,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return i&&i[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=gm.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",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!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{this.isValidLookup(r)||(a=S,!Ef[`${w[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Ef[`${w[0]}-${S}`]=!0,this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(m=>{if(this.isValidLookup(r))return;o=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,S,n);else{let b;h&&(b=this.pluralResolver.getSuffix(m,n.count,n));const E=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+b),n.ordinal&&b.indexOf(k)===0&&v.push(c+b.replace(k,this.options.pluralSeparator)),g&&v.push(c+E)),p){const R=`${c}${this.options.contextSeparator}${n.context}`;v.push(R),h&&(v.push(R+b),n.ordinal&&b.indexOf(k)===0&&v.push(R+b.replace(k,this.options.pluralSeparator)),g&&v.push(R+E))}}let y;for(;y=v.pop();)this.isValidLookup(r)||(i=y,r=this.getResource(m,S,y,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function yl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Rf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(t){if(t=Ao(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ao(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=yl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=yl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=yl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let i2=[{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}],o2={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 a2=["v1","v2","v3"],l2=["v4"],kf={zero:0,one:1,two:2,few:3,many:4,other:5};function u2(){const e={};return i2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:o2[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=Dt.create("pluralResolver"),(!this.options.compatibilityJSON||l2.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=u2()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ao(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>kf[s]-kf[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!a2.includes(this.options.compatibilityJSON)}}function Pf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e2(e,t,n);return!i&&s&&typeof n=="string"&&(i=_o(e,n,r),i===void 0&&(i=_o(t,n,r))),i}class d2{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:n2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ur(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ur(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ur(n.nestingPrefix):n.nestingPrefixEscaped||ur("$t("),this.nestingSuffix=n.nestingSuffix?ur(n.nestingSuffix):n.nestingSuffixEscaped||ur(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=Pf(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:p}):v}const w=p.split(this.formatSeparator),S=w.shift().trim(),m=w.join(this.formatSeparator).trim();return this.format(Pf(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...s,...n,interpolationkey:S})};this.resetRegExp();const d=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(t);){const w=i[1].trim();if(o=c(w),o===void 0)if(typeof d=="function"){const m=d(t,i,s);o=typeof m=="string"?m:""}else if(s&&Object.prototype.hasOwnProperty.call(s,w))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Sf(o));const S=p.safeValue(o);if(t=t.replace(i[0],S),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const 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(w){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,w),`${l}${c}${h}`}return delete o.defaultValue,l}for(;s=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Sf(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function f2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function cr(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(Ao(s),i),t[o]=a),a(r)}}class h2{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}=f2(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},g=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,g,{...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 p2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class m2 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=>{Jy(l.loaded,[i],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 s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,l):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Of(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Fi(){}function g2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Bs extends Pa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nf(t),this.services={},this.logger=Dt,this.modules={external:[]},g2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Of();this.options={...s,...this.options,...Nf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Dt.init(i(this.modules.logger),this.options):Dt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=h2);const d=new Rf(this.options);this.store=new Cf(this.options.resources,this.options);const h=this.services;h.logger=Dt,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new c2(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 d2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new m2(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(g){for(var p=arguments.length,w=new Array(p>1?p-1:0),S=1;S<p;S++)w[S-1]=arguments[S];t.emit(g,...w)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Lo(this.services,this.options),this.translator.on("*",function(g){for(var p=arguments.length,w=new Array(p>1?p-1:0),S=1;S<p;S++)w[S-1]=arguments[S];t.emit(g,...w)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Fi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ss(),u=()=>{const c=(d,h)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fi;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode")return r();const i=[],o=a=>{if(!a)return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=ss();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Fi),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&gm.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 g;return l.keyPrefix&&Array.isArray(o)?g=o.map(p=>`${l.keyPrefix}${h}${p}`):g=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(g,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=ss();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ss();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Rf(Of());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Bs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new Bs(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Cf(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Lo(i.services,s),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pe=Bs.createInstance();Pe.createInstance=Bs.createInstance;Pe.createInstance;Pe.dir;Pe.init;Pe.loadResources;Pe.reloadResources;Pe.use;Pe.changeLanguage;Pe.getFixedT;const Vt=Pe.t;Pe.exists;Pe.setDefaultNamespace;Pe.hasLoadedNamespace;Pe.loadNamespaces;Pe.loadLanguages;function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}var vm=[],v2=vm.forEach,y2=vm.slice;function au(e){return v2.call(y2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function ym(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":ou(XMLHttpRequest))==="object"}function w2(e){return!!e&&typeof e.then=="function"}function x2(e){return w2(e)?e:Promise.resolve(e)}function S2(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lu={exports:{}},$i={exports:{}},jf;function b2(){return jf||(jf=1,function(e,t){var n=typeof self<"u"?self:Ue,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function l(C){return C&&DataView.prototype.isPrototypeOf(C)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(C){return C&&u.indexOf(Object.prototype.toString.call(C))>-1};function d(C){if(typeof C!="string"&&(C=String(C)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(C))throw new TypeError("Invalid character in header field name");return C.toLowerCase()}function h(C){return typeof C!="string"&&(C=String(C)),C}function g(C){var O={next:function(){var A=C.shift();return{done:A===void 0,value:A}}};return a.iterable&&(O[Symbol.iterator]=function(){return O}),O}function p(C){this.map={},C instanceof p?C.forEach(function(O,A){this.append(A,O)},this):Array.isArray(C)?C.forEach(function(O){this.append(O[0],O[1])},this):C&&Object.getOwnPropertyNames(C).forEach(function(O){this.append(O,C[O])},this)}p.prototype.append=function(C,O){C=d(C),O=h(O);var A=this.map[C];this.map[C]=A?A+", "+O:O},p.prototype.delete=function(C){delete this.map[d(C)]},p.prototype.get=function(C){return C=d(C),this.has(C)?this.map[C]:null},p.prototype.has=function(C){return this.map.hasOwnProperty(d(C))},p.prototype.set=function(C,O){this.map[d(C)]=h(O)},p.prototype.forEach=function(C,O){for(var A in this.map)this.map.hasOwnProperty(A)&&C.call(O,this.map[A],A,this)},p.prototype.keys=function(){var C=[];return this.forEach(function(O,A){C.push(A)}),g(C)},p.prototype.values=function(){var C=[];return this.forEach(function(O){C.push(O)}),g(C)},p.prototype.entries=function(){var C=[];return this.forEach(function(O,A){C.push([A,O])}),g(C)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function w(C){if(C.bodyUsed)return Promise.reject(new TypeError("Already read"));C.bodyUsed=!0}function S(C){return new Promise(function(O,A){C.onload=function(){O(C.result)},C.onerror=function(){A(C.error)}})}function m(C){var O=new FileReader,A=S(O);return O.readAsArrayBuffer(C),A}function v(C){var O=new FileReader,A=S(O);return O.readAsText(C),A}function y(C){for(var O=new Uint8Array(C),A=new Array(O.length),$=0;$<O.length;$++)A[$]=String.fromCharCode(O[$]);return A.join("")}function b(C){if(C.slice)return C.slice(0);var O=new Uint8Array(C.byteLength);return O.set(new Uint8Array(C)),O.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(C){this._bodyInit=C,C?typeof C=="string"?this._bodyText=C:a.blob&&Blob.prototype.isPrototypeOf(C)?this._bodyBlob=C:a.formData&&FormData.prototype.isPrototypeOf(C)?this._bodyFormData=C:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)?this._bodyText=C.toString():a.arrayBuffer&&a.blob&&l(C)?(this._bodyArrayBuffer=b(C.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(C)||c(C))?this._bodyArrayBuffer=b(C):this._bodyText=C=Object.prototype.toString.call(C):this._bodyText="",this.headers.get("content-type")||(typeof C=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var C=w(this);if(C)return C;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?w(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var C=w(this);if(C)return C;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(L)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function R(C){var O=C.toUpperCase();return k.indexOf(O)>-1?O:C}function P(C,O){O=O||{};var A=O.body;if(C instanceof P){if(C.bodyUsed)throw new TypeError("Already read");this.url=C.url,this.credentials=C.credentials,O.headers||(this.headers=new p(C.headers)),this.method=C.method,this.mode=C.mode,this.signal=C.signal,!A&&C._bodyInit!=null&&(A=C._bodyInit,C.bodyUsed=!0)}else this.url=String(C);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new p(O.headers)),this.method=R(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(A)}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function L(C){var O=new FormData;return C.trim().split("&").forEach(function(A){if(A){var $=A.split("="),N=$.shift().replace(/\+/g," "),_=$.join("=").replace(/\+/g," ");O.append(decodeURIComponent(N),decodeURIComponent(_))}}),O}function M(C){var O=new p,A=C.replace(/\r?\n[\t ]+/g," ");return A.split(/\r?\n/).forEach(function($){var N=$.split(":"),_=N.shift().trim();if(_){var z=N.join(":").trim();O.append(_,z)}}),O}E.call(P.prototype);function T(C,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new p(O.headers),this.url=O.url||"",this._initBody(C)}E.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},T.error=function(){var C=new T(null,{status:0,statusText:""});return C.type="error",C};var D=[301,302,303,307,308];T.redirect=function(C,O){if(D.indexOf(O)===-1)throw new RangeError("Invalid status code");return new T(null,{status:O,headers:{location:C}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,A){this.message=O,this.name=A;var $=Error(O);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function U(C,O){return new Promise(function(A,$){var N=new P(C,O);if(N.signal&&N.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var _=new XMLHttpRequest;function z(){_.abort()}_.onload=function(){var Z={status:_.status,statusText:_.statusText,headers:M(_.getAllResponseHeaders()||"")};Z.url="responseURL"in _?_.responseURL:Z.headers.get("X-Request-URL");var W="response"in _?_.response:_.responseText;A(new T(W,Z))},_.onerror=function(){$(new TypeError("Network request failed"))},_.ontimeout=function(){$(new TypeError("Network request failed"))},_.onabort=function(){$(new o.DOMException("Aborted","AbortError"))},_.open(N.method,N.url,!0),N.credentials==="include"?_.withCredentials=!0:N.credentials==="omit"&&(_.withCredentials=!1),"responseType"in _&&a.blob&&(_.responseType="blob"),N.headers.forEach(function(Z,W){_.setRequestHeader(W,Z)}),N.signal&&(N.signal.addEventListener("abort",z),_.onreadystatechange=function(){_.readyState===4&&N.signal.removeEventListener("abort",z)}),_.send(typeof N._bodyInit>"u"?null:N._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=p,i.Request=P,i.Response=T),o.Headers=p,o.Request=P,o.Response=T,o.fetch=U,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}($i,$i.exports)),$i.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ue<"u"&&Ue.fetch?n=Ue.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof S2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||b2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(lu,lu.exports);var wm=lu.exports;const xm=Ra(wm),Tf=rm({__proto__:null,default:xm},[wm]);function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}var Gt;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Gt=global.fetch:typeof window<"u"&&window.fetch?Gt=window.fetch:Gt=fetch);var Vs;ym()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var Do;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Do=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Do=window.ActiveXObject));!Gt&&Tf&&!Vs&&!Do&&(Gt=xm||Tf);typeof Gt!="function"&&(Gt=void 0);var uu=function(t,n){if(n&&Mo(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},If=function(t,n,r){Gt(t,n).then(function(s){if(!s.ok)return r(s.statusText||"Error",{status:s.status});s.text().then(function(i){r(null,{status:s.status,data:i})}).catch(r)}).catch(r)},_f=!1,C2=function(t,n,r,s){t.queryStringParams&&(n=uu(n,t.queryStringParams));var i=au({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=au({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},_f?{}:o);try{If(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),If(n,a,s),_f=!0}catch(u){s(u)}}},E2=function(t,n,r,s){r&&Mo(r)==="object"&&(r=uu("",r).slice(1)),t.queryStringParams&&(n=uu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new Do("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},R2=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Gt&&n.indexOf("file:")!==0)return C2(t,n,r,s);if(ym()||typeof ActiveXObject=="function")return E2(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 k2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sm(r.key),r)}}function P2(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O2(e,t,n){return t=Sm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sm(e){var t=N2(e,"string");return Hs(t)==="symbol"?t:String(t)}function N2(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 j2=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 O2({},r,s||"")},parseLoadPayload:function(n,r){},request:R2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},bm=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]:{};k2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return P2(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||{},j2()),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=x2(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,g;try{typeof d.data=="string"?h=o.options.parse(d.data,s,i):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,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 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(w,S){u+=1,c.push(w),d.push(S),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=i.toResolveHierarchy(d);h.forEach(function(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){s.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),s.loaded("".concat(c,"|").concat(d),h,g)})})})}}}]),e}();bm.type="backend";function T2(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Lf={};function cu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Lf[t[0]]||(typeof t[0]=="string"&&(Lf[t[0]]=new Date),T2(...t))}const Cm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Mf(e,t,n){e.loadNamespaces(t,Cm(e,n))}function Df(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Cm(e,r))}function I2(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 _2(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}}):I2(e,t,n)}const A2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,L2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},M2=e=>L2[e],D2=e=>e.replace(A2,M2);let du={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:D2};function F2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};du={...du,...e}}function $2(){return du}let Em;function z2(e){Em=e}function U2(){return Em}const B2={type:"3rdParty",init(e){F2(e.options.react),z2(e)}},V2=x.createContext();class H2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q2=(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(V2)||{},i=n||r||U2();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new H2),!i){cu("You will need to pass in an i18next instance by using initReactI18next");const y=(E,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(E)?E[E.length-1]:E,b=[y,{},!1];return b.t=y,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&cu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...$2(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(y=>_2(y,i,o));function d(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,g]=x.useState(d);let p=u.join();t.lng&&(p=`${t.lng}${p}`);const w=q2(p),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:y,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Df(i,t.lng,u,()=>{S.current&&g(d)}):Mf(i,u,()=>{S.current&&g(d)})),c&&w&&w!==p&&S.current&&g(d);function E(){S.current&&g(d)}return y&&i&&i.on(y,E),b&&i&&i.store.on(b,E),()=>{S.current=!1,y&&i&&y.split(" ").forEach(k=>i.off(k,E)),b&&i&&b.split(" ").forEach(k=>i.store.off(k,E))}},[i,p]);const m=x.useRef(!0);x.useEffect(()=>{S.current&&!m.current&&g(d),m.current=!1},[i,l]);const v=[h,i,c];if(v.t=h,v.i18n=i,v.ready=c,c||!c&&!a)return v;throw new Promise(y=>{t.lng?Df(i,t.lng,u,()=>y()):Mf(i,u,()=>y())})}Pe.use(bm).use(B2).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 Q2(e,t){return typeof e=="function"?e(t):e}function fu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pr(e,t,n){return Si(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function K2(e,t,n){return Si(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function dn(e,t,n){return Si(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ff(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(Si(o)){if(r){if(t.queryHash!==Fc(o,t.options))return!1}else if(!Fo(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function $f(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(Si(i)){if(!t.options.mutationKey)return!1;if(n){if(qn(t.options.mutationKey)!==qn(i))return!1}else if(!Fo(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function Fc(e,t){return((t==null?void 0:t.queryKeyHashFn)||qn)(e)}function qn(e){return JSON.stringify(e,(t,n)=>hu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Fo(e,t){return km(e,t)}function km(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!km(e[n],t[n])):!1}function Pm(e,t){if(e===t)return e;const n=zf(e)&&zf(t);if(n||hu(e)&&hu(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let l=0;l<i;l++){const u=n?l:s[l];o[u]=Pm(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function $o(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function hu(e){if(!Uf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Uf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Uf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Si(e){return Array.isArray(e)}function Om(e){return new Promise(t=>{setTimeout(t,e)})}function Bf(e){Om(0).then(e)}function W2(){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?Pm(e,t):t}class Z2 extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const zo=new Z2,Vf=["online","offline"];class G2 extends Gr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return Vf.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Vf.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Uo=new G2;function X2(e){return Math.min(1e3*2**e,3e4)}function Oa(e){return(e??"online")==="online"?Uo.isOnline():!0}class Nm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function po(e){return e instanceof Nm}function jm(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((S,m)=>{i=S,o=m}),l=S=>{r||(g(new Nm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!zo.isFocused()||e.networkMode!=="always"&&!Uo.isOnline(),h=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),s==null||s(),i(S))},g=S=>{r||(r=!0,e.onError==null||e.onError(S),s==null||s(),o(S))},p=()=>new Promise(S=>{s=m=>{const v=r||!d();return v&&S(m),v},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),w=()=>{if(r)return;let S;try{S=e.fn()}catch(m){S=Promise.reject(m)}Promise.resolve(S).then(h).catch(m=>{var v,y;if(r)return;const b=(v=e.retry)!=null?v:3,E=(y=e.retryDelay)!=null?y:X2,k=typeof E=="function"?E(n,m):E,R=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,m);if(t||!R){g(m);return}n++,e.onFail==null||e.onFail(n,m),Om(k).then(()=>{if(d())return p()}).then(()=>{t?g(m):w()})})};return Oa(e.networkMode)?w():p().then(w),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const $c=console;function Y2(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},i=c=>{t?e.push(c):Bf(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&Bf(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ae=Y2();class Tm{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 J2 extends Tm{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||ew(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||!Rm(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 g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const o=W2(),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!==((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=g=>{if(po(g)&&g.silent||this.dispatch({type:"error",error:g}),!po(g)){var p,w,S,m;(p=(w=this.cache.config).onError)==null||p.call(w,g,this),(S=(m=this.cache.config).onSettled)==null||S.call(m,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=jm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var p,w,S,m;if(typeof g>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(p=(w=this.cache.config).onSuccess)==null||p.call(w,g,this),(S=(m=this.cache.config).onSettled)==null||S.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 s,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(s=t.meta)!=null?s:null,fetchStatus:Oa(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return po(o)&&o.revert&&this.revertState?{...this.revertState}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function ew(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 Im 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 J2({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ae.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=dn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Ff(r,s))}findAll(t,n){const[r]=dn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>Ff(r,s)):this.queries}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ae.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class tw extends Tm{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||_m(),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=jm({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,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 P=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,this.state.variables));P!==this.state.context&&this.dispatch({type:"loading",context:P,variables:this.state.variables})}const R=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,R,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,R,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,R,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,R,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:R}),R}catch(R){try{var w,S,m,v,y,b,E,k;throw await((w=(S=this.mutationCache.config).onError)==null?void 0:w.call(S,R,this.state.variables,this.state.context,this)),await((m=(v=this.options).onError)==null?void 0:m.call(v,R,this.state.variables,this.state.context)),await((y=(b=this.mutationCache.config).onSettled)==null?void 0:y.call(b,void 0,R,this.state.variables,this.state.context,this)),await((E=(k=this.options).onSettled)==null?void 0:E.call(k,void 0,R,this.state.variables,this.state.context)),R}finally{this.dispatch({type:"error",error:R})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Oa(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ae.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function _m(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class nw extends Gr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new tw({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(s),s}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ae.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>$f(t,n))}findAll(t){return this.mutations.filter(n=>$f(t,n))}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ae.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(ot)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function mu(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((i=e.state.data)==null?void 0:i.pages)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let p=g,w=!1;const S=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var R;if((R=e.signal)!=null&&R.aborted)w=!0;else{var P;(P=e.signal)==null||P.addEventListener("abort",()=>{w=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(k,R,P,L)=>(p=L?[R,...p]:[...p,R],L?[P,...k]:[...k,P]),y=(k,R,P,L)=>{if(w)return Promise.reject("Cancelled");if(typeof P>"u"&&!R&&k.length)return Promise.resolve(k);const M={queryKey:e.queryKey,pageParam:P,meta:e.options.meta};S(M);const T=m(M);return Promise.resolve(T).then(U=>v(k,P,U,L))};let b;if(!h.length)b=y([]);else if(c){const k=typeof u<"u",R=k?u:gu(e.options,h);b=y(h,k,R)}else if(d){const k=typeof u<"u",R=k?u:Am(e.options,h);b=y(h,k,R,!0)}else{p=[];const k=typeof e.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?y([],k,g[0]):Promise.resolve(v([],g[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?g[P]:gu(e.options,L);return y(L,k,T)}return Promise.resolve(v(L,g[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 Am(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function rw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=gu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function sw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Am(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class iw{constructor(t={}){this.queryCache=t.queryCache||new Im,this.mutationCache=t.mutationCache||new nw,this.logger=t.logger||$c,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=zo.subscribe(()=>{zo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Uo.subscribe(()=>{Uo.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=dn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const s=pr(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=Q2(n,i);if(typeof o>"u")return;const a=pr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ae.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=dn(t,n),s=this.queryCache;ae.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=dn(t,n,r),o=this.queryCache,a={type:"active",...s};return ae.batch(()=>(o.findAll(s).forEach(l=>{l.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,n,r){const[s,i={}]=dn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ae.batch(()=>this.queryCache.findAll(s).map(a=>a.cancel(i)));return Promise.all(o).then(ot).catch(ot)}invalidateQueries(t,n,r){const[s,i]=dn(t,n,r);return ae.batch(()=>{var o,a;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const l={...s,type:(o=(a=s.refetchType)!=null?a:s.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[s,i]=dn(t,n,r),o=ae.batch(()=>this.queryCache.findAll(s).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:s.refetchPage}})}));let a=Promise.all(o).then(ot);return i!=null&&i.throwOnError||(a=a.catch(ot)),a}fetchQuery(t,n,r){const s=pr(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ot).catch(ot)}fetchInfiniteQuery(t,n,r){const s=pr(t,n,r);return s.behavior=mu(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ot).catch(ot)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(s=>qn(t)===qn(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Fo(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>qn(t)===qn(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Fo(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Fc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Lm extends Gr{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Hf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),$o(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&qf(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return aw(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=Rm(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(qs||this.options.enabled===!1||!fu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||zo.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,s=this.options,i=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:h,error:g,errorUpdatedAt:p,fetchStatus:w,status:S}=d,m=!1,v=!1,y;if(n._optimisticResults){const P=this.hasListeners(),L=!P&&Hf(t,n),M=P&&qf(t,r,n,s);(L||M)&&(w=Oa(t.options.networkMode)?"fetching":"paused",h||(S="loading")),n._optimisticResults==="isRestoring"&&(w="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&S!=="error")y=c.data,h=c.dataUpdatedAt,S=c.status,m=!0;else if(n.select&&typeof d.data<"u")if(i&&d.data===(o==null?void 0:o.data)&&n.select===this.selectFn)y=this.selectResult;else try{this.selectFn=n.select,y=n.select(d.data),y=pu(i==null?void 0:i.data,y,n),this.selectResult=y,this.selectError=null}catch(P){this.selectError=P}else y=d.data;if(typeof n.placeholderData<"u"&&typeof y>"u"&&S==="loading"){let P;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))P=i.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof P<"u")try{P=n.select(P),this.selectError=null}catch(L){this.selectError=L}typeof P<"u"&&(S="success",y=pu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(g=this.selectError,y=this.selectResult,p=Date.now(),S="error");const b=w==="fetching",E=S==="loading",k=S==="error";return{status:S,fetchStatus:w,isLoading:E,isSuccess:S==="success",isError:k,isInitialLoading:E&&b,data:y,dataUpdatedAt:h,error: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:b,isRefetching:b&&!E,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:w==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:zc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,$o(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!po(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ae.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function ow(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return ow(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 aw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!$o(e.getCurrentResult(),t)}class lw extends Lm{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,g=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:rw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:sw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:g,isFetchingPreviousPage:p,isRefetching:h&&!g&&!p}}}let uw=class extends Gr{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),$o(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:_m(),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 Mm={exports:{}},tt={},Dm={exports:{}},Fm={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var Ry=Object.defineProperty;var ky=(e,t,n)=>t in e?Ry(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(N,_){var z=N.length;N.push(_);e:for(;0<z;){var Z=z-1>>>1,W=N[Z];if(0<s(W,_))N[Z]=_,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 _=N[0],z=N.pop();if(z!==_){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 _}function s(N,_){var z=N.sortIndex-_.sortIndex;return z!==0?z:N.id-_.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,g=!1,p=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,m=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 _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=N)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function b(N){if(y=!1,w(N),!p)if(n(l)!==null)p=!0,A(E);else{var _=n(u);_!==null&&$(b,_.startTime-N)}}function E(N,_){p=!1,y&&(y=!1,m(P),P=-1),g=!0;var z=h;try{for(w(_),d=n(l);d!==null&&(!(d.expirationTime>_)||N&&!T());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,h=d.priorityLevel;var W=Z(d.expirationTime<=_);_=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),w(_)}else r(l);d=n(l)}if(d!==null)var an=!0;else{var it=n(u);it!==null&&$(b,it.startTime-_),an=!1}return an}finally{d=null,h=z,g=!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 _=!0;try{_=R(!0,N)}finally{_?U():(k=!1,R=null)}}else k=!1}var U;if(typeof v=="function")U=function(){v(D)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,O=C.port2;C.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,_){P=S(function(){N(e.unstable_now())},_)}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||g||(p=!0,A(E))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):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 _=3;break;default:_=h}var z=h;h=_;try{return N()}finally{h=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,_){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=h;h=N;try{return _()}finally{h=z}},e.unstable_scheduleCallback=function(N,_,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:_,priorityLevel:N,startTime:z,expirationTime:W,sortIndex:-1},z>Z?(N.sortIndex=z,t(u,N),n(l)===null&&N===n(u)&&(y?(m(P),P=-1):y=!0,$(b,z-Z))):(N.sortIndex=W,t(l,N),p||g||(p=!0,A(E))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var _=h;return function(){var z=h;h=_;try{return N.apply(this,arguments)}finally{h=z}}}})(Fm);Dm.exports=Fm;var cw=Dm.exports;/**
25
+ */(function(e){function t(N,_){var z=N.length;N.push(_);e:for(;0<z;){var Z=z-1>>>1,W=N[Z];if(0<s(W,_))N[Z]=_,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 _=N[0],z=N.pop();if(z!==_){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 _}function s(N,_){var z=N.sortIndex-_.sortIndex;return z!==0?z:N.id-_.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,g=!1,p=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,m=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 y(N){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=N)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function b(N){if(w=!1,y(N),!p)if(n(l)!==null)p=!0,A(E);else{var _=n(u);_!==null&&$(b,_.startTime-N)}}function E(N,_){p=!1,w&&(w=!1,m(P),P=-1),g=!0;var z=h;try{for(y(_),d=n(l);d!==null&&(!(d.expirationTime>_)||N&&!T());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,h=d.priorityLevel;var W=Z(d.expirationTime<=_);_=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(l)&&r(l),y(_)}else r(l);d=n(l)}if(d!==null)var an=!0;else{var it=n(u);it!==null&&$(b,it.startTime-_),an=!1}return an}finally{d=null,h=z,g=!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 _=!0;try{_=R(!0,N)}finally{_?U():(k=!1,R=null)}}else k=!1}var U;if(typeof v=="function")U=function(){v(D)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,O=C.port2;C.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,_){P=S(function(){N(e.unstable_now())},_)}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||g||(p=!0,A(E))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):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 _=3;break;default:_=h}var z=h;h=_;try{return N()}finally{h=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,_){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=h;h=N;try{return _()}finally{h=z}},e.unstable_scheduleCallback=function(N,_,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:_,priorityLevel:N,startTime:z,expirationTime:W,sortIndex:-1},z>Z?(N.sortIndex=z,t(u,N),n(l)===null&&N===n(u)&&(w?(m(P),P=-1):w=!0,$(b,z-Z))):(N.sortIndex=W,t(l,N),p||g||(p=!0,A(E))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var _=h;return function(){var z=h;h=_;try{return N.apply(this,arguments)}finally{h=z}}}})(Fm);Dm.exports=Fm;var cw=Dm.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var Ry=Object.defineProperty;var ky=(e,t,n)=>t in e?Ry(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 $m=x,et=cw;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zm=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++)zm.add(t[e])}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vu=Object.prototype.hasOwnProperty,dw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Qf={},Kf={};function fw(e){return vu.call(Kf,e)?!0:vu.call(Qf,e)?!1:dw.test(e)?Kf[e]=!0:(Qf[e]=!0,!1)}function hw(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 pw(e,t,n,r){if(t===null||typeof t>"u"||hw(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 _e(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 _e(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 _e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new _e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new _e(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 _e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new _e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new _e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new _e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new _e(e,5,!1,e.toLowerCase(),null,!1,!1)});var zc=/[\-:]([a-z])/g;function Uc(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(zc,Uc);Se[t]=new _e(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(zc,Uc);Se[t]=new _e(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(zc,Uc);Se[t]=new _e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new _e(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new _e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new _e(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bc(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")&&(pw(t,n,s,r)&&(n=null),r||s===null?fw(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=$m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zi=Symbol.for("react.element"),mr=Symbol.for("react.portal"),gr=Symbol.for("react.fragment"),Vc=Symbol.for("react.strict_mode"),yu=Symbol.for("react.profiler"),Um=Symbol.for("react.provider"),Bm=Symbol.for("react.context"),Hc=Symbol.for("react.forward_ref"),wu=Symbol.for("react.suspense"),xu=Symbol.for("react.suspense_list"),qc=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),Vm=Symbol.for("react.offscreen"),Wf=Symbol.iterator;function is(e){return e===null||typeof e!="object"?null:(e=Wf&&e[Wf]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Object.assign,yl;function ws(e){if(yl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yl=t&&t[1]||""}return`
34
- `+yl+e}var wl=!1;function xl(e,t){if(!e||wl)return"";wl=!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(`
33
+ */var $m=x,et=cw;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zm=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++)zm.add(t[e])}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=Object.prototype.hasOwnProperty,dw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Qf={},Kf={};function fw(e){return yu.call(Kf,e)?!0:yu.call(Qf,e)?!1:dw.test(e)?Kf[e]=!0:(Qf[e]=!0,!1)}function hw(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 pw(e,t,n,r){if(t===null||typeof t>"u"||hw(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 _e(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 _e(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 _e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new _e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new _e(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 _e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new _e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new _e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new _e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new _e(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 _e(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 _e(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 _e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new _e(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new _e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new _e(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")&&(pw(t,n,s,r)&&(n=null),r||s===null?fw(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=$m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zi=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"),Um=Symbol.for("react.provider"),Bm=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"),Vm=Symbol.for("react.offscreen"),Wf=Symbol.iterator;function is(e){return e===null||typeof e!="object"?null:(e=Wf&&e[Wf]||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
35
  `),i=r.stack.split(`
36
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{wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function mw(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=xl(e.type,!1),e;case 11:return e=xl(e.type.render,!1),e;case 1:return e=xl(e.type,!0),e;default:return""}}function Su(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 yu:return"Profiler";case Vc:return"StrictMode";case wu:return"Suspense";case xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bm:return(e.displayName||"Context")+".Consumer";case Um:return(e._context.displayName||"Context")+".Provider";case Hc: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:Su(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function gw(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 Su(t);case 8:return t===Vc?"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 Hm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vw(e){var t=Hm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){e._valueTracker||(e._valueTracker=vw(e))}function qm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bu(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qm(e,t){t=t.checked,t!=null&&Bc(e,"checked",t,!1)}function Cu(e,t){Qm(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")?Eu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Eu(e,t.type,Tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Eu(e,t,n){(t!=="number"||Bo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Tn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ru(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(xs(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tn(n)}}function Km(e,t){var n=Tn(t.value),r=Tn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Yf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wm(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 ku(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,Zm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ks(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yw=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){yw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Gm(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 Xm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var ww=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 Pu(e,t){if(t){if(ww[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Ou(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 Nu=null;function Qc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ju=null,Nr=null,jr=null;function Jf(e){if(e=Ei(e)){if(typeof ju!="function")throw Error(I(280));var t=e.stateNode;t&&(t=_a(t),ju(e.stateNode,e.type,t))}}function Ym(e){Nr?jr?jr.push(e):jr=[e]:Nr=e}function Jm(){if(Nr){var e=Nr,t=jr;if(jr=Nr=null,Jf(e),t)for(e=0;e<t.length;e++)Jf(t[e])}}function e1(e,t){return e(t)}function t1(){}var Sl=!1;function n1(e,t,n){if(Sl)return e(t,n);Sl=!0;try{return e1(e,t,n)}finally{Sl=!1,(Nr!==null||jr!==null)&&(t1(),Jm())}}function Ws(e,t){var n=e.stateNode;if(n===null)return null;var r=_a(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var Tu=!1;if(Yt)try{var os={};Object.defineProperty(os,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Tu=!1}function xw(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ps=!1,Vo=null,Ho=!1,Iu=null,Sw={onError:function(e){Ps=!0,Vo=e}};function bw(e,t,n,r,s,i,o,a,l){Ps=!1,Vo=null,xw.apply(Sw,arguments)}function Cw(e,t,n,r,s,i,o,a,l){if(bw.apply(this,arguments),Ps){if(Ps){var u=Vo;Ps=!1,Vo=null}else throw Error(I(198));Ho||(Ho=!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 r1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eh(e){if(or(e)!==e)throw Error(I(188))}function Ew(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return eh(s),e;if(i===r)return eh(s),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function s1(e){return e=Ew(e),e!==null?i1(e):null}function i1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=i1(e);if(t!==null)return t;e=e.sibling}return null}var o1=et.unstable_scheduleCallback,th=et.unstable_cancelCallback,Rw=et.unstable_shouldYield,kw=et.unstable_requestPaint,le=et.unstable_now,Pw=et.unstable_getCurrentPriorityLevel,Kc=et.unstable_ImmediatePriority,a1=et.unstable_UserBlockingPriority,qo=et.unstable_NormalPriority,Ow=et.unstable_LowPriority,l1=et.unstable_IdlePriority,Na=null,Ft=null;function Nw(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Na,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:Iw,jw=Math.log,Tw=Math.LN2;function Iw(e){return e>>>=0,e===0?32:31-(jw(e)/Tw|0)|0}var Vi=64,Hi=4194304;function Ss(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ss(a):(i&=o,i!==0&&(r=Ss(i)))}else o=n&~s,o!==0?r=Ss(o):i!==0&&(r=Ss(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Et(t),s=1<<n,r|=e[n],t&=~s;return r}function _w(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 Aw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Et(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=_w(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function _u(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function u1(){var e=Vi;return Vi<<=1,!(Vi&4194240)&&(Vi=64),e}function bl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function Lw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Et(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Wc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Y=0;function c1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var d1,Zc,f1,h1,p1,Au=!1,qi=[],bn=null,Cn=null,En=null,Zs=new Map,Gs=new Map,pn=[],Mw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nh(e,t){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":Cn=null;break;case"mouseover":case"mouseout":En=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(t.pointerId)}}function as(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ei(t),t!==null&&Zc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Dw(e,t,n,r,s){switch(t){case"focusin":return bn=as(bn,e,t,n,r,s),!0;case"dragenter":return Cn=as(Cn,e,t,n,r,s),!0;case"mouseover":return En=as(En,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Zs.set(i,as(Zs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Gs.set(i,as(Gs.get(i)||null,e,t,n,r,s)),!0}return!1}function m1(e){var t=Qn(e.target);if(t!==null){var n=or(t);if(n!==null){if(t=n.tag,t===13){if(t=r1(n),t!==null){e.blockedOn=t,p1(e.priority,function(){f1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Nu=r,n.target.dispatchEvent(r),Nu=null}else return t=Ei(n),t!==null&&Zc(t),e.blockedOn=n,!1;t.shift()}return!0}function rh(e,t,n){mo(e)&&n.delete(t)}function Fw(){Au=!1,bn!==null&&mo(bn)&&(bn=null),Cn!==null&&mo(Cn)&&(Cn=null),En!==null&&mo(En)&&(En=null),Zs.forEach(rh),Gs.forEach(rh)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Au||(Au=!0,et.unstable_scheduleCallback(et.unstable_NormalPriority,Fw)))}function Xs(e){function t(s){return ls(s,e)}if(0<qi.length){ls(qi[0],e);for(var n=1;n<qi.length;n++){var r=qi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bn!==null&&ls(bn,e),Cn!==null&&ls(Cn,e),En!==null&&ls(En,e),Zs.forEach(t),Gs.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)m1(n),n.blockedOn===null&&pn.shift()}var Tr=rn.ReactCurrentBatchConfig,Ko=!0;function $w(e,t,n,r){var s=Y,i=Tr.transition;Tr.transition=null;try{Y=1,Gc(e,t,n,r)}finally{Y=s,Tr.transition=i}}function zw(e,t,n,r){var s=Y,i=Tr.transition;Tr.transition=null;try{Y=4,Gc(e,t,n,r)}finally{Y=s,Tr.transition=i}}function Gc(e,t,n,r){if(Ko){var s=Lu(e,t,n,r);if(s===null)Il(e,t,r,Wo,n),nh(e,r);else if(Dw(s,e,t,n,r))r.stopPropagation();else if(nh(e,r),t&4&&-1<Mw.indexOf(e)){for(;s!==null;){var i=Ei(s);if(i!==null&&d1(i),i=Lu(e,t,n,r),i===null&&Il(e,t,r,Wo,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Il(e,t,r,null,n)}}var Wo=null;function Lu(e,t,n,r){if(Wo=null,e=Qc(r),e=Qn(e),e!==null)if(t=or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=r1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wo=e,null}function g1(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(Pw()){case Kc:return 1;case a1:return 4;case qo:case Ow:return 16;case l1:return 536870912;default:return 16}default:return 16}}var vn=null,Xc=null,go=null;function v1(){if(go)return go;var e,t=Xc,n=t.length,r,s="value"in vn?vn.value:vn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return go=s.slice(e,1<r?1-r:void 0)}function vo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qi(){return!0}function sh(){return!1}function nt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qi:sh,this.isPropagationStopped=sh,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qi)},persist:function(){},isPersistent:Qi}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yc=nt(Xr),Ci=ie({},Xr,{view:0,detail:0}),Uw=nt(Ci),Cl,El,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:Jc,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,El=e.screenY-us.screenY):El=Cl=0,us=e),Cl)},movementY:function(e){return"movementY"in e?e.movementY:El}}),ih=nt(ja),Bw=ie({},ja,{dataTransfer:0}),Vw=nt(Bw),Hw=ie({},Ci,{relatedTarget:0}),Rl=nt(Hw),qw=ie({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Qw=nt(qw),Kw=ie({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ww=nt(Kw),Zw=ie({},Xr,{data:0}),oh=nt(Zw),Gw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xw={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"},Yw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yw[e])?!!t[e]:!1}function Jc(){return Jw}var ex=ie({},Ci,{key:function(e){if(e.key){var t=Gw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jc,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tx=nt(ex),nx=ie({},ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=nt(nx),rx=ie({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jc}),sx=nt(rx),ix=ie({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ox=nt(ix),ax=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}),lx=nt(ax),ux=[9,13,27,32],ed=Yt&&"CompositionEvent"in window,Os=null;Yt&&"documentMode"in document&&(Os=document.documentMode);var cx=Yt&&"TextEvent"in window&&!Os,y1=Yt&&(!ed||Os&&8<Os&&11>=Os),lh=String.fromCharCode(32),uh=!1;function w1(e,t){switch(e){case"keyup":return ux.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function dx(e,t){switch(e){case"compositionend":return x1(t);case"keypress":return t.which!==32?null:(uh=!0,lh);case"textInput":return e=t.data,e===lh&&uh?null:e;default:return null}}function fx(e,t){if(vr)return e==="compositionend"||!ed&&w1(e,t)?(e=v1(),go=Xc=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 y1&&t.locale!=="ko"?null:t.data;default:return null}}var hx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ch(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hx[e.type]:t==="textarea"}function S1(e,t,n,r){Ym(r),t=Zo(t,"onChange"),0<t.length&&(n=new Yc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Ys=null;function px(e){I1(e,0)}function Ta(e){var t=xr(e);if(qm(t))return e}function mx(e,t){if(e==="change")return t}var b1=!1;if(Yt){var kl;if(Yt){var Pl="oninput"in document;if(!Pl){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),Pl=typeof dh.oninput=="function"}kl=Pl}else kl=!1;b1=kl&&(!document.documentMode||9<document.documentMode)}function fh(){Ns&&(Ns.detachEvent("onpropertychange",C1),Ys=Ns=null)}function C1(e){if(e.propertyName==="value"&&Ta(Ys)){var t=[];S1(t,Ys,e,Qc(e)),n1(px,t)}}function gx(e,t,n){e==="focusin"?(fh(),Ns=t,Ys=n,Ns.attachEvent("onpropertychange",C1)):e==="focusout"&&fh()}function vx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ta(Ys)}function yx(e,t){if(e==="click")return Ta(t)}function wx(e,t){if(e==="input"||e==="change")return Ta(t)}function xx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:xx;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(!vu.call(t,s)||!kt(e[s],t[s]))return!1}return!0}function hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ph(e,t){var n=hh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hh(n)}}function E1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?E1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function R1(){for(var e=window,t=Bo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bo(e.document)}return t}function td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Sx(e){var t=R1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&E1(n.ownerDocument.documentElement,n)){if(r!==null&&td(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ph(n,i);var o=ph(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var bx=Yt&&"documentMode"in document&&11>=document.documentMode,yr=null,Mu=null,js=null,Du=!1;function mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Du||yr==null||yr!==Bo(r)||(r=yr,"selectionStart"in r&&td(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),js&&Js(js,r)||(js=r,r=Zo(Mu,"onSelect"),0<r.length&&(t=new Yc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function Ki(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Ki("Animation","AnimationEnd"),animationiteration:Ki("Animation","AnimationIteration"),animationstart:Ki("Animation","AnimationStart"),transitionend:Ki("Transition","TransitionEnd")},Ol={},k1={};Yt&&(k1=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);function Ia(e){if(Ol[e])return Ol[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in k1)return Ol[e]=t[n];return e}var P1=Ia("animationend"),O1=Ia("animationiteration"),N1=Ia("animationstart"),j1=Ia("transitionend"),T1=new Map,gh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ln(e,t){T1.set(e,t),ir(t,[e])}for(var Nl=0;Nl<gh.length;Nl++){var jl=gh[Nl],Cx=jl.toLowerCase(),Ex=jl[0].toUpperCase()+jl.slice(1);Ln(Cx,"on"+Ex)}Ln(P1,"onAnimationEnd");Ln(O1,"onAnimationIteration");Ln(N1,"onAnimationStart");Ln("dblclick","onDoubleClick");Ln("focusin","onFocus");Ln("focusout","onBlur");Ln(j1,"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(" "),Rx=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function vh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cw(r,t,void 0,e),e.currentTarget=null}function I1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}}}if(Ho)throw e=Iu,Ho=!1,Iu=null,e}function ee(e,t){var n=t[Bu];n===void 0&&(n=t[Bu]=new Set);var r=e+"__bubble";n.has(r)||(_1(t,e,2,!1),n.add(r))}function Tl(e,t,n){var r=0;t&&(r|=4),_1(n,e,r,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Wi]){e[Wi]=!0,zm.forEach(function(n){n!=="selectionchange"&&(Rx.has(n)||Tl(n,!1,e),Tl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Tl("selectionchange",!1,t))}}function _1(e,t,n,r){switch(g1(t)){case 1:var s=$w;break;case 4:s=zw;break;default:s=Gc}n=s.bind(null,t,n,e),s=void 0,!Tu||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}n1(function(){var u=i,c=Qc(n),d=[];e:{var h=T1.get(e);if(h!==void 0){var g=Yc,p=e;switch(e){case"keypress":if(vo(n)===0)break e;case"keydown":case"keyup":g=tx;break;case"focusin":p="focus",g=Rl;break;case"focusout":p="blur",g=Rl;break;case"beforeblur":case"afterblur":g=Rl;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=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Vw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=sx;break;case P1:case O1:case N1:g=Qw;break;case j1:g=ox;break;case"scroll":g=Uw;break;case"wheel":g=lx;break;case"copy":case"cut":case"paste":g=Ww;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ah}var y=(t&4)!==0,S=!y&&e==="scroll",m=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,m!==null&&(b=Ws(v,m),b!=null&&y.push(ti(v,b,w)))),S)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!==Nu&&(p=n.relatedTarget||n.fromElement)&&(Qn(p)||p[Jt]))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?Qn(p):null,p!==null&&(S=or(p),p!==S||p.tag!==5&&p.tag!==6)&&(p=null)):(g=null,p=u),g!==p)){if(y=ih,b="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=ah,b="onPointerLeave",m="onPointerEnter",v="pointer"),S=g==null?h:xr(g),w=p==null?h:xr(p),h=new y(b,v+"leave",g,n,c),h.target=S,h.relatedTarget=w,b=null,Qn(c)===u&&(y=new y(m,v+"enter",p,n,c),y.target=w,y.relatedTarget=S,b=y),S=b,g&&p)t:{for(y=g,m=p,v=0,w=y;w;w=dr(w))v++;for(w=0,b=m;b;b=dr(b))w++;for(;0<v-w;)y=dr(y),v--;for(;0<w-v;)m=dr(m),w--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=dr(y),m=dr(m)}y=null}else y=null;g!==null&&yh(d,h,g,y,!1),p!==null&&S!==null&&yh(d,S,p,y,!0)}}e:{if(h=u?xr(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var E=mx;else if(ch(h))if(b1)E=wx;else{E=vx;var k=gx}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=yx);if(E&&(E=E(e,u))){S1(d,E,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Eu(h,"number",h.value)}switch(k=u?xr(u):window,e){case"focusin":(ch(k)||k.contentEditable==="true")&&(yr=k,Mu=u,js=null);break;case"focusout":js=Mu=yr=null;break;case"mousedown":Du=!0;break;case"contextmenu":case"mouseup":case"dragend":Du=!1,mh(d,n,c);break;case"selectionchange":if(bx)break;case"keydown":case"keyup":mh(d,n,c)}var R;if(ed)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?w1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(y1&&n.locale!=="ko"&&(vr||P!=="onCompositionStart"?P==="onCompositionEnd"&&vr&&(R=v1()):(vn=c,Xc="value"in vn?vn.value:vn.textContent,vr=!0)),k=Zo(u,P),0<k.length&&(P=new oh(P,e,null,n,c),d.push({event:P,listeners:k}),R?P.data=R:(R=x1(n),R!==null&&(P.data=R)))),(R=cx?dx(e,n):fx(e,n))&&(u=Zo(u,"onBeforeInput"),0<u.length&&(c=new oh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=R))}I1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ws(e,n),i!=null&&r.unshift(ti(e,i,s)),i=Ws(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function dr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yh(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Ws(n,i),l!=null&&o.unshift(ti(n,l,a))):s||(l=Ws(n,i),l!=null&&o.push(ti(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kx=/\r\n?/g,Px=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(kx,`
38
- `).replace(Px,"")}function Zi(e,t,n){if(t=wh(t),wh(e)!==t&&n)throw Error(I(425))}function Go(){}var Fu=null,$u=null;function zu(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 Uu=typeof setTimeout=="function"?setTimeout:void 0,Ox=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Nx=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(jx)}:Uu;function jx(e){setTimeout(function(){throw e})}function _l(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Xs(t)}function Rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Yr=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Yr,ni="__reactProps$"+Yr,Jt="__reactContainer$"+Yr,Bu="__reactEvents$"+Yr,Tx="__reactListeners$"+Yr,Ix="__reactHandles$"+Yr;function Qn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sh(e);e!==null;){if(n=e[Mt])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Ei(e){return e=e[Mt]||e[Jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function _a(e){return e[ni]||null}var Vu=[],Sr=-1;function Mn(e){return{current:e}}function te(e){0>Sr||(e.current=Vu[Sr],Vu[Sr]=null,Sr--)}function J(e,t){Sr++,Vu[Sr]=e.current,e.current=t}var In={},ke=Mn(In),Ve=Mn(!1),Yn=In;function $r(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function He(e){return e=e.childContextTypes,e!=null}function Xo(){te(Ve),te(ke)}function bh(e,t,n){if(ke.current!==In)throw Error(I(168));J(ke,t),J(Ve,n)}function A1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(I(108,gw(e)||"Unknown",s));return ie({},n,r)}function Yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Yn=ke.current,J(ke,e),J(Ve,Ve.current),!0}function Ch(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=A1(e,t,Yn),r.__reactInternalMemoizedMergedChildContext=e,te(Ve),te(ke),J(ke,e)):te(Ve),J(Ve,n)}var Kt=null,Aa=!1,Al=!1;function L1(e){Kt===null?Kt=[e]:Kt.push(e)}function _x(e){Aa=!0,L1(e)}function Dn(){if(!Al&&Kt!==null){Al=!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)),o1(Kc,Dn),s}finally{Y=t,Al=!1}}return null}var br=[],Cr=0,Jo=null,ea=0,at=[],lt=0,Jn=null,Wt=1,Zt="";function Bn(e,t){br[Cr++]=ea,br[Cr++]=Jo,Jo=e,ea=t}function M1(e,t,n){at[lt++]=Wt,at[lt++]=Zt,at[lt++]=Jn,Jn=e;var r=Wt;e=Zt;var s=32-Et(r)-1;r&=~(1<<s),n+=1;var i=32-Et(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Wt=1<<32-Et(t)+s|n<<s|r,Zt=i+e}else Wt=1<<i|n<<s|r,Zt=e}function nd(e){e.return!==null&&(Bn(e,1),M1(e,1,0))}function rd(e){for(;e===Jo;)Jo=br[--Cr],br[Cr]=null,ea=br[--Cr],br[Cr]=null;for(;e===Jn;)Jn=at[--lt],at[lt]=null,Zt=at[--lt],at[lt]=null,Wt=at[--lt],at[lt]=null}var Ye=null,Ze=null,ne=!1,St=null;function D1(e,t){var n=dt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Eh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ye=e,Ze=Rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ye=e,Ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jn!==null?{id:Wt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ye=e,Ze=null,!0):!1;default:return!1}}function Hu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qu(e){if(ne){var t=Ze;if(t){var n=t;if(!Eh(e,t)){if(Hu(e))throw Error(I(418));t=Rn(n.nextSibling);var r=Ye;t&&Eh(e,t)?D1(r,n):(e.flags=e.flags&-4097|2,ne=!1,Ye=e)}}else{if(Hu(e))throw Error(I(418));e.flags=e.flags&-4097|2,ne=!1,Ye=e}}}function Rh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Gi(e){if(e!==Ye)return!1;if(!ne)return Rh(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zu(e.type,e.memoizedProps)),t&&(t=Ze)){if(Hu(e))throw F1(),Error(I(418));for(;t;)D1(e,t),t=Rn(t.nextSibling)}if(Rh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ze=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ze=null}}else Ze=Ye?Rn(e.stateNode.nextSibling):null;return!0}function F1(){for(var e=Ze;e;)e=Rn(e.nextSibling)}function zr(){Ze=Ye=null,ne=!1}function sd(e){St===null?St=[e]:St.push(e)}var Ax=rn.ReactCurrentBatchConfig;function wt(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ta=Mn(null),na=null,Er=null,id=null;function od(){id=Er=na=null}function ad(e){var t=ta.current;te(ta),e._currentValue=t}function Qu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ir(e,t){na=e,id=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(id!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(na===null)throw Error(I(308));Er=e,na.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Kn=null;function ld(e){Kn===null?Kn=[e]:Kn.push(e)}function $1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,ld(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 ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function z1(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,ld(r)):(t.next=s.next,s.next=t),r.interleaved=t,en(e,n)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wc(e,n)}}function kh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ra(e,t,n,r){var s=e.updateQueue;hn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,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=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 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=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);tr|=o,e.lanes=o,e.memoizedState=d}}function Ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(I(191,s));s.call(r)}}}var U1=new $m.Component().refs;function Ku(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var La={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Te(),s=On(e),i=Xt(r,s);i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,s),t!==null&&(Rt(t,e,s,r),yo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Te(),s=On(e),i=Xt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,s),t!==null&&(Rt(t,e,s,r),yo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Te(),r=On(e),s=Xt(n,r);s.tag=2,t!=null&&(s.callback=t),t=kn(e,s,r),t!==null&&(Rt(t,e,r,n),yo(t,e,r))}};function Oh(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Js(n,r)||!Js(s,i):!0}function B1(e,t,n){var r=!1,s=In,i=t.contextType;return typeof i=="object"&&i!==null?i=ht(i):(s=He(t)?Yn:ke.current,r=t.contextTypes,i=(r=r!=null)?$r(e,s):In),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=La,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&La.enqueueReplaceState(t,t.state,null)}function Wu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=U1,ud(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"&&(Ku(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&La.enqueueReplaceState(s,s.state,null),ra(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===U1&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function Xi(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jh(e){var t=e._init;return t(e._payload)}function V1(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 s(m,v){return m=Nn(m,v),m.index=0,m.sibling=null,m}function i(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,b){return v===null||v.tag!==6?(v=Ul(w,m.mode,b),v.return=m,v):(v=s(v,w),v.return=m,v)}function l(m,v,w,b){var E=w.type;return E===gr?c(m,v,w.props.children,b,w.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===fn&&jh(E)===v.type)?(b=s(v,w.props),b.ref=cs(m,v,w),b.return=m,b):(b=Eo(w.type,w.key,w.props,null,m.mode,b),b.ref=cs(m,v,w),b.return=m,b)}function u(m,v,w,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Bl(w,m.mode,b),v.return=m,v):(v=s(v,w.children||[]),v.return=m,v)}function c(m,v,w,b,E){return v===null||v.tag!==7?(v=Xn(w,m.mode,b,E),v.return=m,v):(v=s(v,w),v.return=m,v)}function d(m,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ul(""+v,m.mode,w),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case zi:return w=Eo(v.type,v.key,v.props,null,m.mode,w),w.ref=cs(m,null,v),w.return=m,w;case mr:return v=Bl(v,m.mode,w),v.return=m,v;case fn:var b=v._init;return d(m,b(v._payload),w)}if(xs(v)||is(v))return v=Xn(v,m.mode,w,null),v.return=m,v;Xi(m,v)}return null}function h(m,v,w,b){var E=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:a(m,v,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zi:return w.key===E?l(m,v,w,b):null;case mr:return w.key===E?u(m,v,w,b):null;case fn:return E=w._init,h(m,v,E(w._payload),b)}if(xs(w)||is(w))return E!==null?null:c(m,v,w,b,null);Xi(m,w)}return null}function g(m,v,w,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(w)||null,a(v,m,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case zi:return m=m.get(b.key===null?w:b.key)||null,l(v,m,b,E);case mr:return m=m.get(b.key===null?w:b.key)||null,u(v,m,b,E);case fn:var k=b._init;return g(m,v,w,k(b._payload),E)}if(xs(b)||is(b))return m=m.get(w)||null,c(v,m,b,E,null);Xi(v,b)}return null}function p(m,v,w,b){for(var E=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(m,R,w[P],b);if(M===null){R===null&&(R=L);break}e&&R&&M.alternate===null&&t(m,R),v=i(M,v,P),k===null?E=M:k.sibling=M,k=M,R=L}if(P===w.length)return n(m,R),ne&&Bn(m,P),E;if(R===null){for(;P<w.length;P++)R=d(m,w[P],b),R!==null&&(v=i(R,v,P),k===null?E=R:k.sibling=R,k=R);return ne&&Bn(m,P),E}for(R=r(m,R);P<w.length;P++)L=g(R,m,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?E=L:k.sibling=L,k=L);return e&&R.forEach(function(T){return t(m,T)}),ne&&Bn(m,P),E}function y(m,v,w,b){var E=is(w);if(typeof E!="function")throw Error(I(150));if(w=E.call(w),w==null)throw Error(I(151));for(var k=E=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(m,R,M.value,b);if(T===null){R===null&&(R=L);break}e&&R&&T.alternate===null&&t(m,R),v=i(T,v,P),k===null?E=T:k.sibling=T,k=T,R=L}if(M.done)return n(m,R),ne&&Bn(m,P),E;if(R===null){for(;!M.done;P++,M=w.next())M=d(m,M.value,b),M!==null&&(v=i(M,v,P),k===null?E=M:k.sibling=M,k=M);return ne&&Bn(m,P),E}for(R=r(m,R);!M.done;P++,M=w.next())M=g(R,m,P,M.value,b),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?P:M.key),v=i(M,v,P),k===null?E=M:k.sibling=M,k=M);return e&&R.forEach(function(D){return t(m,D)}),ne&&Bn(m,P),E}function S(m,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 zi:e:{for(var E=w.key,k=v;k!==null;){if(k.key===E){if(E=w.type,E===gr){if(k.tag===7){n(m,k.sibling),v=s(k,w.props.children),v.return=m,m=v;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===fn&&jh(E)===k.type){n(m,k.sibling),v=s(k,w.props),v.ref=cs(m,k,w),v.return=m,m=v;break e}n(m,k);break}else t(m,k);k=k.sibling}w.type===gr?(v=Xn(w.props.children,m.mode,b,w.key),v.return=m,m=v):(b=Eo(w.type,w.key,w.props,null,m.mode,b),b.ref=cs(m,v,w),b.return=m,m=b)}return o(m);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(m,v.sibling),v=s(v,w.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Bl(w,m.mode,b),v.return=m,m=v}return o(m);case fn:return k=w._init,S(m,v,k(w._payload),b)}if(xs(w))return p(m,v,w,b);if(is(w))return y(m,v,w,b);Xi(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(m,v.sibling),v=s(v,w),v.return=m,m=v):(n(m,v),v=Ul(w,m.mode,b),v.return=m,m=v),o(m)):n(m,v)}return S}var Ur=V1(!0),H1=V1(!1),Ri={},$t=Mn(Ri),ri=Mn(Ri),si=Mn(Ri);function Wn(e){if(e===Ri)throw Error(I(174));return e}function cd(e,t){switch(J(si,t),J(ri,e),J($t,Ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ku(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ku(t,e)}te($t),J($t,t)}function Br(){te($t),te(ri),te(si)}function q1(e){Wn(si.current);var t=Wn($t.current),n=ku(t,e.type);t!==n&&(J(ri,e),J($t,n))}function dd(e){ri.current===e&&(te($t),te(ri))}var re=Mn(0);function sa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ll=[];function fd(){for(var e=0;e<Ll.length;e++)Ll[e]._workInProgressVersionPrimary=null;Ll.length=0}var wo=rn.ReactCurrentDispatcher,Ml=rn.ReactCurrentBatchConfig,er=0,se=null,de=null,pe=null,ia=!1,Ts=!1,ii=0,Lx=0;function Ce(){throw Error(I(321))}function hd(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 pd(e,t,n,r,s,i){if(er=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wo.current=e===null||e.memoizedState===null?$x:zx,e=n(r,s),Ts){i=0;do{if(Ts=!1,ii=0,25<=i)throw Error(I(301));i+=1,pe=de=null,t.updateQueue=null,wo.current=Ux,e=n(r,s)}while(Ts)}if(wo.current=oa,t=de!==null&&de.next!==null,er=0,pe=de=se=null,ia=!1,t)throw Error(I(300));return e}function md(){var e=ii!==0;return ii=0,e}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?se.memoizedState=pe=e:pe=pe.next=e,pe}function pt(){if(de===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=de.next;var t=pe===null?se.memoizedState:pe.next;if(t!==null)pe=t,de=e;else{if(e===null)throw Error(I(310));de=e,e={memoizedState:de.memoizedState,baseState:de.baseState,baseQueue:de.baseQueue,queue:de.queue,next:null},pe===null?se.memoizedState=pe=e:pe=pe.next=e}return pe}function oi(e,t){return typeof t=="function"?t(e):t}function Dl(e){var t=pt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=de,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((er&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,se.lanes|=c,tr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,kt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,se.lanes|=i,tr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fl(e){var t=pt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);kt(i,t.memoizedState)||(Be=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Q1(){}function K1(e,t){var n=se,r=pt(),s=t(),i=!kt(r.memoizedState,s);if(i&&(r.memoizedState=s,Be=!0),r=r.queue,gd(G1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,ai(9,Z1.bind(null,n,r,s,t),void 0,null),me===null)throw Error(I(349));er&30||W1(n,t,s)}return s}function W1(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 Z1(e,t,n,r){t.value=n,t.getSnapshot=r,X1(t)&&Y1(e)}function G1(e,t,n){return n(function(){X1(t)&&Y1(e)})}function X1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function Y1(e){var t=en(e,1);t!==null&&Rt(t,e,1,-1)}function Th(e){var t=At();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=Fx.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 J1(){return pt().memoizedState}function xo(e,t,n,r){var s=At();se.flags|=e,s.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Ma(e,t,n,r){var s=pt();r=r===void 0?null:r;var i=void 0;if(de!==null){var o=de.memoizedState;if(i=o.destroy,r!==null&&hd(r,o.deps)){s.memoizedState=ai(t,n,i,r);return}}se.flags|=e,s.memoizedState=ai(1|t,n,i,r)}function Ih(e,t){return xo(8390656,8,e,t)}function gd(e,t){return Ma(2048,8,e,t)}function eg(e,t){return Ma(4,2,e,t)}function tg(e,t){return Ma(4,4,e,t)}function ng(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 rg(e,t,n){return n=n!=null?n.concat([e]):null,Ma(4,4,ng.bind(null,t,e),n)}function vd(){}function sg(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ig(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function og(e,t,n){return er&21?(kt(n,t)||(n=u1(),se.lanes|=n,tr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function Mx(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Ml.transition;Ml.transition={};try{e(!1),t()}finally{Y=n,Ml.transition=r}}function ag(){return pt().memoizedState}function Dx(e,t,n){var r=On(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lg(e))ug(t,n);else if(n=$1(e,t,n,r),n!==null){var s=Te();Rt(n,e,r,s),cg(n,t,r)}}function Fx(e,t,n){var r=On(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lg(e))ug(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,ld(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=$1(e,t,s,r),n!==null&&(s=Te(),Rt(n,e,r,s),cg(n,t,r))}}function lg(e){var t=e.alternate;return e===se||t!==null&&t===se}function ug(e,t){Ts=ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wc(e,n)}}var oa={readContext:ht,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},$x={readContext:ht,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xo(4194308,4,ng.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dx.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:vd,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=Mx.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=At();if(ne){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),me===null)throw Error(I(349));er&30||W1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Ih(G1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,Z1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=me.identifierPrefix;if(ne){var n=Zt,r=Wt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Lx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zx={readContext:ht,useCallback:sg,useContext:ht,useEffect:gd,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ig,useReducer:Dl,useRef:J1,useState:function(){return Dl(oi)},useDebugValue:vd,useDeferredValue:function(e){var t=pt();return og(t,de.memoizedState,e)},useTransition:function(){var e=Dl(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Q1,useSyncExternalStore:K1,useId:ag,unstable_isNewReconciler:!1},Ux={readContext:ht,useCallback:sg,useContext:ht,useEffect:gd,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ig,useReducer:Fl,useRef:J1,useState:function(){return Fl(oi)},useDebugValue:vd,useDeferredValue:function(e){var t=pt();return de===null?t.memoizedState=e:og(t,de.memoizedState,e)},useTransition:function(){var e=Fl(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Q1,useSyncExternalStore:K1,useId:ag,unstable_isNewReconciler:!1};function Vr(e,t){try{var n="",r=t;do n+=mw(r),r=r.return;while(r);var s=n}catch(i){s=`
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 mw(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 Bm:return(e.displayName||"Context")+".Consumer";case Um: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 gw(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 Hm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vw(e){var t=Hm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ui(e){e._valueTracker||(e._valueTracker=vw(e))}function qm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cu(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qm(e,t){t=t.checked,t!=null&&Vc(e,"checked",t,!1)}function Eu(e,t){Qm(e,t);var n=Tn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ru(e,t.type,Tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ru(e,t,n){(t!=="number"||Bo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Tn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ku(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(xs(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tn(n)}}function Km(e,t){var n=Tn(t.value),r=Tn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Yf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wm(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"?Wm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,Zm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ks(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yw=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){yw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Gm(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 Xm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Gm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var ww=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(ww[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Nu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ju=null;function Kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tu=null,Nr=null,jr=null;function Jf(e){if(e=Ei(e)){if(typeof Tu!="function")throw Error(I(280));var t=e.stateNode;t&&(t=_a(t),Tu(e.stateNode,e.type,t))}}function Ym(e){Nr?jr?jr.push(e):jr=[e]:Nr=e}function Jm(){if(Nr){var e=Nr,t=jr;if(jr=Nr=null,Jf(e),t)for(e=0;e<t.length;e++)Jf(t[e])}}function e1(e,t){return e(t)}function t1(){}var bl=!1;function n1(e,t,n){if(bl)return e(t,n);bl=!0;try{return e1(e,t,n)}finally{bl=!1,(Nr!==null||jr!==null)&&(t1(),Jm())}}function Ws(e,t){var n=e.stateNode;if(n===null)return null;var r=_a(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var Iu=!1;if(Yt)try{var os={};Object.defineProperty(os,"passive",{get:function(){Iu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Iu=!1}function xw(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ps=!1,Vo=null,Ho=!1,_u=null,Sw={onError:function(e){Ps=!0,Vo=e}};function bw(e,t,n,r,s,i,o,a,l){Ps=!1,Vo=null,xw.apply(Sw,arguments)}function Cw(e,t,n,r,s,i,o,a,l){if(bw.apply(this,arguments),Ps){if(Ps){var u=Vo;Ps=!1,Vo=null}else throw Error(I(198));Ho||(Ho=!0,_u=u)}}function or(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function r1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eh(e){if(or(e)!==e)throw Error(I(188))}function Ew(e){var t=e.alternate;if(!t){if(t=or(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return eh(s),e;if(i===r)return eh(s),t;i=i.sibling}throw Error(I(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function s1(e){return e=Ew(e),e!==null?i1(e):null}function i1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=i1(e);if(t!==null)return t;e=e.sibling}return null}var o1=et.unstable_scheduleCallback,th=et.unstable_cancelCallback,Rw=et.unstable_shouldYield,kw=et.unstable_requestPaint,le=et.unstable_now,Pw=et.unstable_getCurrentPriorityLevel,Wc=et.unstable_ImmediatePriority,a1=et.unstable_UserBlockingPriority,qo=et.unstable_NormalPriority,Ow=et.unstable_LowPriority,l1=et.unstable_IdlePriority,Na=null,Ft=null;function Nw(e){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(Na,e,void 0,(e.current.flags&128)===128)}catch{}}var Et=Math.clz32?Math.clz32:Iw,jw=Math.log,Tw=Math.LN2;function Iw(e){return e>>>=0,e===0?32:31-(jw(e)/Tw|0)|0}var Vi=64,Hi=4194304;function Ss(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ss(a):(i&=o,i!==0&&(r=Ss(i)))}else o=n&~s,o!==0?r=Ss(o):i!==0&&(r=Ss(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Et(t),s=1<<n,r|=e[n],t&=~s;return r}function _w(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 Aw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Et(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=_w(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 u1(){var e=Vi;return Vi<<=1,!(Vi&4194240)&&(Vi=64),e}function Cl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function Lw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Et(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Zc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Y=0;function c1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var d1,Gc,f1,h1,p1,Lu=!1,qi=[],bn=null,Cn=null,En=null,Zs=new Map,Gs=new Map,pn=[],Mw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nh(e,t){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":Cn=null;break;case"mouseover":case"mouseout":En=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gs.delete(t.pointerId)}}function as(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ei(t),t!==null&&Gc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Dw(e,t,n,r,s){switch(t){case"focusin":return bn=as(bn,e,t,n,r,s),!0;case"dragenter":return Cn=as(Cn,e,t,n,r,s),!0;case"mouseover":return En=as(En,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Zs.set(i,as(Zs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Gs.set(i,as(Gs.get(i)||null,e,t,n,r,s)),!0}return!1}function m1(e){var t=Qn(e.target);if(t!==null){var n=or(t);if(n!==null){if(t=n.tag,t===13){if(t=r1(n),t!==null){e.blockedOn=t,p1(e.priority,function(){f1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ju=r,n.target.dispatchEvent(r),ju=null}else return t=Ei(n),t!==null&&Gc(t),e.blockedOn=n,!1;t.shift()}return!0}function rh(e,t,n){mo(e)&&n.delete(t)}function Fw(){Lu=!1,bn!==null&&mo(bn)&&(bn=null),Cn!==null&&mo(Cn)&&(Cn=null),En!==null&&mo(En)&&(En=null),Zs.forEach(rh),Gs.forEach(rh)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Lu||(Lu=!0,et.unstable_scheduleCallback(et.unstable_NormalPriority,Fw)))}function Xs(e){function t(s){return ls(s,e)}if(0<qi.length){ls(qi[0],e);for(var n=1;n<qi.length;n++){var r=qi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bn!==null&&ls(bn,e),Cn!==null&&ls(Cn,e),En!==null&&ls(En,e),Zs.forEach(t),Gs.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)m1(n),n.blockedOn===null&&pn.shift()}var Tr=rn.ReactCurrentBatchConfig,Ko=!0;function $w(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 zw(e,t,n,r){var s=Y,i=Tr.transition;Tr.transition=null;try{Y=4,Xc(e,t,n,r)}finally{Y=s,Tr.transition=i}}function Xc(e,t,n,r){if(Ko){var s=Mu(e,t,n,r);if(s===null)_l(e,t,r,Wo,n),nh(e,r);else if(Dw(s,e,t,n,r))r.stopPropagation();else if(nh(e,r),t&4&&-1<Mw.indexOf(e)){for(;s!==null;){var i=Ei(s);if(i!==null&&d1(i),i=Mu(e,t,n,r),i===null&&_l(e,t,r,Wo,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else _l(e,t,r,null,n)}}var Wo=null;function Mu(e,t,n,r){if(Wo=null,e=Kc(r),e=Qn(e),e!==null)if(t=or(e),t===null)e=null;else if(n=t.tag,n===13){if(e=r1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wo=e,null}function g1(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(Pw()){case Wc:return 1;case a1:return 4;case qo:case Ow:return 16;case l1:return 536870912;default:return 16}default:return 16}}var vn=null,Yc=null,go=null;function v1(){if(go)return go;var e,t=Yc,n=t.length,r,s="value"in vn?vn.value:vn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return go=s.slice(e,1<r?1-r:void 0)}function vo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qi(){return!0}function sh(){return!1}function nt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qi:sh,this.isPropagationStopped=sh,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qi)},persist:function(){},isPersistent:Qi}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jc=nt(Xr),Ci=ie({},Xr,{view:0,detail:0}),Uw=nt(Ci),El,Rl,us,ja=ie({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ed,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==us&&(us&&e.type==="mousemove"?(El=e.screenX-us.screenX,Rl=e.screenY-us.screenY):Rl=El=0,us=e),El)},movementY:function(e){return"movementY"in e?e.movementY:Rl}}),ih=nt(ja),Bw=ie({},ja,{dataTransfer:0}),Vw=nt(Bw),Hw=ie({},Ci,{relatedTarget:0}),kl=nt(Hw),qw=ie({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Qw=nt(qw),Kw=ie({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ww=nt(Kw),Zw=ie({},Xr,{data:0}),oh=nt(Zw),Gw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xw={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"},Yw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yw[e])?!!t[e]:!1}function ed(){return Jw}var ex=ie({},Ci,{key:function(e){if(e.key){var t=Gw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ed,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tx=nt(ex),nx=ie({},ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=nt(nx),rx=ie({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ed}),sx=nt(rx),ix=ie({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ox=nt(ix),ax=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}),lx=nt(ax),ux=[9,13,27,32],td=Yt&&"CompositionEvent"in window,Os=null;Yt&&"documentMode"in document&&(Os=document.documentMode);var cx=Yt&&"TextEvent"in window&&!Os,y1=Yt&&(!td||Os&&8<Os&&11>=Os),lh=String.fromCharCode(32),uh=!1;function w1(e,t){switch(e){case"keyup":return ux.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function dx(e,t){switch(e){case"compositionend":return x1(t);case"keypress":return t.which!==32?null:(uh=!0,lh);case"textInput":return e=t.data,e===lh&&uh?null:e;default:return null}}function fx(e,t){if(vr)return e==="compositionend"||!td&&w1(e,t)?(e=v1(),go=Yc=vn=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return y1&&t.locale!=="ko"?null:t.data;default:return null}}var hx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ch(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hx[e.type]:t==="textarea"}function S1(e,t,n,r){Ym(r),t=Zo(t,"onChange"),0<t.length&&(n=new Jc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Ys=null;function px(e){I1(e,0)}function Ta(e){var t=xr(e);if(qm(t))return e}function mx(e,t){if(e==="change")return t}var b1=!1;if(Yt){var Pl;if(Yt){var Ol="oninput"in document;if(!Ol){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),Ol=typeof dh.oninput=="function"}Pl=Ol}else Pl=!1;b1=Pl&&(!document.documentMode||9<document.documentMode)}function fh(){Ns&&(Ns.detachEvent("onpropertychange",C1),Ys=Ns=null)}function C1(e){if(e.propertyName==="value"&&Ta(Ys)){var t=[];S1(t,Ys,e,Kc(e)),n1(px,t)}}function gx(e,t,n){e==="focusin"?(fh(),Ns=t,Ys=n,Ns.attachEvent("onpropertychange",C1)):e==="focusout"&&fh()}function vx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ta(Ys)}function yx(e,t){if(e==="click")return Ta(t)}function wx(e,t){if(e==="input"||e==="change")return Ta(t)}function xx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:xx;function Js(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!yu.call(t,s)||!kt(e[s],t[s]))return!1}return!0}function hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ph(e,t){var n=hh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hh(n)}}function E1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?E1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function R1(){for(var e=window,t=Bo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bo(e.document)}return t}function nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Sx(e){var t=R1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&E1(n.ownerDocument.documentElement,n)){if(r!==null&&nd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ph(n,i);var o=ph(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var bx=Yt&&"documentMode"in document&&11>=document.documentMode,yr=null,Du=null,js=null,Fu=!1;function mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fu||yr==null||yr!==Bo(r)||(r=yr,"selectionStart"in r&&nd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),js&&Js(js,r)||(js=r,r=Zo(Du,"onSelect"),0<r.length&&(t=new Jc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function Ki(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Ki("Animation","AnimationEnd"),animationiteration:Ki("Animation","AnimationIteration"),animationstart:Ki("Animation","AnimationStart"),transitionend:Ki("Transition","TransitionEnd")},Nl={},k1={};Yt&&(k1=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);function Ia(e){if(Nl[e])return Nl[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in k1)return Nl[e]=t[n];return e}var P1=Ia("animationend"),O1=Ia("animationiteration"),N1=Ia("animationstart"),j1=Ia("transitionend"),T1=new Map,gh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ln(e,t){T1.set(e,t),ir(t,[e])}for(var jl=0;jl<gh.length;jl++){var Tl=gh[jl],Cx=Tl.toLowerCase(),Ex=Tl[0].toUpperCase()+Tl.slice(1);Ln(Cx,"on"+Ex)}Ln(P1,"onAnimationEnd");Ln(O1,"onAnimationIteration");Ln(N1,"onAnimationStart");Ln("dblclick","onDoubleClick");Ln("focusin","onFocus");Ln("focusout","onBlur");Ln(j1,"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(" "),Rx=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function vh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cw(r,t,void 0,e),e.currentTarget=null}function I1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}}}if(Ho)throw e=_u,Ho=!1,_u=null,e}function ee(e,t){var n=t[Vu];n===void 0&&(n=t[Vu]=new Set);var r=e+"__bubble";n.has(r)||(_1(t,e,2,!1),n.add(r))}function Il(e,t,n){var r=0;t&&(r|=4),_1(n,e,r,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Wi]){e[Wi]=!0,zm.forEach(function(n){n!=="selectionchange"&&(Rx.has(n)||Il(n,!1,e),Il(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Il("selectionchange",!1,t))}}function _1(e,t,n,r){switch(g1(t)){case 1:var s=$w;break;case 4:s=zw;break;default:s=Xc}n=s.bind(null,t,n,e),s=void 0,!Iu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function _l(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Qn(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}n1(function(){var u=i,c=Kc(n),d=[];e:{var h=T1.get(e);if(h!==void 0){var g=Jc,p=e;switch(e){case"keypress":if(vo(n)===0)break e;case"keydown":case"keyup":g=tx;break;case"focusin":p="focus",g=kl;break;case"focusout":p="blur",g=kl;break;case"beforeblur":case"afterblur":g=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":g=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Vw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=sx;break;case P1:case O1:case N1:g=Qw;break;case j1:g=ox;break;case"scroll":g=Uw;break;case"wheel":g=lx;break;case"copy":case"cut":case"paste":g=Ww;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ah}var w=(t&4)!==0,S=!w&&e==="scroll",m=w?h!==null?h+"Capture":null:h;w=[];for(var v=u,y;v!==null;){y=v;var b=y.stateNode;if(y.tag===5&&b!==null&&(y=b,m!==null&&(b=Ws(v,m),b!=null&&w.push(ti(v,b,y)))),S)break;v=v.return}0<w.length&&(h=new g(h,p,null,n,c),d.push({event:h,listeners:w}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==ju&&(p=n.relatedTarget||n.fromElement)&&(Qn(p)||p[Jt]))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?Qn(p):null,p!==null&&(S=or(p),p!==S||p.tag!==5&&p.tag!==6)&&(p=null)):(g=null,p=u),g!==p)){if(w=ih,b="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(w=ah,b="onPointerLeave",m="onPointerEnter",v="pointer"),S=g==null?h:xr(g),y=p==null?h:xr(p),h=new w(b,v+"leave",g,n,c),h.target=S,h.relatedTarget=y,b=null,Qn(c)===u&&(w=new w(m,v+"enter",p,n,c),w.target=y,w.relatedTarget=S,b=w),S=b,g&&p)t:{for(w=g,m=p,v=0,y=w;y;y=dr(y))v++;for(y=0,b=m;b;b=dr(b))y++;for(;0<v-y;)w=dr(w),v--;for(;0<y-v;)m=dr(m),y--;for(;v--;){if(w===m||m!==null&&w===m.alternate)break t;w=dr(w),m=dr(m)}w=null}else w=null;g!==null&&yh(d,h,g,w,!1),p!==null&&S!==null&&yh(d,S,p,w,!0)}}e:{if(h=u?xr(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var E=mx;else if(ch(h))if(b1)E=wx;else{E=vx;var k=gx}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=yx);if(E&&(E=E(e,u))){S1(d,E,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Ru(h,"number",h.value)}switch(k=u?xr(u):window,e){case"focusin":(ch(k)||k.contentEditable==="true")&&(yr=k,Du=u,js=null);break;case"focusout":js=Du=yr=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,mh(d,n,c);break;case"selectionchange":if(bx)break;case"keydown":case"keyup":mh(d,n,c)}var R;if(td)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else vr?w1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(y1&&n.locale!=="ko"&&(vr||P!=="onCompositionStart"?P==="onCompositionEnd"&&vr&&(R=v1()):(vn=c,Yc="value"in vn?vn.value:vn.textContent,vr=!0)),k=Zo(u,P),0<k.length&&(P=new oh(P,e,null,n,c),d.push({event:P,listeners:k}),R?P.data=R:(R=x1(n),R!==null&&(P.data=R)))),(R=cx?dx(e,n):fx(e,n))&&(u=Zo(u,"onBeforeInput"),0<u.length&&(c=new oh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=R))}I1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ws(e,n),i!=null&&r.unshift(ti(e,i,s)),i=Ws(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function dr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yh(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Ws(n,i),l!=null&&o.unshift(ti(n,l,a))):s||(l=Ws(n,i),l!=null&&o.push(ti(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kx=/\r\n?/g,Px=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(kx,`
38
+ `).replace(Px,"")}function Zi(e,t,n){if(t=wh(t),wh(e)!==t&&n)throw Error(I(425))}function Go(){}var $u=null,zu=null;function Uu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bu=typeof setTimeout=="function"?setTimeout:void 0,Ox=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Nx=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(jx)}:Bu;function jx(e){setTimeout(function(){throw e})}function Al(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Xs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Xs(t)}function Rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Yr=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Yr,ni="__reactProps$"+Yr,Jt="__reactContainer$"+Yr,Vu="__reactEvents$"+Yr,Tx="__reactListeners$"+Yr,Ix="__reactHandles$"+Yr;function Qn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sh(e);e!==null;){if(n=e[Mt])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Ei(e){return e=e[Mt]||e[Jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function _a(e){return e[ni]||null}var Hu=[],Sr=-1;function Mn(e){return{current:e}}function te(e){0>Sr||(e.current=Hu[Sr],Hu[Sr]=null,Sr--)}function J(e,t){Sr++,Hu[Sr]=e.current,e.current=t}var In={},ke=Mn(In),Ve=Mn(!1),Yn=In;function $r(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function He(e){return e=e.childContextTypes,e!=null}function Xo(){te(Ve),te(ke)}function bh(e,t,n){if(ke.current!==In)throw Error(I(168));J(ke,t),J(Ve,n)}function A1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(I(108,gw(e)||"Unknown",s));return ie({},n,r)}function Yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Yn=ke.current,J(ke,e),J(Ve,Ve.current),!0}function Ch(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=A1(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 L1(e){Kt===null?Kt=[e]:Kt.push(e)}function _x(e){Aa=!0,L1(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)),o1(Wc,Dn),s}finally{Y=t,Ll=!1}}return null}var br=[],Cr=0,Jo=null,ea=0,at=[],lt=0,Jn=null,Wt=1,Zt="";function Bn(e,t){br[Cr++]=ea,br[Cr++]=Jo,Jo=e,ea=t}function M1(e,t,n){at[lt++]=Wt,at[lt++]=Zt,at[lt++]=Jn,Jn=e;var r=Wt;e=Zt;var s=32-Et(r)-1;r&=~(1<<s),n+=1;var i=32-Et(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Wt=1<<32-Et(t)+s|n<<s|r,Zt=i+e}else Wt=1<<i|n<<s|r,Zt=e}function rd(e){e.return!==null&&(Bn(e,1),M1(e,1,0))}function sd(e){for(;e===Jo;)Jo=br[--Cr],br[Cr]=null,ea=br[--Cr],br[Cr]=null;for(;e===Jn;)Jn=at[--lt],at[lt]=null,Zt=at[--lt],at[lt]=null,Wt=at[--lt],at[lt]=null}var Ye=null,Ze=null,ne=!1,St=null;function D1(e,t){var n=dt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Eh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ye=e,Ze=Rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ye=e,Ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jn!==null?{id:Wt,overflow:Zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ye=e,Ze=null,!0):!1;default:return!1}}function qu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qu(e){if(ne){var t=Ze;if(t){var n=t;if(!Eh(e,t)){if(qu(e))throw Error(I(418));t=Rn(n.nextSibling);var r=Ye;t&&Eh(e,t)?D1(r,n):(e.flags=e.flags&-4097|2,ne=!1,Ye=e)}}else{if(qu(e))throw Error(I(418));e.flags=e.flags&-4097|2,ne=!1,Ye=e}}}function Rh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ye=e}function Gi(e){if(e!==Ye)return!1;if(!ne)return Rh(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Uu(e.type,e.memoizedProps)),t&&(t=Ze)){if(qu(e))throw F1(),Error(I(418));for(;t;)D1(e,t),t=Rn(t.nextSibling)}if(Rh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ze=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ze=null}}else Ze=Ye?Rn(e.stateNode.nextSibling):null;return!0}function F1(){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 Ax=rn.ReactCurrentBatchConfig;function wt(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ta=Mn(null),na=null,Er=null,od=null;function ad(){od=Er=na=null}function ld(e){var t=ta.current;te(ta),e._currentValue=t}function Ku(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ir(e,t){na=e,od=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(od!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(na===null)throw Error(I(308));Er=e,na.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var Kn=null;function ud(e){Kn===null?Kn=[e]:Kn.push(e)}function $1(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 z1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,en(e,n)}return s=r.interleaved,s===null?(t.next=t,ud(r)):(t.next=s.next,s.next=t),r.interleaved=t,en(e,n)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zc(e,n)}}function kh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ra(e,t,n,r){var s=e.updateQueue;hn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,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,w=a;switch(h=t,g=n,w.tag){case 1:if(p=w.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=w.payload,h=typeof p=="function"?p.call(g,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 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=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);tr|=o,e.lanes=o,e.memoizedState=d}}function Ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(I(191,s));s.call(r)}}}var U1=new $m.Component().refs;function Wu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var La={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Te(),s=On(e),i=Xt(r,s);i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,s),t!==null&&(Rt(t,e,s,r),yo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Te(),s=On(e),i=Xt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=kn(e,i,s),t!==null&&(Rt(t,e,s,r),yo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Te(),r=On(e),s=Xt(n,r);s.tag=2,t!=null&&(s.callback=t),t=kn(e,s,r),t!==null&&(Rt(t,e,r,n),yo(t,e,r))}};function Oh(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Js(n,r)||!Js(s,i):!0}function B1(e,t,n){var r=!1,s=In,i=t.contextType;return typeof i=="object"&&i!==null?i=ht(i):(s=He(t)?Yn:ke.current,r=t.contextTypes,i=(r=r!=null)?$r(e,s):In),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=La,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&La.enqueueReplaceState(t,t.state,null)}function Zu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=U1,cd(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ht(i):(i=He(t)?Yn:ke.current,s.context=$r(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Wu(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&La.enqueueReplaceState(s,s.state,null),ra(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===U1&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function Xi(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jh(e){var t=e._init;return t(e._payload)}function V1(e){function t(m,v){if(e){var y=m.deletions;y===null?(m.deletions=[v],m.flags|=16):y.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 s(m,v){return m=Nn(m,v),m.index=0,m.sibling=null,m}function i(m,v,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<v?(m.flags|=2,v):y):(m.flags|=2,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,v,y,b){return v===null||v.tag!==6?(v=Bl(y,m.mode,b),v.return=m,v):(v=s(v,y),v.return=m,v)}function l(m,v,y,b){var E=y.type;return E===gr?c(m,v,y.props.children,b,y.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===fn&&jh(E)===v.type)?(b=s(v,y.props),b.ref=cs(m,v,y),b.return=m,b):(b=Eo(y.type,y.key,y.props,null,m.mode,b),b.ref=cs(m,v,y),b.return=m,b)}function u(m,v,y,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==y.containerInfo||v.stateNode.implementation!==y.implementation?(v=Vl(y,m.mode,b),v.return=m,v):(v=s(v,y.children||[]),v.return=m,v)}function c(m,v,y,b,E){return v===null||v.tag!==7?(v=Xn(y,m.mode,b,E),v.return=m,v):(v=s(v,y),v.return=m,v)}function d(m,v,y){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Bl(""+v,m.mode,y),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case zi:return y=Eo(v.type,v.key,v.props,null,m.mode,y),y.ref=cs(m,null,v),y.return=m,y;case mr:return v=Vl(v,m.mode,y),v.return=m,v;case fn:var b=v._init;return d(m,b(v._payload),y)}if(xs(v)||is(v))return v=Xn(v,m.mode,y,null),v.return=m,v;Xi(m,v)}return null}function h(m,v,y,b){var E=v!==null?v.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(m,v,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zi:return y.key===E?l(m,v,y,b):null;case mr:return y.key===E?u(m,v,y,b):null;case fn:return E=y._init,h(m,v,E(y._payload),b)}if(xs(y)||is(y))return E!==null?null:c(m,v,y,b,null);Xi(m,y)}return null}function g(m,v,y,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(y)||null,a(v,m,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case zi:return m=m.get(b.key===null?y:b.key)||null,l(v,m,b,E);case mr:return m=m.get(b.key===null?y:b.key)||null,u(v,m,b,E);case fn:var k=b._init;return g(m,v,y,k(b._payload),E)}if(xs(b)||is(b))return m=m.get(y)||null,c(v,m,b,E,null);Xi(v,b)}return null}function p(m,v,y,b){for(var E=null,k=null,R=v,P=v=0,L=null;R!==null&&P<y.length;P++){R.index>P?(L=R,R=null):L=R.sibling;var M=h(m,R,y[P],b);if(M===null){R===null&&(R=L);break}e&&R&&M.alternate===null&&t(m,R),v=i(M,v,P),k===null?E=M:k.sibling=M,k=M,R=L}if(P===y.length)return n(m,R),ne&&Bn(m,P),E;if(R===null){for(;P<y.length;P++)R=d(m,y[P],b),R!==null&&(v=i(R,v,P),k===null?E=R:k.sibling=R,k=R);return ne&&Bn(m,P),E}for(R=r(m,R);P<y.length;P++)L=g(R,m,P,y[P],b),L!==null&&(e&&L.alternate!==null&&R.delete(L.key===null?P:L.key),v=i(L,v,P),k===null?E=L:k.sibling=L,k=L);return e&&R.forEach(function(T){return t(m,T)}),ne&&Bn(m,P),E}function w(m,v,y,b){var E=is(y);if(typeof E!="function")throw Error(I(150));if(y=E.call(y),y==null)throw Error(I(151));for(var k=E=null,R=v,P=v=0,L=null,M=y.next();R!==null&&!M.done;P++,M=y.next()){R.index>P?(L=R,R=null):L=R.sibling;var T=h(m,R,M.value,b);if(T===null){R===null&&(R=L);break}e&&R&&T.alternate===null&&t(m,R),v=i(T,v,P),k===null?E=T:k.sibling=T,k=T,R=L}if(M.done)return n(m,R),ne&&Bn(m,P),E;if(R===null){for(;!M.done;P++,M=y.next())M=d(m,M.value,b),M!==null&&(v=i(M,v,P),k===null?E=M:k.sibling=M,k=M);return ne&&Bn(m,P),E}for(R=r(m,R);!M.done;P++,M=y.next())M=g(R,m,P,M.value,b),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?P:M.key),v=i(M,v,P),k===null?E=M:k.sibling=M,k=M);return e&&R.forEach(function(D){return t(m,D)}),ne&&Bn(m,P),E}function S(m,v,y,b){if(typeof y=="object"&&y!==null&&y.type===gr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case zi:e:{for(var E=y.key,k=v;k!==null;){if(k.key===E){if(E=y.type,E===gr){if(k.tag===7){n(m,k.sibling),v=s(k,y.props.children),v.return=m,m=v;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===fn&&jh(E)===k.type){n(m,k.sibling),v=s(k,y.props),v.ref=cs(m,k,y),v.return=m,m=v;break e}n(m,k);break}else t(m,k);k=k.sibling}y.type===gr?(v=Xn(y.props.children,m.mode,b,y.key),v.return=m,m=v):(b=Eo(y.type,y.key,y.props,null,m.mode,b),b.ref=cs(m,v,y),b.return=m,m=b)}return o(m);case mr:e:{for(k=y.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(m,v.sibling),v=s(v,y.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Vl(y,m.mode,b),v.return=m,m=v}return o(m);case fn:return k=y._init,S(m,v,k(y._payload),b)}if(xs(y))return p(m,v,y,b);if(is(y))return w(m,v,y,b);Xi(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(m,v.sibling),v=s(v,y),v.return=m,m=v):(n(m,v),v=Bl(y,m.mode,b),v.return=m,m=v),o(m)):n(m,v)}return S}var Ur=V1(!0),H1=V1(!1),Ri={},$t=Mn(Ri),ri=Mn(Ri),si=Mn(Ri);function Wn(e){if(e===Ri)throw Error(I(174));return e}function dd(e,t){switch(J(si,t),J(ri,e),J($t,Ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pu(t,e)}te($t),J($t,t)}function Br(){te($t),te(ri),te(si)}function q1(e){Wn(si.current);var t=Wn($t.current),n=Pu(t,e.type);t!==n&&(J(ri,e),J($t,n))}function fd(e){ri.current===e&&(te($t),te(ri))}var re=Mn(0);function sa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ml=[];function hd(){for(var e=0;e<Ml.length;e++)Ml[e]._workInProgressVersionPrimary=null;Ml.length=0}var wo=rn.ReactCurrentDispatcher,Dl=rn.ReactCurrentBatchConfig,er=0,se=null,de=null,pe=null,ia=!1,Ts=!1,ii=0,Lx=0;function Ce(){throw Error(I(321))}function pd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kt(e[n],t[n]))return!1;return!0}function md(e,t,n,r,s,i){if(er=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wo.current=e===null||e.memoizedState===null?$x:zx,e=n(r,s),Ts){i=0;do{if(Ts=!1,ii=0,25<=i)throw Error(I(301));i+=1,pe=de=null,t.updateQueue=null,wo.current=Ux,e=n(r,s)}while(Ts)}if(wo.current=oa,t=de!==null&&de.next!==null,er=0,pe=de=se=null,ia=!1,t)throw Error(I(300));return e}function gd(){var e=ii!==0;return ii=0,e}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?se.memoizedState=pe=e:pe=pe.next=e,pe}function pt(){if(de===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=de.next;var t=pe===null?se.memoizedState:pe.next;if(t!==null)pe=t,de=e;else{if(e===null)throw Error(I(310));de=e,e={memoizedState:de.memoizedState,baseState:de.baseState,baseQueue:de.baseQueue,queue:de.queue,next:null},pe===null?se.memoizedState=pe=e:pe=pe.next=e}return pe}function oi(e,t){return typeof t=="function"?t(e):t}function Fl(e){var t=pt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=de,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((er&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,se.lanes|=c,tr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,kt(r,t.memoizedState)||(Be=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,se.lanes|=i,tr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $l(e){var t=pt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);kt(i,t.memoizedState)||(Be=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Q1(){}function K1(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(G1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,ai(9,Z1.bind(null,n,r,s,t),void 0,null),me===null)throw Error(I(349));er&30||W1(n,t,s)}return s}function W1(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 Z1(e,t,n,r){t.value=n,t.getSnapshot=r,X1(t)&&Y1(e)}function G1(e,t,n){return n(function(){X1(t)&&Y1(e)})}function X1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kt(e,n)}catch{return!0}}function Y1(e){var t=en(e,1);t!==null&&Rt(t,e,1,-1)}function Th(e){var t=At();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=Fx.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 J1(){return pt().memoizedState}function xo(e,t,n,r){var s=At();se.flags|=e,s.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Ma(e,t,n,r){var s=pt();r=r===void 0?null:r;var i=void 0;if(de!==null){var o=de.memoizedState;if(i=o.destroy,r!==null&&pd(r,o.deps)){s.memoizedState=ai(t,n,i,r);return}}se.flags|=e,s.memoizedState=ai(1|t,n,i,r)}function Ih(e,t){return xo(8390656,8,e,t)}function vd(e,t){return Ma(2048,8,e,t)}function eg(e,t){return Ma(4,2,e,t)}function tg(e,t){return Ma(4,4,e,t)}function ng(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 rg(e,t,n){return n=n!=null?n.concat([e]):null,Ma(4,4,ng.bind(null,t,e),n)}function yd(){}function sg(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 ig(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function og(e,t,n){return er&21?(kt(n,t)||(n=u1(),se.lanes|=n,tr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Be=!0),e.memoizedState=n)}function Mx(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 ag(){return pt().memoizedState}function Dx(e,t,n){var r=On(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lg(e))ug(t,n);else if(n=$1(e,t,n,r),n!==null){var s=Te();Rt(n,e,r,s),cg(n,t,r)}}function Fx(e,t,n){var r=On(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lg(e))ug(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=$1(e,t,s,r),n!==null&&(s=Te(),Rt(n,e,r,s),cg(n,t,r))}}function lg(e){var t=e.alternate;return e===se||t!==null&&t===se}function ug(e,t){Ts=ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zc(e,n)}}var oa={readContext:ht,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},$x={readContext:ht,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xo(4194308,4,ng.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dx.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:yd,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=Mx.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=At();if(ne){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),me===null)throw Error(I(349));er&30||W1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Ih(G1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,Z1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=At(),t=me.identifierPrefix;if(ne){var n=Zt,r=Wt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Lx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zx={readContext:ht,useCallback:sg,useContext:ht,useEffect:vd,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ig,useReducer:Fl,useRef:J1,useState:function(){return Fl(oi)},useDebugValue:yd,useDeferredValue:function(e){var t=pt();return og(t,de.memoizedState,e)},useTransition:function(){var e=Fl(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Q1,useSyncExternalStore:K1,useId:ag,unstable_isNewReconciler:!1},Ux={readContext:ht,useCallback:sg,useContext:ht,useEffect:vd,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ig,useReducer:$l,useRef:J1,useState:function(){return $l(oi)},useDebugValue:yd,useDeferredValue:function(e){var t=pt();return de===null?t.memoizedState=e:og(t,de.memoizedState,e)},useTransition:function(){var e=$l(oi)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Q1,useSyncExternalStore:K1,useId:ag,unstable_isNewReconciler:!1};function Vr(e,t){try{var n="",r=t;do n+=mw(r),r=r.return;while(r);var s=n}catch(i){s=`
39
39
  Error generating stack: `+i.message+`
40
- `+i.stack}return{value:e,source:t,stack:s,digest:null}}function $l(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Zu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bx=typeof WeakMap=="function"?WeakMap:Map;function dg(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){la||(la=!0,ic=r),Zu(e,t)},n}function fg(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(){Zu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Zu(e,t),typeof r!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function _h(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bx;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=nS.bind(null,e,t,n),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Lh(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xt(-1,1),t.tag=2,kn(n,t,1))),n.lanes|=1),e)}var Vx=rn.ReactCurrentOwner,Be=!1;function Ne(e,t,n,r){t.child=e===null?H1(t,null,n,r):Ur(t,e.child,n,r)}function Mh(e,t,n,r,s){n=n.render;var i=t.ref;return Ir(t,s),r=pd(e,t,n,r,i,s),n=md(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(ne&&n&&nd(t),t.flags|=1,Ne(e,t,r,s),t.child)}function Dh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Rd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,hg(e,t,i,r,s)):(e=Eo(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Js,n(o,r)&&e.ref===t.ref)return tn(e,t,s)}return t.flags|=1,e=Nn(i,r),e.ref=t.ref,e.return=t,t.child=e}function hg(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 Gu(e,t,n,r,s)}function pg(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 mg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Gu(e,t,n,r,s){var i=He(n)?Yn:ke.current;return i=$r(t,i),Ir(t,s),n=pd(e,t,n,r,i,s),r=md(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(ne&&r&&nd(t),t.flags|=1,Ne(e,t,n,s),t.child)}function Fh(e,t,n,r,s){if(He(n)){var i=!0;Yo(t)}else i=!1;if(Ir(t,s),t.stateNode===null)So(e,t),B1(t,n,r),Wu(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=ht(u):(u=He(n)?Yn:ke.current,u=$r(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nh(t,o,r,u),hn=!1;var h=t.memoizedState;o.state=h,ra(t,r,o,s),l=t.memoizedState,a!==r||h!==l||Ve.current||hn?(typeof c=="function"&&(Ku(t,n,c,r),l=t.memoizedState),(a=hn||Oh(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,z1(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 g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,o,r,l),hn=!1,h=t.memoizedState,o.state=h,ra(t,r,o,s);var p=t.memoizedState;a!==d||h!==p||Ve.current||hn?(typeof g=="function"&&(Ku(t,n,g,r),p=t.memoizedState),(u=hn||Oh(t,n,u,r,h,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Xu(e,t,n,r,i,s)}function Xu(e,t,n,r,s,i){mg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Ch(t,n,!1),tn(e,t,i);r=t.stateNode,Vx.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 gg(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),cd(e,t.containerInfo)}function $h(e,t,n,r,s){return zr(),sd(s),t.flags|=256,Ne(e,t,n,r),t.child}var Yu={dehydrated:null,treeContext:null,retryLane:0};function Ju(e){return{baseLanes:e,cachePool:null,transitions:null}}function vg(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=Ju(n),t.memoizedState=Yu,e):yd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Hx(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?Ju(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Yu,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 yd(e,t){return t=$a({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yi(e,t,n,r){return r!==null&&sd(r),Ur(t,e.child,null,n),e=yd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=$l(Error(I(422))),Yi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=$a({mode:"visible",children:r.children},s,0,null),i=Xn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ur(t,e.child,null,o),t.child.memoizedState=Ju(o),t.memoizedState=Yu,i);if(!(t.mode&1))return Yi(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(I(419)),r=$l(i,r,void 0),Yi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Be||a){if(r=me,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,en(e,s),Rt(r,e,s,-1))}return Ed(),r=$l(Error(I(421))),Yi(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=rS.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=yd(t,r.children),t.flags|=4096,t)}function zh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qu(e.return,t,n)}function zl(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 yg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ne(e,t,r.children,n),r=re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zh(e,n,t);else if(e.tag===19)zh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(J(re,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&sa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),zl(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&sa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}zl(t,!0,n,null,i);break;case"together":zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function So(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qx(e,t,n){switch(t.tag){case 3:gg(t),zr();break;case 5:q1(t);break;case 1:He(t.type)&&Yo(t);break;case 4:cd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ta,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?vg(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 yg(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,pg(e,t,n)}return tn(e,t,n)}var wg,ec,xg,Sg;wg=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}};ec=function(){};xg=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=bu(e,s),r=bu(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=Ru(e,s),r=Ru(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Go)}Pu(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)}};Sg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ds(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ee(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qx(e,t,n){var r=t.pendingProps;switch(rd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(t),null;case 1:return He(t.type)&&Xo(),Ee(t),null;case 3:return r=t.stateNode,Br(),te(Ve),te(ke),fd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(lc(St),St=null))),ec(e,t),Ee(t),null;case 5:dd(t);var s=Wn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)xg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ee(t),null}if(e=Wn($t.current),Gi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mt]=t,r[ni]=i,e=(t.mode&1)!==0,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":Zf(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Xf(r,i),ee("invalid",r)}Pu(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Zi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Zi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Ui(r),Gf(r,i,!0);break;case"textarea":Ui(r),Yf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Go)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wm(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,wg(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ou(n,r),n){case"dialog":ee("cancel",e),ee("close",e),s=r;break;case"iframe":case"object":case"embed":ee("load",e),s=r;break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],e);s=r;break;case"source":ee("error",e),s=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),s=r;break;case"details":ee("toggle",e),s=r;break;case"input":Zf(e,r),s=bu(e,r),ee("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),ee("invalid",e);break;case"textarea":Xf(e,r),s=Ru(e,r),ee("invalid",e);break;default:s=r}Pu(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Xm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Zm(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&&Bc(e,i,l,o))}switch(n){case"input":Ui(e),Gf(e,r,!1);break;case"textarea":Ui(e),Yf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Or(e,!!r.multiple,i,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Go)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ee(t),null;case 6:if(e&&t.stateNode!=null)Sg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=Wn(si.current),Wn($t.current),Gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mt]=t,(i=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:Zi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mt]=t,t.stateNode=r}return Ee(t),null;case 13:if(te(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Ze!==null&&t.mode&1&&!(t.flags&128))F1(),zr(),t.flags|=98560,i=!1;else if(i=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[Mt]=t}else zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ee(t),i=!1}else St!==null&&(lc(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):Ed())),t.updateQueue!==null&&(t.flags|=4),Ee(t),null);case 4:return Br(),ec(e,t),e===null&&ei(t.stateNode.containerInfo),Ee(t),null;case 10:return ad(t.type._context),Ee(t),null;case 17:return He(t.type)&&Xo(),Ee(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return Ee(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ds(i,!1);else{if(fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=sa(e),o!==null){for(t.flags|=128,ds(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&le()>Hr&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304)}else{if(!r)if(e=sa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ne)return Ee(t),null}else 2*le()-i.renderingStartTime>Hr&&n!==1073741824&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=re.current,J(re,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return Cd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Kx(e,t){switch(rd(t),t.tag){case 1:return He(t.type)&&Xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),te(Ve),te(ke),fd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dd(t),null;case 13:if(te(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(re),null;case 4:return Br(),null;case 10:return ad(t.type._context),null;case 22:case 23:return Cd(),null;case 24:return null;default:return null}}var Ji=!1,Re=!1,Wx=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 tc(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Uh=!1;function Zx(e,t){if(Fu=Ko,e=R1(),td(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var 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 g;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),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++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($u={focusedElem:e,selectionRange:n},Ko=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,S=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:wt(t.type,y),S);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(I(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return p=Uh,Uh=!1,p}function Is(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&tc(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 nc(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 bg(e){var t=e.alternate;t!==null&&(e.alternate=null,bg(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[Bu],delete t[Tx],delete t[Ix])),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 Cg(e){return e.tag===5||e.tag===3||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cg(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 rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Go));else if(r!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function sc(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(sc(e,t,n),e=e.sibling;e!==null;)sc(e,t,n),e=e.sibling}var we=null,xt=!1;function un(e,t,n){for(n=n.child;n!==null;)Eg(e,t,n),n=n.sibling}function Eg(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?_l(e.parentNode,n):e.nodeType===1&&_l(e,n),Xs(e)):_l(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)&&tc(n,t,o),s=s.next}while(s!==r)}un(e,t,n);break;case 1:if(!Re&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,un(e,t,n),Re=r):un(e,t,n);break;default:un(e,t,n)}}function Vh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wx),t.forEach(function(r){var s=sS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:we=a.stateNode,xt=!1;break e;case 3:we=a.stateNode.containerInfo,xt=!0;break e;case 4:we=a.stateNode.containerInfo,xt=!0;break e}a=a.return}if(we===null)throw Error(I(160));Eg(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;)Rg(t,e),t=t.sibling}function Rg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yt(t,e),It(e),r&4){try{Is(3,e,e.return),Da(3,e)}catch(y){oe(e,e.return,y)}try{Is(5,e,e.return)}catch(y){oe(e,e.return,y)}}break;case 1:yt(t,e),It(e),r&512&&n!==null&&Rr(n,n.return);break;case 5:if(yt(t,e),It(e),r&512&&n!==null&&Rr(n,n.return),e.flags&32){var s=e.stateNode;try{Ks(s,"")}catch(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&&Qm(s,i),Ou(a,o);var u=Ou(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Xm(s,d):c==="dangerouslySetInnerHTML"?Zm(s,d):c==="children"?Ks(s,d):Bc(s,c,d,u)}switch(a){case"input":Cu(s,i);break;case"textarea":Km(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Or(s,!!i.multiple,g,!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),It(e),r&4){if(e.stateNode===null)throw Error(I(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),It(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),It(e);break;case 13:yt(t,e),It(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Sd=le())),r&4&&Vh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,yt(t,e),Re=u):yt(t,e),It(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(d=F=c;F!==null;){switch(h=F,g=h.child,h.tag){case 0:case 11:case 14:case 15:Is(4,h,h.return);break;case 1:Rr(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){oe(r,n,y)}}break;case 5:Rr(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}g!==null?(g.return=h,F=g):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=Gm("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),It(e),r&4&&Vh(e);break;case 21:break;default:yt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cg(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ks(s,""),r.flags&=-33);var i=Bh(e);sc(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bh(e);rc(e,a,o);break;default:throw Error(I(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gx(e,t,n){F=e,kg(e)}function kg(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Ji;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Re;a=Ji;var u=Re;if(Ji=o,(Re=l)&&!u)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Qh(s):l!==null?(l.return=o,F=l):Qh(s);for(;i!==null;)F=i,kg(i),i=i.sibling;F=s,Ji=a,Re=u}Hh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):Hh(e)}}function Hh(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||Da(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:wt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ph(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ph(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Xs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Re||t.flags&512&&nc(t)}catch(h){oe(t,t.return,h)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function qh(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Qh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Da(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){oe(t,s,l)}}var i=t.return;try{nc(t)}catch(l){oe(t,i,l)}break;case 5:var o=t.return;try{nc(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 Xx=Math.ceil,aa=rn.ReactCurrentDispatcher,wd=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,xd=0,_s=null,$e=null,Sd=0,Hr=1/0,qt=null,la=!1,ic=null,Pn=null,eo=!1,yn=null,ua=0,As=0,oc=null,bo=-1,Co=0;function Te(){return K&6?le():bo!==-1?bo:bo=le()}function On(e){return e.mode&1?K&2&&xe!==0?xe&-xe:Ax.transition!==null?(Co===0&&(Co=u1()),Co):(e=Y,e!==0||(e=window.event,e=e===void 0?16:g1(e.type)),e):1}function Rt(e,t,n,r){if(50<As)throw As=0,oc=null,Error(I(185));bi(e,n,r),(!(K&2)||e!==me)&&(e===me&&(!(K&2)&&(Fa|=n),fe===4&&mn(e,xe)),qe(e,r),n===1&&K===0&&!(t.mode&1)&&(Hr=le()+500,Aa&&Dn()))}function qe(e,t){var n=e.callbackNode;Aw(e,t);var r=Qo(e,e===me?xe:0);if(r===0)n!==null&&th(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&th(n),t===1)e.tag===0?_x(Kh.bind(null,e)):L1(Kh.bind(null,e)),Nx(function(){!(K&6)&&Dn()}),n=null;else{switch(c1(r)){case 1:n=Kc;break;case 4:n=a1;break;case 16:n=qo;break;case 536870912:n=l1;break;default:n=qo}n=Ag(n,Pg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pg(e,t){if(bo=-1,Co=0,K&6)throw Error(I(327));var n=e.callbackNode;if(_r()&&e.callbackNode!==n)return null;var r=Qo(e,e===me?xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ca(e,r);else{t=r;var s=K;K|=2;var i=Ng();(me!==e||xe!==t)&&(qt=null,Hr=le()+500,Gn(e,t));do try{eS();break}catch(a){Og(e,a)}while(1);od(),aa.current=i,K=s,ce!==null?t=0:(me=null,xe=0,t=fe)}if(t!==0){if(t===2&&(s=_u(e),s!==0&&(r=s,t=ac(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)&&!Yx(s)&&(t=ca(e,r),t===2&&(i=_u(e),i!==0&&(r=i,t=ac(e,i))),t===1))throw n=li,Gn(e,0),mn(e,r),qe(e,le()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:Vn(e,$e,qt);break;case 3:if(mn(e,r),(r&130023424)===r&&(t=Sd+500-le(),10<t)){if(Qo(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Te(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Uu(Vn.bind(null,e,$e,qt),t);break}Vn(e,$e,qt);break;case 4:if(mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Et(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xx(r/1960))-r,10<r){e.timeoutHandle=Uu(Vn.bind(null,e,$e,qt),r);break}Vn(e,$e,qt);break;case 5:Vn(e,$e,qt);break;default:throw Error(I(329))}}}return qe(e,le()),e.callbackNode===n?Pg.bind(null,e):null}function ac(e,t){var n=_s;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=ca(e,t),e!==2&&(t=$e,$e=n,t!==null&&lc(t)),e}function lc(e){$e===null?$e=e:$e.push.apply($e,e)}function Yx(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&=~xd,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Kh(e){if(K&6)throw Error(I(327));_r();var t=Qo(e,0);if(!(t&1))return qe(e,le()),null;var n=ca(e,t);if(e.tag!==0&&n===2){var r=_u(e);r!==0&&(t=r,n=ac(e,r))}if(n===1)throw n=li,Gn(e,0),mn(e,t),qe(e,le()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e,$e,qt),qe(e,le()),null}function bd(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(Hr=le()+500,Aa&&Dn())}}function nr(e){yn!==null&&yn.tag===0&&!(K&6)&&_r();var t=K;K|=1;var n=ft.transition,r=Y;try{if(ft.transition=null,Y=1,e)return e()}finally{Y=r,ft.transition=n,K=t,!(K&6)&&Dn()}}function 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,Ox(n)),ce!==null)for(n=ce.return;n!==null;){var r=n;switch(rd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xo();break;case 3:Br(),te(Ve),te(ke),fd();break;case 5:dd(r);break;case 4:Br();break;case 13:te(re);break;case 19:te(re);break;case 10:ad(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,xd=Fa=tr=0,$e=_s=null,Kn!==null){for(t=0;t<Kn.length;t++)if(n=Kn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Kn=null}return e}function Og(e,t){do{var n=ce;try{if(od(),wo.current=oa,ia){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ia=!1}if(er=0,pe=de=se=null,Ts=!1,ii=0,wd.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 g=Ah(o);if(g!==null){g.flags&=-257,Lh(g,o,a,i,t),g.mode&1&&_h(i,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)){_h(i,u,t),Ed();break e}l=Error(I(426))}}else if(ne&&a.mode&1){var S=Ah(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Lh(S,o,a,i,t),sd(Vr(l,a));break e}}i=l=Vr(l,a),fe!==4&&(fe=2),_s===null?_s=[i]:_s.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=dg(i,l,t);kh(i,m);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=fg(i,a,t);kh(i,b);break e}}i=i.return}while(i!==null)}Tg(n)}catch(E){t=E,ce===n&&n!==null&&(ce=n=n.return);continue}break}while(1)}function Ng(){var e=aa.current;return aa.current=oa,e===null?oa:e}function Ed(){(fe===0||fe===3||fe===2)&&(fe=4),me===null||!(tr&268435455)&&!(Fa&268435455)||mn(me,xe)}function ca(e,t){var n=K;K|=2;var r=Ng();(me!==e||xe!==t)&&(qt=null,Gn(e,t));do try{Jx();break}catch(s){Og(e,s)}while(1);if(od(),K=n,aa.current=r,ce!==null)throw Error(I(261));return me=null,xe=0,fe}function Jx(){for(;ce!==null;)jg(ce)}function eS(){for(;ce!==null&&!Rw();)jg(ce)}function jg(e){var t=_g(e.alternate,e,Ke);e.memoizedProps=e.pendingProps,t===null?Tg(e):ce=t,wd.current=null}function Tg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kx(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=Qx(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,tS(e,t,n,r)}finally{ft.transition=s,Y=r}return null}function tS(e,t,n,r){do _r();while(yn!==null);if(K&6)throw Error(I(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Lw(e,i),e===me&&(ce=me=null,xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||eo||(eo=!0,Ag(qo,function(){return _r(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ft.transition,ft.transition=null;var o=Y;Y=1;var a=K;K|=4,wd.current=null,Zx(e,n),Rg(n,e),Sx($u),Ko=!!Fu,$u=Fu=null,e.current=n,Gx(n),kw(),K=a,Y=o,ft.transition=i}else e.current=n;if(eo&&(eo=!1,yn=e,ua=s),i=e.pendingLanes,i===0&&(Pn=null),Nw(n.stateNode),qe(e,le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(la)throw la=!1,e=ic,ic=null,e;return ua&1&&e.tag!==0&&_r(),i=e.pendingLanes,i&1?e===oc?As++:(As=0,oc=e):As=0,Dn(),null}function _r(){if(yn!==null){var e=c1(ua),t=ft.transition,n=Y;try{if(ft.transition=null,Y=16>e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,ua=0,K&6)throw Error(I(331));var s=K;for(K|=4,F=e.current;F!==null;){var i=F,o=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Is(8,c,i)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var h=c.sibling,g=c.return;if(bg(c),c===u){F=null;break}if(h!==null){h.return=g,F=h;break}F=g}}}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:Is(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,F=m;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(E){oe(a,a.return,E)}if(a===o){F=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,F=b;break e}F=a.return}}if(K=s,Dn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Na,e)}catch{}r=!0}return r}finally{Y=n,ft.transition=t}}return!1}function Wh(e,t,n){t=Vr(n,t),t=dg(e,t,1),e=kn(e,t,1),t=Te(),e!==null&&(bi(e,1,t),qe(e,t))}function oe(e,t,n){if(e.tag===3)Wh(e,e,n);else for(;t!==null;){if(t.tag===3){Wh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Pn===null||!Pn.has(r))){e=Vr(n,e),e=fg(t,e,1),t=kn(t,e,1),e=Te(),t!==null&&(bi(t,1,e),qe(t,e));break}}t=t.return}}function nS(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()-Sd?Gn(e,0):xd|=n),qe(e,t)}function Ig(e,t){t===0&&(e.mode&1?(t=Hi,Hi<<=1,!(Hi&130023424)&&(Hi=4194304)):t=1);var n=Te();e=en(e,t),e!==null&&(bi(e,t,n),qe(e,n))}function rS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ig(e,n)}function sS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),Ig(e,n)}var _g;_g=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,qx(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ne&&t.flags&1048576&&M1(t,ea,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;So(e,t),e=t.pendingProps;var s=$r(t,ke.current);Ir(t,n),s=pd(null,t,r,e,s,n);var i=md();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(r)?(i=!0,Yo(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ud(t),s.updater=La,t.stateNode=s,s._reactInternals=t,Wu(t,r,e,n),t=Xu(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&nd(t),Ne(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(So(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=oS(r),e=wt(r,e),s){case 0:t=Gu(null,t,r,e,n);break e;case 1:t=Fh(null,t,r,e,n);break e;case 11:t=Mh(null,t,r,e,n);break e;case 14:t=Dh(null,t,r,wt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Gu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Fh(e,t,r,s,n);case 3:e:{if(gg(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,s=i.element,z1(e,t),ra(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Vr(Error(I(423)),t),t=$h(e,t,r,n,s);break e}else if(r!==s){s=Vr(Error(I(424)),t),t=$h(e,t,r,n,s);break e}else for(Ze=Rn(t.stateNode.containerInfo.firstChild),Ye=t,ne=!0,St=null,n=H1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===s){t=tn(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return q1(t),e===null&&qu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,zu(r,s)?o=null:i!==null&&zu(r,i)&&(t.flags|=32),mg(e,t),Ne(e,t,o,n),t.child;case 6:return e===null&&qu(t),null;case 13:return vg(e,t,n);case 4:return cd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Mh(e,t,r,s,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,J(ta,r._currentValue),r._currentValue=o,i!==null)if(kt(i.value,o)){if(i.children===s.children&&!Ve.current){t=tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Xt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Qu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(I(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Qu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ne(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ir(t,n),s=ht(s),r=r(s),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,s=wt(r,t.pendingProps),s=wt(r.type,s),Dh(e,t,r,s,n);case 15:return hg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),So(e,t),t.tag=1,He(r)?(e=!0,Yo(t)):e=!1,Ir(t,n),B1(t,r,s),Wu(t,r,s,n),Xu(null,t,r,!0,e,n);case 19:return yg(e,t,n);case 22:return pg(e,t,n)}throw Error(I(156,t.tag))};function Ag(e,t){return o1(e,t)}function iS(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 iS(e,t,n,r)}function Rd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oS(e){if(typeof e=="function")return Rd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hc)return 11;if(e===qc)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Eo(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Rd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gr:return Xn(n.children,s,i,t);case Vc:o=8,s|=8;break;case yu:return e=dt(12,n,t,s|2),e.elementType=yu,e.lanes=i,e;case wu:return e=dt(13,n,t,s),e.elementType=wu,e.lanes=i,e;case xu:return e=dt(19,n,t,s),e.elementType=xu,e.lanes=i,e;case Vm:return $a(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Um:o=10;break e;case Bm:o=9;break e;case Hc:o=11;break e;case qc:o=14;break e;case fn:o=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=dt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Xn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function $a(e,t,n,r){return e=dt(22,e,r,t),e.elementType=Vm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function Bl(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 aS(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=bl(0),this.expirationTimes=bl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function kd(e,t,n,r,s,i,o,a,l){return e=new aS(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},ud(i),e}function lS(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 Lg(e){if(!e)return In;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(He(n))return A1(e,n,t)}return t}function Mg(e,t,n,r,s,i,o,a,l){return e=kd(n,r,!0,e,s,i,o,a,l),e.context=Lg(null),n=e.current,r=Te(),s=On(n),i=Xt(r,s),i.callback=t??null,kn(n,i,s),e.current.lanes=s,bi(e,s,r),qe(e,r),e}function za(e,t,n,r){var s=t.current,i=Te(),o=On(s);return n=Lg(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kn(s,t,o),e!==null&&(Rt(e,s,o,i),yo(e,s,o)),o}function da(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Zh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pd(e,t){Zh(e,t),(e=e.alternate)&&Zh(e,t)}function uS(){return null}var Dg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Od(e){this._internalRoot=e}Ua.prototype.render=Od.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));za(e,t,null,null)};Ua.prototype.unmount=Od.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=h1();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&&m1(e)}};function Nd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ba(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gh(){}function cS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=da(o);i.call(u)}}var o=Mg(t,r,e,0,null,!1,!1,"",Gh);return e._reactRootContainer=o,e[Jt]=o.current,ei(e.nodeType===8?e.parentNode:e),nr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=da(l);a.call(u)}}var l=kd(e,0,!1,null,null,!1,!1,"",Gh);return e._reactRootContainer=l,e[Jt]=l.current,ei(e.nodeType===8?e.parentNode:e),nr(function(){za(t,l,n,r)}),l}function Va(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=da(o);a.call(l)}}za(t,o,e,s)}else o=cS(n,t,e,s,r);return da(o)}d1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(Wc(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)}}),Pd(e,1)}};Zc=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=Te();Rt(t,e,134217728,n)}Pd(e,134217728)}};f1=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)}Pd(e,t)}};h1=function(){return Y};p1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};ju=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=_a(r);if(!s)throw Error(I(90));qm(r),Cu(r,s)}}}break;case"textarea":Km(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};e1=bd;t1=nr;var dS={usingClientEntryPoint:!1,Events:[Ei,xr,_a,Ym,Jm,bd]},fs={findFiberByHostInstance:Qn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fS={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=s1(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||uS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{Na=to.inject(fS),Ft=to}catch{}}tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dS;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nd(t))throw Error(I(200));return lS(e,t,null,n)};tt.createRoot=function(e,t){if(!Nd(e))throw Error(I(299));var n=!1,r="",s=Dg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=kd(e,1,!1,null,null,n,!1,r,s),e[Jt]=t.current,ei(e.nodeType===8?e.parentNode:e),new Od(t)};tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=s1(t),e=e===null?null:e.stateNode,e};tt.flushSync=function(e){return nr(e)};tt.hydrate=function(e,t,n){if(!Ba(t))throw Error(I(200));return Va(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!Nd(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Dg;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Mg(t,null,e,1,n??null,s,!1,i,o),e[Jt]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ua(t)};tt.render=function(e,t,n){if(!Ba(t))throw Error(I(200));return Va(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!Ba(e))throw Error(I(40));return e._reactRootContainer?(nr(function(){Va(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};tt.unstable_batchedUpdates=bd;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ba(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Va(e,t,n,!1,r)};tt.version="18.2.0-next-9e3b772b8-20220608";function Fg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fg)}catch(e){console.error(e)}}Fg(),Mm.exports=tt;var ki=Mm.exports,$g={exports:{}},zg={};/**
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 Bx=typeof WeakMap=="function"?WeakMap:Map;function dg(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){la||(la=!0,oc=r),Gu(e,t)},n}function fg(e,t,n){n=Xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Gu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Gu(e,t),typeof r!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function _h(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bx;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=nS.bind(null,e,t,n),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Lh(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xt(-1,1),t.tag=2,kn(n,t,1))),n.lanes|=1),e)}var Vx=rn.ReactCurrentOwner,Be=!1;function Ne(e,t,n,r){t.child=e===null?H1(t,null,n,r):Ur(t,e.child,n,r)}function Mh(e,t,n,r,s){n=n.render;var i=t.ref;return Ir(t,s),r=md(e,t,n,r,i,s),n=gd(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(ne&&n&&rd(t),t.flags|=1,Ne(e,t,r,s),t.child)}function Dh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!kd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,hg(e,t,i,r,s)):(e=Eo(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Js,n(o,r)&&e.ref===t.ref)return tn(e,t,s)}return t.flags|=1,e=Nn(i,r),e.ref=t.ref,e.return=t,t.child=e}function hg(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 pg(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 mg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xu(e,t,n,r,s){var i=He(n)?Yn:ke.current;return i=$r(t,i),Ir(t,s),n=md(e,t,n,r,i,s),r=gd(),e!==null&&!Be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,tn(e,t,s)):(ne&&r&&rd(t),t.flags|=1,Ne(e,t,n,s),t.child)}function Fh(e,t,n,r,s){if(He(n)){var i=!0;Yo(t)}else i=!1;if(Ir(t,s),t.stateNode===null)So(e,t),B1(t,n,r),Zu(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=ht(u):(u=He(n)?Yn:ke.current,u=$r(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Nh(t,o,r,u),hn=!1;var h=t.memoizedState;o.state=h,ra(t,r,o,s),l=t.memoizedState,a!==r||h!==l||Ve.current||hn?(typeof c=="function"&&(Wu(t,n,c,r),l=t.memoizedState),(a=hn||Oh(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,z1(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 g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,o,r,l),hn=!1,h=t.memoizedState,o.state=h,ra(t,r,o,s);var p=t.memoizedState;a!==d||h!==p||Ve.current||hn?(typeof g=="function"&&(Wu(t,n,g,r),p=t.memoizedState),(u=hn||Oh(t,n,u,r,h,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Yu(e,t,n,r,i,s)}function Yu(e,t,n,r,s,i){mg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Ch(t,n,!1),tn(e,t,i);r=t.stateNode,Vx.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 gg(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),dd(e,t.containerInfo)}function $h(e,t,n,r,s){return zr(),id(s),t.flags|=256,Ne(e,t,n,r),t.child}var Ju={dehydrated:null,treeContext:null,retryLane:0};function ec(e){return{baseLanes:e,cachePool:null,transitions:null}}function vg(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 Hx(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Nn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=Nn(a,i):(i=Xn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?ec(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ju,r}return i=e.child,e=i.sibling,r=Nn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function wd(e,t){return t=$a({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yi(e,t,n,r){return r!==null&&id(r),Ur(t,e.child,null,n),e=wd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=zl(Error(I(422))),Yi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=$a({mode:"visible",children:r.children},s,0,null),i=Xn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ur(t,e.child,null,o),t.child.memoizedState=ec(o),t.memoizedState=Ju,i);if(!(t.mode&1))return Yi(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(I(419)),r=zl(i,r,void 0),Yi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Be||a){if(r=me,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,en(e,s),Rt(r,e,s,-1))}return Rd(),r=zl(Error(I(421))),Yi(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=rS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ze=Rn(s.nextSibling),Ye=t,ne=!0,St=null,e!==null&&(at[lt++]=Wt,at[lt++]=Zt,at[lt++]=Jn,Wt=e.id,Zt=e.overflow,Jn=t),t=wd(t,r.children),t.flags|=4096,t)}function zh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ku(e.return,t,n)}function Ul(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function yg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ne(e,t,r.children,n),r=re.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zh(e,n,t);else if(e.tag===19)zh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(J(re,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&sa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ul(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&sa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ul(t,!0,n,null,i);break;case"together":Ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function So(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qx(e,t,n){switch(t.tag){case 3:gg(t),zr();break;case 5:q1(t);break;case 1:He(t.type)&&Yo(t);break;case 4:dd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ta,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?vg(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 yg(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,pg(e,t,n)}return tn(e,t,n)}var wg,tc,xg,Sg;wg=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(){};xg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Wn($t.current);var i=null;switch(n){case"input":s=Cu(e,s),r=Cu(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=ku(e,s),r=ku(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Go)}Ou(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qs.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Sg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ds(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ee(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qx(e,t,n){var r=t.pendingProps;switch(sd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(t),null;case 1:return He(t.type)&&Xo(),Ee(t),null;case 3:return r=t.stateNode,Br(),te(Ve),te(ke),hd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(uc(St),St=null))),tc(e,t),Ee(t),null;case 5:fd(t);var s=Wn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)xg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return Ee(t),null}if(e=Wn($t.current),Gi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mt]=t,r[ni]=i,e=(t.mode&1)!==0,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":Zf(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Xf(r,i),ee("invalid",r)}Ou(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Zi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Zi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Ui(r),Gf(r,i,!0);break;case"textarea":Ui(r),Yf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Go)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wm(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,wg(e,t,!1,!1),t.stateNode=e;e:{switch(o=Nu(n,r),n){case"dialog":ee("cancel",e),ee("close",e),s=r;break;case"iframe":case"object":case"embed":ee("load",e),s=r;break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],e);s=r;break;case"source":ee("error",e),s=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),s=r;break;case"details":ee("toggle",e),s=r;break;case"input":Zf(e,r),s=Cu(e,r),ee("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),ee("invalid",e);break;case"textarea":Xf(e,r),s=ku(e,r),ee("invalid",e);break;default:s=r}Ou(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Xm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Zm(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ks(e,l):typeof l=="number"&&Ks(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qs.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",e):l!=null&&Vc(e,i,l,o))}switch(n){case"input":Ui(e),Gf(e,r,!1);break;case"textarea":Ui(e),Yf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Or(e,!!r.multiple,i,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Go)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ee(t),null;case 6:if(e&&t.stateNode!=null)Sg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=Wn(si.current),Wn($t.current),Gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mt]=t,(i=r.nodeValue!==n)&&(e=Ye,e!==null))switch(e.tag){case 3:Zi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mt]=t,t.stateNode=r}return Ee(t),null;case 13:if(te(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Ze!==null&&t.mode&1&&!(t.flags&128))F1(),zr(),t.flags|=98560,i=!1;else if(i=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(I(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[Mt]=t}else zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ee(t),i=!1}else St!==null&&(uc(St),St=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||re.current&1?fe===0&&(fe=3):Rd())),t.updateQueue!==null&&(t.flags|=4),Ee(t),null);case 4:return Br(),tc(e,t),e===null&&ei(t.stateNode.containerInfo),Ee(t),null;case 10:return ld(t.type._context),Ee(t),null;case 17:return He(t.type)&&Xo(),Ee(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return Ee(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ds(i,!1);else{if(fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=sa(e),o!==null){for(t.flags|=128,ds(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&le()>Hr&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304)}else{if(!r)if(e=sa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ne)return Ee(t),null}else 2*le()-i.renderingStartTime>Hr&&n!==1073741824&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=re.current,J(re,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return Ed(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Kx(e,t){switch(sd(t),t.tag){case 1:return He(t.type)&&Xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Br(),te(Ve),te(ke),hd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fd(t),null;case 13:if(te(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(re),null;case 4:return Br(),null;case 10:return ld(t.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var Ji=!1,Re=!1,Wx=typeof WeakSet=="function"?WeakSet:Set,F=null;function Rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function nc(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Uh=!1;function Zx(e,t){if($u=Ko,e=R1(),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 g;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),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++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(zu={focusedElem:e,selectionRange:n},Ko=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var w=p.memoizedProps,S=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:wt(t.type,w),S);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return p=Uh,Uh=!1,p}function Is(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&nc(t,n,i)}s=s.next}while(s!==r)}}function Da(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function bg(e){var t=e.alternate;t!==null&&(e.alternate=null,bg(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[Tx],delete t[Ix])),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 Cg(e){return e.tag===5||e.tag===3||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Go));else if(r!==4&&(e=e.child,e!==null))for(sc(e,t,n),e=e.sibling;e!==null;)sc(e,t,n),e=e.sibling}function ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}var we=null,xt=!1;function un(e,t,n){for(n=n.child;n!==null;)Eg(e,t,n),n=n.sibling}function Eg(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Na,n)}catch{}switch(n.tag){case 5:Re||Rr(n,t);case 6:var r=we,s=xt;we=null,un(e,t,n),we=r,xt=s,we!==null&&(xt?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(xt?(e=we,n=n.stateNode,e.nodeType===8?Al(e.parentNode,n):e.nodeType===1&&Al(e,n),Xs(e)):Al(we,n.stateNode));break;case 4:r=we,s=xt,we=n.stateNode.containerInfo,xt=!0,un(e,t,n),we=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&nc(n,t,o),s=s.next}while(s!==r)}un(e,t,n);break;case 1:if(!Re&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,un(e,t,n),Re=r):un(e,t,n);break;default:un(e,t,n)}}function Vh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wx),t.forEach(function(r){var s=sS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:we=a.stateNode,xt=!1;break e;case 3:we=a.stateNode.containerInfo,xt=!0;break e;case 4:we=a.stateNode.containerInfo,xt=!0;break e}a=a.return}if(we===null)throw Error(I(160));Eg(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;)Rg(t,e),t=t.sibling}function Rg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yt(t,e),It(e),r&4){try{Is(3,e,e.return),Da(3,e)}catch(w){oe(e,e.return,w)}try{Is(5,e,e.return)}catch(w){oe(e,e.return,w)}}break;case 1:yt(t,e),It(e),r&512&&n!==null&&Rr(n,n.return);break;case 5:if(yt(t,e),It(e),r&512&&n!==null&&Rr(n,n.return),e.flags&32){var s=e.stateNode;try{Ks(s,"")}catch(w){oe(e,e.return,w)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Qm(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"?Xm(s,d):c==="dangerouslySetInnerHTML"?Zm(s,d):c==="children"?Ks(s,d):Vc(s,c,d,u)}switch(a){case"input":Eu(s,i);break;case"textarea":Km(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Or(s,!!i.multiple,g,!1):h!==!!i.multiple&&(i.defaultValue!=null?Or(s,!!i.multiple,i.defaultValue,!0):Or(s,!!i.multiple,i.multiple?[]:"",!1))}s[ni]=i}catch(w){oe(e,e.return,w)}}break;case 6:if(yt(t,e),It(e),r&4){if(e.stateNode===null)throw Error(I(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(w){oe(e,e.return,w)}}break;case 3:if(yt(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xs(t.containerInfo)}catch(w){oe(e,e.return,w)}break;case 4:yt(t,e),It(e);break;case 13:yt(t,e),It(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(bd=le())),r&4&&Vh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,yt(t,e),Re=u):yt(t,e),It(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(d=F=c;F!==null;){switch(h=F,g=h.child,h.tag){case 0:case 11:case 14:case 15:Is(4,h,h.return);break;case 1:Rr(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(w){oe(r,n,w)}}break;case 5:Rr(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}g!==null?(g.return=h,F=g):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=Gm("display",o))}catch(w){oe(e,e.return,w)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(w){oe(e,e.return,w)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yt(t,e),It(e),r&4&&Vh(e);break;case 21:break;default:yt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cg(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ks(s,""),r.flags&=-33);var i=Bh(e);ic(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bh(e);sc(e,a,o);break;default:throw Error(I(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gx(e,t,n){F=e,kg(e)}function kg(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var s=F,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Ji;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Re;a=Ji;var u=Re;if(Ji=o,(Re=l)&&!u)for(F=s;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Qh(s):l!==null?(l.return=o,F=l):Qh(s);for(;i!==null;)F=i,kg(i),i=i.sibling;F=s,Ji=a,Re=u}Hh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,F=i):Hh(e)}}function Hh(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||Da(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:wt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ph(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ph(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Xs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Re||t.flags&512&&rc(t)}catch(h){oe(t,t.return,h)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function qh(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Qh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Da(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){oe(t,s,l)}}var i=t.return;try{rc(t)}catch(l){oe(t,i,l)}break;case 5:var o=t.return;try{rc(t)}catch(l){oe(t,o,l)}}}catch(l){oe(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var Xx=Math.ceil,aa=rn.ReactCurrentDispatcher,xd=rn.ReactCurrentOwner,ft=rn.ReactCurrentBatchConfig,K=0,me=null,ce=null,xe=0,Ke=0,kr=Mn(0),fe=0,li=null,tr=0,Fa=0,Sd=0,_s=null,$e=null,bd=0,Hr=1/0,qt=null,la=!1,oc=null,Pn=null,eo=!1,yn=null,ua=0,As=0,ac=null,bo=-1,Co=0;function Te(){return K&6?le():bo!==-1?bo:bo=le()}function On(e){return e.mode&1?K&2&&xe!==0?xe&-xe:Ax.transition!==null?(Co===0&&(Co=u1()),Co):(e=Y,e!==0||(e=window.event,e=e===void 0?16:g1(e.type)),e):1}function Rt(e,t,n,r){if(50<As)throw As=0,ac=null,Error(I(185));bi(e,n,r),(!(K&2)||e!==me)&&(e===me&&(!(K&2)&&(Fa|=n),fe===4&&mn(e,xe)),qe(e,r),n===1&&K===0&&!(t.mode&1)&&(Hr=le()+500,Aa&&Dn()))}function qe(e,t){var n=e.callbackNode;Aw(e,t);var r=Qo(e,e===me?xe:0);if(r===0)n!==null&&th(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&th(n),t===1)e.tag===0?_x(Kh.bind(null,e)):L1(Kh.bind(null,e)),Nx(function(){!(K&6)&&Dn()}),n=null;else{switch(c1(r)){case 1:n=Wc;break;case 4:n=a1;break;case 16:n=qo;break;case 536870912:n=l1;break;default:n=qo}n=Ag(n,Pg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pg(e,t){if(bo=-1,Co=0,K&6)throw Error(I(327));var n=e.callbackNode;if(_r()&&e.callbackNode!==n)return null;var r=Qo(e,e===me?xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ca(e,r);else{t=r;var s=K;K|=2;var i=Ng();(me!==e||xe!==t)&&(qt=null,Hr=le()+500,Gn(e,t));do try{eS();break}catch(a){Og(e,a)}while(1);ad(),aa.current=i,K=s,ce!==null?t=0:(me=null,xe=0,t=fe)}if(t!==0){if(t===2&&(s=Au(e),s!==0&&(r=s,t=lc(e,s))),t===1)throw n=li,Gn(e,0),mn(e,r),qe(e,le()),n;if(t===6)mn(e,r);else{if(s=e.current.alternate,!(r&30)&&!Yx(s)&&(t=ca(e,r),t===2&&(i=Au(e),i!==0&&(r=i,t=lc(e,i))),t===1))throw n=li,Gn(e,0),mn(e,r),qe(e,le()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:Vn(e,$e,qt);break;case 3:if(mn(e,r),(r&130023424)===r&&(t=bd+500-le(),10<t)){if(Qo(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Te(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Bu(Vn.bind(null,e,$e,qt),t);break}Vn(e,$e,qt);break;case 4:if(mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Et(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xx(r/1960))-r,10<r){e.timeoutHandle=Bu(Vn.bind(null,e,$e,qt),r);break}Vn(e,$e,qt);break;case 5:Vn(e,$e,qt);break;default:throw Error(I(329))}}}return qe(e,le()),e.callbackNode===n?Pg.bind(null,e):null}function lc(e,t){var n=_s;return e.current.memoizedState.isDehydrated&&(Gn(e,t).flags|=256),e=ca(e,t),e!==2&&(t=$e,$e=n,t!==null&&uc(t)),e}function uc(e){$e===null?$e=e:$e.push.apply($e,e)}function Yx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!kt(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function mn(e,t){for(t&=~Sd,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Kh(e){if(K&6)throw Error(I(327));_r();var t=Qo(e,0);if(!(t&1))return qe(e,le()),null;var n=ca(e,t);if(e.tag!==0&&n===2){var r=Au(e);r!==0&&(t=r,n=lc(e,r))}if(n===1)throw n=li,Gn(e,0),mn(e,t),qe(e,le()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e,$e,qt),qe(e,le()),null}function Cd(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(Hr=le()+500,Aa&&Dn())}}function nr(e){yn!==null&&yn.tag===0&&!(K&6)&&_r();var t=K;K|=1;var n=ft.transition,r=Y;try{if(ft.transition=null,Y=1,e)return e()}finally{Y=r,ft.transition=n,K=t,!(K&6)&&Dn()}}function Ed(){Ke=kr.current,te(kr)}function Gn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ox(n)),ce!==null)for(n=ce.return;n!==null;){var r=n;switch(sd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xo();break;case 3:Br(),te(Ve),te(ke),hd();break;case 5:fd(r);break;case 4:Br();break;case 13:te(re);break;case 19:te(re);break;case 10:ld(r.type._context);break;case 22:case 23:Ed()}n=n.return}if(me=e,ce=e=Nn(e.current,null),xe=Ke=t,fe=0,li=null,Sd=Fa=tr=0,$e=_s=null,Kn!==null){for(t=0;t<Kn.length;t++)if(n=Kn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Kn=null}return e}function Og(e,t){do{var n=ce;try{if(ad(),wo.current=oa,ia){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ia=!1}if(er=0,pe=de=se=null,Ts=!1,ii=0,xd.current=null,n===null||n.return===null){fe=1,li=t,ce=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=xe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Ah(o);if(g!==null){g.flags&=-257,Lh(g,o,a,i,t),g.mode&1&&_h(i,u,t),t=g,l=u;var p=t.updateQueue;if(p===null){var w=new Set;w.add(l),t.updateQueue=w}else p.add(l);break e}else{if(!(t&1)){_h(i,u,t),Rd();break e}l=Error(I(426))}}else if(ne&&a.mode&1){var S=Ah(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Lh(S,o,a,i,t),id(Vr(l,a));break e}}i=l=Vr(l,a),fe!==4&&(fe=2),_s===null?_s=[i]:_s.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=dg(i,l,t);kh(i,m);break e;case 1:a=l;var v=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Pn===null||!Pn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=fg(i,a,t);kh(i,b);break e}}i=i.return}while(i!==null)}Tg(n)}catch(E){t=E,ce===n&&n!==null&&(ce=n=n.return);continue}break}while(1)}function Ng(){var e=aa.current;return aa.current=oa,e===null?oa:e}function Rd(){(fe===0||fe===3||fe===2)&&(fe=4),me===null||!(tr&268435455)&&!(Fa&268435455)||mn(me,xe)}function ca(e,t){var n=K;K|=2;var r=Ng();(me!==e||xe!==t)&&(qt=null,Gn(e,t));do try{Jx();break}catch(s){Og(e,s)}while(1);if(ad(),K=n,aa.current=r,ce!==null)throw Error(I(261));return me=null,xe=0,fe}function Jx(){for(;ce!==null;)jg(ce)}function eS(){for(;ce!==null&&!Rw();)jg(ce)}function jg(e){var t=_g(e.alternate,e,Ke);e.memoizedProps=e.pendingProps,t===null?Tg(e):ce=t,xd.current=null}function Tg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kx(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=Qx(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,tS(e,t,n,r)}finally{ft.transition=s,Y=r}return null}function tS(e,t,n,r){do _r();while(yn!==null);if(K&6)throw Error(I(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Lw(e,i),e===me&&(ce=me=null,xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||eo||(eo=!0,Ag(qo,function(){return _r(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ft.transition,ft.transition=null;var o=Y;Y=1;var a=K;K|=4,xd.current=null,Zx(e,n),Rg(n,e),Sx(zu),Ko=!!$u,zu=$u=null,e.current=n,Gx(n),kw(),K=a,Y=o,ft.transition=i}else e.current=n;if(eo&&(eo=!1,yn=e,ua=s),i=e.pendingLanes,i===0&&(Pn=null),Nw(n.stateNode),qe(e,le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(la)throw la=!1,e=oc,oc=null,e;return ua&1&&e.tag!==0&&_r(),i=e.pendingLanes,i&1?e===ac?As++:(As=0,ac=e):As=0,Dn(),null}function _r(){if(yn!==null){var e=c1(ua),t=ft.transition,n=Y;try{if(ft.transition=null,Y=16>e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,ua=0,K&6)throw Error(I(331));var s=K;for(K|=4,F=e.current;F!==null;){var i=F,o=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Is(8,c,i)}var d=c.child;if(d!==null)d.return=c,F=d;else for(;F!==null;){c=F;var h=c.sibling,g=c.return;if(bg(c),c===u){F=null;break}if(h!==null){h.return=g,F=h;break}F=g}}}var p=i.alternate;if(p!==null){var w=p.child;if(w!==null){p.child=null;do{var S=w.sibling;w.sibling=null,w=S}while(w!==null)}}F=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,F=o;else e:for(;F!==null;){if(i=F,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Is(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,F=m;break e}F=i.return}}var v=e.current;for(F=v;F!==null;){o=F;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,F=y;else e:for(o=v;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Da(9,a)}}catch(E){oe(a,a.return,E)}if(a===o){F=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,F=b;break e}F=a.return}}if(K=s,Dn(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(Na,e)}catch{}r=!0}return r}finally{Y=n,ft.transition=t}}return!1}function Wh(e,t,n){t=Vr(n,t),t=dg(e,t,1),e=kn(e,t,1),t=Te(),e!==null&&(bi(e,1,t),qe(e,t))}function oe(e,t,n){if(e.tag===3)Wh(e,e,n);else for(;t!==null;){if(t.tag===3){Wh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Pn===null||!Pn.has(r))){e=Vr(n,e),e=fg(t,e,1),t=kn(t,e,1),e=Te(),t!==null&&(bi(t,1,e),qe(t,e));break}}t=t.return}}function nS(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 Ig(e,t){t===0&&(e.mode&1?(t=Hi,Hi<<=1,!(Hi&130023424)&&(Hi=4194304)):t=1);var n=Te();e=en(e,t),e!==null&&(bi(e,t,n),qe(e,n))}function rS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ig(e,n)}function sS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),Ig(e,n)}var _g;_g=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,qx(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ne&&t.flags&1048576&&M1(t,ea,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;So(e,t),e=t.pendingProps;var s=$r(t,ke.current);Ir(t,n),s=md(null,t,r,e,s,n);var i=gd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(r)?(i=!0,Yo(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,cd(t),s.updater=La,t.stateNode=s,s._reactInternals=t,Zu(t,r,e,n),t=Yu(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&rd(t),Ne(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(So(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=oS(r),e=wt(r,e),s){case 0:t=Xu(null,t,r,e,n);break e;case 1:t=Fh(null,t,r,e,n);break e;case 11:t=Mh(null,t,r,e,n);break e;case 14:t=Dh(null,t,r,wt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Xu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Fh(e,t,r,s,n);case 3:e:{if(gg(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,s=i.element,z1(e,t),ra(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Vr(Error(I(423)),t),t=$h(e,t,r,n,s);break e}else if(r!==s){s=Vr(Error(I(424)),t),t=$h(e,t,r,n,s);break e}else for(Ze=Rn(t.stateNode.containerInfo.firstChild),Ye=t,ne=!0,St=null,n=H1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===s){t=tn(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return q1(t),e===null&&Qu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Uu(r,s)?o=null:i!==null&&Uu(r,i)&&(t.flags|=32),mg(e,t),Ne(e,t,o,n),t.child;case 6:return e===null&&Qu(t),null;case 13:return vg(e,t,n);case 4:return dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),Mh(e,t,r,s,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,J(ta,r._currentValue),r._currentValue=o,i!==null)if(kt(i.value,o)){if(i.children===s.children&&!Ve.current){t=tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Xt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ku(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(I(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ku(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ne(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ir(t,n),s=ht(s),r=r(s),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,s=wt(r,t.pendingProps),s=wt(r.type,s),Dh(e,t,r,s,n);case 15:return hg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:wt(r,s),So(e,t),t.tag=1,He(r)?(e=!0,Yo(t)):e=!1,Ir(t,n),B1(t,r,s),Zu(t,r,s,n),Yu(null,t,r,!0,e,n);case 19:return yg(e,t,n);case 22:return pg(e,t,n)}throw Error(I(156,t.tag))};function Ag(e,t){return o1(e,t)}function iS(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 iS(e,t,n,r)}function kd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oS(e){if(typeof e=="function")return kd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qc)return 11;if(e===Qc)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Eo(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")kd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gr:return Xn(n.children,s,i,t);case Hc:o=8,s|=8;break;case wu:return e=dt(12,n,t,s|2),e.elementType=wu,e.lanes=i,e;case xu:return e=dt(13,n,t,s),e.elementType=xu,e.lanes=i,e;case Su:return e=dt(19,n,t,s),e.elementType=Su,e.lanes=i,e;case Vm:return $a(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Um:o=10;break e;case Bm:o=9;break e;case qc:o=11;break e;case Qc:o=14;break e;case fn:o=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=dt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Xn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function $a(e,t,n,r){return e=dt(22,e,r,t),e.elementType=Vm,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 aS(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cl(0),this.expirationTimes=Cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Pd(e,t,n,r,s,i,o,a,l){return e=new aS(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 lS(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 Lg(e){if(!e)return In;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(He(n))return A1(e,n,t)}return t}function Mg(e,t,n,r,s,i,o,a,l){return e=Pd(n,r,!0,e,s,i,o,a,l),e.context=Lg(null),n=e.current,r=Te(),s=On(n),i=Xt(r,s),i.callback=t??null,kn(n,i,s),e.current.lanes=s,bi(e,s,r),qe(e,r),e}function za(e,t,n,r){var s=t.current,i=Te(),o=On(s);return n=Lg(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kn(s,t,o),e!==null&&(Rt(e,s,o,i),yo(e,s,o)),o}function da(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Zh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Od(e,t){Zh(e,t),(e=e.alternate)&&Zh(e,t)}function uS(){return null}var Dg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Nd(e){this._internalRoot=e}Ua.prototype.render=Nd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));za(e,t,null,null)};Ua.prototype.unmount=Nd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nr(function(){za(null,e,null,null)}),t[Jt]=null}};function Ua(e){this._internalRoot=e}Ua.prototype.unstable_scheduleHydration=function(e){if(e){var t=h1();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&&m1(e)}};function jd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ba(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gh(){}function cS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=da(o);i.call(u)}}var o=Mg(t,r,e,0,null,!1,!1,"",Gh);return e._reactRootContainer=o,e[Jt]=o.current,ei(e.nodeType===8?e.parentNode:e),nr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=da(l);a.call(u)}}var l=Pd(e,0,!1,null,null,!1,!1,"",Gh);return e._reactRootContainer=l,e[Jt]=l.current,ei(e.nodeType===8?e.parentNode:e),nr(function(){za(t,l,n,r)}),l}function Va(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=da(o);a.call(l)}}za(t,o,e,s)}else o=cS(n,t,e,s,r);return da(o)}d1=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)}};f1=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)}};h1=function(){return Y};p1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Tu=function(e,t,n){switch(t){case"input":if(Eu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=_a(r);if(!s)throw Error(I(90));qm(r),Eu(r,s)}}}break;case"textarea":Km(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};e1=Cd;t1=nr;var dS={usingClientEntryPoint:!1,Events:[Ei,xr,_a,Ym,Jm,Cd]},fs={findFiberByHostInstance:Qn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fS={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=s1(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||uS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{Na=to.inject(fS),Ft=to}catch{}}tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dS;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jd(t))throw Error(I(200));return lS(e,t,null,n)};tt.createRoot=function(e,t){if(!jd(e))throw Error(I(299));var n=!1,r="",s=Dg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Pd(e,1,!1,null,null,n,!1,r,s),e[Jt]=t.current,ei(e.nodeType===8?e.parentNode:e),new Nd(t)};tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=s1(t),e=e===null?null:e.stateNode,e};tt.flushSync=function(e){return nr(e)};tt.hydrate=function(e,t,n){if(!Ba(t))throw Error(I(200));return Va(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!jd(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Dg;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Mg(t,null,e,1,n??null,s,!1,i,o),e[Jt]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ua(t)};tt.render=function(e,t,n){if(!Ba(t))throw Error(I(200));return Va(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!Ba(e))throw Error(I(40));return e._reactRootContainer?(nr(function(){Va(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};tt.unstable_batchedUpdates=Cd;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ba(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return Va(e,t,n,!1,r)};tt.version="18.2.0-next-9e3b772b8-20220608";function Fg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fg)}catch(e){console.error(e)}}Fg(),Mm.exports=tt;var ki=Mm.exports,$g={exports:{}},zg={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-shim.production.min.js
43
43
  *
@@ -45,7 +45,7 @@ Error generating stack: `+i.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 qr=x;function hS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pS=typeof Object.is=="function"?Object.is:hS,mS=qr.useState,gS=qr.useEffect,vS=qr.useLayoutEffect,yS=qr.useDebugValue;function wS(e,t){var n=t(),r=mS({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return vS(function(){s.value=n,s.getSnapshot=t,Vl(s)&&i({inst:s})},[e,n,t]),gS(function(){return Vl(s)&&i({inst:s}),e(function(){Vl(s)&&i({inst:s})})},[e]),yS(n),n}function Vl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pS(e,n)}catch{return!0}}function xS(e,t){return t()}var SS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?xS:wS;zg.useSyncExternalStore=qr.useSyncExternalStore!==void 0?qr.useSyncExternalStore:SS;$g.exports=zg;var Ug=$g.exports;const Bg=Ug.useSyncExternalStore,Xh=x.createContext(void 0),Vg=x.createContext(!1);function Hg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Xh),window.ReactQueryClientContext):Xh)}const rt=({context:e}={})=>{const t=x.useContext(Hg(e,x.useContext(Vg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bS=({client:e,children:t,context:n,contextSharing:r=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=Hg(n,r);return x.createElement(Vg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},qg=x.createContext(!1),CS=()=>x.useContext(qg);qg.Provider;function ES(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const RS=x.createContext(ES()),kS=()=>x.useContext(RS);function Qg(e,t){return typeof e=="function"?e(...t):!!e}const PS=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},OS=e=>{x.useEffect(()=>{e.clearReset()},[e])},NS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Qg(n,[e.error,r]),jS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},TS=(e,t)=>e.isLoading&&e.isFetching&&!t,IS=(e,t,n)=>(e==null?void 0:e.suspense)&&TS(t,n),_S=(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 Kg(e,t){const n=rt({context:e.context}),r=CS(),s=kS(),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)),jS(i),PS(i,s),OS(s);const[o]=x.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Bg(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]),IS(i,a,r))throw _S(i,o,s);if(NS({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function jd(e,t,n){const r=pr(e,t,n);return Kg(r,Lm)}function sn(e,t,n){const r=K2(e,t,n),s=rt({context:r.context}),[i]=x.useState(()=>new uw(s,r));x.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Bg(x.useCallback(l=>i.subscribe(ae.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=x.useCallback((l,u)=>{i.mutate(l,u).catch(AS)},[i]);if(o.error&&Qg(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function AS(){}function LS(e,t,n){const r=pr(e,t,n);return Kg(r,lw)}function MS(){return jd({queryKey:["session"],queryFn:async()=>await X.session().getSession(),suspense:!0})}function Wg({appCode:e}){return jd({queryKey:["conf"],queryFn:async()=>await X.conf().getConf(e),suspense:!0})}const Zg=x.createContext(null);function DS({children:e,params:t}){const n=t.app,r=MS(),s=Wg({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(Zg.Provider,{value:o,children:e})}function gt(){const e=x.useContext(Zg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function FS(){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 $S(){const e=typeof document<"u",[t,n]=x.useState(()=>document.title);return x.useEffect(()=>{e&&n(document.title)},[e]),t}function Gg(){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 zS({user:e,avatar:t}){const{t:n}=ve(),r=$S(),[s,i]=x.useState(!0),[o,a]=Gg(),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}),g=FS(),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"),m=x.useCallback(()=>{i(!s)},[s]),v=async()=>{await X.session().logout(),window.location.href="/auth/login"};return x.useMemo(()=>({title:r,bookmarkedApps:g,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:p,conversationWorflow:y,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:m,handleLogout:v}),[o,g,p,y,a,s,l,u,S,r,m,c,d,h])}function Xg(){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 Yg=x.createContext(null);function US({children:e}){var s;const{appCode:t}=gt(),n=Wg({appCode:t});x.useEffect(()=>{var u,c,d,h,g,p,y,S,m;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=(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=(S=n==null?void 0:n.data)==null?void 0:S.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=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(Yg.Provider,{value:r,children:e})}function Td(){const e=x.useContext(Yg);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}=Td();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 BS(){const[e,t]=x.useState("pending"),{currentApp:n}=gt();x.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await X.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const Yh=["mousedown","touchstart"];function Jg(e,t,n){const r=x.useRef();return x.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||Yh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Yh).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}let VS={data:""},HS=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||VS,qS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,QS=/\/\*[^]*?\*\/| +/g,Jh=/\n+/g,gn=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?gn(o,i):i+"{"+gn(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=gn(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=gn.p?gn.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Ht={},e0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+e0(e[n]);return t}return e},KS=(e,t,n,r,s)=>{let i=e0(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=qS.exec(u.replace(QS,""));)c[4]?h.shift():c[3]?(d=c[3].replace(Jh," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(Jh," ").trim();return h[0]})(e);Ht[o]=gn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Ht.g?Ht.g:null;return n&&(Ht.g=Ht[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Ht[o],t,r,a),o},WS=(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 KS(n.unshift?n.raw?WS(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,HS(t.target),t.g,t.o,t.k)}let t0,uc,cc;qa.bind({g:1});let nn=qa.bind({k:1});function ZS(e,t,n,r){gn.p=t,t0=e,uc=n,cc=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:uc&&uc()},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),cc&&u[0]&&cc(a),t0(u,a)}return t?t(s):s}}var GS=e=>typeof e=="function",fa=(e,t)=>GS(e)?e(t):e,XS=(()=>{let e=0;return()=>(++e).toString()})(),n0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),YS=20,Ro=new Map,JS=1e3,ep=e=>{if(Ro.has(e))return;let t=setTimeout(()=>{Ro.delete(e),ar({type:4,toastId:e})},JS);Ro.set(e,t)},e4=e=>{let t=Ro.get(e);t&&clearTimeout(t)},dc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,YS)};case 1:return t.toast.id&&e4(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)?dc(e,{type:1,toast:n}):dc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ep(r):e.toasts.forEach(i=>{ep(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},ko=[],Po={toasts:[],pausedAt:void 0},ar=e=>{Po=dc(Po,e),ko.forEach(t=>{t(Po)})},t4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},n4=(e={})=>{let[t,n]=x.useState(Po);x.useEffect(()=>(ko.push(n),()=>{let s=ko.indexOf(n);s>-1&&ko.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||t4[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},r4=(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)||XS()}),Pi=e=>(t,n)=>{let r=r4(t,e,n);return ar({type:2,toast:r}),r.id},Ge=(e,t)=>Pi("blank")(e,t);Ge.error=Pi("error");Ge.success=Pi("success");Ge.loading=Pi("loading");Ge.custom=Pi("custom");Ge.dismiss=e=>{ar({type:3,toastId:e})};Ge.remove=e=>ar({type:4,toastId:e});Ge.promise=(e,t,n)=>{let r=Ge.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Ge.success(fa(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ge.error(fa(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var s4=(e,t)=>{ar({type:1,toast:{id:e,height:t}})},i4=()=>{ar({type:5,time:Date.now()})},o4=e=>{let{toasts:t,pausedAt:n}=n4(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(g=>(g.position||u)===(i.position||u)&&g.height),d=c.findIndex(g=>g.id===i.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:s4,startPause:i4,endPause:r,calculateOffset:s}}},a4=nn`
48
+ */var qr=x;function hS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pS=typeof Object.is=="function"?Object.is:hS,mS=qr.useState,gS=qr.useEffect,vS=qr.useLayoutEffect,yS=qr.useDebugValue;function wS(e,t){var n=t(),r=mS({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return vS(function(){s.value=n,s.getSnapshot=t,Hl(s)&&i({inst:s})},[e,n,t]),gS(function(){return Hl(s)&&i({inst:s}),e(function(){Hl(s)&&i({inst:s})})},[e]),yS(n),n}function Hl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pS(e,n)}catch{return!0}}function xS(e,t){return t()}var SS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?xS:wS;zg.useSyncExternalStore=qr.useSyncExternalStore!==void 0?qr.useSyncExternalStore:SS;$g.exports=zg;var Ug=$g.exports;const Bg=Ug.useSyncExternalStore,Xh=x.createContext(void 0),Vg=x.createContext(!1);function Hg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Xh),window.ReactQueryClientContext):Xh)}const rt=({context:e}={})=>{const t=x.useContext(Hg(e,x.useContext(Vg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bS=({client:e,children:t,context:n,contextSharing:r=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=Hg(n,r);return x.createElement(Vg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},qg=x.createContext(!1),CS=()=>x.useContext(qg);qg.Provider;function ES(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const RS=x.createContext(ES()),kS=()=>x.useContext(RS);function Qg(e,t){return typeof e=="function"?e(...t):!!e}const PS=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},OS=e=>{x.useEffect(()=>{e.clearReset()},[e])},NS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Qg(n,[e.error,r]),jS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},TS=(e,t)=>e.isLoading&&e.isFetching&&!t,IS=(e,t,n)=>(e==null?void 0:e.suspense)&&TS(t,n),_S=(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 Kg(e,t){const n=rt({context:e.context}),r=CS(),s=kS(),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)),jS(i),PS(i,s),OS(s);const[o]=x.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Bg(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]),IS(i,a,r))throw _S(i,o,s);if(NS({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 Kg(r,Lm)}function sn(e,t,n){const r=K2(e,t,n),s=rt({context:r.context}),[i]=x.useState(()=>new uw(s,r));x.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Bg(x.useCallback(l=>i.subscribe(ae.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=x.useCallback((l,u)=>{i.mutate(l,u).catch(AS)},[i]);if(o.error&&Qg(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function AS(){}function LS(e,t,n){const r=pr(e,t,n);return Kg(r,lw)}function MS(){return Td({queryKey:["session"],queryFn:async()=>await X.session().getSession(),suspense:!0})}function Wg({appCode:e}){return Td({queryKey:["conf"],queryFn:async()=>await X.conf().getConf(e),suspense:!0})}const Zg=x.createContext(null);function DS({children:e,params:t}){const n=t.app,r=MS(),s=Wg({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(Zg.Provider,{value:o,children:e})}function gt(){const e=x.useContext(Zg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function FS(){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 $S(){const e=typeof document<"u",[t,n]=x.useState(()=>document.title);return x.useEffect(()=>{e&&n(document.title)},[e]),t}function Gg(){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 zS({user:e,avatar:t}){const{t:n}=ve(),r=$S(),[s,i]=x.useState(!0),[o,a]=Gg(),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}),g=FS(),p=Ls("net.atos.entng.community.controllers.CommunityController|view"),w=Ls("org.entcore.conversation.controllers.ConversationController|view"),S=Ls("fr.openent.searchengine.controllers.SearchEngineController|view"),m=x.useCallback(()=>{i(!s)},[s]),v=async()=>{await X.session().logout(),window.location.href="/auth/login"};return x.useMemo(()=>({title:r,bookmarkedApps:g,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:p,conversationWorflow:w,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:m,handleLogout:v}),[o,g,p,w,a,s,l,u,S,r,m,c,d,h])}function Xg(){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 Yg=x.createContext(null);function US({children:e}){var s;const{appCode:t}=gt(),n=Wg({appCode:t});x.useEffect(()=>{var u,c,d,h,g,p,w,S,m;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=(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:(w=(p=n==null?void 0:n.data)==null?void 0:p.theme)==null?void 0:w.skinName},{data:"data-theme",value:(m=(S=n==null?void 0:n.data)==null?void 0:S.theme)==null?void 0:m.themeName},{data:"data-product",value:a}].forEach(v=>{var y;return(y=document.querySelector("html"))==null?void 0:y.setAttribute(v.data,v.value)})},[n==null?void 0:n.data]);const r=x.useMemo(()=>{var i;return{theme:(i=n==null?void 0:n.data)==null?void 0:i.theme}},[(s=n==null?void 0:n.data)==null?void 0:s.theme]);return f.jsx(Yg.Provider,{value:r,children:e})}function Id(){const e=x.useContext(Yg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function _d(){const{user:e,userDescription:t,userProfile:n}=gt(),{theme:r}=Id();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function BS(){const[e,t]=x.useState("pending"),{currentApp:n}=gt();x.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await X.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const Yh=["mousedown","touchstart"];function Jg(e,t,n){const r=x.useRef();return x.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||Yh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Yh).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}let VS={data:""},HS=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||VS,qS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,QS=/\/\*[^]*?\*\/| +/g,Jh=/\n+/g,gn=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?gn(o,i):i+"{"+gn(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=gn(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=gn.p?gn.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Ht={},e0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+e0(e[n]);return t}return e},KS=(e,t,n,r,s)=>{let i=e0(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=qS.exec(u.replace(QS,""));)c[4]?h.shift():c[3]?(d=c[3].replace(Jh," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(Jh," ").trim();return h[0]})(e);Ht[o]=gn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Ht.g?Ht.g:null;return n&&(Ht.g=Ht[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Ht[o],t,r,a),o},WS=(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 KS(n.unshift?n.raw?WS(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,HS(t.target),t.g,t.o,t.k)}let t0,cc,dc;qa.bind({g:1});let nn=qa.bind({k:1});function ZS(e,t,n,r){gn.p=t,t0=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),t0(u,a)}return t?t(s):s}}var GS=e=>typeof e=="function",fa=(e,t)=>GS(e)?e(t):e,XS=(()=>{let e=0;return()=>(++e).toString()})(),n0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),YS=20,Ro=new Map,JS=1e3,ep=e=>{if(Ro.has(e))return;let t=setTimeout(()=>{Ro.delete(e),ar({type:4,toastId:e})},JS);Ro.set(e,t)},e4=e=>{let t=Ro.get(e);t&&clearTimeout(t)},fc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,YS)};case 1:return t.toast.id&&e4(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?fc(e,{type:1,toast:n}):fc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ep(r):e.toasts.forEach(i=>{ep(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},ko=[],Po={toasts:[],pausedAt:void 0},ar=e=>{Po=fc(Po,e),ko.forEach(t=>{t(Po)})},t4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},n4=(e={})=>{let[t,n]=x.useState(Po);x.useEffect(()=>(ko.push(n),()=>{let s=ko.indexOf(n);s>-1&&ko.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||t4[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},r4=(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)||XS()}),Pi=e=>(t,n)=>{let r=r4(t,e,n);return ar({type:2,toast:r}),r.id},Ge=(e,t)=>Pi("blank")(e,t);Ge.error=Pi("error");Ge.success=Pi("success");Ge.loading=Pi("loading");Ge.custom=Pi("custom");Ge.dismiss=e=>{ar({type:3,toastId:e})};Ge.remove=e=>ar({type:4,toastId:e});Ge.promise=(e,t,n)=>{let r=Ge.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Ge.success(fa(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ge.error(fa(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var s4=(e,t)=>{ar({type:1,toast:{id:e,height:t}})},i4=()=>{ar({type:5,time:Date.now()})},o4=e=>{let{toasts:t,pausedAt:n}=n4(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(g=>(g.position||u)===(i.position||u)&&g.height),d=c.findIndex(g=>g.id===i.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:s4,startPause:i4,endPause:r,calculateOffset:s}}},a4=nn`
49
49
  from {
50
50
  transform: scale(0) rotate(45deg);
51
51
  opacity: 0;
@@ -221,9 +221,9 @@ to {
221
221
  > * {
222
222
  pointer-events: auto;
223
223
  }
224
- `,no=16,I4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=o4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:no,left:no,right:no,bottom:no,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=j4(c,d);return x.createElement(N4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?T4:"",style:h},u.type==="custom"?fa(u.message,u):s?s(u):x.createElement(O4,{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 _4({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 A4(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 L4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function M4(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 D4(){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 F4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const r0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));r0.displayName="ActionBar";const $4=r0,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:"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"})]}),U4=z4,B4=({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"})]}),V4=B4,H4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})]}),K8=H4,q4=({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"})]}),W8=q4,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:"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"})]}),K4=Q4,W4=({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"})]}),Z8=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:"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"})]}),G8=Z4,G4=({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"})]}),X4=G4,Y4=({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"})]}),X8=Y4,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:"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"})]}),e3=J4,t3=({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"})]}),Y8=t3,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.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"})]}),r3=n3,s3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.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"})]}),i3=s3,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:"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"})]}),J8=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:"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"})]}),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:"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"})]}),c3=u3,d3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("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"})]}),ek=d3,f3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})]}),h3=f3,p3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})]}),fc=p3,m3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",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"})]}),g3=m3,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:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),tp=v3,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:"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"})]}),w3=y3,x3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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=x3,S3=({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"})]}),b3=S3,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:"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"})]}),E3=C3,R3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("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"})})})]}),nk=R3;function s0(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=s0(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=s0(e))&&(r&&(r+=" "),r+=t);return r}const i0=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),g=x.useRef(null),p=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:p,...g.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(E3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(U4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(l3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(e3,{}),classModifier:"alert-danger"}},m={"is-dismissible":s,"is-toast ":i},v=H("alert gap-12",S[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:g,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})});i0.displayName="Alert";const Nt=i0,o0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=H("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:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});o0.displayName="AppHeader";const k3=o0,a0=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}=_4({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":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({...g},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});a0.displayName="Image";const l0=a0,u0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Xg(),[,a]=Ha(),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},S=(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=i(S),b=v||"placeholder",E=H("app-icon",{...g,...p,...y,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return w?f.jsx(l0,{src:S,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:E,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${b}`})})})});u0.displayName="AppIcon";const hc=u0,c0=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(l0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});c0.displayName="Avatar";const np=c0,d0=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})});d0.displayName="BreadcrumbItem";const Hl=d0,f0=x.forwardRef(({children:e,className:t},n)=>{const r=H("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});f0.displayName="BreadcrumbList";const P3=f0,h0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ve(),{getIconClass:i}=Xg(),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})});h0.displayName="BreadcrumbNav";const O3=h0,p0=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(c3,{...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()]})});p0.displayName="Loading";const N3=p0,m0=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 g=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:g,type:t,...d,children:s?f.jsx(N3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});m0.displayName="Button";const Jr=m0,g0=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})});g0.displayName="IconButton";const _d=g0,v0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=ve();return f.jsx(O3,{app:e,ref:n,children:f.jsx(P3,{className:"gap-12",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Hl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(_d,{variant:"ghost",color:"tertiary",icon:f.jsx(g3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(hc,{app:e,size:"40"})]})}),f.jsx(Hl,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(Hl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(hc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});v0.displayName="Breadcrumb";const j3=v0,y0=x.forwardRef(({icon:e=f.jsx(b3,{}),onClick:t,...n},r)=>{const s=H("btn-search");return f.jsx(_d,{ref:r,className:s,icon:e,...n,onClick:t})});y0.displayName="SearchButton";const w0=y0,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",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"})]}),I3=T3,_3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"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"})]}),rp=_3,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",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"})]}),L3=A3,M3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"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=M3,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 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"})]}),F3=D3,$3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"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"})]}),ip=$3,z3=({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"})]}),U3=z3,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",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"})]}),V3=B3,H3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",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"})]}),q3=H3,Q3=({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"})})})]}),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",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"})]}),Z3=W3,G3=({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"})]}),X3=G3,x0=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})]})});x0.displayName="Checkbox";const Y3=x0,S0=x.createContext(null),Oi=()=>{const e=x.useContext(S0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},b0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:g=>i.current[u]=g,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:g=>a(g,()=>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(Y3,{...d})]})})};b0.displayName="Dropdown.CheckboxItem";const J3=b0,C0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemClick:a,onMenuItemKeyDown:l,onMenuItemMouseEnter:u}=s,c=()=>{a(),t==null||t()},d=x.useId(),h=H("dropdown-item",{focus:o===d});return f.jsx("div",{id:d,role:"menuitem",ref:g=>i.current[d]=g,tabIndex:o===d?0:-1,className:h,"aria-current":o===d,onClick:c,onMouseEnter:u,onKeyDown:g=>l(g,t),...r,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[e,n]})})};C0.displayName="Dropdown.Item";const e5=C0,E0=x.forwardRef(({children:e},t)=>{const{menuProps:n,visible:r}=Oi();return r?f.jsx("div",{ref:t,...n,children:e}):null});E0.displayName="Dropdown.Menu";const t5=E0,R0=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]}));R0.displayName="Dropdown.MenuGroup";const n5=R0,k0=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})]})});k0.displayName="Radio";const r5=k0,P0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:g=>i.current[u]=g,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:g=>a(g,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(r5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};P0.displayName="Dropdown.RadioItem";const s5=P0,O0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});O0.displayName="Dropdown.Separator";const i5=O0,N0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i},o)=>{const{triggerProps:a,block:l}=Oi(),{className:u,...c}=a,d=H(s,n,{"w-100":l},u);return f.jsxs("button",{ref:o,className:d,disabled:r,...c,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(w3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});N0.displayName="Dropdown.Trigger";const o5=N0,pc=Math.min,Ar=Math.max,ha=Math.round,ro=Math.floor,_n=e=>({x:e,y:e}),a5={left:"right",right:"left",bottom:"top",top:"bottom"},l5={start:"end",end:"start"};function Ad(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Qa(e){return e.split("-")[1]}function u5(e){return e==="x"?"y":"x"}function j0(e){return e==="y"?"height":"width"}function Ld(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function T0(e){return u5(Ld(e))}function c5(e,t,n){n===void 0&&(n=!1);const r=Qa(e),s=T0(e),i=j0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=pa(o)),[o,pa(o)]}function d5(e){const t=pa(e);return[mc(e),t,mc(t)]}function mc(e){return e.replace(/start|end/g,t=>l5[t])}function f5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function h5(e,t,n,r){const s=Qa(e);let i=f5(Qr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(mc)))),i}function pa(e){return e.replace(/left|right|bottom|top/g,t=>a5[t])}function p5(e){return{top:0,right:0,bottom:0,left:0,...e}}function m5(e){return typeof e!="number"?p5(e):{top:e,right:e,bottom:e,left:e}}function ma(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function An(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 op(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function Ni(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function g5(e){return["table","td","th"].includes(An(e))}function Md(e){const t=Dd(),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 v5(e){let t=Kr(e);for(;zt(t)&&!Ka(t);){if(Md(t))return t;t=Kr(t)}return null}function Dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ka(e){return["html","body","#document"].includes(An(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 Kr(e){if(An(e)==="html")return e;const t=e.assignedSlot||e.parentNode||op(e)&&e.host||on(e);return op(t)?t.host:t}function _0(e){const t=Kr(e);return Ka(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&Ni(t)?t:_0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=_0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Je(s);return i?t.concat(o,o.visualViewport||[],Ni(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}function ap(e,t,n){let{reference:r,floating:s}=e;const i=Ld(t),o=T0(t),a=j0(o),l=Qr(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 g;switch(l){case"top":g={x:c,y:r.y-s.height};break;case"bottom":g={x:c,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-s.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Qa(t)){case"start":g[o]-=h*(n&&u?-1:1);break;case"end":g[o]+=h*(n&&u?-1:1);break}return g}const y5=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}=ap(u,r,l),h=r,g={},p=0;for(let y=0;y<a.length;y++){const{name:S,fn:m}=a[y],{x:v,y:w,data:b,reset:E}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:g,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=w??d,g={...g,[S]:{...g[S],...b}},E&&p<=50){p++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:c,y:d}=ap(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:g}};async function w5(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:g=0}=Ad(t,e),p=m5(g),S=a[h?d==="floating"?"reference":"floating":d],m=ma(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=ma(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(m.top-E.top+p.top)/b.y,bottom:(E.bottom-m.bottom+p.bottom)/b.y,left:(m.left-E.left+p.left)/b.x,right:(E.right-m.right+p.right)/b.x}}const x5=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:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...S}=Ad(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Qr(s),v=Qr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[pa(a)]:d5(a));!h&&p!=="none"&&b.push(...h5(a,y,p,w));const E=[a,...b],k=await w5(t,S),R=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&R.push(k[m]),d){const D=c5(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=E[D];if(U)return{data:{index:D,overflows:P},reset:{placement:U}};let C=(M=P.filter(O=>O.overflows[0]<=0).sort((O,A)=>O.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!C)switch(g){case"bestFit":{var T;const O=(T=P.map(A=>[A.placement,A.overflows.filter($=>$>0).reduce(($,N)=>$+N,0)]).sort((A,$)=>A[1]-$[1])[0])==null?void 0:T[0];O&&(C=O);break}case"initialPlacement":C=a;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function S5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Qr(n),a=Qa(n),l=Ld(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Ad(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),l?{x:g*c,y:h*u}:{x:h*u,y:g*c}}const b5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await S5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}};function A0(e){const t=mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=zt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ha(n)!==i||ha(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Fd(e){return Xe(e)?e:e.contextElement}function Lr(e){const t=Fd(e);if(!zt(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=A0(t);let o=(i?ha(n.width):n.width)/r,a=(i?ha(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const C5=_n(0);function L0(e){const t=Je(e);return!Dd()||!t.visualViewport?C5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function E5(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=_n(1);t&&(r?Xe(r)&&(o=Lr(r)):o=Lr(e));const a=E5(i,n,r)?L0(i):_n(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),g=r&&Xe(r)?Je(r):r;let p=h.frameElement;for(;p&&r&&g!==h;){const y=Lr(p),S=p.getBoundingClientRect(),m=mt(p),v=S.left+(p.clientLeft+parseFloat(m.paddingLeft))*y.x,w=S.top+(p.clientTop+parseFloat(m.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,p=Je(p).frameElement}}return ma({width:c,height:d,x:l,y:u})}function R5(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=_n(1);const l=_n(0);if((s||!s&&r!=="fixed")&&((An(n)!=="body"||Ni(i))&&(o=Wa(n)),zt(n))){const u=rr(n);a=Lr(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function k5(e){return Array.from(e.getClientRects())}function M0(e){return rr(on(e)).left+Wa(e).scrollLeft}function P5(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+M0(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 O5(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=Dd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function N5(e,t){const n=rr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=zt(e)?Lr(e):_n(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 lp(e,t,n){let r;if(t==="viewport")r=O5(e,n);else if(t==="document")r=P5(on(e));else if(Xe(t))r=N5(t,n);else{const s=L0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return ma(r)}function D0(e,t){const n=Kr(e);return n===t||!Xe(n)||Ka(n)?!1:mt(n).position==="fixed"||D0(n,t)}function j5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Xe(a)&&An(a)!=="body"),s=null;const i=mt(e).position==="fixed";let o=i?Kr(e):e;for(;Xe(o)&&!Ka(o);){const a=mt(o),l=Md(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ni(o)&&!l&&D0(e,o))?r=r.filter(c=>c!==o):s=a,o=Kr(o)}return t.set(e,r),r}function T5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?j5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=lp(t,c,s);return u.top=Ar(d.top,u.top),u.right=pc(d.right,u.right),u.bottom=pc(d.bottom,u.bottom),u.left=Ar(d.left,u.left),u},lp(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function I5(e){return A0(e)}function _5(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=_n(0);if(r||!r&&!i)if((An(t)!=="body"||Ni(s))&&(a=Wa(t)),r){const u=rr(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=M0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function up(e,t){return!zt(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function F0(e,t){const n=Je(e);if(!zt(e))return n;let r=up(e,t);for(;r&&g5(r)&&mt(r).position==="static";)r=up(r,t);return r&&(An(r)==="html"||An(r)==="body"&&mt(r).position==="static"&&!Md(r))?n:r||v5(e)||n}const A5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||F0,i=this.getDimensions;return{reference:_5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function L5(e){return mt(e).direction==="rtl"}const M5={convertOffsetParentRelativeRectToViewportRelativeRect:R5,getDocumentElement:on,getClippingRect:T5,getOffsetParent:F0,getElementRects:A5,getClientRects:k5,getDimensions:I5,getScale:Lr,isElement:Xe,isRTL:L5};function D5(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 g=ro(c),p=ro(s.clientWidth-(u+d)),y=ro(s.clientHeight-(c+h)),S=ro(u),v={rootMargin:-g+"px "+-p+"px "+-y+"px "+-S+"px",threshold:Ar(0,pc(1,l))||1};let w=!0;function b(E){const k=E[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 F5(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(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&a?D5(u,n):null;let h=-1,g=null;o&&(g=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let p,y=l?rr(e):null;l&&S();function S(){const m=rr(e);y&&(m.x!==y.x||m.y!==y.y||m.width!==y.width||m.height!==y.height)&&n(),y=m,p=requestAnimationFrame(S)}return n(),()=>{c.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const $5=(e,t,n)=>{const r=new Map,s={platform:M5,...n},i={...s.platform,_c:r};return y5(e,t,{...s,platform:i})};var Oo=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ga(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ga(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!ga(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cp(e,t){const n=$0(e);return Math.round(t*n)/n}function dp(e){const t=x.useRef(e);return Oo(()=>{t.current=e}),t}function z5(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,g]=x.useState(r);ga(h,r)||g(r);const[p,y]=x.useState(null),[S,m]=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,m(A))},[m]),b=i||p,E=o||S,k=x.useRef(null),R=x.useRef(null),P=x.useRef(c),L=dp(l),M=dp(s),T=x.useCallback(()=>{if(!k.current||!R.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),$5(k.current,R.current,A).then($=>{const N={...$,isPositioned:!0};D.current&&!ga(P.current,N)&&(P.current=N,ki.flushSync(()=>{d(N)}))})},[h,t,n,M]);Oo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const D=x.useRef(!1);Oo(()=>(D.current=!0,()=>{D.current=!1}),[]),Oo(()=>{if(b&&(k.current=b),E&&(R.current=E),b&&E){if(L.current)return L.current(b,E,T);T()}},[b,E,T,L]);const U=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:w}),[v,w]),C=x.useMemo(()=>({reference:b,floating:E}),[b,E]),O=x.useMemo(()=>{const A={position:n,left:0,top:0};if(!C.floating)return A;const $=cp(C.floating,c.x),N=cp(C.floating,c.y);return a?{...A,transform:"translate("+$+"px, "+N+"px)",...$0(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:N}},[n,a,C.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:T,refs:U,elements:C,floatingStyles:O}),[c,T,U,C,O])}var z0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let ql=!1,U5=0;const fp=()=>"floating-ui-"+U5++;function B5(){const[e,t]=x.useState(()=>ql?fp():void 0);return z0(()=>{e==null&&t(fp())},[]),x.useEffect(()=>{ql||(ql=!0)},[]),e}const V5=hm["useId".toString()],H5=V5||B5;function q5(){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 Q5=x.createContext(null),K5=()=>x.useContext(Q5),W5=hm["useInsertionEffect".toString()],Z5=W5||(e=>e());function G5(e){const t=x.useRef(()=>{});return Z5(()=>{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 X5(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=z5(e),u=K5(),c=G5((b,E)=>{b&&(h.current.openEvent=E),r==null||r(b,E)}),d=x.useRef(null),h=x.useRef({}),g=x.useState(()=>q5())[0],p=H5(),y=x.useCallback(b=>{const E=Xe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(E)},[l.refs]),S=x.useCallback(b=>{(Xe(b)||b===null)&&(d.current=b,o(b)),(Xe(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Xe(b))&&l.refs.setReference(b)},[l.refs]),m=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:m,elements:v,dataRef:h,nodeId:s,floatingId:p,events:g,open:n,onOpenChange:c}),[l,s,p,g,n,c,m,v]);return z0(()=>{const b=u==null?void 0:u.nodesRef.current.find(E=>E.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:m,elements:v}),[l,m,v,w])}const Y5=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=X5({placement:e,open:n,onOpenChange:r,whileElementsMounted:F5,middleware:[b5(4),x5({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 g=()=>{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)},m=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":m(),D=!0;break;case"Esc":case"Escape":v(),D=!0;break;case"Up":case"ArrowUp":m(),D=!0;break}w(D,T)},[v,m]),E=T=>{const U=Object.values(h.current).findIndex(C=>C.id===T.currentTarget.getAttribute("id"));i(U)},k=x.useCallback((T,D)=>{T.preventDefault();let U=!1;if(T.shiftKey)T.key==="Tab"&&(v(),U=!0);else{switch(T.code){case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),D==null||D()),U=!0;break;case"ArrowDown":case"Down":g(),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},customTriggerProps:{ref:M(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,"data-state":n?"selected":null,onClick:R,onKeyDown:b},menuProps:{ref:M(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,"aria-activedescendant":o,style:{...u}},itemProps:{onMenuItemMouseEnter:E,onMenuItemClick:P,onMenuItemKeyDown:k},setVisible:r}},J5=Y5,U0=({children:e,block:t,placement:n="bottom-start"})=>{const{visible:r,isFocused:s,triggerProps:i,customTriggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=J5(n),d=Jg(()=>c(!1)),h=x.useMemo(()=>({visible:r,isFocused:s,triggerProps:i,menuProps:a,itemProps:l,itemRefs:u,block:t}),[r,s,i,a,l,u,t]),g=H("dropdown",{"w-100":t});return f.jsx(S0.Provider,{value:h,children:f.jsx("div",{ref:d,className:g,children:typeof e=="function"?e(o):e})})};U0.displayName="Dropdown";const eb=Object.assign(U0,{Trigger:o5,Menu:t5,Item:e5,Separator:i5,CheckboxItem:J3,RadioItem:s5,MenuGroup:n5}),fr=eb,B0=x.createContext(null),$d=()=>{const e=x.useContext(B0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},V0=({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})})};V0.displayName="Text";const tb=V0,H0=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})]})});H0.displayName="Label";const nb=H0,q0=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})});q0.displayName="Input";const Q0=q0,K0=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(B0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),rb=Object.assign(K0,{Label:nb,Input:Q0,Text:tb});K0.displayName="FormControl";const gc=rb,Ms=({children:e,className:t,...n})=>{const r=H("grid",t);return f.jsx("div",{className:r,...n,children:e})},W0=({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";W0.displayName="Grid.Col";Ms.Col=W0;const Z0=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"})]})});Z0.displayName="LoadingScreen";const ze=Z0,G0=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"})})});G0.displayName="Logo";const hp=G0;var sb=Object.defineProperty,ib=(e,t)=>{for(var n in t)sb(e,n,{get:t[n],enumerable:!0})},Pt={};ib(Pt,{assign:()=>lb,colors:()=>jn,createStringInterpolator:()=>Qd,skipAnimation:()=>rv,to:()=>nv,willAdvance:()=>Kd});var zd=Ti(),V=e=>ji(e,zd),Ud=Ti();V.write=e=>ji(e,Ud);var Za=Ti();V.onStart=e=>ji(e,Za);var Bd=Ti();V.onFrame=e=>ji(e,Bd);var Vd=Ti();V.onFinish=e=>ji(e,Vd);var Mr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const i=Mr.findIndex(o=>o.cancel==r);~i&&Mr.splice(i,1),xn-=~i?1:0},s={time:n,handler:e,cancel:r};return Mr.splice(X0(n),0,s),xn+=1,Y0(),s};var X0=e=>~(~Mr.findIndex(t=>t.time>e)||~Mr.length);V.cancel=e=>{Za.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};V.sync=e=>{vc=!0,V.batchedUpdates(e),vc=!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=()=>{Za.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"):ev()};var wn=-1,xn=0,vc=!1;function ji(e,t){vc?(t.delete(e),e(0)):(t.add(e),Y0())}function Y0(){wn<0&&(wn=0,V.frameLoop!=="demand"&&Hd(J0))}function ob(){wn=-1}function J0(){~wn&&(Hd(J0),V.batchedUpdates(ev))}function ev(){const e=wn;wn=V.now();const t=X0(wn);if(t&&(tv(Mr.splice(0,t),n=>n.handler()),xn-=t),!xn){ob();return}Za.flush(),zd.flush(e?Math.min(64,wn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function Ti(){let e=new Set,t=e;return{add(n){xn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xn-=t.size,tv(t,r=>r(n)&&e.add(r)),xn+=e.size,t=e)}}}function tv(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function yc(){}var ab=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Qt(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var B=(e,t)=>e.forEach(t);function Ut(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var je=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Cs=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,nv,jn=null,rv=!1,Kd=yc,lb=e=>{e.to&&(nv=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(jn=e.colors),e.skipAnimation!=null&&(rv=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=[],Ql=[],va=0,Ga={get idle(){return!Fs.size&&!ct.length},start(e){va>e.priority?(Fs.add(e),V.onStart(ub)):(sv(e),V(wc))},advance:wc,sort(e){if(va)V.onFrame(()=>Ga.sort(e));else{const t=ct.indexOf(e);~t&&(ct.splice(t,1),iv(e))}},clear(){ct=[],Fs.clear()}};function ub(){Fs.forEach(sv),Fs.clear(),V(wc)}function sv(e){ct.includes(e)||iv(e)}function iv(e){ct.splice(cb(ct,t=>t.priority>e.priority),0,e)}function wc(e){const t=Ql;for(let n=0;n<ct.length;n++){const r=ct[n];va=r.priority,r.idle||(Kd(r),r.advance(e),r.idle||t.push(r))}return va=0,Ql=ct,Ql.length=0,ct=t,ct.length>0}function cb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var db=(e,t,n)=>Math.min(Math.max(n,e),t),fb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ct="[-+]?\\d*\\.?\\d+",ya=Ct+"%";function Xa(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var hb=new RegExp("rgb"+Xa(Ct,Ct,Ct)),pb=new RegExp("rgba"+Xa(Ct,Ct,Ct,Ct)),mb=new RegExp("hsl"+Xa(Ct,ya,ya)),gb=new RegExp("hsla"+Xa(Ct,ya,ya,Ct)),vb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wb=/^#([0-9a-fA-F]{6})$/,xb=/^#([0-9a-fA-F]{8})$/;function Sb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=wb.exec(e))?parseInt(t[1]+"ff",16)>>>0:jn&&jn[e]!==void 0?jn[e]:(t=hb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|255)>>>0:(t=pb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|gp(t[4]))>>>0:(t=vb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=xb.exec(e))?parseInt(t[1],16)>>>0:(t=yb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=mb.exec(e))?(pp(mp(t[1]),so(t[2]),so(t[3]))|255)>>>0:(t=gb.exec(e))?(pp(mp(t[1]),so(t[2]),so(t[3]))|gp(t[4]))>>>0:null}function Kl(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 pp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Kl(s,r,e+1/3),o=Kl(s,r,e),a=Kl(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 mp(e){return(parseFloat(e)%360+360)%360/360}function gp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function so(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function vp(e){let t=Sb(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=Cb(u,i);return bb(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function bb(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 Cb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Eb=(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 db(0,1,s/e)},wa=1.70158,io=wa*1.525,yp=wa+1,wp=2*Math.PI/3,xp=2*Math.PI/4.5,oo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Rb={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=>yp*e*e*e-wa*e*e,easeOutBack:e=>1+yp*Math.pow(e-1,3)+wa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((io+1)*2*e-io)/2:(Math.pow(2*e-2,2)*((io+1)*(e*2-2)+io)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*wp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*wp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*xp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*xp)/2+1,easeInBounce:e=>1-oo(1-e),easeOutBounce:oo,easeInOutBounce:e=>e<.5?(1-oo(1-2*e))/2:(1+oo(2*e-1))/2,steps:Eb},di=Symbol.for("FluidValue.get"),Wr=Symbol.for("FluidValue.observers"),ut=e=>!!(e&&e[di]),De=e=>e&&e[di]?e[di]():e,Sp=e=>e[Wr]||null;function kb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function fi(e,t){const n=e[Wr];n&&n.forEach(r=>{kb(r,t)})}var ov=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Pb(this,e)}},Pb=(e,t)=>av(e,di,t);function es(e,t){if(e[di]){let n=e[Wr];n||av(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 av=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),No=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ob=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bp=new RegExp(`(${No.source})(%|[a-z]+)`,"i"),Nb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ya=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,lv=e=>{const[t,n]=jb(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&&Ya.test(n))return lv(n);if(n)return n}return e},jb=e=>{const t=Ya.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Wl,Tb=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,uv=e=>{Wl||(Wl=jn?new RegExp(`(${Object.keys(jn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>De(i).replace(Ya,lv).replace(Ob,vp).replace(Wl,vp)),n=t.map(i=>i.match(No).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>ci({...e,output:i}));return i=>{var l;const o=!bp.test(t[0])&&((l=t.find(u=>bp.test(u)))==null?void 0:l.replace(No,""));let a=0;return t[0].replace(No,()=>`${s[a++](i)}${o||""}`).replace(Nb,Tb)}},Wd="react-spring: ",cv=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)}},Ib=cv(console.warn);function _b(){Ib(`${Wd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Ab=cv(console.warn);function Lb(){Ab(`${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 Ja(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&Ya.test(e)||e in(jn||{}))}var Zn=qd()?x.useEffect:x.useLayoutEffect,Mb=()=>{const e=x.useRef(!1);return Zn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Zd(){const e=x.useState()[1],t=Mb();return()=>{t.current&&e(Math.random())}}function Db(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Fb(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 Fb(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,$b),$b=[];function xc(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var pi=Symbol.for("Animated:node"),zb=e=>!!e&&e[pi]===e,Lt=e=>e&&e[pi],Xd=(e,t)=>ab(e,pi,t),el=e=>e&&e[pi]&&e[pi].getPayload(),dv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ii=class extends dv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ii(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},mi=class extends Ii{constructor(e){super(0),this._string=null,this._toString=ci({output:[e,e]})}static create(e){return new mi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ci({output:[this.getValue(),e]})),this._value=0,super.reset()}},xa={dependencies:null},tl=class extends dv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ut(this.source,(n,r)=>{zb(n)?t[r]=n.getValue(e):ut(n)?t[r]=De(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ut(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xa.dependencies&&ut(e)&&xa.dependencies.add(e);const t=el(e);t&&B(t,n=>this.add(n))}},fv=class extends tl{constructor(e){super(e)}static create(e){return new fv(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(Ub)),!0)}};function Ub(e){return(Ja(e)?mi:Ii).create(e)}function Sc(e){const t=Lt(e);return t?t.constructor:j.arr(e)?fv:Ja(e)?mi:Ii}var Cp=(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=Hb(s,p)},[s]),[a,l]=Vb(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 Bb(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 g=t.getComponentProps(a.getValue());return x.createElement(e,{...g,ref:o})})},Bb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function Vb(e,t){const n=new Set;return xa.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new tl(e),xa.dependencies=null,[e,n]}function Hb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Ep=Symbol.for("AnimatedComponent"),qb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new tl(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=Rp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Cp(o,s)):o=o[Ep]||(o[Ep]=Cp(o,s)),o.displayName=`Animated(${a})`,o};return Ut(e,(o,a)=>{j.arr(e)&&(a=Rp(o)),i[a]=i(o)}),{animated:i}},Rp=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))),hv=(e,t)=>j.obj(e)?t&&e[t]:e,pv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Qb=e=>e,nl=(e,t=Qb)=>{let n=Kb;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},Kb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Wb={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 Zb(e){const t={};let n=0;if(Ut(e,(r,s)=>{Wb[s]||(t[s]=r,n++)}),n)return t}function Yd(e){const t=Zb(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):Ja(e)?Pt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function mv(e){for(const t in e)return!0;return!1}function bc(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 gv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Gb={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}},Ec={...Gb.default,mass:1,damping:1,easing:Rb.linear,clamp:!1},Xb=class{constructor(){this.velocity=0,Object.assign(this,Ec)}};function Yb(e,t,n){n&&(n={...n},kp(n,t),t={...n,...t}),kp(e,t),Object.assign(e,t);for(const o in Ec)e[o]==null&&(e[o]=Ec[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 kp(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 Pp=[],Jb=class{constructor(){this.changed=!1,this.values=Pp,this.toValues=null,this.fromValues=Pp,this.config=new Xb,this.immediate=!1}};function vv(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)g();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(g,l),s.pauseQueue.add(d),s.timeouts.add(u)):g()}function g(){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)?yv(e.get()):bt(e.get(),t.every(n=>n.finished)),yv=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 wv(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=nl(t,(S,m)=>m==="onRest"?void 0:S);let c,d;const h=new Promise((S,m)=>(c=S,d=m)),g=S=>{const m=s<=(n.cancelId||0)&&Dr(r)||s!==n.asyncId&&bt(r,!1);if(m)throw S.result=m,d(S),S},p=(S,m)=>{const v=new Op,w=new Np;return(async()=>{if(Pt.skipAnimation)throw vi(n),w.result=bt(r,!1),d(w),w;g(v);const b=j.obj(S)?{...S}:{...m,to:S};b.parentId=s,Ut(u,(k,R)=>{j.und(b[R])&&(b[R]=k)});const E=await r.start(b);return g(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),E})()};let y;if(Pt.skipAnimation)return vi(n),bt(r,!1);try{let S;j.arr(e)?S=(async m=>{for(const v of m)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 Op)y=S.result;else if(S instanceof Np)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 Op=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.")}},Np=class extends Error{constructor(){super("SkipAnimationSignal")}},Rc=e=>e instanceof ef,eC=1,ef=class extends ov{constructor(){super(...arguments),this.id=eC++,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 _b(),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||Ga.sort(this),fi(this,{type:"priority",parent:this,priority:e})}},sr=Symbol.for("SpringPhase"),xv=1,kc=2,Pc=4,Zl=e=>(e[sr]&xv)>0,cn=e=>(e[sr]&kc)>0,ps=e=>(e[sr]&Pc)>0,jp=(e,t)=>t?e[sr]|=kc|xv:e[sr]&=~kc,Tp=(e,t)=>t?e[sr]|=Pc:e[sr]&=~Pc,tC=class extends ef{constructor(e,t){if(super(),this.animation=new Jb,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 Zl(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=el(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,g=d;if(!h){if(g=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 m;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);g=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-g)<=v,m=S*b}else{m=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,E=!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(m)>w,!(!R&&(h=Math.abs(d-g)<=v,h)));++T){E&&(P=g==d||g>d==k,P&&(m=-m*b,g=d));const D=-i.tension*1e-6*(g-d),U=-i.friction*.001*m,C=(D+U)/i.mass;m=m+C*L,g=g+m*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),g=y+i.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,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||bc(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Zl(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,nl(e,(o,a)=>/^on/.test(a)?hv(o,n):o)),_p(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 vv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(Tp(this,!0),Cs(i.pauseQueue),gs(this,"onPause",bt(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(Tp(this,!1),cn(this)&&this._resume(),Cs(i.resumeQueue),gs(this,"onResume",bt(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Sv(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 g=!Qt(c,l);g&&this._focus(c);const p=bc(t.to),{config:y}=a,{decay:S,velocity:m}=y;(r||s)&&(y.velocity=0),t.config&&!p&&Yb(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(),E=gi(c),k=j.num(E)||j.arr(E)||Ja(E),R=!p&&(!k||$s(o.immediate||t.immediate,i));if(g){const T=Sc(c);if(T!==v.constructor)if(R)v=this._set(E);else throw Error(`Cannot animate between ${v.constructor.name} and ${T.name}, as the "to" prop suggests`)}const P=v.constructor;let L=ut(c),M=!1;if(!L){const T=w||!Zl(this)&&h;(g||T)&&(M=Qt(gi(b),E),L=!M),(!Qt(a.immediate,R)&&!R||!Qt(y.decay,S)||!Qt(y.velocity,m))&&(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(E)),a.immediate!=R&&(a.immediate=R,!R&&!w&&this._set(l)),L)){const{onRest:T}=a;B(rC,U=>_p(this,t,U));const D=bt(this,ms(this,l));Cs(this._pendingCalls,D),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var U;a.changed=!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(wv(t.to,t,this._state,this)):L?this._start():cn(this)&&!g?this._pendingCalls.add(n):n(yv(b))}_focus(e){const t=this.animation;e!==t.to&&(Sp(this)&&this._detach(),t.to=e,Sp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ut(t)&&(es(t,this),Rc(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=Sc(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)||(jp(this,!0),ps(this)||this._resume())}_resume(){Pt.skipAnimation?this.finish():Ga.start(this)}_stop(e,t){if(cn(this)){jp(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),fi(this,{type:"idle",parent:this});const r=t?Dr(this.get()):bt(this.get(),ms(this,e??n.to));Cs(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=gi(t),r=gi(e.get());return Qt(r,n)}function Sv(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||bc(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)&&Ip(t,r),j.obj(n)&&Ip(n,r),e.keys=r.size?Array.from(r):null,e}function nC(e){const t=yi(e);return j.und(t.default)&&(t.default=nl(t)),t}function Ip(e,t){Ut(e,(n,r)=>n!=null&&t.add(r))}var rC=["onStart","onRest","onChange","onPause","onResume"];function _p(e,t,n){e.animation[n]=t[n]!==pv(t,n)?hv(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 sC=["onStart","onChange","onRest"],iC=1,bv=class{constructor(e,t){this.id=iC++,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):(Pv(this,t),Oc(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 Oc(e,t){return Promise.all(t.map(n=>Cv(e,n))).then(n=>Jd(e,n))}async function Cv(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(sC,y=>{const S=t[y];if(j.fun(S)){const m=e._events[y];t[y]=({finished:v,cancelled:w})=>{const b=m.get(S);b?(v||(b.finished=!1),w&&(b.cancelled=!0)):m.set(S,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Cs(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),g=t.cancel===!0||pv(t,"cancel")===!0;(c||g&&d.asyncId)&&h.push(vv(++e._lastAsyncId,{props:t,state:d,actions:{pause:yc,resume:yc,start(y,S){g?(vi(d,e._lastAsyncId),S(Dr(e))):(y.onRest=a,S(wv(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=Sv(t,o,s);if(y)return Pv(e,[y]),Cv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function Nc(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}),kv(n,r,s=>Rv(s))}),Ev(e,n),n}function Ev(e,t){Ut(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Rv(e,t){const n=new tC;return n.key=e,t&&es(n,t),n}function kv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Pv(e,t){B(t,n=>{kv(e.springs,n,r=>Rv(r,e))})}var _i=({children:e,...t})=>{const n=x.useContext(Sa),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Db(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Sa;return x.createElement(i,{value:t},e)},Sa=oC(_i,{});_i.Provider=Sa.Provider;_i.Consumer=Sa.Consumer;function oC(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Ov=()=>{const e=[],t=function(r){Lb();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 aC(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?Ov():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const w=Nc(m,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(E=>!m.springs[E])?Oc(m,v):new Promise(E=>{Ev(m,w),a.queue.push(()=>{E(Oc(m,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=xc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),m=>{Cc(m,s),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let w=m;w<v;w++){const b=l.current[w]||(l.current[w]=new bv(null,a.flush)),E=r?r(w,b):t[w];E&&(u[w]=nC(E))}}const h=l.current.map((m,v)=>Nc(m,u[v])),g=x.useContext(_i),p=xc(g),y=g!==p&&mv(g);Zn(()=>{i.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],B(m,v=>v())),B(l.current,(v,w)=>{s==null||s.add(v),y&&v.start({default:g});const b=u[w];b&&(gv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Gd(()=>()=>{B(a.ctrls,m=>m.stop(!0))});const S=h.map(m=>({...m}));return s?[S,s]:S}function rk(e,t){const n=j.fun(e),[[r],s]=aC(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?Ov():void 0,[]),g=je(e),p=[],y=x.useRef(null),S=s?null:y.current;Zn(()=>{y.current=p}),Gd(()=>(B(p,C=>{h==null||h.add(C.ctrl),C.ctrl.ref=h}),()=>{B(y.current,C=>{C.expired&&clearTimeout(C.expirationId),Cc(C.ctrl,h),C.ctrl.stop(!0)})}));const m=uC(g,r?r():t,S),v=s&&y.current||[];Zn(()=>B(v,({ctrl:C,item:O,key:A})=>{Cc(C,h),Fe(u,O,A)}));const w=[];if(S&&B(S,(C,O)=>{C.expired?(clearTimeout(C.expirationId),v.push(C)):(O=w[O]=m.indexOf(C.key),~O&&(p[O]=C))}),B(g,(C,O)=>{p[O]||(p[O]={key:m[O],item:C,phase:"mount",ctrl:new bv},p[O].ctrl.item=C)}),w.length){let C=-1;const{leave:O}=r?r():t;B(w,(A,$)=>{const N=S[$];~A?(C=p.indexOf(N),p[C]={...N,item:g[A]}):O&&p.splice(++C,0,N)})}j.fun(i)&&p.sort((C,O)=>i(C.item,O.item));let b=-o;const E=Zd(),k=nl(t),R=new Map,P=x.useRef(new Map),L=x.useRef(!1);B(p,(C,O)=>{const A=C.key,$=C.phase,N=r?r():t;let _,z;const Z=Fe(N.delay||0,A);if($=="mount")_=N.enter,z="enter";else{const ye=m.indexOf(A)<0;if($!="leave")if(ye)_=N.leave,z="leave";else if(_=N.update)z="update";else return;else if(!ye)_=N.enter,z="enter";else return}if(_=Fe(_,C.item,O),_=j.obj(_)?Yd(_):{to:_},!_.config){const ye=d||k.config;_.config=Fe(ye,C.item,O,z)}b+=o;const W={...k,delay:Z+b,ref:c,immediate:N.immediate,reset:!1,..._};if(z=="enter"&&j.und(W.from)){const ye=r?r():t,G=j.und(ye.initial)||S?ye.from:ye.initial;W.from=Fe(G,C.item,O)}const{onResolve:an}=W;W.onResolve=ye=>{Fe(an,ye);const G=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(E,ln));return}}}jt&&G.some(Tt=>Tt.expired)&&(P.current.delete(he),l&&(L.current=!0),E())}};const it=Nc(C.ctrl,W);z==="leave"&&l?P.current.set(C,{phase:z,springs:it,payload:W}):R.set(C,{phase:z,springs:it,payload:W})});const M=x.useContext(_i),T=xc(M),D=M!==T&&mv(M);Zn(()=>{D&&B(p,C=>{C.ctrl.start({default:M})})},[M]),B(R,(C,O)=>{if(P.current.size){const A=p.findIndex($=>$.key===O.key);p.splice(A,1)}}),Zn(()=>{B(P.current.size?P.current:R,({phase:C,payload:O},A)=>{const{ctrl:$}=A;A.phase=C,h==null||h.add($),D&&C=="enter"&&$.start({default:M}),O&&(gv($,O.ref),($.ref||h)&&!L.current?$.update(O):($.start(O),L.current&&(L.current=!1)))})},s?void 0:n);const U=C=>x.createElement(x.Fragment,null,p.map((O,A)=>{const{springs:$}=R.get(O)||O.ctrl,N=C({...$},O.item,O,A);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(O.key)||j.num(O.key)?O.key:O.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var lC=1;function uC(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):lC++})}return j.und(n)?e:j.fun(n)?e.map(n):je(n)}var cC=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=Sc(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&&Ap(this._active)&&Gl(this)}_get(){const e=j.arr(this.source)?this.source.map(De):je(De(this.source));return this.calc(...e)}_start(){this.idle&&!Ap(this._active)&&(this.idle=!1,B(el(this),e=>{e.done=!1}),Pt.skipAnimation?(V.batchedUpdates(()=>this.advance()),Gl(this)):Ga.start(this))}_attach(){let e=1;B(je(this.source),t=>{ut(t)&&es(t,this),Rc(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(),Gl(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,(Rc(n)?n.priority:0)+1),0))}};function dC(e){return e.idle!==!1}function Ap(e){return!e.size||Array.from(e).every(dC)}function Gl(e){e.idle||(e.idle=!0,B(el(e),t=>{t.done=!0}),fi(e,{type:"idle",parent:e}))}Pt.assign({createStringInterpolator:uv,to:(e,t)=>new cC(e,t)});var Nv=/^--/;function fC(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Nv.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Lp={};function hC(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:Lp[d]||(Lp[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=fC(d,r[d]);Nv.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},pC=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),mC=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(mC.forEach(n=>e[pC(n,t)]=e[t]),e),zs);var gC=/^(matrix|translate|scale|rotate|skew)/,vC=/^(translate)/,yC=/^(rotate|skew)/,Xl=(e,t)=>j.num(e)&&e!==0?e+t:e,jo=(e,t)=>j.arr(e)?e.every(n=>jo(n,t)):j.num(e)?e===t:parseFloat(e)===t,wC=class extends tl{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=>Xl(a,"px")).join(",")})`,jo(o,0)])),Ut(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(gC.test(a)){if(delete r[a],j.und(o))return;const l=vC.test(a)?"px":yC.test(a)?"deg":"";s.push(je(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${Xl(h,l)})`,jo(h,0)]:u=>[`${a}(${u.map(c=>Xl(c,l)).join(",")})`,jo(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new xC(s,i)),super(r)}},xC=class extends ov{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)}},SC=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Pt.assign({batchedUpdates:ki.unstable_batchedUpdates,createStringInterpolator:uv,colors:fb});var bC=qb(SC,{applyAnimatedValues:hC,createAnimatedStyle:e=>new wC(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ba=bC.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const jv=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Tv=e=>{const{ariaDescriptionId:t}=jv(),{children:n,className:r}=e,s=H("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Tv.displayName="Modal.Body";const CC=Tv,Iv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Iv.displayName="Modal.Footer";const EC=Iv,_v=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=jv(),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("button",{ref:i,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t})]})};_v.displayName="Modal.Header";const RC=_v,Av=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Av.displayName="Modal.Subtitle";const kC=Av,Lv=x.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",scrollable:o,focusId:a,children:l}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=Jg(s),h=D4();A4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const S=document.getElementById(a);S==null||S.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const g=H("modal-dialog",{[`modal-${i}`]:i,"modal-dialog-scrollable":o}),p={ariaLabelId:u,ariaDescriptionId:c,focusId:a},y=tf(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(nf.Provider,{value:p,children:y((S,m)=>f.jsxs(f.Fragment,{children:[m&&f.jsx(ba.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":c,className:`modal fade ${m?"show d-block":""}`,style:S,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(ba.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),PC=Object.assign(Lv,{Header:RC,Subtitle:kC,Body:CC,Footer:EC});Lv.displayName="Modal";const Sn=PC,OC=({children:e,className:t})=>{const n=H("popover-body",t);return f.jsx("div",{className:n,children:e})},NC=({children:e,className:t})=>{const n=H("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=H("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(ba.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function jC(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 Mv=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,g]=x.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:w}=jC(t,n,h,g,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?(g(!0),R===t):(g(!1),!1))}else g(!1)},[t,d]);const b=s?16:12,E=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:S,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(tp,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(fc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(tp,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:y,onFocus:v,onBlur:w,children:[s&&f.jsx(i3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:E()}):E()};Mv.displayName="TreeItem";const TC=Mv,Dv=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=m=>{c(m),r==null||r(m)},h=m=>{s==null||s(m)},g=m=>{i==null||i(m)},p=m=>{o==null||o(m)},y=m=>{a==null||a(m)},S=m=>f.jsx(TC,{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=>S(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});Dv.displayName="TreeView";const IC=Dv,Fv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Fv.displayName="VisuallyHidden";const Es=Fv,_C=()=>{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}},AC=_C;function Yl({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function Jl({children:e,className:t,...n}){const r=H("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Mp({children:e,className:t,...n}){const r=H("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ue=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ue.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=H("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Es,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const LC=()=>{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")})})})},MC=({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(hc,{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 rl=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=rl;var $v=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}(rl);q.Text=$v;var zv=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}(rl);q.Comment=zv;var Uv=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}(rl);q.ProcessingInstruction=Uv;var sl=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=sl;var Bv=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}(sl);q.CDATA=Bv;var Vv=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}(sl);q.Document=Vv;var Hv=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}(sl);q.Element=Hv;function qv(e){return(0,Qe.isTag)(e)}q.isTag=qv;function Qv(e){return e.type===Qe.ElementType.CDATA}q.isCDATA=Qv;function Kv(e){return e.type===Qe.ElementType.Text}q.isText=Kv;function Wv(e){return e.type===Qe.ElementType.Comment}q.isComment=Wv;function Zv(e){return e.type===Qe.ElementType.Directive}q.isDirective=Zv;function Gv(e){return e.type===Qe.ElementType.Root}q.isDocument=Gv;function DC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=DC;function lf(e,t){t===void 0&&(t=!1);var n;if(Kv(e))n=new $v(e.data);else if(Wv(e))n=new zv(e.data);else if(qv(e)){var r=t?eu(e.children):[],s=new Hv(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(Qv(e)){var r=t?eu(e.children):[],i=new Bv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Gv(e)){var r=t?eu(e.children):[],o=new Vv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Zv(e)){var a=new Uv(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 eu(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 Dp="html",Fp="head",ao="body",FC=/<([a-zA-Z]+[0-9]?)/,$p=/<head[^]*>/i,zp=/<body[^]*>/i,Ca=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},jc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Up=typeof window=="object"&&window.DOMParser;if(typeof Up=="function"){var $C=new Up,zC="text/html";jc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),$C.parseFromString(e,zC)},Ca=jc}if(typeof document=="object"&&document.implementation){var lo=document.implementation.createHTMLDocument();Ca=function(e,t){if(t){var n=lo.documentElement.querySelector(t);return n.innerHTML=e,lo}return lo.documentElement.innerHTML=e,lo}}var tu=typeof document=="object"?document.createElement("template"):{},Tc;tu.content&&(Tc=function(e){return tu.innerHTML=e,tu.content.childNodes});function UC(e){var t,n=e.match(FC);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case Dp:return r=jc(e),$p.test(e)||(s=r.querySelector(Fp),s&&s.parentNode.removeChild(s)),zp.test(e)||(s=r.querySelector(ao),s&&s.parentNode.removeChild(s)),r.querySelectorAll(Dp);case Fp:case ao:return r=Ca(e),i=r.querySelectorAll(t),zp.test(e)&&$p.test(e)?i[0].parentNode.childNodes:i;default:return Tc?Tc(e):(s=Ca(e,ao).querySelector(ao),s.childNodes)}}var BC=UC,uf={},Xv={};Xv.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 il=sf,VC=Xv,Bp=VC.CASE_SENSITIVE_TAG_NAMES,HC=il.Comment,qC=il.Element,QC=il.ProcessingInstruction,KC=il.Text,Yv={},nu;for(var ru=0,WC=Bp.length;ru<WC;ru++)nu=Bp[ru],Yv[nu.toLowerCase()]=nu;function ZC(e){return Yv[e]}function Jv(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function GC(e){e=e.toLowerCase();var t=ZC(e);return t||e}function ey(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=GC(a.nodeName),l=new qC(s,Jv(a.attributes)),l.children=ey(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new KC(a.nodeValue);break;case 8:l=new HC(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 QC(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=Jv;uf.formatDOM=ey;var XC=BC,YC=uf,JC=YC.formatDOM,eE=/<(![a-zA-Z\s]+)>/;function tE(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(eE),n;return t&&t[1]&&(n=t[1]),JC(XC(e),null,n)}var nE=tE,vt={},ol={},rE=0;ol.SAME=rE;var sE=1;ol.CAMELCASE=sE;ol.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 iE(e,t){return oE(e)||aE(e,t)||lE(e,t)||uE()}function oE(e){if(Array.isArray(e))return e}function aE(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 lE(e,t){if(e){if(typeof e=="string")return Vp(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 Vp(e,t)}}function Vp(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 uE(){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 ty=0,zn=1,al=2,ll=3,cf=4,ny=5,ry=6;function cE(e){return be.hasOwnProperty(e)?be[e]:null}function Ae(e,t,n,r,s,i,o){this.acceptsBooleans=t===al||t===ll||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={},dE=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];dE.forEach(function(e){be[e]=new Ae(e,ty,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=iE(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,al,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new Ae(e,al,!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,ll,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){be[e]=new Ae(e,ll,!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,ry,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new Ae(e,ny,!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 fE="xlinkHref";be[fE]=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=ol,hE=hf.CAMELCASE,pE=hf.SAME,Hp=hf.possibleStandardNames,mE=":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",gE=mE+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vE=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+gE+"]*$")),yE=Object.keys(Hp).reduce(function(e,t){var n=Hp[t];return n===pE?e[t]=t:n===hE?e[t.toLowerCase()]=t:e[t]=n,e},{});vt.BOOLEAN=ll;vt.BOOLEANISH_STRING=al;vt.NUMERIC=ny;vt.OVERLOADED_BOOLEAN=cf;vt.POSITIVE_NUMERIC=ry;vt.RESERVED=ty;vt.STRING=zn;vt.getPropertyInfo=cE;vt.isCustomAttribute=vE;vt.possibleStandardNames=yE;var sy={},pf={exports:{}},qp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,wE=/\n/g,xE=/^\s*/,SE=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,bE=/^:\s*/,CE=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,EE=/^[;\s]*/,RE=/^\s+|\s+$/g,kE=`
226
- `,Qp="/",Kp="*",Hn="",PE="comment",OE="declaration",NE=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(wE);y&&(n+=y.length);var S=p.lastIndexOf(kE);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(xE)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=i();if(!(Qp!=e.charAt(0)||Kp!=e.charAt(1))){for(var y=2;Hn!=e.charAt(y)&&(Kp!=e.charAt(y)||Qp!=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:PE,comment:S})}}function h(){var p=i(),y=l(SE);if(y){if(d(),!l(bE))return a("property missing ':'");var S=l(CE),m=p({type:OE,property:Wp(y[0].replace(qp,Hn)),value:S?Wp(S[0].replace(qp,Hn)):Hn});return l(EE),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 Wp(e){return e?e.replace(RE,Hn):Hn}var jE=NE;function iy(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=jE(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}pf.exports=iy;pf.exports.default=iy;var TE=pf.exports,ul={};ul.__esModule=!0;ul.camelCase=void 0;var IE=/^--[a-zA-Z0-9-]+$/,_E=/-([a-z])/g,AE=/^[^-]+$/,LE=/^-(webkit|moz|ms|o|khtml)-/,ME=/^-(ms)-/,DE=function(e){return!e||AE.test(e)||IE.test(e)},FE=function(e,t){return t.toUpperCase()},Zp=function(e,t){return"".concat(t,"-")},$E=function(e,t){return t===void 0&&(t={}),DE(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(ME,Zp):e=e.replace(LE,Zp),e.replace(_E,FE))};ul.camelCase=$E;(function(e){var t=Ue&&Ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(TE),r=ul;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(sy);var zE=x,UE=sy.default;function BE(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function VE(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 HE={reactCompat:!0};function qE(e,t){if(e!=null)try{t.style=UE(e,HE)}catch{t.style={}}}var QE=zE.version.split(".")[0]>=16,oy=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function KE(e){return!oy.has(e.name)}var ay={PRESERVE_CUSTOM_ATTRIBUTES:QE,invertObject:BE,isCustomComponent:VE,setStyleProp:qE,canTextBeChildOfNode:KE,elementsWithNoTextChildren:oy},Rs=vt,Gp=ay,WE=["checked","value"],ZE=["input","select","textarea"],GE={reset:!0,submit:!0},ly=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&GE[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Xp(s),o){switch(a=Rs.getPropertyInfo(o),WE.indexOf(o)!==-1&&ZE.indexOf(n)!==-1&&!u&&(o=Xp("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}Gp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Gp.setStyleProp(t.style,l),l};function Xp(e){return Rs.possibleStandardNames[e]}var XE=x,YE=ly,Ea=ay,JE=Ea.setStyleProp,eR=Ea.canTextBeChildOfNode;function uy(e,t){t=t||{};for(var n=t.library||XE,r=n.cloneElement,s=n.createElement,i=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),i(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&&!eR(a.parent)||g&&l)continue;o.push(a.data);continue}switch(d=a.attribs,tR(a)?JE(d.style,d):d&&(d=YE(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=uy(a.children,t));break;default:continue}y>1&&(d.key=p),o.push(s(a.name,d,h))}return o.length===1?o[0]:o}function tR(e){return Ea.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Ea.isCustomComponent(e.name,e.attribs)}var nR=uy,cl=sf,Pr=nE,rR=ly,cy=nR;Pr=typeof Pr.default=="function"?Pr.default:Pr;var sR={lowerCaseAttributeNames:!1};function Bt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},cy(Pr(e,t.htmlparser2||sR),t))}Bt.domToReact=cy;Bt.htmlToDOM=Pr;Bt.attributesToProps=rR;Bt.Comment=cl.Comment;Bt.Element=cl.Element;Bt.ProcessingInstruction=cl.ProcessingInstruction;Bt.Text=cl.Text;var iR=Bt;Bt.default=Bt;const Un=Ra(iR);var uo=Un.domToReact;Un.htmlToDOM;var su=Un.attributesToProps;Un.Comment;Un.Element;Un.ProcessingInstruction;Un.Text;function oR(){var y;const{appCode:e}=gt(),{theme:t}=Td(),[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 m=await fetch(S),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=Un(n,{replace:S=>{const m=S;if(m.attribs&&m.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(Jr,{onClick:()=>{i(!s)},children:f.jsx(K4,{})}),uo(m.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:uo(w.children,{replace:b=>{const E=b;if(E.attribs&&E.name==="a")return f.jsx("a",{...su(E.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:uo(E.children)})})}})})}})]});if(m.attribs&&m.attribs.class==="section level2"){const v=su(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:m.attribs.id!=="présentation"?"none":"block"},children:uo(m.children,{replace:w=>{const b=w;if(b.attribs&&b.name==="p")return f.jsx(f.Fragment,{});if(b.attribs&&b.name==="img"){const E=w.attribs.src;return f.jsx("img",{...su(b.attribs),src:`${c}/${E}`,alt:""})}}})})}}}),g=(y=h==null?void 0:h.props)==null?void 0:y.children.find(S=>S.type==="body").props.children,p=g==null?void 0:g.find(S=>S.type==="p").props.children;return{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:g,parsedHeadline:p,error:l}}const dy=()=>{const[e,t]=Gg(),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(Z3,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),f.jsx(rf,{id:r,isVisible:t,children:f.jsxs(gc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(gc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(w0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};dy.displayName="SearchEngine";const aR=dy;function Yp({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ve(),o=()=>{t(!1)};return e?ki.createPortal(f.jsxs(Sn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"xl",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 fy=({is1d:e=!1,src:t=""})=>{const{t:n}=ve(),{messages:r,msgLink:s,zimbraWorkflow:i}=AC(),{user:o,avatar:a}=Id(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=oR(),g=H("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:S,isAppsHovered:m,popoverAppsId:v,userAvatar:w,userName:b,welcomeUser:E,communityWorkflow:k,conversationWorflow:R,searchWorkflow:P,isCollapsed:L,toggleCollapsedNav:M,handleLogout:T}=zS({user:o,avatar:a}),D=r>0;return f.jsx("header",{className:g,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(Jl,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:E})]}),f.jsxs(Mp,{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(q3,{className:"icon notification"}),D&&f.jsx(Yl,{children:r}),f.jsx(Es,{children:n("navbar.messages")})]})}),f.jsx(ue,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(K3,{className:"icon user"})})}),f.jsxs(ue,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(V3,{className:"icon help"}),f.jsx(Es,{children:n("navbar.help")})]}),f.jsx(Yp,{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(rp,{className:"icon logout"}),f.jsx(Es,{children:n("navbar.disconnect")})]})}),f.jsx(ue,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!L,"aria-label":n("navbar.secondary.navigation"),onClick:M,children:f.jsx(fc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(Jl,{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(hp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Mp,{className:"gap-8",children:[f.jsx(ue,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(U3,{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(X3,{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(sp,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(Jl,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(hp,{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(L3,{color:"#fff"})})}),f.jsxs(ue,{className:"position-relative",ref:S,id:v,"aria-haspopup":"true","aria-expanded":m,children:[f.jsx(vs,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(sp,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:m,children:[f.jsx(OC,{children:f.jsx(MC,{bookmarkedApps:y})}),f.jsx(NC,{className:"widget-footer border-top border-ghost",children:f.jsx(LC,{})})]})]}),R&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(ip,{color:"#fff"}),D&&f.jsx(Yl,{children:r})]})}),i&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:s,translate:n("conversation"),children:[f.jsx(ip,{color:"#fff"}),D&&f.jsx(Yl,{children:r})]})}),f.jsxs(ue,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(F3,{color:"#fff"}),f.jsx(Es,{children:n("support")})]}),f.jsx(Yp,{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(fc,{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(I3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(aR,{}):null,f.jsx(ue,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(np,{alt:b,size:"sm",src: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(rp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};fy.displayName="Header";const lR=fy;function hy({children:e,className:t,...n}){const r=H("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}hy.displayName="Main";const py=({children:e,...t})=>{const{theme:n}=Td();return f.jsxs(f.Fragment,{children:[f.jsx(lR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(hy,{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(I4,{toastOptions:{position:"top-right"}})]})};py.displayName="Layout";const uR=py,cR=function(){return null};var my,Jp=ki;my=Jp.createRoot,Jp.hydrateRoot;const _t=document.querySelector("[data-ode-app]");let ys;function dl(){var e;if(ys)return ys;if(ys={app:co.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=_t==null?void 0:_t.dataset)!=null&&e.odeApp){const{odeApp:t}=_t.dataset;try{const n=JSON.parse(t);Object.assign(ys,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",_t==null?void 0:_t.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",_t==null?void 0:_t.dataset);return ys}const em=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},dR=e=>e?em(e):em;var gy={exports:{}},vy={};/**
224
+ `,no=16,I4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=o4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:no,left:no,right:no,bottom:no,pointerEvents:"none",...i},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=j4(c,d);return x.createElement(N4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?T4:"",style:h},u.type==="custom"?fa(u.message,u):s?s(u):x.createElement(O4,{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 _4({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 A4(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 L4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function M4(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 D4(){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 F4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const r0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));r0.displayName="ActionBar";const $4=r0,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:"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"})]}),U4=z4,B4=({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"})]}),V4=B4,H4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})]}),W8=H4,q4=({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"})]}),Z8=q4,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:"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"})]}),K4=Q4,W4=({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"})]}),Z4=W4,G4=({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"})]}),G8=G4,X4=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})]}),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:"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"})]}),X8=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:"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"})]}),t3=e3,n3=({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"})]}),Y8=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:"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"})]}),s3=r3,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:"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"})]}),o3=i3,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:"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"})]}),J8=a3,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:"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"})]}),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:"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"})]}),d3=c3,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("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"})]}),ek=f3,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:"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=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("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=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:"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"})]}),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:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),tp=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:"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"})]}),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:"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=S3,b3=({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"})]}),C3=b3,E3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})]}),R3=E3,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("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"})})})]}),nk=k3;function s0(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=s0(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=s0(e))&&(r&&(r+=" "),r+=t);return r}const i0=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),g=x.useRef(null),p=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:w,hide:p,...g.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const w=()=>{h(!0)},S={success:{icon:f.jsx(R3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(U4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(u3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(t3,{}),classModifier:"alert-danger"}},m={"is-dismissible":s,"is-toast ":i},v=H("alert gap-12",S[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:g,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})});i0.displayName="Alert";const Nt=i0,o0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=H("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:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});o0.displayName="AppHeader";const P3=o0,a0=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}=_4({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":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},p=H({...h}),w=H({...g},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:w,...o});return r?f.jsx("div",{className:p,children:S}):S});a0.displayName="Image";const l0=a0,u0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Xg(),[,a]=Ha(),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},w={"icon-contain":d,"icon-ratio":h},S=(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):"",y=i(S),b=v||"placeholder",E=H("app-icon",{...g,...p,...w,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return y?f.jsx(l0,{src:S,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:E,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${b}`})})})});u0.displayName="AppIcon";const pc=u0,c0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Ha(),u=s||`${l}/avatar/no-avatar.svg`,w=H("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return f.jsx("div",{ref:a,className:w,children:f.jsx(l0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});c0.displayName="Avatar";const np=c0,d0=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})});d0.displayName="BreadcrumbItem";const ql=d0,f0=x.forwardRef(({children:e,className:t},n)=>{const r=H("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});f0.displayName="BreadcrumbList";const O3=f0,h0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ve(),{getIconClass:i}=Xg(),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})});h0.displayName="BreadcrumbNav";const N3=h0,p0=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(d3,{...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()]})});p0.displayName="Loading";const j3=p0,m0=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 g=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:g,type:t,...d,children:s?f.jsx(j3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});m0.displayName="Button";const Jr=m0,g0=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})});g0.displayName="IconButton";const Qa=g0,v0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=ve();return f.jsx(N3,{app:e,ref:n,children:f.jsx(O3,{className:"gap-12",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(v3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(pc,{app:e,size:"40"})]})}),f.jsx(ql,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(ql,{className:"gap-12 d-flex align-items-center",children:[f.jsx(pc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});v0.displayName="Breadcrumb";const T3=v0,y0=x.forwardRef(({icon:e=f.jsx(C3,{}),onClick:t,...n},r)=>{const s=H("btn-search");return f.jsx(Qa,{ref:r,className:s,icon:e,...n,onClick:t})});y0.displayName="SearchButton";const w0=y0,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",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"})]}),_3=I3,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",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"})]}),rp=A3,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:"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"})]}),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:"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=D3,F3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 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"})]}),$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:"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"})]}),ip=z3,U3=({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"})]}),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:"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"})]}),H3=V3,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",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"})]}),Q3=q3,K3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("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"})})})]}),W3=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:"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"})]}),G3=Z3,X3=({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"})]}),Y3=X3,x0=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})]})});x0.displayName="Checkbox";const J3=x0,S0=x.createContext(null),Oi=()=>{const e=x.useContext(S0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},b0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:g=>i.current[u]=g,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:g=>a(g,()=>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(J3,{...d})]})})};b0.displayName="Dropdown.CheckboxItem";const e5=b0,C0=({icon:e,onClick:t,children:n,...r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemClick:a,onMenuItemKeyDown:l,onMenuItemMouseEnter:u}=s,c=()=>{a(),t==null||t()},d=x.useId(),h=H("dropdown-item",{focus:o===d});return f.jsx("div",{id:d,role:"menuitem",ref:g=>i.current[d]=g,tabIndex:o===d?0:-1,className:h,"aria-current":o===d,onClick:c,onMouseEnter:u,onKeyDown:g=>l(g,t),...r,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[e,n]})})};C0.displayName="Dropdown.Item";const t5=C0,E0=x.forwardRef(({children:e},t)=>{const{menuProps:n,visible:r}=Oi();return r?f.jsx("div",{ref:t,...n,children:e}):null});E0.displayName="Dropdown.Menu";const n5=E0,R0=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]}));R0.displayName="Dropdown.MenuGroup";const r5=R0,k0=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})]})});k0.displayName="Radio";const s5=k0,P0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Oi(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=H("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:g=>i.current[u]=g,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:g=>a(g,()=>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(s5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};P0.displayName="Dropdown.RadioItem";const i5=P0,O0=()=>f.jsx("div",{role:"separator",className:"px-4 my-4",children:f.jsx("hr",{className:"m-0"})});O0.displayName="Dropdown.Separator";const o5=O0,N0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i},o)=>{const{triggerProps:a,block:l}=Oi(),{className:u,...c}=a,d=H(s,n,{"w-100":l},u);return f.jsxs("button",{ref:o,className:d,disabled:r,...c,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(x3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});N0.displayName="Dropdown.Trigger";const a5=N0,mc=Math.min,Ar=Math.max,ha=Math.round,ro=Math.floor,_n=e=>({x:e,y:e}),l5={left:"right",right:"left",bottom:"top",top:"bottom"},u5={start:"end",end:"start"};function Ad(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Ka(e){return e.split("-")[1]}function c5(e){return e==="x"?"y":"x"}function j0(e){return e==="y"?"height":"width"}function Ld(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function T0(e){return c5(Ld(e))}function d5(e,t,n){n===void 0&&(n=!1);const r=Ka(e),s=T0(e),i=j0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=pa(o)),[o,pa(o)]}function f5(e){const t=pa(e);return[gc(e),t,gc(t)]}function gc(e){return e.replace(/start|end/g,t=>u5[t])}function h5(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 p5(e,t,n,r){const s=Ka(e);let i=h5(Qr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(gc)))),i}function pa(e){return e.replace(/left|right|bottom|top/g,t=>l5[t])}function m5(e){return{top:0,right:0,bottom:0,left:0,...e}}function g5(e){return typeof e!="number"?m5(e):{top:e,right:e,bottom:e,left:e}}function ma(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function An(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 op(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}function Ni(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function v5(e){return["table","td","th"].includes(An(e))}function Md(e){const t=Dd(),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 y5(e){let t=Kr(e);for(;zt(t)&&!Wa(t);){if(Md(t))return t;t=Kr(t)}return null}function Dd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wa(e){return["html","body","#document"].includes(An(e))}function mt(e){return Je(e).getComputedStyle(e)}function Za(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Kr(e){if(An(e)==="html")return e;const t=e.assignedSlot||e.parentNode||op(e)&&e.host||on(e);return op(t)?t.host:t}function _0(e){const t=Kr(e);return Wa(t)?e.ownerDocument?e.ownerDocument.body:e.body:zt(t)&&Ni(t)?t:_0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=_0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Je(s);return i?t.concat(o,o.visualViewport||[],Ni(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}function ap(e,t,n){let{reference:r,floating:s}=e;const i=Ld(t),o=T0(t),a=j0(o),l=Qr(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 g;switch(l){case"top":g={x:c,y:r.y-s.height};break;case"bottom":g={x:c,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-s.width,y:d};break;default:g={x:r.x,y:r.y}}switch(Ka(t)){case"start":g[o]-=h*(n&&u?-1:1);break;case"end":g[o]+=h*(n&&u?-1:1);break}return g}const w5=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}=ap(u,r,l),h=r,g={},p=0;for(let w=0;w<a.length;w++){const{name:S,fn:m}=a[w],{x:v,y,data:b,reset:E}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:g,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=y??d,g={...g,[S]:{...g[S],...b}},E&&p<=50){p++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:c,y:d}=ap(u,h,l)),w=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:g}};async function x5(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:g=0}=Ad(t,e),p=g5(g),S=a[h?d==="floating"?"reference":"floating":d],m=ma(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},E=ma(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(m.top-E.top+p.top)/b.y,bottom:(E.bottom-m.bottom+p.bottom)/b.y,left:(m.left-E.left+p.left)/b.x,right:(E.right-m.right+p.right)/b.x}}const S5=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:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:w=!0,...S}=Ad(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Qr(s),v=Qr(a)===a,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!w?[pa(a)]:f5(a));!h&&p!=="none"&&b.push(...p5(a,w,p,y));const E=[a,...b],k=await x5(t,S),R=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&R.push(k[m]),d){const D=d5(s,o,y);R.push(k[D[0]],k[D[1]])}if(P=[...P,{placement:s,overflows:R}],!R.every(D=>D<=0)){var L,M;const D=(((L=i.flip)==null?void 0:L.index)||0)+1,U=E[D];if(U)return{data:{index:D,overflows:P},reset:{placement:U}};let C=(M=P.filter(O=>O.overflows[0]<=0).sort((O,A)=>O.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!C)switch(g){case"bestFit":{var T;const O=(T=P.map(A=>[A.placement,A.overflows.filter($=>$>0).reduce(($,N)=>$+N,0)]).sort((A,$)=>A[1]-$[1])[0])==null?void 0:T[0];O&&(C=O);break}case"initialPlacement":C=a;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function b5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Qr(n),a=Ka(n),l=Ld(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Ad(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),l?{x:g*c,y:h*u}:{x:h*u,y:g*c}}const C5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,s=await b5(t,e);return{x:n+s.x,y:r+s.y,data:s}}}};function A0(e){const t=mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=zt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ha(n)!==i||ha(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Fd(e){return Xe(e)?e:e.contextElement}function Lr(e){const t=Fd(e);if(!zt(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=A0(t);let o=(i?ha(n.width):n.width)/r,a=(i?ha(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const E5=_n(0);function L0(e){const t=Je(e);return!Dd()||!t.visualViewport?E5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function R5(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=_n(1);t&&(r?Xe(r)&&(o=Lr(r)):o=Lr(e));const a=R5(i,n,r)?L0(i):_n(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),g=r&&Xe(r)?Je(r):r;let p=h.frameElement;for(;p&&r&&g!==h;){const w=Lr(p),S=p.getBoundingClientRect(),m=mt(p),v=S.left+(p.clientLeft+parseFloat(m.paddingLeft))*w.x,y=S.top+(p.clientTop+parseFloat(m.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=v,u+=y,p=Je(p).frameElement}}return ma({width:c,height:d,x:l,y:u})}function k5(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=_n(1);const l=_n(0);if((s||!s&&r!=="fixed")&&((An(n)!=="body"||Ni(i))&&(o=Za(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 P5(e){return Array.from(e.getClientRects())}function M0(e){return rr(on(e)).left+Za(e).scrollLeft}function O5(e){const t=on(e),n=Za(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+M0(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 N5(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=Dd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function j5(e,t){const n=rr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=zt(e)?Lr(e):_n(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 lp(e,t,n){let r;if(t==="viewport")r=N5(e,n);else if(t==="document")r=O5(on(e));else if(Xe(t))r=j5(t,n);else{const s=L0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return ma(r)}function D0(e,t){const n=Kr(e);return n===t||!Xe(n)||Wa(n)?!1:mt(n).position==="fixed"||D0(n,t)}function T5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Xe(a)&&An(a)!=="body"),s=null;const i=mt(e).position==="fixed";let o=i?Kr(e):e;for(;Xe(o)&&!Wa(o);){const a=mt(o),l=Md(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Ni(o)&&!l&&D0(e,o))?r=r.filter(c=>c!==o):s=a,o=Kr(o)}return t.set(e,r),r}function I5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?T5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=lp(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},lp(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _5(e){return A0(e)}function A5(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=_n(0);if(r||!r&&!i)if((An(t)!=="body"||Ni(s))&&(a=Za(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=M0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function up(e,t){return!zt(e)||mt(e).position==="fixed"?null:t?t(e):e.offsetParent}function F0(e,t){const n=Je(e);if(!zt(e))return n;let r=up(e,t);for(;r&&v5(r)&&mt(r).position==="static";)r=up(r,t);return r&&(An(r)==="html"||An(r)==="body"&&mt(r).position==="static"&&!Md(r))?n:r||y5(e)||n}const L5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||F0,i=this.getDimensions;return{reference:A5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function M5(e){return mt(e).direction==="rtl"}const D5={convertOffsetParentRelativeRectToViewportRelativeRect:k5,getDocumentElement:on,getClippingRect:I5,getOffsetParent:F0,getElementRects:L5,getClientRects:P5,getDimensions:_5,getScale:Lr,isElement:Xe,isRTL:M5};function F5(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 g=ro(c),p=ro(s.clientWidth-(u+d)),w=ro(s.clientHeight-(c+h)),S=ro(u),v={rootMargin:-g+"px "+-p+"px "+-w+"px "+-S+"px",threshold:Ar(0,mc(1,l))||1};let y=!0;function b(E){const k=E[0].intersectionRatio;if(k!==l){if(!y)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function $5(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(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&a?F5(u,n):null;let h=-1,g=null;o&&(g=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let p,w=l?rr(e):null;l&&S();function S(){const m=rr(e);w&&(m.x!==w.x||m.y!==w.y||m.width!==w.width||m.height!==w.height)&&n(),w=m,p=requestAnimationFrame(S)}return n(),()=>{c.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const z5=(e,t,n)=>{const r=new Map,s={platform:D5,...n},i={...s.platform,_c:r};return w5(e,t,{...s,platform:i})};var Oo=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ga(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ga(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!ga(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cp(e,t){const n=$0(e);return Math.round(t*n)/n}function dp(e){const t=x.useRef(e);return Oo(()=>{t.current=e}),t}function U5(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,g]=x.useState(r);ga(h,r)||g(r);const[p,w]=x.useState(null),[S,m]=x.useState(null),v=x.useCallback(A=>{A!=k.current&&(k.current=A,w(A))},[w]),y=x.useCallback(A=>{A!==R.current&&(R.current=A,m(A))},[m]),b=i||p,E=o||S,k=x.useRef(null),R=x.useRef(null),P=x.useRef(c),L=dp(l),M=dp(s),T=x.useCallback(()=>{if(!k.current||!R.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),z5(k.current,R.current,A).then($=>{const N={...$,isPositioned:!0};D.current&&!ga(P.current,N)&&(P.current=N,ki.flushSync(()=>{d(N)}))})},[h,t,n,M]);Oo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);const D=x.useRef(!1);Oo(()=>(D.current=!0,()=>{D.current=!1}),[]),Oo(()=>{if(b&&(k.current=b),E&&(R.current=E),b&&E){if(L.current)return L.current(b,E,T);T()}},[b,E,T,L]);const U=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:y}),[v,y]),C=x.useMemo(()=>({reference:b,floating:E}),[b,E]),O=x.useMemo(()=>{const A={position:n,left:0,top:0};if(!C.floating)return A;const $=cp(C.floating,c.x),N=cp(C.floating,c.y);return a?{...A,transform:"translate("+$+"px, "+N+"px)",...$0(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:N}},[n,a,C.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:T,refs:U,elements:C,floatingStyles:O}),[c,T,U,C,O])}var z0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Ql=!1,B5=0;const fp=()=>"floating-ui-"+B5++;function V5(){const[e,t]=x.useState(()=>Ql?fp():void 0);return z0(()=>{e==null&&t(fp())},[]),x.useEffect(()=>{Ql||(Ql=!0)},[]),e}const H5=hm["useId".toString()],q5=H5||V5;function Q5(){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 K5=x.createContext(null),W5=()=>x.useContext(K5),Z5=hm["useInsertionEffect".toString()],G5=Z5||(e=>e());function X5(e){const t=x.useRef(()=>{});return G5(()=>{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 Y5(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=U5(e),u=W5(),c=X5((b,E)=>{b&&(h.current.openEvent=E),r==null||r(b,E)}),d=x.useRef(null),h=x.useRef({}),g=x.useState(()=>Q5())[0],p=q5(),w=x.useCallback(b=>{const E=Xe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(E)},[l.refs]),S=x.useCallback(b=>{(Xe(b)||b===null)&&(d.current=b,o(b)),(Xe(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Xe(b))&&l.refs.setReference(b)},[l.refs]),m=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:w,domReference:d}),[l.refs,S,w]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),y=x.useMemo(()=>({...l,refs:m,elements:v,dataRef:h,nodeId:s,floatingId:p,events:g,open:n,onOpenChange:c}),[l,s,p,g,n,c,m,v]);return z0(()=>{const b=u==null?void 0:u.nodesRef.current.find(E=>E.id===s);b&&(b.context=y)}),x.useMemo(()=>({...l,context:y,refs:m,elements:v}),[l,m,v,y])}const J5=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=Y5({placement:e,open:n,onOpenChange:r,whileElementsMounted:$5,middleware:[C5(4),S5({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 g=()=>{const D=Object.values(h.current).length;i(U=>(U+1)%D)},p=()=>{const D=Object.values(h.current).length;i(U=>(U-1+D)%D)},w=()=>{i(0)},S=()=>{const D=Object.values(h.current).length;i(D-1)},m=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),y=(T,D)=>{T&&(D.stopPropagation(),D.preventDefault())},b=x.useCallback(T=>{let D=!1;switch(T.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":m(),D=!0;break;case"Esc":case"Escape":v(),D=!0;break;case"Up":case"ArrowUp":m(),D=!0;break}y(D,T)},[v,m]),E=T=>{const U=Object.values(h.current).findIndex(C=>C.id===T.currentTarget.getAttribute("id"));i(U)},k=x.useCallback((T,D)=>{T.preventDefault();let U=!1;if(T.shiftKey)T.key==="Tab"&&(v(),U=!0);else{switch(T.code){case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),D==null||D()),U=!0;break;case"ArrowDown":case"Down":g(),U=!0;break;case"ArrowUp":case"Up":p(),U=!0;break;case"Home":w(),U=!0;break;case"End":S(),U=!0;break}y(U,T)}},[s,v]),R=x.useCallback(T=>{r(n!==!0),T.stopPropagation(),T.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function L(T,...D){D.forEach(U=>{typeof U=="function"?U(T):U!=null&&(U.current=T)})}function M(...T){return D=>{L(D,...T)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:M(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:R,onKeyDown:b},customTriggerProps:{ref:M(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,"data-state":n?"selected":null,onClick:R,onKeyDown:b},menuProps:{ref:M(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,"aria-activedescendant":o,style:{...u}},itemProps:{onMenuItemMouseEnter:E,onMenuItemClick:P,onMenuItemKeyDown:k},setVisible:r}},eb=J5,U0=({children:e,block:t,placement:n="bottom-start"})=>{const{visible:r,isFocused:s,triggerProps:i,customTriggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=eb(n),d=Jg(()=>c(!1)),h=x.useMemo(()=>({visible:r,isFocused:s,triggerProps:i,menuProps:a,itemProps:l,itemRefs:u,block:t}),[r,s,i,a,l,u,t]),g=H("dropdown",{"w-100":t});return f.jsx(S0.Provider,{value:h,children:f.jsx("div",{ref:d,className:g,children:typeof e=="function"?e(o):e})})};U0.displayName="Dropdown";const tb=Object.assign(U0,{Trigger:a5,Menu:n5,Item:t5,Separator:o5,CheckboxItem:e5,RadioItem:i5,MenuGroup:r5}),fr=tb,B0=x.createContext(null),$d=()=>{const e=x.useContext(B0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},V0=({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})})};V0.displayName="Text";const nb=V0,H0=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})]})});H0.displayName="Label";const rb=H0,q0=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})});q0.displayName="Input";const Q0=q0,K0=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(B0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),sb=Object.assign(K0,{Label:rb,Input:Q0,Text:nb});K0.displayName="FormControl";const vc=sb,Ms=({children:e,className:t,...n})=>{const r=H("grid",t);return f.jsx("div",{className:r,...n,children:e})},W0=({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";W0.displayName="Grid.Col";Ms.Col=W0;const Z0=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"})]})});Z0.displayName="LoadingScreen";const ze=Z0,G0=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"})})});G0.displayName="Logo";const hp=G0;var ib=Object.defineProperty,ob=(e,t)=>{for(var n in t)ib(e,n,{get:t[n],enumerable:!0})},Pt={};ob(Pt,{assign:()=>ub,colors:()=>jn,createStringInterpolator:()=>Qd,skipAnimation:()=>rv,to:()=>nv,willAdvance:()=>Kd});var zd=Ti(),V=e=>ji(e,zd),Ud=Ti();V.write=e=>ji(e,Ud);var Ga=Ti();V.onStart=e=>ji(e,Ga);var Bd=Ti();V.onFrame=e=>ji(e,Bd);var Vd=Ti();V.onFinish=e=>ji(e,Vd);var Mr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const i=Mr.findIndex(o=>o.cancel==r);~i&&Mr.splice(i,1),xn-=~i?1:0},s={time:n,handler:e,cancel:r};return Mr.splice(X0(n),0,s),xn+=1,Y0(),s};var X0=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"):ev()};var wn=-1,xn=0,yc=!1;function ji(e,t){yc?(t.delete(e),e(0)):(t.add(e),Y0())}function Y0(){wn<0&&(wn=0,V.frameLoop!=="demand"&&Hd(J0))}function ab(){wn=-1}function J0(){~wn&&(Hd(J0),V.batchedUpdates(ev))}function ev(){const e=wn;wn=V.now();const t=X0(wn);if(t&&(tv(Mr.splice(0,t),n=>n.handler()),xn-=t),!xn){ab();return}Ga.flush(),zd.flush(e?Math.min(64,wn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function Ti(){let e=new Set,t=e;return{add(n){xn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return xn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,xn-=t.size,tv(t,r=>r(n)&&e.add(r)),xn+=e.size,t=e)}}}function tv(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function wc(){}var lb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Qt(e,t){if(j.arr(e)){if(!j.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var B=(e,t)=>e.forEach(t);function Ut(e,t,n){if(j.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var je=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Cs=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,nv,jn=null,rv=!1,Kd=wc,ub=e=>{e.to&&(nv=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(jn=e.colors),e.skipAnimation!=null&&(rv=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Kd=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Fs=new Set,ct=[],Kl=[],va=0,Xa={get idle(){return!Fs.size&&!ct.length},start(e){va>e.priority?(Fs.add(e),V.onStart(cb)):(sv(e),V(xc))},advance:xc,sort(e){if(va)V.onFrame(()=>Xa.sort(e));else{const t=ct.indexOf(e);~t&&(ct.splice(t,1),iv(e))}},clear(){ct=[],Fs.clear()}};function cb(){Fs.forEach(sv),Fs.clear(),V(xc)}function sv(e){ct.includes(e)||iv(e)}function iv(e){ct.splice(db(ct,t=>t.priority>e.priority),0,e)}function xc(e){const t=Kl;for(let n=0;n<ct.length;n++){const r=ct[n];va=r.priority,r.idle||(Kd(r),r.advance(e),r.idle||t.push(r))}return va=0,Kl=ct,Kl.length=0,ct=t,ct.length>0}function db(e,t){const n=e.findIndex(t);return n<0?e.length:n}var fb=(e,t,n)=>Math.min(Math.max(n,e),t),hb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Ct="[-+]?\\d*\\.?\\d+",ya=Ct+"%";function Ya(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var pb=new RegExp("rgb"+Ya(Ct,Ct,Ct)),mb=new RegExp("rgba"+Ya(Ct,Ct,Ct,Ct)),gb=new RegExp("hsl"+Ya(Ct,ya,ya)),vb=new RegExp("hsla"+Ya(Ct,ya,ya,Ct)),yb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xb=/^#([0-9a-fA-F]{6})$/,Sb=/^#([0-9a-fA-F]{8})$/;function bb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=xb.exec(e))?parseInt(t[1]+"ff",16)>>>0:jn&&jn[e]!==void 0?jn[e]:(t=pb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|255)>>>0:(t=mb.exec(e))?(hr(t[1])<<24|hr(t[2])<<16|hr(t[3])<<8|gp(t[4]))>>>0:(t=yb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Sb.exec(e))?parseInt(t[1],16)>>>0:(t=wb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gb.exec(e))?(pp(mp(t[1]),so(t[2]),so(t[3]))|255)>>>0:(t=vb.exec(e))?(pp(mp(t[1]),so(t[2]),so(t[3]))|gp(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 pp(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 mp(e){return(parseFloat(e)%360+360)%360/360}function gp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function so(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function vp(e){let t=bb(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=Eb(u,i);return Cb(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function Cb(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 Eb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Rb=(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 fb(0,1,s/e)},wa=1.70158,io=wa*1.525,yp=wa+1,wp=2*Math.PI/3,xp=2*Math.PI/4.5,oo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,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=>yp*e*e*e-wa*e*e,easeOutBack:e=>1+yp*Math.pow(e-1,3)+wa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((io+1)*2*e-io)/2:(Math.pow(2*e-2,2)*((io+1)*(e*2-2)+io)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*wp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*wp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*xp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*xp)/2+1,easeInBounce:e=>1-oo(1-e),easeOutBounce:oo,easeInOutBounce:e=>e<.5?(1-oo(1-2*e))/2:(1+oo(2*e-1))/2,steps:Rb},di=Symbol.for("FluidValue.get"),Wr=Symbol.for("FluidValue.observers"),ut=e=>!!(e&&e[di]),De=e=>e&&e[di]?e[di]():e,Sp=e=>e[Wr]||null;function Pb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function fi(e,t){const n=e[Wr];n&&n.forEach(r=>{Pb(r,t)})}var ov=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ob(this,e)}},Ob=(e,t)=>av(e,di,t);function es(e,t){if(e[di]){let n=e[Wr];n||av(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 av=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),No=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Nb=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bp=new RegExp(`(${No.source})(%|[a-z]+)`,"i"),jb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ja=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,lv=e=>{const[t,n]=Tb(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 lv(n);if(n)return n}return e},Tb=e=>{const t=Ja.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Zl,Ib=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,uv=e=>{Zl||(Zl=jn?new RegExp(`(${Object.keys(jn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>De(i).replace(Ja,lv).replace(Nb,vp).replace(Zl,vp)),n=t.map(i=>i.match(No).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>ci({...e,output:i}));return i=>{var l;const o=!bp.test(t[0])&&((l=t.find(u=>bp.test(u)))==null?void 0:l.replace(No,""));let a=0;return t[0].replace(No,()=>`${s[a++](i)}${o||""}`).replace(jb,Ib)}},Wd="react-spring: ",cv=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)}},_b=cv(console.warn);function Ab(){_b(`${Wd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Lb=cv(console.warn);function Mb(){Lb(`${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,Db=()=>{const e=x.useRef(!1);return Zn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Zd(){const e=x.useState()[1],t=Db();return()=>{t.current&&e(Math.random())}}function Fb(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&$b(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 $b(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,zb),zb=[];function Sc(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var pi=Symbol.for("Animated:node"),Ub=e=>!!e&&e[pi]===e,Lt=e=>e&&e[pi],Xd=(e,t)=>lb(e,pi,t),tl=e=>e&&e[pi]&&e[pi].getPayload(),dv=class{constructor(){Xd(this,this)}getPayload(){return this.payload||[]}},Ii=class extends dv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ii(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},mi=class extends Ii{constructor(e){super(0),this._string=null,this._toString=ci({output:[e,e]})}static create(e){return new mi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ci({output:[this.getValue(),e]})),this._value=0,super.reset()}},xa={dependencies:null},nl=class extends dv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ut(this.source,(n,r)=>{Ub(n)?t[r]=n.getValue(e):ut(n)?t[r]=De(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Ut(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xa.dependencies&&ut(e)&&xa.dependencies.add(e);const t=tl(e);t&&B(t,n=>this.add(n))}},fv=class extends nl{constructor(e){super(e)}static create(e){return new fv(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(Bb)),!0)}};function Bb(e){return(el(e)?mi:Ii).create(e)}function bc(e){const t=Lt(e);return t?t.constructor:j.arr(e)?fv:el(e)?mi:Ii}var Cp=(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=qb(s,p)},[s]),[a,l]=Hb(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 Vb(c,l),h=x.useRef();Zn(()=>(h.current=d,B(l,p=>es(p,d)),()=>{h.current&&(B(h.current.deps,p=>hi(p,h.current)),V.cancel(h.current.update))})),x.useEffect(c,[]),Gd(()=>()=>{const p=h.current;B(p.deps,w=>hi(w,p))});const g=t.getComponentProps(a.getValue());return x.createElement(e,{...g,ref:o})})},Vb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function Hb(e,t){const n=new Set;return xa.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new nl(e),xa.dependencies=null,[e,n]}function qb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Ep=Symbol.for("AnimatedComponent"),Qb=(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=Rp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Cp(o,s)):o=o[Ep]||(o[Ep]=Cp(o,s)),o.displayName=`Animated(${a})`,o};return Ut(e,(o,a)=>{j.arr(e)&&(a=Rp(o)),i[a]=i(o)}),{animated:i}},Rp=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))),hv=(e,t)=>j.obj(e)?t&&e[t]:e,pv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Kb=e=>e,rl=(e,t=Kb)=>{let n=Wb;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},Wb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Zb={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 Gb(e){const t={};let n=0;if(Ut(e,(r,s)=>{Zb[s]||(t[s]=r,n++)}),n)return t}function Yd(e){const t=Gb(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 mv(e){for(const t in e)return!0;return!1}function Cc(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function Ec(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function gv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Xb={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={...Xb.default,mass:1,damping:1,easing:kb.linear,clamp:!1},Yb=class{constructor(){this.velocity=0,Object.assign(this,Rc)}};function Jb(e,t,n){n&&(n={...n},kp(n,t),t={...n,...t}),kp(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 kp(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 Pp=[],eC=class{constructor(){this.changed=!1,this.values=Pp,this.toValues=null,this.fromValues=Pp,this.config=new Yb,this.immediate=!1}};function vv(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)g();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(g,l),s.pauseQueue.add(d),s.timeouts.add(u)):g()}function g(){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)?yv(e.get()):bt(e.get(),t.every(n=>n.finished)),yv=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 wv(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,m)=>m==="onRest"?void 0:S);let c,d;const h=new Promise((S,m)=>(c=S,d=m)),g=S=>{const m=s<=(n.cancelId||0)&&Dr(r)||s!==n.asyncId&&bt(r,!1);if(m)throw S.result=m,d(S),S},p=(S,m)=>{const v=new Op,y=new Np;return(async()=>{if(Pt.skipAnimation)throw vi(n),y.result=bt(r,!1),d(y),y;g(v);const b=j.obj(S)?{...S}:{...m,to:S};b.parentId=s,Ut(u,(k,R)=>{j.und(b[R])&&(b[R]=k)});const E=await r.start(b);return g(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),E})()};let w;if(Pt.skipAnimation)return vi(n),bt(r,!1);try{let S;j.arr(e)?S=(async m=>{for(const v of m)await p(v)})(e):S=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([S.then(c),h]),w=bt(r.get(),!0,!1)}catch(S){if(S instanceof Op)w=S.result;else if(S instanceof Np)w=S.result;else throw S}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return j.fun(o)&&V.batchedUpdates(()=>{o(w,r,r.item)}),w})()}function vi(e,t){Ds(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Op=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.")}},Np=class extends Error{constructor(){super("SkipAnimationSignal")}},kc=e=>e instanceof ef,tC=1,ef=class extends ov{constructor(){super(...arguments),this.id=tC++,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 Ab(),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"),xv=1,Pc=2,Oc=4,Gl=e=>(e[sr]&xv)>0,cn=e=>(e[sr]&Pc)>0,ps=e=>(e[sr]&Oc)>0,jp=(e,t)=>t?e[sr]|=Pc|xv:e[sr]&=~Pc,Tp=(e,t)=>t?e[sr]|=Oc:e[sr]&=~Oc,nC=class extends ef{constructor(e,t){if(super(),this.animation=new eC,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,g=d;if(!h){if(g=u.lastPosition,i.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const w=r.fromValues[c],S=u.v0!=null?u.v0:u.v0=j.arr(i.velocity)?i.velocity[c]:i.velocity;let m;const v=i.precision||(w==d?.005:Math.min(1,Math.abs(d-w)*.001));if(j.und(i.duration))if(i.decay){const y=i.decay===!0?.998:i.decay,b=Math.exp(-(1-y)*p);g=w+S/(1-y)*(1-b),h=Math.abs(u.lastPosition-g)<=v,m=S*b}else{m=u.lastVelocity==null?S:u.lastVelocity;const y=i.restVelocity||v/10,b=i.clamp?0:i.bounce,E=!j.und(b),k=w==d?u.v0>0:w<d;let R,P=!1;const L=1,M=Math.ceil(e/L);for(let T=0;T<M&&(R=Math.abs(m)>y,!(!R&&(h=Math.abs(d-g)<=v,h)));++T){E&&(P=g==d||g>d==k,P&&(m=-m*b,g=d));const D=-i.tension*1e-6*(g-d),U=-i.friction*.001*m,C=(D+U)/i.mass;m=m+C*L,g=g+m*L}}else{let y=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,p=u.elapsedTime+=e)),y=(i.progress||0)+p/this._memoizedDuration,y=y>1?1:y<0?0:y,u.durationProgress=y),g=w+i.easing(y)*(d-w),m=(g-u.lastPosition)/e,h=y==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,i.round)&&(n=!0)});const a=Lt(this),l=a.getValue();if(t){const u=De(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(cn(this)){const{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Jd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),vi(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=j.obj(n)?n[t]:n,(n==null||Cc(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Gl(this)||(e.reverse&&([n,r]=[r,n]),r=De(r),j.und(r)?Lt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,rl(e,(o,a)=>/^on/.test(a)?hv(o,n):o)),_p(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 vv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(Tp(this,!0),Cs(i.pauseQueue),gs(this,"onPause",bt(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(Tp(this,!1),cn(this)&&this._resume(),Cs(i.resumeQueue),gs(this,"onResume",bt(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Sv(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 g=!Qt(c,l);g&&this._focus(c);const p=Cc(t.to),{config:w}=a,{decay:S,velocity:m}=w;(r||s)&&(w.velocity=0),t.config&&!p&&Jb(w,Fe(t.config,i),t.config!==o.config?Fe(o.config,i):void 0);let v=Lt(this);if(!v||j.und(c))return n(bt(this,!0));const y=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=y?d:this.get(),E=gi(c),k=j.num(E)||j.arr(E)||el(E),R=!p&&(!k||$s(o.immediate||t.immediate,i));if(g){const T=bc(c);if(T!==v.constructor)if(R)v=this._set(E);else throw Error(`Cannot animate between ${v.constructor.name} and ${T.name}, as the "to" prop suggests`)}const P=v.constructor;let L=ut(c),M=!1;if(!L){const T=y||!Gl(this)&&h;(g||T)&&(M=Qt(gi(b),E),L=!M),(!Qt(a.immediate,R)&&!R||!Qt(w.decay,S)||!Qt(w.velocity,m))&&(L=!0)}if(M&&cn(this)&&(a.changed&&!y?L=!0:L||this._stop(l)),!p&&((L||ut(l))&&(a.values=v.getPayload(),a.toValues=ut(c)?null:P==mi?[1]:je(E)),a.immediate!=R&&(a.immediate=R,!R&&!y&&this._set(l)),L)){const{onRest:T}=a;B(sC,U=>_p(this,t,U));const D=bt(this,ms(this,l));Cs(this._pendingCalls,D),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var U;a.changed=!y,T==null||T(D,this),y?Fe(o.onRest,D):(U=a.onStart)==null||U.call(a,D,this)})}y&&this._set(b),p?n(wv(t.to,t,this._state,this)):L?this._start():cn(this)&&!g?this._pendingCalls.add(n):n(yv(b))}_focus(e){const t=this.animation;e!==t.to&&(Sp(this)&&this._detach(),t.to=e,Sp(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)||(jp(this,!0),ps(this)||this._resume())}_resume(){Pt.skipAnimation?this.finish():Xa.start(this)}_stop(e,t){if(cn(this)){jp(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),fi(this,{type:"idle",parent:this});const r=t?Dr(this.get()):bt(this.get(),ms(this,e??n.to));Cs(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=gi(t),r=gi(e.get());return Qt(r,n)}function Sv(e,t=e.loop,n=e.to){const r=Fe(t);if(r){const s=r!==!0&&Yd(r),i=(s||e).reverse,o=!s||s.reset;return yi({...e,loop:t,default:!1,pause:void 0,to:!i||Cc(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function yi(e){const{to:t,from:n}=e=Yd(e),r=new Set;return j.obj(t)&&Ip(t,r),j.obj(n)&&Ip(n,r),e.keys=r.size?Array.from(r):null,e}function rC(e){const t=yi(e);return j.und(t.default)&&(t.default=rl(t)),t}function Ip(e,t){Ut(e,(n,r)=>n!=null&&t.add(r))}var sC=["onStart","onRest","onChange","onPause","onResume"];function _p(e,t,n){e.animation[n]=t[n]!==pv(t,n)?hv(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 iC=["onStart","onChange","onRest"],oC=1,bv=class{constructor(e,t){this.id=oC++,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):(Pv(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=>Cv(e,n))).then(n=>Jd(e,n))}async function Cv(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(iC,w=>{const S=t[w];if(j.fun(S)){const m=e._events[w];t[w]=({finished:v,cancelled:y})=>{const b=m.get(S);b?(v||(b.finished=!1),y&&(b.cancelled=!0)):m.set(S,{value:null,finished:v||!1,cancelled:y||!1})},u&&(u[w]=t[w])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Cs(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(w=>e.springs[w].start(t)),g=t.cancel===!0||pv(t,"cancel")===!0;(c||g&&d.asyncId)&&h.push(vv(++e._lastAsyncId,{props:t,state:d,actions:{pause:wc,resume:wc,start(w,S){g?(vi(d,e._lastAsyncId),S(Dr(e))):(w.onRest=a,S(wv(c,w,d,e)))}}})),d.paused&&await new Promise(w=>{d.resumeQueue.add(w)});const p=Jd(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const w=Sv(t,o,s);if(w)return Pv(e,[w]),Cv(e,w,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function jc(e,t){const n={...e.springs};return t&&B(je(t),r=>{j.und(r.keys)&&(r=yi(r)),j.obj(r.to)||(r={...r,to:void 0}),kv(n,r,s=>Rv(s))}),Ev(e,n),n}function Ev(e,t){Ut(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Rv(e,t){const n=new nC;return n.key=e,t&&es(n,t),n}function kv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Pv(e,t){B(t,n=>{kv(e.springs,n,r=>Rv(r,e))})}var _i=({children:e,...t})=>{const n=x.useContext(Sa),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Fb(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Sa;return x.createElement(i,{value:t},e)},Sa=aC(_i,{});_i.Provider=Sa.Provider;_i.Consumer=Sa.Consumer;function aC(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Ov=()=>{const e=[],t=function(r){Mb();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 lC(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?Ov():void 0,[]),i=x.useRef(0),o=Zd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const y=jc(m,v);return i.current>0&&!a.queue.length&&!Object.keys(y).some(E=>!m.springs[E])?Nc(m,v):new Promise(E=>{Ev(m,y),a.queue.push(()=>{E(Nc(m,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Sc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),m=>{Ec(m,s),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let y=m;y<v;y++){const b=l.current[y]||(l.current[y]=new bv(null,a.flush)),E=r?r(y,b):t[y];E&&(u[y]=rC(E))}}const h=l.current.map((m,v)=>jc(m,u[v])),g=x.useContext(_i),p=Sc(g),w=g!==p&&mv(g);Zn(()=>{i.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],B(m,v=>v())),B(l.current,(v,y)=>{s==null||s.add(v),w&&v.start({default:g});const b=u[y];b&&(gv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Gd(()=>()=>{B(a.ctrls,m=>m.stop(!0))});const S=h.map(m=>({...m}));return s?[S,s]:S}function rk(e,t){const n=j.fun(e),[[r],s]=lC(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?Ov():void 0,[]),g=je(e),p=[],w=x.useRef(null),S=s?null:w.current;Zn(()=>{w.current=p}),Gd(()=>(B(p,C=>{h==null||h.add(C.ctrl),C.ctrl.ref=h}),()=>{B(w.current,C=>{C.expired&&clearTimeout(C.expirationId),Ec(C.ctrl,h),C.ctrl.stop(!0)})}));const m=cC(g,r?r():t,S),v=s&&w.current||[];Zn(()=>B(v,({ctrl:C,item:O,key:A})=>{Ec(C,h),Fe(u,O,A)}));const y=[];if(S&&B(S,(C,O)=>{C.expired?(clearTimeout(C.expirationId),v.push(C)):(O=y[O]=m.indexOf(C.key),~O&&(p[O]=C))}),B(g,(C,O)=>{p[O]||(p[O]={key:m[O],item:C,phase:"mount",ctrl:new bv},p[O].ctrl.item=C)}),y.length){let C=-1;const{leave:O}=r?r():t;B(y,(A,$)=>{const N=S[$];~A?(C=p.indexOf(N),p[C]={...N,item:g[A]}):O&&p.splice(++C,0,N)})}j.fun(i)&&p.sort((C,O)=>i(C.item,O.item));let b=-o;const E=Zd(),k=rl(t),R=new Map,P=x.useRef(new Map),L=x.useRef(!1);B(p,(C,O)=>{const A=C.key,$=C.phase,N=r?r():t;let _,z;const Z=Fe(N.delay||0,A);if($=="mount")_=N.enter,z="enter";else{const ye=m.indexOf(A)<0;if($!="leave")if(ye)_=N.leave,z="leave";else if(_=N.update)z="update";else return;else if(!ye)_=N.enter,z="enter";else return}if(_=Fe(_,C.item,O),_=j.obj(_)?Yd(_):{to:_},!_.config){const ye=d||k.config;_.config=Fe(ye,C.item,O,z)}b+=o;const W={...k,delay:Z+b,ref:c,immediate:N.immediate,reset:!1,..._};if(z=="enter"&&j.und(W.from)){const ye=r?r():t,G=j.und(ye.initial)||S?ye.from:ye.initial;W.from=Fe(G,C.item,O)}const{onResolve:an}=W;W.onResolve=ye=>{Fe(an,ye);const G=w.current,he=G.find(jt=>jt.key===A);if(he&&!(ye.cancelled&&he.phase!="update")&&he.ctrl.idle){const jt=G.every(Tt=>Tt.ctrl.idle);if(he.phase=="leave"){const Tt=Fe(a,he.item);if(Tt!==!1){const ln=Tt===!0?0:Tt;if(he.expired=!0,!jt&&ln>0){ln<=2147483647&&(he.expirationId=setTimeout(E,ln));return}}}jt&&G.some(Tt=>Tt.expired)&&(P.current.delete(he),l&&(L.current=!0),E())}};const it=jc(C.ctrl,W);z==="leave"&&l?P.current.set(C,{phase:z,springs:it,payload:W}):R.set(C,{phase:z,springs:it,payload:W})});const M=x.useContext(_i),T=Sc(M),D=M!==T&&mv(M);Zn(()=>{D&&B(p,C=>{C.ctrl.start({default:M})})},[M]),B(R,(C,O)=>{if(P.current.size){const A=p.findIndex($=>$.key===O.key);p.splice(A,1)}}),Zn(()=>{B(P.current.size?P.current:R,({phase:C,payload:O},A)=>{const{ctrl:$}=A;A.phase=C,h==null||h.add($),D&&C=="enter"&&$.start({default:M}),O&&(gv($,O.ref),($.ref||h)&&!L.current?$.update(O):($.start(O),L.current&&(L.current=!1)))})},s?void 0:n);const U=C=>x.createElement(x.Fragment,null,p.map((O,A)=>{const{springs:$}=R.get(O)||O.ctrl,N=C({...$},O.item,O,A);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(O.key)||j.num(O.key)?O.key:O.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var uC=1;function cC(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):uC++})}return j.und(n)?e:j.fun(n)?e.map(n):je(n)}var dC=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&&Ap(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&&!Ap(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 fC(e){return e.idle!==!1}function Ap(e){return!e.size||Array.from(e).every(fC)}function Xl(e){e.idle||(e.idle=!0,B(tl(e),t=>{t.done=!0}),fi(e,{type:"idle",parent:e}))}Pt.assign({createStringInterpolator:uv,to:(e,t)=>new dC(e,t)});var Nv=/^--/;function hC(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Nv.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Lp={};function pC(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:Lp[d]||(Lp[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=hC(d,r[d]);Nv.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},mC=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),gC=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(gC.forEach(n=>e[mC(n,t)]=e[t]),e),zs);var vC=/^(matrix|translate|scale|rotate|skew)/,yC=/^(translate)/,wC=/^(rotate|skew)/,Yl=(e,t)=>j.num(e)&&e!==0?e+t:e,jo=(e,t)=>j.arr(e)?e.every(n=>jo(n,t)):j.num(e)?e===t:parseFloat(e)===t,xC=class extends nl{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>Yl(a,"px")).join(",")})`,jo(o,0)])),Ut(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(vC.test(a)){if(delete r[a],j.und(o))return;const l=yC.test(a)?"px":wC.test(a)?"deg":"";s.push(je(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${Yl(h,l)})`,jo(h,0)]:u=>[`${a}(${u.map(c=>Yl(c,l)).join(",")})`,jo(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new SC(s,i)),super(r)}},SC=class extends ov{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)}},bC=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Pt.assign({batchedUpdates:ki.unstable_batchedUpdates,createStringInterpolator:uv,colors:hb});var CC=Qb(bC,{applyAnimatedValues:pC,createAnimatedStyle:e=>new xC(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),ba=CC.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const jv=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Tv=e=>{const{ariaDescriptionId:t}=jv(),{children:n,className:r}=e,s=H("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Tv.displayName="Modal.Body";const EC=Tv,Iv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Iv.displayName="Modal.Footer";const RC=Iv,_v=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=jv(),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(Z4,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};_v.displayName="Modal.Header";const kC=_v,Av=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Av.displayName="Modal.Subtitle";const PC=Av,Lv=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=Jg(s),g=D4();A4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const p=H("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),w=H("modal-dialog"),S={ariaLabelId:c,ariaDescriptionId:d,focusId:l},m=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:m((v,y)=>f.jsxs(f.Fragment,{children:[y&&f.jsx(ba.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:p,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,y&&(g.current=b)},className:w,children:f.jsx("div",{className:"modal-content",children:u})})}),y&&f.jsx(ba.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),OC=Object.assign(Lv,{Header:kC,Subtitle:PC,Body:EC,Footer:RC});Lv.displayName="Modal";const Sn=OC,NC=({children:e,className:t})=>{const n=H("popover-body",t);return f.jsx("div",{className:n,children:e})},jC=({children:e,className:t})=>{const n=H("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=H("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(ba.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function TC(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 Mv=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,g]=x.useState(!1),{handleItemClick:p,handleItemKeyDown:w,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:y}=TC(t,n,h,g,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?(g(!0),R===t):(g(!1),!1))}else g(!1)},[t,d]);const b=s?16:12,E=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:S,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(tp,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(hc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(tp,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:w,onFocus:v,onBlur:y,children:[s&&f.jsx(o3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:E()}):E()};Mv.displayName="TreeItem";const IC=Mv,Dv=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=m=>{c(m),r==null||r(m)},h=m=>{s==null||s(m)},g=m=>{i==null||i(m)},p=m=>{o==null||o(m)},w=m=>{a==null||a(m)},S=m=>f.jsx(IC,{nodeId:m.id,label:m.name,section:m.section,selectedNodesIds:l,selected:u===m.id,onItemSelect:d,onItemFold:h,onItemUnfold:g,onItemFocus:p,onItemBlur:w,children:Array.isArray(m.children)?m.children.map(v=>S(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});Dv.displayName="TreeView";const _C=Dv,Fv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Fv.displayName="VisuallyHidden";const Es=Fv,AC=()=>{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}},LC=AC;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 Mp({children:e,className:t,...n}){const r=H("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ue=x.forwardRef(({children:e,className:t,...n},r)=>{const s=H("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ue.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=H("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Es,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const MC=()=>{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")})})})},DC=({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 $v=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=$v;var zv=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=zv;var Uv=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=Uv;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 Bv=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=Bv;var Vv=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=Vv;var Hv=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=Hv;function qv(e){return(0,Qe.isTag)(e)}q.isTag=qv;function Qv(e){return e.type===Qe.ElementType.CDATA}q.isCDATA=Qv;function Kv(e){return e.type===Qe.ElementType.Text}q.isText=Kv;function Wv(e){return e.type===Qe.ElementType.Comment}q.isComment=Wv;function Zv(e){return e.type===Qe.ElementType.Directive}q.isDirective=Zv;function Gv(e){return e.type===Qe.ElementType.Root}q.isDocument=Gv;function FC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=FC;function lf(e,t){t===void 0&&(t=!1);var n;if(Kv(e))n=new $v(e.data);else if(Wv(e))n=new zv(e.data);else if(qv(e)){var r=t?tu(e.children):[],s=new Hv(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(Qv(e)){var r=t?tu(e.children):[],i=new Bv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Gv(e)){var r=t?tu(e.children):[],o=new Vv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Zv(e)){var a=new Uv(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 Dp="html",Fp="head",ao="body",$C=/<([a-zA-Z]+[0-9]?)/,$p=/<head[^]*>/i,zp=/<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`")},Up=typeof window=="object"&&window.DOMParser;if(typeof Up=="function"){var zC=new Up,UC="text/html";Tc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),zC.parseFromString(e,UC)},Ca=Tc}if(typeof document=="object"&&document.implementation){var lo=document.implementation.createHTMLDocument();Ca=function(e,t){if(t){var n=lo.documentElement.querySelector(t);return n.innerHTML=e,lo}return lo.documentElement.innerHTML=e,lo}}var nu=typeof document=="object"?document.createElement("template"):{},Ic;nu.content&&(Ic=function(e){return nu.innerHTML=e,nu.content.childNodes});function BC(e){var t,n=e.match($C);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case Dp:return r=Tc(e),$p.test(e)||(s=r.querySelector(Fp),s&&s.parentNode.removeChild(s)),zp.test(e)||(s=r.querySelector(ao),s&&s.parentNode.removeChild(s)),r.querySelectorAll(Dp);case Fp:case ao:return r=Ca(e),i=r.querySelectorAll(t),zp.test(e)&&$p.test(e)?i[0].parentNode.childNodes:i;default:return Ic?Ic(e):(s=Ca(e,ao).querySelector(ao),s.childNodes)}}var VC=BC,uf={},Xv={};Xv.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,HC=Xv,Bp=HC.CASE_SENSITIVE_TAG_NAMES,qC=ol.Comment,QC=ol.Element,KC=ol.ProcessingInstruction,WC=ol.Text,Yv={},ru;for(var su=0,ZC=Bp.length;su<ZC;su++)ru=Bp[su],Yv[ru.toLowerCase()]=ru;function GC(e){return Yv[e]}function Jv(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function XC(e){e=e.toLowerCase();var t=GC(e);return t||e}function ey(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=XC(a.nodeName),l=new QC(s,Jv(a.attributes)),l.children=ey(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new WC(a.nodeValue);break;case 8:l=new qC(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 KC(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=Jv;uf.formatDOM=ey;var YC=VC,JC=uf,eE=JC.formatDOM,tE=/<(![a-zA-Z\s]+)>/;function nE(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(tE),n;return t&&t[1]&&(n=t[1]),eE(YC(e),null,n)}var rE=nE,vt={},al={},sE=0;al.SAME=sE;var iE=1;al.CAMELCASE=iE;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 oE(e,t){return aE(e)||lE(e,t)||uE(e,t)||cE()}function aE(e){if(Array.isArray(e))return e}function lE(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 uE(e,t){if(e){if(typeof e=="string")return Vp(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 Vp(e,t)}}function Vp(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 cE(){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 ty=0,zn=1,ll=2,ul=3,cf=4,ny=5,ry=6;function dE(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={},fE=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fE.forEach(function(e){be[e]=new Ae(e,ty,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=oE(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,ry,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){be[e]=new Ae(e,ny,!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 hE="xlinkHref";be[hE]=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,pE=hf.CAMELCASE,mE=hf.SAME,Hp=hf.possibleStandardNames,gE=":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",vE=gE+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",yE=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+vE+"]*$")),wE=Object.keys(Hp).reduce(function(e,t){var n=Hp[t];return n===mE?e[t]=t:n===pE?e[t.toLowerCase()]=t:e[t]=n,e},{});vt.BOOLEAN=ul;vt.BOOLEANISH_STRING=ll;vt.NUMERIC=ny;vt.OVERLOADED_BOOLEAN=cf;vt.POSITIVE_NUMERIC=ry;vt.RESERVED=ty;vt.STRING=zn;vt.getPropertyInfo=dE;vt.isCustomAttribute=yE;vt.possibleStandardNames=wE;var sy={},pf={exports:{}},qp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,xE=/\n/g,SE=/^\s*/,bE=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,CE=/^:\s*/,EE=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,RE=/^[;\s]*/,kE=/^\s+|\s+$/g,PE=`
226
+ `,Qp="/",Kp="*",Hn="",OE="comment",NE="declaration",jE=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(p){var w=p.match(xE);w&&(n+=w.length);var S=p.lastIndexOf(PE);r=~S?p.length-S:r+p.length}function i(){var p={line:n,column:r};return function(w){return w.position=new o(p),u(),w}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var w=new Error(t.source+":"+n+":"+r+": "+p);if(w.reason=p,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function l(p){var w=p.exec(e);if(w){var S=w[0];return s(S),e=e.slice(S.length),w}}function u(){l(SE)}function c(p){var w;for(p=p||[];w=d();)w!==!1&&p.push(w);return p}function d(){var p=i();if(!(Qp!=e.charAt(0)||Kp!=e.charAt(1))){for(var w=2;Hn!=e.charAt(w)&&(Kp!=e.charAt(w)||Qp!=e.charAt(w+1));)++w;if(w+=2,Hn===e.charAt(w-1))return a("End of comment missing");var S=e.slice(2,w-2);return r+=2,s(S),e=e.slice(w),r+=2,p({type:OE,comment:S})}}function h(){var p=i(),w=l(bE);if(w){if(d(),!l(CE))return a("property missing ':'");var S=l(EE),m=p({type:NE,property:Wp(w[0].replace(qp,Hn)),value:S?Wp(S[0].replace(qp,Hn)):Hn});return l(RE),m}}function g(){var p=[];c(p);for(var w;w=h();)w!==!1&&(p.push(w),c(p));return p}return u(),g()};function Wp(e){return e?e.replace(kE,Hn):Hn}var TE=jE;function iy(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=TE(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}pf.exports=iy;pf.exports.default=iy;var IE=pf.exports,cl={};cl.__esModule=!0;cl.camelCase=void 0;var _E=/^--[a-zA-Z0-9-]+$/,AE=/-([a-z])/g,LE=/^[^-]+$/,ME=/^-(webkit|moz|ms|o|khtml)-/,DE=/^-(ms)-/,FE=function(e){return!e||LE.test(e)||_E.test(e)},$E=function(e,t){return t.toUpperCase()},Zp=function(e,t){return"".concat(t,"-")},zE=function(e,t){return t===void 0&&(t={}),FE(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(DE,Zp):e=e.replace(ME,Zp),e.replace(AE,$E))};cl.camelCase=zE;(function(e){var t=Ue&&Ue.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(IE),r=cl;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(sy);var UE=x,BE=sy.default;function VE(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function HE(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 qE={reactCompat:!0};function QE(e,t){if(e!=null)try{t.style=BE(e,qE)}catch{t.style={}}}var KE=UE.version.split(".")[0]>=16,oy=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function WE(e){return!oy.has(e.name)}var ay={PRESERVE_CUSTOM_ATTRIBUTES:KE,invertObject:VE,isCustomComponent:HE,setStyleProp:QE,canTextBeChildOfNode:WE,elementsWithNoTextChildren:oy},Rs=vt,Gp=ay,ZE=["checked","value"],GE=["input","select","textarea"],XE={reset:!0,submit:!0},ly=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&XE[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Xp(s),o){switch(a=Rs.getPropertyInfo(o),ZE.indexOf(o)!==-1&&GE.indexOf(n)!==-1&&!u&&(o=Xp("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}Gp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Gp.setStyleProp(t.style,l),l};function Xp(e){return Rs.possibleStandardNames[e]}var YE=x,JE=ly,Ea=ay,eR=Ea.setStyleProp,tR=Ea.canTextBeChildOfNode;function uy(e,t){t=t||{};for(var n=t.library||YE,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,g=t.trim,p=0,w=e.length;p<w;p++){if(a=e[p],u&&(c=t.replace(a),i(c))){w>1&&(c=r(c,{key:c.key||p})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!tR(a.parent)||g&&l)continue;o.push(a.data);continue}switch(d=a.attribs,nR(a)?eR(d.style,d):d&&(d=JE(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=uy(a.children,t));break;default:continue}w>1&&(d.key=p),o.push(s(a.name,d,h))}return o.length===1?o[0]:o}function nR(e){return Ea.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Ea.isCustomComponent(e.name,e.attribs)}var rR=uy,dl=sf,Pr=rE,sR=ly,cy=rR;Pr=typeof Pr.default=="function"?Pr.default:Pr;var iR={lowerCaseAttributeNames:!1};function Bt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},cy(Pr(e,t.htmlparser2||iR),t))}Bt.domToReact=cy;Bt.htmlToDOM=Pr;Bt.attributesToProps=sR;Bt.Comment=dl.Comment;Bt.Element=dl.Element;Bt.ProcessingInstruction=dl.ProcessingInstruction;Bt.Text=dl.Text;var oR=Bt;Bt.default=Bt;const Un=Ra(oR);var uo=Un.domToReact;Un.htmlToDOM;var iu=Un.attributesToProps;Un.Comment;Un.Element;Un.ProcessingInstruction;Un.Text;function aR(){var w;const{appCode:e}=gt(),{theme:t}=Id(),[n,r]=x.useState(""),[s,i]=x.useState(!0),[o,a]=x.useState(!1),[l,u]=x.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";x.useEffect(()=>{(async()=>{let S="";S=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?S=c+"/application/portal/":window.location.pathname==="/adapter"?S=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?S=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(S=c+"/application/userbook/");try{const m=await fetch(S),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=Un(n,{replace:S=>{const m=S;if(m.attribs&&m.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(Jr,{onClick:()=>{i(!s)},children:f.jsx(K4,{})}),uo(m.children,{replace:v=>{const y=v;if(y.attribs&&y.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:s?"block":"none"},children:uo(y.children,{replace:b=>{const E=b;if(E.attribs&&E.name==="a")return f.jsx("a",{...iu(E.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:uo(E.children)})})}})})}})]});if(m.attribs&&m.attribs.class==="section level2"){const v=iu(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:m.attribs.id!=="présentation"?"none":"block"},children:uo(m.children,{replace:y=>{const b=y;if(b.attribs&&b.name==="p")return f.jsx(f.Fragment,{});if(b.attribs&&b.name==="img"){const E=y.attribs.src;return f.jsx("img",{...iu(b.attribs),src:`${c}/${E}`,alt:""})}}})})}}}),g=(w=h==null?void 0:h.props)==null?void 0:w.children.find(S=>S.type==="body").props.children,p=g==null?void 0:g.find(S=>S.type==="p").props.children;return{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:g,parsedHeadline:p,error:l}}const dy=()=>{const[e,t]=Gg(),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(G3,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),f.jsx(rf,{id:r,isVisible:t,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(w0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};dy.displayName="SearchEngine";const lR=dy;function Yp({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ve(),o=()=>{t(!1)};return e?ki.createPortal(f.jsxs(Sn,{id:"help-modal",isOpen:e,onModalClose:o,size:"xl",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 fy=({is1d:e=!1,src:t=""})=>{const{t:n}=ve(),{messages:r,msgLink:s,zimbraWorkflow:i}=LC(),{user:o,avatar:a}=_d(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=aR(),g=H("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:w,appsRef:S,isAppsHovered:m,popoverAppsId:v,userAvatar:y,userName:b,welcomeUser:E,communityWorkflow:k,conversationWorflow:R,searchWorkflow:P,isCollapsed:L,toggleCollapsedNav:M,handleLogout:T}=zS({user:o,avatar:a}),D=r>0;return f.jsx("header",{className:g,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(eu,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(np,{alt:b,size:"sm",src:y,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:E})]}),f.jsxs(Mp,{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(Q3,{className:"icon notification"}),D&&f.jsx(Jl,{children:r}),f.jsx(Es,{children:n("navbar.messages")})]})}),f.jsx(ue,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(W3,{className:"icon user"})})}),f.jsxs(ue,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(H3,{className:"icon help"}),f.jsx(Es,{children:n("navbar.help")})]}),f.jsx(Yp,{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(rp,{className:"icon logout"}),f.jsx(Es,{children:n("navbar.disconnect")})]})}),f.jsx(ue,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!L,"aria-label":n("navbar.secondary.navigation"),onClick:M,children:f.jsx(hc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(eu,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${L?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(hp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Mp,{className:"gap-8",children:[f.jsx(ue,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(B3,{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(Y3,{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(sp,{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(hp,{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(M3,{color:"#fff"})})}),f.jsxs(ue,{className:"position-relative",ref:S,id:v,"aria-haspopup":"true","aria-expanded":m,children:[f.jsx(vs,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(sp,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:m,children:[f.jsx(NC,{children:f.jsx(DC,{bookmarkedApps:w})}),f.jsx(jC,{className:"widget-footer border-top border-ghost",children:f.jsx(MC,{})})]})]}),R&&f.jsx(ue,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(ip,{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(ip,{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($3,{color:"#fff"}),f.jsx(Es,{children:n("support")})]}),f.jsx(Yp,{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(_3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(lR,{}):null,f.jsx(ue,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(np,{alt:b,size:"sm",src:y,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(ue,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(ue,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(rp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};fy.displayName="Header";const uR=fy;function hy({children:e,className:t,...n}){const r=H("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}hy.displayName="Main";const py=({children:e,...t})=>{const{theme:n}=Id();return f.jsxs(f.Fragment,{children:[f.jsx(uR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(hy,{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(I4,{toastOptions:{position:"top-right"}})]})};py.displayName="Layout";const cR=py,dR=function(){return null};var my,Jp=ki;my=Jp.createRoot,Jp.hydrateRoot;const _t=document.querySelector("[data-ode-app]");let ys;function fl(){var e;if(ys)return ys;if(ys={app:co.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=_t==null?void 0:_t.dataset)!=null&&e.odeApp){const{odeApp:t}=_t.dataset;try{const n=JSON.parse(t);Object.assign(ys,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",_t==null?void 0:_t.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",_t==null?void 0:_t.dataset);return ys}const em=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},fR=e=>e?em(e):em;var gy={exports:{}},vy={};/**
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 fl=x,fR=Ug;function hR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pR=typeof Object.is=="function"?Object.is:hR,mR=fR.useSyncExternalStore,gR=fl.useRef,vR=fl.useEffect,yR=fl.useMemo,wR=fl.useDebugValue;vy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=gR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=yR(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),s!==void 0&&o.hasValue){var p=o.value;if(s(p,g))return d=p}return d=g}if(p=d,pR(c,g))return p;var y=r(g);return s!==void 0&&s(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,s]);var a=mR(e,i[0],i[1]);return vR(function(){o.hasValue=!0,o.value=a},[a]),wR(a),a};gy.exports=vy;var xR=gy.exports;const SR=Ra(xR),{useSyncExternalStoreWithSelector:bR}=SR;function CR(e,t=e.getState,n){const r=bR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return x.useDebugValue(r),r}const tm=e=>{const t=typeof e=="function"?dR(e):e,n=(r,s)=>CR(t,r,s);return Object.assign(n,t),n},ER=e=>e?tm(e):tm,yy=async e=>{const t=await X.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},RR=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)},kR=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)},PR=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)},OR=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)},NR=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)},jR=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)},TR=async({searchParams:e,entId:t,shares:n})=>await X.share().saveRights(e.app,t,n),IR=async({searchParams:e,params:t})=>await X.resource(e.app).update(t),_R=async e=>await X.rights().sessionHasWorkflowRights(e),AR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoView(t),LR=({searchParams:e,params:t})=>X.resource(e.app).create(t),MR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoPrint(t),DR=async({searchParams:e,params:t})=>await X.resource(e.app).publish(t),FR=async()=>await X.conf().getPreference("showOnboardingTrash"),$R=async({onSuccess:e})=>{const t=await X.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function mf(e){return e.filter((t,n)=>e.indexOf(t)===n)}function wi(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=wi(e,i),n===void 0))),n)}function zR(e,t){var r;const n=wi(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===We.BIN?[We.BIN]:[We.DEFAULT]}function wy(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>wy(t.id,n)):!1}function Ai(e,t){return xy(e,t)||e}function xy(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=xy(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class hl{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 Sy=(e,t,n)=>Ai(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new hl(s))),r)),{app:UR,types:BR,filters:VR,orders:HR}=dl(),Le=ER()((e,t)=>({filters:VR,orders:HR,searchConfig:{minLength:1},searchParams:{app:UR,types:BR,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();AR({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]);MR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await DR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=zR(n,i),l=mf([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===We.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!wy(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await yy({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Sy(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||We.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=wi(n,r);F4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=wi(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||We.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:We.BIN},trashed:!0},currentFolder:{id:We.BIN}}))}})),st=()=>Le(e=>e.searchParams),gf=()=>Le(e=>e.selectedNodesIds),ts=()=>Le(e=>e.treeData),qR=()=>Le(e=>e.selectedFolders),QR=()=>Le(e=>e.selectedResources),KR=()=>Le(e=>e.searchConfig),Li=()=>Le(e=>e.folderIds),Mi=()=>Le(e=>e.resourceIds),pl=()=>Le(e=>e.selectedResources.map(t=>t.assetId)),ml=()=>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},by=()=>Le(e=>e.resourceIsTrash),WR=()=>Le(e=>e.resourceActionDisable),ZR=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},GR=()=>gf().length>1,XR=()=>Le(e=>e.status);function YR(){const{appCode:e}=gt(),{t}=ve(["common",e]),n=gf(),r=rs(),s=ns(),{gotoPreviousFolder:i}=Oe(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(s==null?void 0:s.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(_d,{icon:f.jsx(V4,{}),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 JR(e,{parentId:t,newFolder:n}){return Ai(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=mf([...i,r.id]);return{...r,children:[...r.children||[],new hl({...n,ancestors:o})]}}else return r})}function e8(e,{folders:t}){return Ai(e,n=>{if(!t.includes(n.id))return n})}function t8(e,{destinationId:t,folders:n}){return Ai(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=mf([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const g=wi(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!==(s==null?void 0:s.id)?void 0:r})}function n8(e,{folderId:t,newFolder:n}){return Ai(e,r=>r.id===t?new hl(n):r)}const{actions:nm,app:r8}=dl(),Cy=()=>jd({queryKey:["actions"],queryFn:async()=>{const e=nm.map(n=>n.workflow);return await _R(e)},select:e=>nm.map(t=>({...t,available:e[t.workflow]}))}),s8=()=>{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,g=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return LS({queryKey:g,queryFn:async({pageParam:p=0})=>await yy({...s,pagination:{...s.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var S,m,v;await r.cancelQueries({queryKey:g});const y=[...((S=p==null?void 0:p.pages[0])==null?void 0:S.folders)??[]];(m=p==null?void 0:p.pages[0])!=null&&m.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 hl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Sy(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})},sk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Li(),i=pl(),o=Mi(),a=ml().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return sn({mutationFn:async()=>await PR({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))}})},E=e8(r,{folders:s});return d(E),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},i8=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Li(),s=pl(),i=Mi(),o=ml().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Oe(),{filters:h,trashed:g}=n,p=["context",{folderId:h.folder,filters:h,trashed:g}];return sn({mutationFn:async()=>await NR({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(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},ik=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Li(),s=pl(),i=Mi(),o=ml().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 OR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(g){typeof g=="string"&&e.error(Vt(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(S=>({...S,folders:S.folders.filter(m=>!r.includes(m.id)),resources:S.resources.filter(m=>o?!s.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},ok=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Li(),i=pl(),o=Mi(),a=ml().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return sn({mutationFn:async S=>await jR({searchParams:n,folderId:S,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(Vt(S))},onSuccess:async(S,m)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var b;if(w){const E=t8(r,{destinationId:m,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(E),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),k}})},onSettled:()=>{c(),u()}})},ak=()=>{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 RR({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 g={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},p=JR(r,{parentId:u.parentId,newFolder:d});return s(p),g}})}})},lk=()=>{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 kR({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,g=>{if(g){const p={...g,pages:g==null?void 0:g.pages.map(S=>({...S,folders:S.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},y=n8(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{s([]),i([])}})},uk=()=>{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 TR({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(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(S=>`${y.type}:${y.id}:${S.id}`))]),{...g,rights:p}}else return g})}))}})},onSettled:()=>{r([]),s([])}})},ck=()=>{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 IR({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:g,public:p,description:y,slug:S,...m}=a;return{...d,...m,name:h,thumbnail:typeof g=="string"?g:URL.createObjectURL(g),public:p,description:y,slug:S}}else return d})}))}})}})},dk=()=>{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 LR({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:r8,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(),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,g=>{if(g)return{...g,pages:g==null?void 0:g.pages.map(p=>({...p,resources:[u,...p.resources]}))}})}})},{trashActions:o8}=dl();function Ey(){const[e,t]=x.useState(!1),[n,r]=x.useState("void"),[s,i]=x.useState(),{t:o}=ve(),{hotToast:a}=Ot(Nt),l=ns(),u=Mi(),c=QR(),d=qR(),h=Li(),g=rs(),p=i8(),y=by(),{openResource:S,printSelectedResource:m,openFolder:v,clearSelectedItems:w,clearSelectedIds:b}=Oe(),{data:E}=Cy();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 m();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(g)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"),C=T("delete"),O=T("delete"),A=T("publish"),$=T("publish"),N=T("edit_folder"),_=T("edit_folder"),z=T("edit_resource"),Z=T("edit_resource"),W=T("share"),an=T("share");function it(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function ye(G){return G.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${G.id}`}return{onRestore:L,actions:g?o8:E,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:ye,handleClick:k,isActivable:g?P:R,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:D,onMoveSuccess:U,isDeleteModalOpen:n==="delete",onDeleteCancel:O,onDeleteSuccess:C,isPublishModalOpen:n==="publish",onPublishCancel:$,onPublishSuccess:A,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:_,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:Z,onEditResourceSuccess:z,isShareResourceOpen:n==="share",onShareResourceCancel:an,onShareResourceSuccess:W,onClearActionBar:M}}function a8({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 g=t.map(p=>p.rights);await l(g)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function l8({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=ve(),{overrideLabel:o}=Ey(),{visible:a}=a8({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 u8=x.lazy(async()=>await ge(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),c8=x.lazy(async()=>await ge(()=>import("./DeleteModal.js"),[])),d8=x.lazy(async()=>await ge(()=>import("./MoveModal.js"),[])),f8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),h8=x.lazy(async()=>await ge(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),p8=x.lazy(async()=>await ge(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function m8(){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:g,isShareResourceOpen:p,onShareResourceCancel:y,onShareResourceSuccess:S,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:b,onPublishCancel:E,onPublishSuccess:k,isActivable:R,handleClick:P}=Ey(),L=tf(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[L((M,T)=>T&&f.jsx(ba.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:M,children:f.jsx($4,{children:t==null?void 0:t.filter(D=>D.available&&D.target==="actionbar").map(D=>R(D)&&f.jsx(l8,{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(d8,{isOpen:r,onCancel:m,onSuccess:v}),s&&f.jsx(c8,{isOpen:s,onCancel:w,onSuccess:b}),i&&f.jsx(p8,{isOpen:i,onCancel:E,onSuccess:k}),a&&f.jsx(f8,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(h8,{edit:!0,isOpen:d,onCancel:h,onSuccess:g}),p&&f.jsx(u8,{isOpen:p,onCancel:y,onSuccess:S})]})]})}const g8=()=>{var u;const{user:e,appCode:t}=gt(),r={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"}[t],s=(u=e.apps.find(c=>c.isExternal&&c.address.includes("library")&&c.name.includes("library")))==null?void 0:u.address.split("?");let i=s==null?void 0:s[0];i!=null&&i.endsWith("/")||(i=`${i}/`);const o=s==null?void 0:s[1],a=`application%5B0%5D=${r}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${i}search/?${o}&${a}`}},v8=x.lazy(async()=>await ge(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),y8=x.lazy(async()=>await ge(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),w8=x.lazy(async()=>await ge(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),x8=x.lazy(async()=>await ge(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),S8=x.lazy(async()=>await ge(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),b8=x.lazy(async()=>await ge(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),C8=x.lazy(async()=>await ge(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),E8=()=>{const e=ZR(),t=rs(),n=GR(),r=st(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=s8(),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(w8,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(y8,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(ze,{}),children:[f.jsx(b8,{data:s,isFetching:a}),f.jsx(C8,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(v8,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(x8,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(S8,{})}):null};function R8({isOpen:e,onCancel:t=()=>({})}){const{t:n}=ve();return ki.createPortal(f.jsxs(Sn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(Sn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(Sn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(Sn.Footer,{children:f.jsx(Jr,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const k8=()=>{const e=st(),[t,n]=x.useState(""),r=M4(t,500),s=KR(),i=XR(),{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}},P8=()=>{const{appCode:e,currentApp:t}=gt(),{t:n}=ve(),[r,s]=x.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=ns(),a=st(),{setSearchParams:l}=Oe();x.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,d=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:c(),public:h(),shared:d(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==co.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==co.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==co.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},O8=()=>{const{appCode:e}=gt(),{t}=ve(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=P8(),{inputSearch:i,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=k8(),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(gc,{id:"search",className:"input-group",children:[f.jsx(Q0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:i,onChange:o,onKeyDown:a}),f.jsx(w0,{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(r3,{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))})]})]})},N8=({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(X4,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},j8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),T8=()=>{const e=rt(),{t}=ve(),[n,r]=L4(),s=ts(),i=rs(),o=gf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=Oe(),g=async y=>{await u(y,e)},p=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(IC,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:g}),f.jsx(N8,{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(h3,{}),onClick:p,children:t("explorer.folder.new")})}),f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:n&&f.jsx(j8,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},I8=()=>{const e=WR(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Oe();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},_8=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await FR();if(i){t(JSON.parse(i==null?void 0:i.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await $R({onSuccess:()=>r(!1)})},setIsOpen:r}},A8=()=>{const e=by(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Oe();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},L8=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},M8=x.lazy(async()=>await ge(()=>import("./OnboardingTrash.js"),[])),D8=x.lazy(async()=>await ge(()=>import("./AppAction.js"),[])),F8=x.lazy(async()=>await ge(()=>import("./Library.js"),[])),$8=x.lazy(async()=>await ge(()=>import("./TrashedResourceModal.js"),[]));function z8(){const{currentApp:e}=gt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=_8(),{data:i}=Cy(),{isTrashedModalOpen:o,onTrashedCancel:a}=A8(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=I8();BS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=g8();return f.jsxs(f.Fragment,{children:[f.jsx(k3,{render:()=>L8({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(D8,{})}):null,children:f.jsx(j3,{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(T8,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(F8,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(O8,{}),f.jsx(YR,{}),f.jsx(E8,{})]}),f.jsx(m8,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(M8,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx($8,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(R8,{isOpen:l,onCancel:u})})]})]})}function U8(){const{init:e}=gt();return e?e?f.jsx(uR,{children:f.jsx(z8,{})}):null:f.jsx(ze,{position:!1})}const B8=document.getElementById("root"),V8=new iw({queryCache:new Im({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});my(B8).render(f.jsx(x.StrictMode,{children:f.jsxs(bS,{client:V8,children:[f.jsx(DS,{params:dl(),children:f.jsx(US,{children:f.jsx(U8,{})})}),f.jsx(cR,{initialIsOpen:!1})]})}));export{dk as $,Nt as A,Jr as B,Y3 as C,l3 as D,Q0 as E,gc as F,N3 as G,ik as H,l0 as I,sk as J,rs as K,ze as L,Sn as M,ok as N,qR as O,rt as P,ts as Q,Hy as R,h3 as S,IC as T,ns as U,Es as V,ak as W,lk as X,nb as Y,G8 as Z,ge as _,ki as a,L8 as a0,$d as a1,dl as a2,fr as a3,X8 as a4,X4 as a5,hc as a6,Li as a7,rk as a8,F4 as a9,ba as aa,Ue as ab,Ra as ac,Mi as ad,Y8 as ae,J8 as af,nk as ag,K3 as ah,ek as ai,Xg as aj,Ha as b,L4 as c,gt as d,Oe as e,Cy as f,K8 as g,Td as h,H as i,f as j,r5 as k,st as l,Id as m,M4 as n,QR as o,ck as p,uk as q,x as r,Ot as s,W8 as t,ve as u,np as v,fc as w,_d as x,Z8 as y,tk as z};
234
+ */var hl=x,hR=Ug;function pR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mR=typeof Object.is=="function"?Object.is:pR,gR=hR.useSyncExternalStore,vR=hl.useRef,yR=hl.useEffect,wR=hl.useMemo,xR=hl.useDebugValue;vy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=vR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=wR(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),s!==void 0&&o.hasValue){var p=o.value;if(s(p,g))return d=p}return d=g}if(p=d,mR(c,g))return p;var w=r(g);return s!==void 0&&s(p,w)?p:(c=g,d=w)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,s]);var a=gR(e,i[0],i[1]);return yR(function(){o.hasValue=!0,o.value=a},[a]),xR(a),a};gy.exports=vy;var SR=gy.exports;const bR=Ra(SR),{useSyncExternalStoreWithSelector:CR}=bR;function ER(e,t=e.getState,n){const r=CR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return x.useDebugValue(r),r}const tm=e=>{const t=typeof e=="function"?fR(e):e,n=(r,s)=>ER(t,r,s);return Object.assign(n,t),n},RR=e=>e?tm(e):tm,yy=async e=>{const t=await X.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},kR=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)},PR=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)},OR=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)},NR=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)},jR=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)},TR=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)},IR=async({searchParams:e,entId:t,shares:n})=>await X.share().saveRights(e.app,t,n),_R=async({searchParams:e,params:t})=>await X.resource(e.app).update(t),AR=async e=>await X.rights().sessionHasWorkflowRights(e),LR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoView(t),MR=({searchParams:e,params:t})=>X.resource(e.app).create(t),DR=({searchParams:e,assetId:t})=>X.resource(e.app).gotoPrint(t),FR=async({searchParams:e,params:t})=>await X.resource(e.app).publish(t),$R=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 mf(e){return e.filter((t,n)=>e.indexOf(t)===n)}function wi(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=wi(e,i),n===void 0))),n)}function UR(e,t){var r;const n=wi(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===We.BIN?[We.BIN]:[We.DEFAULT]}function wy(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>wy(t.id,n)):!1}function Ai(e,t){return xy(e,t)||e}function xy(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=xy(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 Sy=(e,t,n)=>Ai(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new pl(s))),r)),{app:BR,types:VR,filters:HR,orders:qR}=fl(),Le=RR()((e,t)=>({filters:HR,orders:qR,searchConfig:{minLength:1},searchParams:{app:BR,types:VR,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();LR({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]);DR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await FR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=UR(n,i),l=mf([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===We.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!wy(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await yy({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Sy(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||We.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=wi(n,r);F4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=wi(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||We.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:We.BIN},trashed:!0},currentFolder:{id:We.BIN}}))}})),st=()=>Le(e=>e.searchParams),gf=()=>Le(e=>e.selectedNodesIds),ts=()=>Le(e=>e.treeData),QR=()=>Le(e=>e.selectedFolders),KR=()=>Le(e=>e.selectedResources),WR=()=>Le(e=>e.searchConfig),Li=()=>Le(e=>e.folderIds),Mi=()=>Le(e=>e.resourceIds),ml=()=>Le(e=>e.selectedResources.map(t=>t.assetId)),gl=()=>Le(e=>e.selectedResources.filter(t=>t.assetId===t.id)),ns=()=>Le(e=>e.currentFolder),Oe=()=>Le(e=>e.updaters),rs=()=>{const e=ns();return(e==null?void 0:e.id)===We.BIN},by=()=>Le(e=>e.resourceIsTrash),ZR=()=>Le(e=>e.resourceActionDisable),GR=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},XR=()=>gf().length>1,YR=()=>Le(e=>e.status);function JR(){const{appCode:e}=gt(),{t}=ve(["common",e]),n=gf(),r=rs(),s=ns(),{gotoPreviousFolder:i}=Oe(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(s==null?void 0:s.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(Qa,{icon:f.jsx(V4,{}),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 e8(e,{parentId:t,newFolder:n}){return Ai(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=mf([...i,r.id]);return{...r,children:[...r.children||[],new pl({...n,ancestors:o})]}}else return r})}function t8(e,{folders:t}){return Ai(e,n=>{if(!t.includes(n.id))return n})}function n8(e,{destinationId:t,folders:n}){return Ai(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=mf([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const g=wi(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!==(s==null?void 0:s.id)?void 0:r})}function r8(e,{folderId:t,newFolder:n}){return Ai(e,r=>r.id===t?new pl(n):r)}const{actions:nm,app:s8}=fl(),Cy=()=>Td({queryKey:["actions"],queryFn:async()=>{const e=nm.map(n=>n.workflow);return await AR(e)},select:e=>nm.map(t=>({...t,available:e[t.workflow]}))}),i8=()=>{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,g=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return LS({queryKey:g,queryFn:async({pageParam:p=0})=>await yy({...s,pagination:{...s.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var S,m,v;await r.cancelQueries({queryKey:g});const w=[...((S=p==null?void 0:p.pages[0])==null?void 0:S.folders)??[]];(m=p==null?void 0:p.pages[0])!=null&&m.searchConfig&&u(p.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:We.DEFAULT,section:!0,children:w.map(y=>new pl(y)),name:n("explorer.filters.mine",{ns:t})}):a(Sy(o,w,s.filters.folder||We.DEFAULT))),l({...s,pagination:(v=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:p=>p.pagination.startIdx+p.pagination.pageSize})},sk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Li(),i=ml(),o=Mi(),a=gl().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:g,trashed:p}=n,w=["context",{folderId:g.folder,filters:g,trashed:p}];return sn({mutationFn:async()=>await OR({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(Vt(S))},onSuccess:async S=>{if(await t.cancelQueries({queryKey:w}),t.getQueryData(w))return t.setQueryData(w,v=>{var y;if(v){const b={...v,pages:v==null?void 0:v.pages.map(k=>{var R;return{...k,folders:k.folders.filter(P=>!s.includes(P.id)),pagination:{...k.pagination,maxIdx:((R=k==null?void 0:k.pagination)==null?void 0:R.maxIdx)-S.resources.length},resources:k.resources.filter(P=>a?!i.includes(P.assetId):!l.includes(P.id))}})},E=t8(r,{folders:s});return d(E),h({...n,pagination:{...n.pagination,maxIdx:((y=n.pagination)==null?void 0:y.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},o8=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Li(),s=ml(),i=Mi(),o=gl().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Oe(),{filters:h,trashed:g}=n,p=["context",{folderId:h.folder,filters:h,trashed:g}];return sn({mutationFn:async()=>await jR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(w){typeof w=="string"&&e.error(Vt(w))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,S=>{if(S)return{...S,pages:S==null?void 0:S.pages.map(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},ik=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=Li(),s=ml(),i=Mi(),o=gl().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=Oe(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return sn({mutationFn:async()=>await NR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(g){typeof g=="string"&&e.error(Vt(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(S=>({...S,folders:S.folders.filter(m=>!r.includes(m.id)),resources:S.resources.filter(m=>o?!s.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},ok=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),r=ts(),s=Li(),i=ml(),o=Mi(),a=gl().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Oe(),{filters:g,trashed:p}=n,w=["context",{folderId:g.folder,filters:g,trashed:p}];return sn({mutationFn:async S=>await TR({searchParams:n,folderId:S,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(Vt(S))},onSuccess:async(S,m)=>{if(t.getQueryData(w))return t.setQueryData(w,y=>{var b;if(y){const E=n8(r,{destinationId:m,folders:s}),k={...y,pages:y==null?void 0:y.pages.map(R=>{var P;return{...R,folders:R.folders.filter(L=>!s.includes(L.id)),pagination:{...R.pagination,maxIdx:((P=R.pagination)==null?void 0:P.maxIdx)-S.resources.length},resources:R.resources.filter(L=>a?!i.includes(L.assetId):!l.includes(L.id))}})};return d(E),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),k}})},onSettled:()=>{c(),u()}})},ak=()=>{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 kR({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 g={...h,pages:h==null?void 0:h.pages.map(w=>({...w,folders:[...w.folders,d]}))},p=e8(r,{parentId:u.parentId,newFolder:d});return s(p),g}})}})},lk=()=>{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 PR({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,g=>{if(g){const p={...g,pages:g==null?void 0:g.pages.map(S=>({...S,folders:S.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},w=r8(r,{folderId:d.folderId,newFolder:c});return o(w),p}})},onSettled:()=>{s([]),i([])}})},uk=()=>{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 IR({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(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(w=>w.actions.map(S=>`${w.type}:${w.id}:${S.id}`))]),{...g,rights:p}}else return g})}))}})},onSettled:()=>{r([]),s([])}})},ck=()=>{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 _R({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:g,public:p,description:w,slug:S,...m}=a;return{...d,...m,name:h,thumbnail:typeof g=="string"?g:URL.createObjectURL(g),public:p,description:w,slug:S}}else return d})}))}})}})},dk=()=>{const{hotToast:e}=Ot(Nt),t=rt(),n=st(),{user:r}=_d(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return sn({mutationFn:async i=>await MR({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:s8,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(),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,g=>{if(g)return{...g,pages:g==null?void 0:g.pages.map(p=>({...p,resources:[u,...p.resources]}))}})}})},{trashActions:a8}=fl();function Ey(){const[e,t]=x.useState(!1),[n,r]=x.useState("void"),[s,i]=x.useState(),{t:o}=ve(),{hotToast:a}=Ot(Nt),l=ns(),u=Mi(),c=KR(),d=QR(),h=Li(),g=rs(),p=o8(),w=by(),{openResource:S,printSelectedResource:m,openFolder:v,clearSelectedItems:y,clearSelectedIds:b}=Oe(),{data:E}=Cy();x.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(w){t(!1);return}t(!0)},[u,h]);async function k(G){var he;switch((he=document.getElementById("root"))==null||he.setAttribute("aria-hidden","true"),i(G),G.id){case Me.OPEN:return u.length>0?S(c[0]):v({folder:d[0],folderId:d[0].id});case Me.MOVE:return r("move");case Me.PRINT:return m();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(g)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");M()}catch(G){console.error(G)}}function M(){var G;r("void"),s!=null&&s.id&&((G=document.getElementById(s==null?void 0:s.id))==null||G.focus())}const T=G=>()=>{n===G&&(M(),y(),b())},D=T("move"),U=T("move"),C=T("delete"),O=T("delete"),A=T("publish"),$=T("publish"),N=T("edit_folder"),_=T("edit_folder"),z=T("edit_resource"),Z=T("edit_resource"),W=T("share"),an=T("share");function it(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function ye(G){return G.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${G.id}`}return{onRestore:L,actions:g?a8:E,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:ye,handleClick:k,isActivable:g?P:R,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:D,onMoveSuccess:U,isDeleteModalOpen:n==="delete",onDeleteCancel:O,onDeleteSuccess:C,isPublishModalOpen:n==="publish",onPublishCancel:$,onPublishSuccess:A,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:_,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:Z,onEditResourceSuccess:z,isShareResourceOpen:n==="share",onShareResourceCancel:an,onShareResourceSuccess:W,onClearActionBar:M}}function l8({roles:e,rights:t,action:n}){const[r,s]=x.useState(!1),{user:i}=_d(),o=rs();x.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await X.rights().sessionHasAtLeastOneResourceRight(e,d);s(h)}else{const h=await X.rights().sessionHasResourceRight(e,d);s(h)}},l=async function(c){if(e instanceof Array){const d=await X.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);s(d)}else{const d=await X.rights().sessionHasResourceRightForEachList(e,c);s(d)}},u=async function(){var c,d,h;if(e===void 0){s(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(i==null?void 0:i.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const g=t.map(p=>p.rights);await l(g)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function u8({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=ve(),{overrideLabel:o}=Ey(),{visible:a}=l8({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 c8=x.lazy(async()=>await ge(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),d8=x.lazy(async()=>await ge(()=>import("./DeleteModal.js"),[])),f8=x.lazy(async()=>await ge(()=>import("./MoveModal.js"),[])),h8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),p8=x.lazy(async()=>await ge(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),m8=x.lazy(async()=>await ge(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function g8(){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:g,isShareResourceOpen:p,onShareResourceCancel:w,onShareResourceSuccess:S,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:y,onDeleteSuccess:b,onPublishCancel:E,onPublishSuccess:k,isActivable:R,handleClick:P}=Ey(),L=tf(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[L((M,T)=>T&&f.jsx(ba.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:M,children:f.jsx($4,{children:t==null?void 0:t.filter(D=>D.available&&D.target==="actionbar").map(D=>R(D)&&f.jsx(u8,{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(f8,{isOpen:r,onCancel:m,onSuccess:v}),s&&f.jsx(d8,{isOpen:s,onCancel:y,onSuccess:b}),i&&f.jsx(m8,{isOpen:i,onCancel:E,onSuccess:k}),a&&f.jsx(h8,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(p8,{edit:!0,isOpen:d,onCancel:h,onSuccess:g}),p&&f.jsx(c8,{isOpen:p,onCancel:w,onSuccess:S})]})]})}const v8=()=>{var u;const{user:e,appCode:t}=gt(),r={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"}[t],s=(u=e.apps.find(c=>c.isExternal&&c.address.includes("library")&&c.name.includes("library")))==null?void 0:u.address.split("?");let i=s==null?void 0:s[0];i!=null&&i.endsWith("/")||(i=`${i}/`);const o=s==null?void 0:s[1],a=`application%5B0%5D=${r}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${i}search/?${o}&${a}`}},y8=x.lazy(async()=>await ge(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),w8=x.lazy(async()=>await ge(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),x8=x.lazy(async()=>await ge(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),S8=x.lazy(async()=>await ge(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),b8=x.lazy(async()=>await ge(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),C8=x.lazy(async()=>await ge(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),E8=x.lazy(async()=>await ge(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),R8=()=>{const e=GR(),t=rs(),n=XR(),r=st(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=i8(),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(x8,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(w8,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(ze,{}),children:[f.jsx(C8,{data:s,isFetching:a}),f.jsx(E8,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(y8,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(S8,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(b8,{})}):null};function k8({isOpen:e,onCancel:t=()=>({})}){const{t:n}=ve();return ki.createPortal(f.jsxs(Sn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(Sn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(Sn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(Sn.Footer,{children:f.jsx(Jr,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const P8=()=>{const e=st(),[t,n]=x.useState(""),r=M4(t,500),s=WR(),i=YR(),{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}},O8=()=>{const{appCode:e,currentApp:t}=gt(),{t:n}=ve(),[r,s]=x.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=ns(),a=st(),{setSearchParams:l}=Oe();x.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,d=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:c(),public:h(),shared:d(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==co.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==co.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==co.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},N8=()=>{const{appCode:e}=gt(),{t}=ve(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=O8(),{inputSearch:i,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=P8(),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(Q0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:i,onChange:o,onKeyDown:a}),f.jsx(w0,{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(s3,{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))})]})]})},j8=({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(Y4,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},T8=x.lazy(async()=>await ge(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),I8=()=>{const e=rt(),{t}=ve(),[n,r]=L4(),s=ts(),i=rs(),o=gf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=Oe(),g=async w=>{await u(w,e)},p=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(_C,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:g}),f.jsx(j8,{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(p3,{}),onClick:p,children:t("explorer.folder.new")})}),f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:n&&f.jsx(T8,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},_8=()=>{const e=ZR(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Oe();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},A8=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await $R();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}},L8=()=>{const e=by(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Oe();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},M8=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},D8=x.lazy(async()=>await ge(()=>import("./OnboardingTrash.js"),[])),F8=x.lazy(async()=>await ge(()=>import("./AppAction.js"),[])),$8=x.lazy(async()=>await ge(()=>import("./Library.js"),[])),z8=x.lazy(async()=>await ge(()=>import("./TrashedResourceModal.js"),[]));function U8(){const{currentApp:e}=gt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=A8(),{data:i}=Cy(),{isTrashedModalOpen:o,onTrashedCancel:a}=L8(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=_8();BS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=v8();return f.jsxs(f.Fragment,{children:[f.jsx(P3,{render:()=>M8({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(F8,{})}):null,children:f.jsx(T3,{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(I8,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx($8,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(N8,{}),f.jsx(JR,{}),f.jsx(R8,{})]}),f.jsx(g8,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(D8,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(z8,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(ze,{}),children:f.jsx(k8,{isOpen:l,onCancel:u})})]})]})}function B8(){const{init:e}=gt();return e?e?f.jsx(cR,{children:f.jsx(U8,{})}):null:f.jsx(ze,{position:!1})}const V8=document.getElementById("root"),H8=new iw({queryCache:new Im({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});my(V8).render(f.jsx(x.StrictMode,{children:f.jsxs(bS,{client:H8,children:[f.jsx(DS,{params:fl(),children:f.jsx(US,{children:f.jsx(B8,{})})}),f.jsx(dR,{initialIsOpen:!1})]})}));export{dk as $,Nt as A,Jr as B,J3 as C,u3 as D,Q0 as E,vc as F,j3 as G,ik as H,l0 as I,sk as J,rs as K,ze as L,Sn as M,ok as N,QR as O,rt as P,ts as Q,Hy as R,p3 as S,_C as T,ns as U,Es as V,ak as W,lk as X,rb as Y,G8 as Z,ge as _,ki as a,M8 as a0,$d as a1,fl as a2,fr as a3,X8 as a4,Y4 as a5,pc as a6,Li as a7,rk as a8,F4 as a9,ba as aa,Ue as ab,Ra as ac,Mi as ad,Y8 as ae,J8 as af,nk as ag,W3 as ah,ek as ai,Xg as aj,Ha as b,L4 as c,gt as d,Oe as e,Cy as f,W8 as g,Id as h,H as i,f as j,s5 as k,st as l,_d as m,M4 as n,KR as o,ck as p,uk as q,x as r,Ot as s,Z8 as t,ve as u,np as v,hc as w,Qa as x,Z4 as y,tk as z};