ode-explorer 1.0.0-develop-pedago.202307262104 → 1.0.0-develop-pedago.202307271756

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 Zt=Object.defineProperty;var Jt=(_e,et,tt)=>et in _e?Zt(_e,et,{enumerable:!0
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 l$3=Symbol.for("react.element"),n$5=Symbol.for("react.portal"),p$5=Symbol.for("react.fragment"),q$4=Symbol.for("react.strict_mode"),r$3=Symbol.for("react.profiler"),t$4=Symbol.for("react.provider"),u$4=Symbol.for("react.context"),v$4=Symbol.for("react.forward_ref"),w$2=Symbol.for("react.suspense"),x$2=Symbol.for("react.memo"),y$2=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$2(_e){return _e===null||typeof _e!="object"?null:(_e=z$1&&_e[z$1]||_e["@@iterator"],typeof _e=="function"?_e:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$2=Object.assign,D$2={};function E$1(_e,et,tt){this.props=_e,this.context=et,this.refs=D$2,this.updater=tt||B$1}E$1.prototype.isReactComponent={};E$1.prototype.setState=function(_e,et){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,et,"setState")};E$1.prototype.forceUpdate=function(_e){this.updater.enqueueForceUpdate(this,_e,"forceUpdate")};function F$2(){}F$2.prototype=E$1.prototype;function G$3(_e,et,tt){this.props=_e,this.context=et,this.refs=D$2,this.updater=tt||B$1}var H$1=G$3.prototype=new F$2;H$1.constructor=G$3;C$2(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$3=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$1={current:null},L$2={key:!0,ref:!0,__self:!0,__source:!0};function M$2(_e,et,tt){var rt,nt={},st=null,ot=null;if(et!=null)for(rt in et.ref!==void 0&&(ot=et.ref),et.key!==void 0&&(st=""+et.key),et)J$1.call(et,rt)&&!L$2.hasOwnProperty(rt)&&(nt[rt]=et[rt]);var at=arguments.length-2;if(at===1)nt.children=tt;else if(1<at){for(var ut=Array(at),lt=0;lt<at;lt++)ut[lt]=arguments[lt+2];nt.children=ut}if(_e&&_e.defaultProps)for(rt in at=_e.defaultProps,at)nt[rt]===void 0&&(nt[rt]=at[rt]);return{$$typeof:l$3,type:_e,key:st,ref:ot,props:nt,_owner:K$1.current}}function N$1(_e,et){return{$$typeof:l$3,type:_e.type,key:et,ref:_e.ref,props:_e.props,_owner:_e._owner}}function O$3(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===l$3}function escape$1(_e){var et={"=":"=0",":":"=2"};return"$"+_e.replace(/[=:]/g,function(tt){return et[tt]})}var P$2=/\/+/g;function Q$2(_e,et){return typeof _e=="object"&&_e!==null&&_e.key!=null?escape$1(""+_e.key):et.toString(36)}function R$1(_e,et,tt,rt,nt){var st=typeof _e;(st==="undefined"||st==="boolean")&&(_e=null);var ot=!1;if(_e===null)ot=!0;else switch(st){case"string":case"number":ot=!0;break;case"object":switch(_e.$$typeof){case l$3:case n$5:ot=!0}}if(ot)return ot=_e,nt=nt(ot),_e=rt===""?"."+Q$2(ot,0):rt,I$3(nt)?(tt="",_e!=null&&(tt=_e.replace(P$2,"$&/")+"/"),R$1(nt,et,tt,"",function(lt){return lt})):nt!=null&&(O$3(nt)&&(nt=N$1(nt,tt+(!nt.key||ot&&ot.key===nt.key?"":(""+nt.key).replace(P$2,"$&/")+"/")+_e)),et.push(nt)),1;if(ot=0,rt=rt===""?".":rt+":",I$3(_e))for(var at=0;at<_e.length;at++){st=_e[at];var ut=rt+Q$2(st,at);ot+=R$1(st,et,tt,ut,nt)}else if(ut=A$2(_e),typeof ut=="function")for(_e=ut.call(_e),at=0;!(st=_e.next()).done;)st=st.value,ut=rt+Q$2(st,at++),ot+=R$1(st,et,tt,ut,nt);else if(st==="object")throw et=String(_e),Error("Objects are not valid as a React child (found: "+(et==="[object Object]"?"object with keys {"+Object.keys(_e).join(", ")+"}":et)+"). If you meant to render a collection of children, use an array instead.");return ot}function S$3(_e,et,tt){if(_e==null)return _e;var rt=[],nt=0;return R$1(_e,rt,"","",function(st){return et.call(tt,st,nt++)}),rt}function T$3(_e){if(_e._status===-1){var et=_e._result;et=et(),et.then(function(tt){(_e._status===0||_e._status===-1)&&(_e._status=1,_e._result=tt)},function(tt){(_e._status===0||_e._status===-1)&&(_e._status=2,_e._result=tt)}),_e._status===-1&&(_e._status=0,_e._result=et)}if(_e._status===1)return _e._result.default;throw _e._result}var U$2={current:null},V$3={transition:null},W$2={ReactCurrentDispatcher:U$2,ReactCurrentBatchConfig:V$3,ReactCurrentOwner:K$1};react_production_min.Children={map:S$3,forEach:function(_e,et,tt){S$3(_e,function(){et.apply(this,arguments)},tt)},count:function(_e){var et=0;return S$3(_e,function(){et++}),et},toArray:function(_e){return S$3(_e,function(et){return et})||[]},only:function(_e){if(!O$3(_e))throw Error("React.Children.only expected to receive a single React element child.");return _e}};react_production_min.Component=E$1;react_production_min.Fragment=p$5;react_production_min.Profiler=r$3;react_production_min.PureComponent=G$3;react_production_min.StrictMode=q$4;react_production_min.Suspense=w$2;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$2;react_production_min.cloneElement=function(_e,et,tt){if(_e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_e+".");var rt=C$2({},_e.props),nt=_e.key,st=_e.ref,ot=_e._owner;if(et!=null){if(et.ref!==void 0&&(st=et.ref,ot=K$1.current),et.key!==void 0&&(nt=""+et.key),_e.type&&_e.type.defaultProps)var at=_e.type.defaultProps;for(ut in et)J$1.call(et,ut)&&!L$2.hasOwnProperty(ut)&&(rt[ut]=et[ut]===void 0&&at!==void 0?at[ut]:et[ut])}var ut=arguments.length-2;if(ut===1)rt.children=tt;else if(1<ut){at=Array(ut);for(var lt=0;lt<ut;lt++)at[lt]=arguments[lt+2];rt.children=at}return{$$typeof:l$3,type:_e.type,key:nt,ref:st,props:rt,_owner:ot}};react_production_min.createContext=function(_e){return _e={$$typeof:u$4,_currentValue:_e,_currentValue2:_e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_e.Provider={$$typeof:t$4,_context:_e},_e.Consumer=_e};react_production_min.createElement=M$2;react_production_min.createFactory=function(_e){var et=M$2.bind(null,_e);return et.type=_e,et};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(_e){return{$$typeof:v$4,render:_e}};react_production_min.isValidElement=O$3;react_production_min.lazy=function(_e){return{$$typeof:y$2,_payload:{_status:-1,_result:_e},_init:T$3}};react_production_min.memo=function(_e,et){return{$$typeof:x$2,type:_e,compare:et===void 0?null:et}};react_production_min.startTransition=function(_e){var et=V$3.transition;V$3.transition={};try{_e()}finally{V$3.transition=et}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};react_production_min.useCallback=function(_e,et){return U$2.current.useCallback(_e,et)};react_production_min.useContext=function(_e){return U$2.current.useContext(_e)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(_e){return U$2.current.useDeferredValue(_e)};react_production_min.useEffect=function(_e,et){return U$2.current.useEffect(_e,et)};react_production_min.useId=function(){return U$2.current.useId()};react_production_min.useImperativeHandle=function(_e,et,tt){return U$2.current.useImperativeHandle(_e,et,tt)};react_production_min.useInsertionEffect=function(_e,et){return U$2.current.useInsertionEffect(_e,et)};react_production_min.useLayoutEffect=function(_e,et){return U$2.current.useLayoutEffect(_e,et)};react_production_min.useMemo=function(_e,et){return U$2.current.useMemo(_e,et)};react_production_min.useReducer=function(_e,et,tt){return U$2.current.useReducer(_e,et,tt)};react_production_min.useRef=function(_e){return U$2.current.useRef(_e)};react_production_min.useState=function(_e){return U$2.current.useState(_e)};react_production_min.useSyncExternalStore=function(_e,et,tt){return U$2.current.useSyncExternalStore(_e,et,tt)};react_production_min.useTransition=function(){return U$2.current.useTransition()};react_production_min.version="18.2.0";react.exports=react_production_min;var reactExports=react.exports;const React$2=getDefaultExportFromCjs$1(reactExports);/**
9
+ */var l$3=Symbol.for("react.element"),n$5=Symbol.for("react.portal"),p$5=Symbol.for("react.fragment"),q$4=Symbol.for("react.strict_mode"),r$3=Symbol.for("react.profiler"),t$4=Symbol.for("react.provider"),u$4=Symbol.for("react.context"),v$4=Symbol.for("react.forward_ref"),w$2=Symbol.for("react.suspense"),x$2=Symbol.for("react.memo"),y$2=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$2(_e){return _e===null||typeof _e!="object"?null:(_e=z$1&&_e[z$1]||_e["@@iterator"],typeof _e=="function"?_e:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$2=Object.assign,D$2={};function E$1(_e,et,tt){this.props=_e,this.context=et,this.refs=D$2,this.updater=tt||B$1}E$1.prototype.isReactComponent={};E$1.prototype.setState=function(_e,et){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,et,"setState")};E$1.prototype.forceUpdate=function(_e){this.updater.enqueueForceUpdate(this,_e,"forceUpdate")};function F$2(){}F$2.prototype=E$1.prototype;function G$3(_e,et,tt){this.props=_e,this.context=et,this.refs=D$2,this.updater=tt||B$1}var H$1=G$3.prototype=new F$2;H$1.constructor=G$3;C$2(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$4=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$1={current:null},L$2={key:!0,ref:!0,__self:!0,__source:!0};function M$2(_e,et,tt){var rt,nt={},st=null,ot=null;if(et!=null)for(rt in et.ref!==void 0&&(ot=et.ref),et.key!==void 0&&(st=""+et.key),et)J$1.call(et,rt)&&!L$2.hasOwnProperty(rt)&&(nt[rt]=et[rt]);var at=arguments.length-2;if(at===1)nt.children=tt;else if(1<at){for(var ut=Array(at),lt=0;lt<at;lt++)ut[lt]=arguments[lt+2];nt.children=ut}if(_e&&_e.defaultProps)for(rt in at=_e.defaultProps,at)nt[rt]===void 0&&(nt[rt]=at[rt]);return{$$typeof:l$3,type:_e,key:st,ref:ot,props:nt,_owner:K$1.current}}function N$1(_e,et){return{$$typeof:l$3,type:_e.type,key:et,ref:_e.ref,props:_e.props,_owner:_e._owner}}function O$3(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===l$3}function escape$1(_e){var et={"=":"=0",":":"=2"};return"$"+_e.replace(/[=:]/g,function(tt){return et[tt]})}var P$2=/\/+/g;function Q$2(_e,et){return typeof _e=="object"&&_e!==null&&_e.key!=null?escape$1(""+_e.key):et.toString(36)}function R$1(_e,et,tt,rt,nt){var st=typeof _e;(st==="undefined"||st==="boolean")&&(_e=null);var ot=!1;if(_e===null)ot=!0;else switch(st){case"string":case"number":ot=!0;break;case"object":switch(_e.$$typeof){case l$3:case n$5:ot=!0}}if(ot)return ot=_e,nt=nt(ot),_e=rt===""?"."+Q$2(ot,0):rt,I$4(nt)?(tt="",_e!=null&&(tt=_e.replace(P$2,"$&/")+"/"),R$1(nt,et,tt,"",function(lt){return lt})):nt!=null&&(O$3(nt)&&(nt=N$1(nt,tt+(!nt.key||ot&&ot.key===nt.key?"":(""+nt.key).replace(P$2,"$&/")+"/")+_e)),et.push(nt)),1;if(ot=0,rt=rt===""?".":rt+":",I$4(_e))for(var at=0;at<_e.length;at++){st=_e[at];var ut=rt+Q$2(st,at);ot+=R$1(st,et,tt,ut,nt)}else if(ut=A$2(_e),typeof ut=="function")for(_e=ut.call(_e),at=0;!(st=_e.next()).done;)st=st.value,ut=rt+Q$2(st,at++),ot+=R$1(st,et,tt,ut,nt);else if(st==="object")throw et=String(_e),Error("Objects are not valid as a React child (found: "+(et==="[object Object]"?"object with keys {"+Object.keys(_e).join(", ")+"}":et)+"). If you meant to render a collection of children, use an array instead.");return ot}function S$3(_e,et,tt){if(_e==null)return _e;var rt=[],nt=0;return R$1(_e,rt,"","",function(st){return et.call(tt,st,nt++)}),rt}function T$3(_e){if(_e._status===-1){var et=_e._result;et=et(),et.then(function(tt){(_e._status===0||_e._status===-1)&&(_e._status=1,_e._result=tt)},function(tt){(_e._status===0||_e._status===-1)&&(_e._status=2,_e._result=tt)}),_e._status===-1&&(_e._status=0,_e._result=et)}if(_e._status===1)return _e._result.default;throw _e._result}var U$2={current:null},V$3={transition:null},W$2={ReactCurrentDispatcher:U$2,ReactCurrentBatchConfig:V$3,ReactCurrentOwner:K$1};react_production_min.Children={map:S$3,forEach:function(_e,et,tt){S$3(_e,function(){et.apply(this,arguments)},tt)},count:function(_e){var et=0;return S$3(_e,function(){et++}),et},toArray:function(_e){return S$3(_e,function(et){return et})||[]},only:function(_e){if(!O$3(_e))throw Error("React.Children.only expected to receive a single React element child.");return _e}};react_production_min.Component=E$1;react_production_min.Fragment=p$5;react_production_min.Profiler=r$3;react_production_min.PureComponent=G$3;react_production_min.StrictMode=q$4;react_production_min.Suspense=w$2;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$2;react_production_min.cloneElement=function(_e,et,tt){if(_e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_e+".");var rt=C$2({},_e.props),nt=_e.key,st=_e.ref,ot=_e._owner;if(et!=null){if(et.ref!==void 0&&(st=et.ref,ot=K$1.current),et.key!==void 0&&(nt=""+et.key),_e.type&&_e.type.defaultProps)var at=_e.type.defaultProps;for(ut in et)J$1.call(et,ut)&&!L$2.hasOwnProperty(ut)&&(rt[ut]=et[ut]===void 0&&at!==void 0?at[ut]:et[ut])}var ut=arguments.length-2;if(ut===1)rt.children=tt;else if(1<ut){at=Array(ut);for(var lt=0;lt<ut;lt++)at[lt]=arguments[lt+2];rt.children=at}return{$$typeof:l$3,type:_e.type,key:nt,ref:st,props:rt,_owner:ot}};react_production_min.createContext=function(_e){return _e={$$typeof:u$4,_currentValue:_e,_currentValue2:_e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_e.Provider={$$typeof:t$4,_context:_e},_e.Consumer=_e};react_production_min.createElement=M$2;react_production_min.createFactory=function(_e){var et=M$2.bind(null,_e);return et.type=_e,et};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(_e){return{$$typeof:v$4,render:_e}};react_production_min.isValidElement=O$3;react_production_min.lazy=function(_e){return{$$typeof:y$2,_payload:{_status:-1,_result:_e},_init:T$3}};react_production_min.memo=function(_e,et){return{$$typeof:x$2,type:_e,compare:et===void 0?null:et}};react_production_min.startTransition=function(_e){var et=V$3.transition;V$3.transition={};try{_e()}finally{V$3.transition=et}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};react_production_min.useCallback=function(_e,et){return U$2.current.useCallback(_e,et)};react_production_min.useContext=function(_e){return U$2.current.useContext(_e)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(_e){return U$2.current.useDeferredValue(_e)};react_production_min.useEffect=function(_e,et){return U$2.current.useEffect(_e,et)};react_production_min.useId=function(){return U$2.current.useId()};react_production_min.useImperativeHandle=function(_e,et,tt){return U$2.current.useImperativeHandle(_e,et,tt)};react_production_min.useInsertionEffect=function(_e,et){return U$2.current.useInsertionEffect(_e,et)};react_production_min.useLayoutEffect=function(_e,et){return U$2.current.useLayoutEffect(_e,et)};react_production_min.useMemo=function(_e,et){return U$2.current.useMemo(_e,et)};react_production_min.useReducer=function(_e,et,tt){return U$2.current.useReducer(_e,et,tt)};react_production_min.useRef=function(_e){return U$2.current.useRef(_e)};react_production_min.useState=function(_e){return U$2.current.useState(_e)};react_production_min.useSyncExternalStore=function(_e,et,tt){return U$2.current.useSyncExternalStore(_e,et,tt)};react_production_min.useTransition=function(){return U$2.current.useTransition()};react_production_min.version="18.2.0";react.exports=react_production_min;var reactExports=react.exports;const React$2=getDefaultExportFromCjs$1(reactExports);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -35,9 +35,9 @@ var Zt=Object.defineProperty;var Jt=(_e,et,tt)=>et in _e?Zt(_e,et,{enumerable:!0
35
35
  `),st=rt.stack.split(`
36
36
  `),ot=nt.length-1,at=st.length-1;1<=ot&&0<=at&&nt[ot]!==st[at];)at--;for(;1<=ot&&0<=at;ot--,at--)if(nt[ot]!==st[at]){if(ot!==1||at!==1)do if(ot--,at--,0>at||nt[ot]!==st[at]){var ut=`
37
37
  `+nt[ot].replace(" at new "," at ");return _e.displayName&&ut.includes("<anonymous>")&&(ut=ut.replace("<anonymous>",_e.displayName)),ut}while(1<=ot&&0<=at);break}}}finally{Na=!1,Error.prepareStackTrace=tt}return(_e=_e?_e.displayName||_e.name:"")?Ma(_e):""}function Pa(_e){switch(_e.tag){case 5:return Ma(_e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return _e=Oa(_e.type,!1),_e;case 11:return _e=Oa(_e.type.render,!1),_e;case 1:return _e=Oa(_e.type,!0),_e;default:return""}}function Qa(_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 ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof _e=="object")switch(_e.$$typeof){case Ca:return(_e.displayName||"Context")+".Consumer";case Ba:return(_e._context.displayName||"Context")+".Provider";case Da:var et=_e.render;return _e=_e.displayName,_e||(_e=et.displayName||et.name||"",_e=_e!==""?"ForwardRef("+_e+")":"ForwardRef"),_e;case Ga:return et=_e.displayName||null,et!==null?et:Qa(_e.type)||"Memo";case Ha:et=_e._payload,_e=_e._init;try{return Qa(_e(et))}catch{}}return null}function Ra(_e){var et=_e.type;switch(_e.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return _e=et.render,_e=_e.displayName||_e.name||"",et.displayName||(_e!==""?"ForwardRef("+_e+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(et);case 8:return et===za?"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 et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa(_e){switch(typeof _e){case"boolean":case"number":case"string":case"undefined":return _e;case"object":return _e;default:return""}}function Ta(_e){var et=_e.type;return(_e=_e.nodeName)&&_e.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua(_e){var et=Ta(_e)?"checked":"value",tt=Object.getOwnPropertyDescriptor(_e.constructor.prototype,et),rt=""+_e[et];if(!_e.hasOwnProperty(et)&&typeof tt<"u"&&typeof tt.get=="function"&&typeof tt.set=="function"){var nt=tt.get,st=tt.set;return Object.defineProperty(_e,et,{configurable:!0,get:function(){return nt.call(this)},set:function(ot){rt=""+ot,st.call(this,ot)}}),Object.defineProperty(_e,et,{enumerable:tt.enumerable}),{getValue:function(){return rt},setValue:function(ot){rt=""+ot},stopTracking:function(){_e._valueTracker=null,delete _e[et]}}}}function Va(_e){_e._valueTracker||(_e._valueTracker=Ua(_e))}function Wa(_e){if(!_e)return!1;var et=_e._valueTracker;if(!et)return!0;var tt=et.getValue(),rt="";return _e&&(rt=Ta(_e)?_e.checked?"true":"false":_e.value),_e=rt,_e!==tt?(et.setValue(_e),!0):!1}function Xa(_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 Ya(_e,et){var tt=et.checked;return A$1({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:tt??_e._wrapperState.initialChecked})}function Za(_e,et){var tt=et.defaultValue==null?"":et.defaultValue,rt=et.checked!=null?et.checked:et.defaultChecked;tt=Sa(et.value!=null?et.value:tt),_e._wrapperState={initialChecked:rt,initialValue:tt,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab(_e,et){et=et.checked,et!=null&&ta(_e,"checked",et,!1)}function bb(_e,et){ab(_e,et);var tt=Sa(et.value),rt=et.type;if(tt!=null)rt==="number"?(tt===0&&_e.value===""||_e.value!=tt)&&(_e.value=""+tt):_e.value!==""+tt&&(_e.value=""+tt);else if(rt==="submit"||rt==="reset"){_e.removeAttribute("value");return}et.hasOwnProperty("value")?cb(_e,et.type,tt):et.hasOwnProperty("defaultValue")&&cb(_e,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&(_e.defaultChecked=!!et.defaultChecked)}function db(_e,et,tt){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var rt=et.type;if(!(rt!=="submit"&&rt!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+_e._wrapperState.initialValue,tt||et===_e.value||(_e.value=et),_e.defaultValue=et}tt=_e.name,tt!==""&&(_e.name=""),_e.defaultChecked=!!_e._wrapperState.initialChecked,tt!==""&&(_e.name=tt)}function cb(_e,et,tt){(et!=="number"||Xa(_e.ownerDocument)!==_e)&&(tt==null?_e.defaultValue=""+_e._wrapperState.initialValue:_e.defaultValue!==""+tt&&(_e.defaultValue=""+tt))}var eb=Array.isArray;function fb(_e,et,tt,rt){if(_e=_e.options,et){et={};for(var nt=0;nt<tt.length;nt++)et["$"+tt[nt]]=!0;for(tt=0;tt<_e.length;tt++)nt=et.hasOwnProperty("$"+_e[tt].value),_e[tt].selected!==nt&&(_e[tt].selected=nt),nt&&rt&&(_e[tt].defaultSelected=!0)}else{for(tt=""+Sa(tt),et=null,nt=0;nt<_e.length;nt++){if(_e[nt].value===tt){_e[nt].selected=!0,rt&&(_e[nt].defaultSelected=!0);return}et!==null||_e[nt].disabled||(et=_e[nt])}et!==null&&(et.selected=!0)}}function gb(_e,et){if(et.dangerouslySetInnerHTML!=null)throw Error(p$3(91));return A$1({},et,{value:void 0,defaultValue:void 0,children:""+_e._wrapperState.initialValue})}function hb(_e,et){var tt=et.value;if(tt==null){if(tt=et.children,et=et.defaultValue,tt!=null){if(et!=null)throw Error(p$3(92));if(eb(tt)){if(1<tt.length)throw Error(p$3(93));tt=tt[0]}et=tt}et==null&&(et=""),tt=et}_e._wrapperState={initialValue:Sa(tt)}}function ib(_e,et){var tt=Sa(et.value),rt=Sa(et.defaultValue);tt!=null&&(tt=""+tt,tt!==_e.value&&(_e.value=tt),et.defaultValue==null&&_e.defaultValue!==tt&&(_e.defaultValue=tt)),rt!=null&&(_e.defaultValue=""+rt)}function jb(_e){var et=_e.textContent;et===_e._wrapperState.initialValue&&et!==""&&et!==null&&(_e.value=et)}function kb(_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 lb(_e,et){return _e==null||_e==="http://www.w3.org/1999/xhtml"?kb(et):_e==="http://www.w3.org/2000/svg"&&et==="foreignObject"?"http://www.w3.org/1999/xhtml":_e}var mb,nb=function(_e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(et,tt,rt,nt){MSApp.execUnsafeLocalFunction(function(){return _e(et,tt,rt,nt)})}:_e}(function(_e,et){if(_e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in _e)_e.innerHTML=et;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+et.valueOf().toString()+"</svg>",et=mb.firstChild;_e.firstChild;)_e.removeChild(_e.firstChild);for(;et.firstChild;)_e.appendChild(et.firstChild)}});function ob(_e,et){if(et){var tt=_e.firstChild;if(tt&&tt===_e.lastChild&&tt.nodeType===3){tt.nodeValue=et;return}}_e.textContent=et}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(_e){qb.forEach(function(et){et=et+_e.charAt(0).toUpperCase()+_e.substring(1),pb[et]=pb[_e]})});function rb(_e,et,tt){return et==null||typeof et=="boolean"||et===""?"":tt||typeof et!="number"||et===0||pb.hasOwnProperty(_e)&&pb[_e]?(""+et).trim():et+"px"}function sb(_e,et){_e=_e.style;for(var tt in et)if(et.hasOwnProperty(tt)){var rt=tt.indexOf("--")===0,nt=rb(tt,et[tt],rt);tt==="float"&&(tt="cssFloat"),rt?_e.setProperty(tt,nt):_e[tt]=nt}}var tb=A$1({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 ub(_e,et){if(et){if(tb[_e]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$3(137,_e));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$3(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$3(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$3(62))}}function vb(_e,et){if(_e.indexOf("-")===-1)return typeof et.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 wb=null;function xb(_e){return _e=_e.target||_e.srcElement||window,_e.correspondingUseElement&&(_e=_e.correspondingUseElement),_e.nodeType===3?_e.parentNode:_e}var yb=null,zb=null,Ab=null;function Bb(_e){if(_e=Cb(_e)){if(typeof yb!="function")throw Error(p$3(280));var et=_e.stateNode;et&&(et=Db(et),yb(_e.stateNode,_e.type,et))}}function Eb(_e){zb?Ab?Ab.push(_e):Ab=[_e]:zb=_e}function Fb(){if(zb){var _e=zb,et=Ab;if(Ab=zb=null,Bb(_e),et)for(_e=0;_e<et.length;_e++)Bb(et[_e])}}function Gb(_e,et){return _e(et)}function Hb(){}var Ib=!1;function Jb(_e,et,tt){if(Ib)return _e(et,tt);Ib=!0;try{return Gb(_e,et,tt)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(_e,et){var tt=_e.stateNode;if(tt===null)return null;var rt=Db(tt);if(rt===null)return null;tt=rt[et];e:switch(et){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(rt=!rt.disabled)||(_e=_e.type,rt=!(_e==="button"||_e==="input"||_e==="select"||_e==="textarea")),_e=!rt;break e;default:_e=!1}if(_e)return null;if(tt&&typeof tt!="function")throw Error(p$3(231,et,typeof tt));return tt}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(_e,et,tt,rt,nt,st,ot,at,ut){var lt=Array.prototype.slice.call(arguments,3);try{et.apply(tt,lt)}catch(dt){this.onError(dt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(_e){Ob=!0,Pb=_e}};function Tb(_e,et,tt,rt,nt,st,ot,at,ut){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(_e,et,tt,rt,nt,st,ot,at,ut){if(Tb.apply(this,arguments),Ob){if(Ob){var lt=Pb;Ob=!1,Pb=null}else throw Error(p$3(198));Qb||(Qb=!0,Rb=lt)}}function Vb(_e){var et=_e,tt=_e;if(_e.alternate)for(;et.return;)et=et.return;else{_e=et;do et=_e,et.flags&4098&&(tt=et.return),_e=et.return;while(_e)}return et.tag===3?tt:null}function Wb(_e){if(_e.tag===13){var et=_e.memoizedState;if(et===null&&(_e=_e.alternate,_e!==null&&(et=_e.memoizedState)),et!==null)return et.dehydrated}return null}function Xb(_e){if(Vb(_e)!==_e)throw Error(p$3(188))}function Yb(_e){var et=_e.alternate;if(!et){if(et=Vb(_e),et===null)throw Error(p$3(188));return et!==_e?null:_e}for(var tt=_e,rt=et;;){var nt=tt.return;if(nt===null)break;var st=nt.alternate;if(st===null){if(rt=nt.return,rt!==null){tt=rt;continue}break}if(nt.child===st.child){for(st=nt.child;st;){if(st===tt)return Xb(nt),_e;if(st===rt)return Xb(nt),et;st=st.sibling}throw Error(p$3(188))}if(tt.return!==rt.return)tt=nt,rt=st;else{for(var ot=!1,at=nt.child;at;){if(at===tt){ot=!0,tt=nt,rt=st;break}if(at===rt){ot=!0,rt=nt,tt=st;break}at=at.sibling}if(!ot){for(at=st.child;at;){if(at===tt){ot=!0,tt=st,rt=nt;break}if(at===rt){ot=!0,rt=st,tt=nt;break}at=at.sibling}if(!ot)throw Error(p$3(189))}}if(tt.alternate!==rt)throw Error(p$3(190))}if(tt.tag!==3)throw Error(p$3(188));return tt.stateNode.current===tt?_e:et}function Zb(_e){return _e=Yb(_e),_e!==null?$b(_e):null}function $b(_e){if(_e.tag===5||_e.tag===6)return _e;for(_e=_e.child;_e!==null;){var et=$b(_e);if(et!==null)return et;_e=_e.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(_e){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,_e,void 0,(_e.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(_e){return _e>>>=0,_e===0?32:31-(pc(_e)/qc|0)|0}var rc=64,sc=4194304;function tc(_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 uc(_e,et){var tt=_e.pendingLanes;if(tt===0)return 0;var rt=0,nt=_e.suspendedLanes,st=_e.pingedLanes,ot=tt&268435455;if(ot!==0){var at=ot&~nt;at!==0?rt=tc(at):(st&=ot,st!==0&&(rt=tc(st)))}else ot=tt&~nt,ot!==0?rt=tc(ot):st!==0&&(rt=tc(st));if(rt===0)return 0;if(et!==0&&et!==rt&&!(et&nt)&&(nt=rt&-rt,st=et&-et,nt>=st||nt===16&&(st&4194240)!==0))return et;if(rt&4&&(rt|=tt&16),et=_e.entangledLanes,et!==0)for(_e=_e.entanglements,et&=rt;0<et;)tt=31-oc(et),nt=1<<tt,rt|=_e[tt],et&=~nt;return rt}function vc(_e,et){switch(_e){case 1:case 2:case 4:return et+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 et+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 wc(_e,et){for(var tt=_e.suspendedLanes,rt=_e.pingedLanes,nt=_e.expirationTimes,st=_e.pendingLanes;0<st;){var ot=31-oc(st),at=1<<ot,ut=nt[ot];ut===-1?(!(at&tt)||at&rt)&&(nt[ot]=vc(at,et)):ut<=et&&(_e.expiredLanes|=at),st&=~at}}function xc(_e){return _e=_e.pendingLanes&-1073741825,_e!==0?_e:_e&1073741824?1073741824:0}function yc(){var _e=rc;return rc<<=1,!(rc&4194240)&&(rc=64),_e}function zc(_e){for(var et=[],tt=0;31>tt;tt++)et.push(_e);return et}function Ac(_e,et,tt){_e.pendingLanes|=et,et!==536870912&&(_e.suspendedLanes=0,_e.pingedLanes=0),_e=_e.eventTimes,et=31-oc(et),_e[et]=tt}function Bc(_e,et){var tt=_e.pendingLanes&~et;_e.pendingLanes=et,_e.suspendedLanes=0,_e.pingedLanes=0,_e.expiredLanes&=et,_e.mutableReadLanes&=et,_e.entangledLanes&=et,et=_e.entanglements;var rt=_e.eventTimes;for(_e=_e.expirationTimes;0<tt;){var nt=31-oc(tt),st=1<<nt;et[nt]=0,rt[nt]=-1,_e[nt]=-1,tt&=~st}}function Cc(_e,et){var tt=_e.entangledLanes|=et;for(_e=_e.entanglements;tt;){var rt=31-oc(tt),nt=1<<rt;nt&et|_e[rt]&et&&(_e[rt]|=et),tt&=~nt}}var C$1=0;function Dc(_e){return _e&=-_e,1<_e?4<_e?_e&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="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 Sc(_e,et){switch(_e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(et.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(et.pointerId)}}function Tc(_e,et,tt,rt,nt,st){return _e===null||_e.nativeEvent!==st?(_e={blockedOn:et,domEventName:tt,eventSystemFlags:rt,nativeEvent:st,targetContainers:[nt]},et!==null&&(et=Cb(et),et!==null&&Fc(et)),_e):(_e.eventSystemFlags|=rt,et=_e.targetContainers,nt!==null&&et.indexOf(nt)===-1&&et.push(nt),_e)}function Uc(_e,et,tt,rt,nt){switch(et){case"focusin":return Lc=Tc(Lc,_e,et,tt,rt,nt),!0;case"dragenter":return Mc=Tc(Mc,_e,et,tt,rt,nt),!0;case"mouseover":return Nc=Tc(Nc,_e,et,tt,rt,nt),!0;case"pointerover":var st=nt.pointerId;return Oc.set(st,Tc(Oc.get(st)||null,_e,et,tt,rt,nt)),!0;case"gotpointercapture":return st=nt.pointerId,Pc.set(st,Tc(Pc.get(st)||null,_e,et,tt,rt,nt)),!0}return!1}function Vc(_e){var et=Wc(_e.target);if(et!==null){var tt=Vb(et);if(tt!==null){if(et=tt.tag,et===13){if(et=Wb(tt),et!==null){_e.blockedOn=et,Ic(_e.priority,function(){Gc(tt)});return}}else if(et===3&&tt.stateNode.current.memoizedState.isDehydrated){_e.blockedOn=tt.tag===3?tt.stateNode.containerInfo:null;return}}}_e.blockedOn=null}function Xc(_e){if(_e.blockedOn!==null)return!1;for(var et=_e.targetContainers;0<et.length;){var tt=Yc(_e.domEventName,_e.eventSystemFlags,et[0],_e.nativeEvent);if(tt===null){tt=_e.nativeEvent;var rt=new tt.constructor(tt.type,tt);wb=rt,tt.target.dispatchEvent(rt),wb=null}else return et=Cb(tt),et!==null&&Fc(et),_e.blockedOn=tt,!1;et.shift()}return!0}function Zc(_e,et,tt){Xc(_e)&&tt.delete(et)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(_e,et){_e.blockedOn===et&&(_e.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(_e){function et(nt){return ad(nt,_e)}if(0<Kc.length){ad(Kc[0],_e);for(var tt=1;tt<Kc.length;tt++){var rt=Kc[tt];rt.blockedOn===_e&&(rt.blockedOn=null)}}for(Lc!==null&&ad(Lc,_e),Mc!==null&&ad(Mc,_e),Nc!==null&&ad(Nc,_e),Oc.forEach(et),Pc.forEach(et),tt=0;tt<Qc.length;tt++)rt=Qc[tt],rt.blockedOn===_e&&(rt.blockedOn=null);for(;0<Qc.length&&(tt=Qc[0],tt.blockedOn===null);)Vc(tt),tt.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(_e,et,tt,rt){var nt=C$1,st=cd.transition;cd.transition=null;try{C$1=1,fd(_e,et,tt,rt)}finally{C$1=nt,cd.transition=st}}function gd(_e,et,tt,rt){var nt=C$1,st=cd.transition;cd.transition=null;try{C$1=4,fd(_e,et,tt,rt)}finally{C$1=nt,cd.transition=st}}function fd(_e,et,tt,rt){if(dd){var nt=Yc(_e,et,tt,rt);if(nt===null)hd(_e,et,rt,id,tt),Sc(_e,rt);else if(Uc(nt,_e,et,tt,rt))rt.stopPropagation();else if(Sc(_e,rt),et&4&&-1<Rc.indexOf(_e)){for(;nt!==null;){var st=Cb(nt);if(st!==null&&Ec(st),st=Yc(_e,et,tt,rt),st===null&&hd(_e,et,rt,id,tt),st===nt)break;nt=st}nt!==null&&rt.stopPropagation()}else hd(_e,et,rt,null,tt)}}var id=null;function Yc(_e,et,tt,rt){if(id=null,_e=xb(rt),_e=Wc(_e),_e!==null)if(et=Vb(_e),et===null)_e=null;else if(tt=et.tag,tt===13){if(_e=Wb(et),_e!==null)return _e;_e=null}else if(tt===3){if(et.stateNode.current.memoizedState.isDehydrated)return et.tag===3?et.stateNode.containerInfo:null;_e=null}else et!==_e&&(_e=null);return id=_e,null}function jd(_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(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var _e,et=ld,tt=et.length,rt,nt="value"in kd?kd.value:kd.textContent,st=nt.length;for(_e=0;_e<tt&&et[_e]===nt[_e];_e++);var ot=tt-_e;for(rt=1;rt<=ot&&et[tt-rt]===nt[st-rt];rt++);return md=nt.slice(_e,1<rt?1-rt:void 0)}function od(_e){var et=_e.keyCode;return"charCode"in _e?(_e=_e.charCode,_e===0&&et===13&&(_e=13)):_e=et,_e===10&&(_e=13),32<=_e||_e===13?_e:0}function pd(){return!0}function qd(){return!1}function rd(_e){function et(tt,rt,nt,st,ot){this._reactName=tt,this._targetInst=nt,this.type=rt,this.nativeEvent=st,this.target=ot,this.currentTarget=null;for(var at in _e)_e.hasOwnProperty(at)&&(tt=_e[at],this[at]=tt?tt(st):st[at]);return this.isDefaultPrevented=(st.defaultPrevented!=null?st.defaultPrevented:st.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$1(et.prototype,{preventDefault:function(){this.defaultPrevented=!0;var tt=this.nativeEvent;tt&&(tt.preventDefault?tt.preventDefault():typeof tt.returnValue!="unknown"&&(tt.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var tt=this.nativeEvent;tt&&(tt.stopPropagation?tt.stopPropagation():typeof tt.cancelBubble!="unknown"&&(tt.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),et}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(_e){return _e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$1({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$1({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,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!==yd&&(yd&&_e.type==="mousemove"?(wd=_e.screenX-yd.screenX,xd=_e.screenY-yd.screenY):xd=wd=0,yd=_e),wd)},movementY:function(_e){return"movementY"in _e?_e.movementY:xd}}),Bd=rd(Ad),Cd=A$1({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$1({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$1({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$1({},sd,{clipboardData:function(_e){return"clipboardData"in _e?_e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$1({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(_e){var et=this.nativeEvent;return et.getModifierState?et.getModifierState(_e):(_e=Od[_e])?!!et[_e]:!1}function zd(){return Pd}var Qd=A$1({},ud,{key:function(_e){if(_e.key){var et=Md[_e.key]||_e.key;if(et!=="Unidentified")return et}return _e.type==="keypress"?(_e=od(_e),_e===13?"Enter":String.fromCharCode(_e)):_e.type==="keydown"||_e.type==="keyup"?Nd[_e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(_e){return _e.type==="keypress"?od(_e):0},keyCode:function(_e){return _e.type==="keydown"||_e.type==="keyup"?_e.keyCode:0},which:function(_e){return _e.type==="keypress"?od(_e):_e.type==="keydown"||_e.type==="keyup"?_e.keyCode:0}}),Rd=rd(Qd),Sd=A$1({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$1({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$1({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$1({},Ad,{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}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be$1=null;ia&&"documentMode"in document&&(be$1=document.documentMode);var ce=ia&&"TextEvent"in window&&!be$1,de$2=ia&&(!ae||be$1&&8<be$1&&11>=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(_e,et){switch(_e){case"keyup":return $d.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(_e){return _e=_e.detail,typeof _e=="object"&&"data"in _e?_e.data:null}var ie=!1;function je(_e,et){switch(_e){case"compositionend":return he$1(et);case"keypress":return et.which!==32?null:(fe$1=!0,ee$1);case"textInput":return _e=et.data,_e===ee$1&&fe$1?null:_e;default:return null}}function ke(_e,et){if(ie)return _e==="compositionend"||!ae&&ge$1(_e,et)?(_e=nd(),md=ld=kd=null,ie=!1,_e):null;switch(_e){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1<et.char.length)return et.char;if(et.which)return String.fromCharCode(et.which)}return null;case"compositionend":return de$2&&et.locale!=="ko"?null:et.data;default:return null}}var le$1={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 me(_e){var et=_e&&_e.nodeName&&_e.nodeName.toLowerCase();return et==="input"?!!le$1[_e.type]:et==="textarea"}function ne$1(_e,et,tt,rt){Eb(rt),et=oe$1(et,"onChange"),0<et.length&&(tt=new td("onChange","change",null,tt,rt),_e.push({event:tt,listeners:et}))}var pe$1=null,qe=null;function re$1(_e){se$1(_e,0)}function te(_e){var et=ue$1(_e);if(Wa(et))return _e}function ve$1(_e,et){if(_e==="change")return et}var we=!1;if(ia){var xe$1;if(ia){var ye$1="oninput"in document;if(!ye$1){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye$1=typeof ze.oninput=="function"}xe$1=ye$1}else xe$1=!1;we=xe$1&&(!document.documentMode||9<document.documentMode)}function Ae$1(){pe$1&&(pe$1.detachEvent("onpropertychange",Be),qe=pe$1=null)}function Be(_e){if(_e.propertyName==="value"&&te(qe)){var et=[];ne$1(et,qe,_e,xb(_e)),Jb(re$1,et)}}function Ce(_e,et,tt){_e==="focusin"?(Ae$1(),pe$1=et,qe=tt,pe$1.attachEvent("onpropertychange",Be)):_e==="focusout"&&Ae$1()}function De(_e){if(_e==="selectionchange"||_e==="keyup"||_e==="keydown")return te(qe)}function Ee$1(_e,et){if(_e==="click")return te(et)}function Fe(_e,et){if(_e==="input"||_e==="change")return te(et)}function Ge(_e,et){return _e===et&&(_e!==0||1/_e===1/et)||_e!==_e&&et!==et}var He=typeof Object.is=="function"?Object.is:Ge;function Ie$1(_e,et){if(He(_e,et))return!0;if(typeof _e!="object"||_e===null||typeof et!="object"||et===null)return!1;var tt=Object.keys(_e),rt=Object.keys(et);if(tt.length!==rt.length)return!1;for(rt=0;rt<tt.length;rt++){var nt=tt[rt];if(!ja.call(et,nt)||!He(_e[nt],et[nt]))return!1}return!0}function Je(_e){for(;_e&&_e.firstChild;)_e=_e.firstChild;return _e}function Ke(_e,et){var tt=Je(_e);_e=0;for(var rt;tt;){if(tt.nodeType===3){if(rt=_e+tt.textContent.length,_e<=et&&rt>=et)return{node:tt,offset:et-_e};_e=rt}e:{for(;tt;){if(tt.nextSibling){tt=tt.nextSibling;break e}tt=tt.parentNode}tt=void 0}tt=Je(tt)}}function Le(_e,et){return _e&&et?_e===et?!0:_e&&_e.nodeType===3?!1:et&&et.nodeType===3?Le(_e,et.parentNode):"contains"in _e?_e.contains(et):_e.compareDocumentPosition?!!(_e.compareDocumentPosition(et)&16):!1:!1}function Me(){for(var _e=window,et=Xa();et instanceof _e.HTMLIFrameElement;){try{var tt=typeof et.contentWindow.location.href=="string"}catch{tt=!1}if(tt)_e=et.contentWindow;else break;et=Xa(_e.document)}return et}function Ne(_e){var et=_e&&_e.nodeName&&_e.nodeName.toLowerCase();return et&&(et==="input"&&(_e.type==="text"||_e.type==="search"||_e.type==="tel"||_e.type==="url"||_e.type==="password")||et==="textarea"||_e.contentEditable==="true")}function Oe(_e){var et=Me(),tt=_e.focusedElem,rt=_e.selectionRange;if(et!==tt&&tt&&tt.ownerDocument&&Le(tt.ownerDocument.documentElement,tt)){if(rt!==null&&Ne(tt)){if(et=rt.start,_e=rt.end,_e===void 0&&(_e=et),"selectionStart"in tt)tt.selectionStart=et,tt.selectionEnd=Math.min(_e,tt.value.length);else if(_e=(et=tt.ownerDocument||document)&&et.defaultView||window,_e.getSelection){_e=_e.getSelection();var nt=tt.textContent.length,st=Math.min(rt.start,nt);rt=rt.end===void 0?st:Math.min(rt.end,nt),!_e.extend&&st>rt&&(nt=rt,rt=st,st=nt),nt=Ke(tt,st);var ot=Ke(tt,rt);nt&&ot&&(_e.rangeCount!==1||_e.anchorNode!==nt.node||_e.anchorOffset!==nt.offset||_e.focusNode!==ot.node||_e.focusOffset!==ot.offset)&&(et=et.createRange(),et.setStart(nt.node,nt.offset),_e.removeAllRanges(),st>rt?(_e.addRange(et),_e.extend(ot.node,ot.offset)):(et.setEnd(ot.node,ot.offset),_e.addRange(et)))}}for(et=[],_e=tt;_e=_e.parentNode;)_e.nodeType===1&&et.push({element:_e,left:_e.scrollLeft,top:_e.scrollTop});for(typeof tt.focus=="function"&&tt.focus(),tt=0;tt<et.length;tt++)_e=et[tt],_e.element.scrollLeft=_e.left,_e.element.scrollTop=_e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue(_e,et,tt){var rt=tt.window===tt?tt.document:tt.nodeType===9?tt:tt.ownerDocument;Te$1||Qe==null||Qe!==Xa(rt)||(rt=Qe,"selectionStart"in rt&&Ne(rt)?rt={start:rt.selectionStart,end:rt.selectionEnd}:(rt=(rt.ownerDocument&&rt.ownerDocument.defaultView||window).getSelection(),rt={anchorNode:rt.anchorNode,anchorOffset:rt.anchorOffset,focusNode:rt.focusNode,focusOffset:rt.focusOffset}),Se$1&&Ie$1(Se$1,rt)||(Se$1=rt,rt=oe$1(Re$1,"onSelect"),0<rt.length&&(et=new td("onSelect","select",null,et,tt),_e.push({event:et,listeners:rt}),et.target=Qe)))}function Ve(_e,et){var tt={};return tt[_e.toLowerCase()]=et.toLowerCase(),tt["Webkit"+_e]="webkit"+et,tt["Moz"+_e]="moz"+et,tt}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(_e){if(Xe[_e])return Xe[_e];if(!We[_e])return _e;var et=We[_e],tt;for(tt in et)if(et.hasOwnProperty(tt)&&tt in Ye)return Xe[_e]=et[tt];return _e}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="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 ff(_e,et){df.set(_e,et),fa(et,[_e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="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(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(_e,et,tt){var rt=_e.type||"unknown-event";_e.currentTarget=tt,Ub(rt,et,void 0,_e),_e.currentTarget=null}function se$1(_e,et){et=(et&4)!==0;for(var tt=0;tt<_e.length;tt++){var rt=_e[tt],nt=rt.event;rt=rt.listeners;e:{var st=void 0;if(et)for(var ot=rt.length-1;0<=ot;ot--){var at=rt[ot],ut=at.instance,lt=at.currentTarget;if(at=at.listener,ut!==st&&nt.isPropagationStopped())break e;nf(nt,at,lt),st=ut}else for(ot=0;ot<rt.length;ot++){if(at=rt[ot],ut=at.instance,lt=at.currentTarget,at=at.listener,ut!==st&&nt.isPropagationStopped())break e;nf(nt,at,lt),st=ut}}}if(Qb)throw _e=Rb,Qb=!1,Rb=null,_e}function D$1(_e,et){var tt=et[of$1];tt===void 0&&(tt=et[of$1]=new Set);var rt=_e+"__bubble";tt.has(rt)||(pf(et,_e,2,!1),tt.add(rt))}function qf(_e,et,tt){var rt=0;et&&(rt|=4),pf(tt,_e,rt,et)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(_e){if(!_e[rf]){_e[rf]=!0,da.forEach(function(tt){tt!=="selectionchange"&&(mf.has(tt)||qf(tt,!1,_e),qf(tt,!0,_e))});var et=_e.nodeType===9?_e:_e.ownerDocument;et===null||et[rf]||(et[rf]=!0,qf("selectionchange",!1,et))}}function pf(_e,et,tt,rt){switch(jd(et)){case 1:var nt=ed;break;case 4:nt=gd;break;default:nt=fd}tt=nt.bind(null,et,tt,_e),nt=void 0,!Lb||et!=="touchstart"&&et!=="touchmove"&&et!=="wheel"||(nt=!0),rt?nt!==void 0?_e.addEventListener(et,tt,{capture:!0,passive:nt}):_e.addEventListener(et,tt,!0):nt!==void 0?_e.addEventListener(et,tt,{passive:nt}):_e.addEventListener(et,tt,!1)}function hd(_e,et,tt,rt,nt){var st=rt;if(!(et&1)&&!(et&2)&&rt!==null)e:for(;;){if(rt===null)return;var ot=rt.tag;if(ot===3||ot===4){var at=rt.stateNode.containerInfo;if(at===nt||at.nodeType===8&&at.parentNode===nt)break;if(ot===4)for(ot=rt.return;ot!==null;){var ut=ot.tag;if((ut===3||ut===4)&&(ut=ot.stateNode.containerInfo,ut===nt||ut.nodeType===8&&ut.parentNode===nt))return;ot=ot.return}for(;at!==null;){if(ot=Wc(at),ot===null)return;if(ut=ot.tag,ut===5||ut===6){rt=st=ot;continue e}at=at.parentNode}}rt=rt.return}Jb(function(){var lt=st,dt=xb(tt),ct=[];e:{var ft=df.get(_e);if(ft!==void 0){var ht=td,mt=_e;switch(_e){case"keypress":if(od(tt)===0)break e;case"keydown":case"keyup":ht=Rd;break;case"focusin":mt="focus",ht=Fd;break;case"focusout":mt="blur",ht=Fd;break;case"beforeblur":case"afterblur":ht=Fd;break;case"click":if(tt.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ht=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ht=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ht=Vd;break;case $e:case af:case bf:ht=Hd;break;case cf:ht=Xd;break;case"scroll":ht=vd;break;case"wheel":ht=Zd;break;case"copy":case"cut":case"paste":ht=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ht=Td}var vt=(et&4)!==0,wt=!vt&&_e==="scroll",gt=vt?ft!==null?ft+"Capture":null:ft;vt=[];for(var yt=lt,xt;yt!==null;){xt=yt;var St=xt.stateNode;if(xt.tag===5&&St!==null&&(xt=St,gt!==null&&(St=Kb(yt,gt),St!=null&&vt.push(tf(yt,St,xt)))),wt)break;yt=yt.return}0<vt.length&&(ft=new ht(ft,mt,null,tt,dt),ct.push({event:ft,listeners:vt}))}}if(!(et&7)){e:{if(ft=_e==="mouseover"||_e==="pointerover",ht=_e==="mouseout"||_e==="pointerout",ft&&tt!==wb&&(mt=tt.relatedTarget||tt.fromElement)&&(Wc(mt)||mt[uf]))break e;if((ht||ft)&&(ft=dt.window===dt?dt:(ft=dt.ownerDocument)?ft.defaultView||ft.parentWindow:window,ht?(mt=tt.relatedTarget||tt.toElement,ht=lt,mt=mt?Wc(mt):null,mt!==null&&(wt=Vb(mt),mt!==wt||mt.tag!==5&&mt.tag!==6)&&(mt=null)):(ht=null,mt=lt),ht!==mt)){if(vt=Bd,St="onMouseLeave",gt="onMouseEnter",yt="mouse",(_e==="pointerout"||_e==="pointerover")&&(vt=Td,St="onPointerLeave",gt="onPointerEnter",yt="pointer"),wt=ht==null?ft:ue$1(ht),xt=mt==null?ft:ue$1(mt),ft=new vt(St,yt+"leave",ht,tt,dt),ft.target=wt,ft.relatedTarget=xt,St=null,Wc(dt)===lt&&(vt=new vt(gt,yt+"enter",mt,tt,dt),vt.target=xt,vt.relatedTarget=wt,St=vt),wt=St,ht&&mt)t:{for(vt=ht,gt=mt,yt=0,xt=vt;xt;xt=vf(xt))yt++;for(xt=0,St=gt;St;St=vf(St))xt++;for(;0<yt-xt;)vt=vf(vt),yt--;for(;0<xt-yt;)gt=vf(gt),xt--;for(;yt--;){if(vt===gt||gt!==null&&vt===gt.alternate)break t;vt=vf(vt),gt=vf(gt)}vt=null}else vt=null;ht!==null&&wf(ct,ft,ht,vt,!1),mt!==null&&wt!==null&&wf(ct,wt,mt,vt,!0)}}e:{if(ft=lt?ue$1(lt):window,ht=ft.nodeName&&ft.nodeName.toLowerCase(),ht==="select"||ht==="input"&&ft.type==="file")var bt=ve$1;else if(me(ft))if(we)bt=Fe;else{bt=De;var $t=Ce}else(ht=ft.nodeName)&&ht.toLowerCase()==="input"&&(ft.type==="checkbox"||ft.type==="radio")&&(bt=Ee$1);if(bt&&(bt=bt(_e,lt))){ne$1(ct,bt,tt,dt);break e}$t&&$t(_e,ft,lt),_e==="focusout"&&($t=ft._wrapperState)&&$t.controlled&&ft.type==="number"&&cb(ft,"number",ft.value)}switch($t=lt?ue$1(lt):window,_e){case"focusin":(me($t)||$t.contentEditable==="true")&&(Qe=$t,Re$1=lt,Se$1=null);break;case"focusout":Se$1=Re$1=Qe=null;break;case"mousedown":Te$1=!0;break;case"contextmenu":case"mouseup":case"dragend":Te$1=!1,Ue(ct,tt,dt);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(ct,tt,dt)}var At;if(ae)e:{switch(_e){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else ie?ge$1(_e,tt)&&(Tt="onCompositionEnd"):_e==="keydown"&&tt.keyCode===229&&(Tt="onCompositionStart");Tt&&(de$2&&tt.locale!=="ko"&&(ie||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&ie&&(At=nd()):(kd=dt,ld="value"in kd?kd.value:kd.textContent,ie=!0)),$t=oe$1(lt,Tt),0<$t.length&&(Tt=new Ld(Tt,_e,null,tt,dt),ct.push({event:Tt,listeners:$t}),At?Tt.data=At:(At=he$1(tt),At!==null&&(Tt.data=At)))),(At=ce?je(_e,tt):ke(_e,tt))&&(lt=oe$1(lt,"onBeforeInput"),0<lt.length&&(dt=new Ld("onBeforeInput","beforeinput",null,tt,dt),ct.push({event:dt,listeners:lt}),dt.data=At))}se$1(ct,et)})}function tf(_e,et,tt){return{instance:_e,listener:et,currentTarget:tt}}function oe$1(_e,et){for(var tt=et+"Capture",rt=[];_e!==null;){var nt=_e,st=nt.stateNode;nt.tag===5&&st!==null&&(nt=st,st=Kb(_e,tt),st!=null&&rt.unshift(tf(_e,st,nt)),st=Kb(_e,et),st!=null&&rt.push(tf(_e,st,nt))),_e=_e.return}return rt}function vf(_e){if(_e===null)return null;do _e=_e.return;while(_e&&_e.tag!==5);return _e||null}function wf(_e,et,tt,rt,nt){for(var st=et._reactName,ot=[];tt!==null&&tt!==rt;){var at=tt,ut=at.alternate,lt=at.stateNode;if(ut!==null&&ut===rt)break;at.tag===5&&lt!==null&&(at=lt,nt?(ut=Kb(tt,st),ut!=null&&ot.unshift(tf(tt,ut,at))):nt||(ut=Kb(tt,st),ut!=null&&ot.push(tf(tt,ut,at)))),tt=tt.return}ot.length!==0&&_e.push({event:et,listeners:ot})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(_e){return(typeof _e=="string"?_e:""+_e).replace(xf,`
38
- `).replace(yf,"")}function Af(_e,et,tt){if(et=zf(et),zf(_e)!==et&&tt)throw Error(p$3(425))}function Bf(){}var Cf=null,Df=null;function Ef(_e,et){return _e==="textarea"||_e==="noscript"||typeof et.children=="string"||typeof et.children=="number"||typeof et.dangerouslySetInnerHTML=="object"&&et.dangerouslySetInnerHTML!==null&&et.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(_e){return Hf.resolve(null).then(_e).catch(If)}:Ff;function If(_e){setTimeout(function(){throw _e})}function Kf(_e,et){var tt=et,rt=0;do{var nt=tt.nextSibling;if(_e.removeChild(tt),nt&&nt.nodeType===8)if(tt=nt.data,tt==="/$"){if(rt===0){_e.removeChild(nt),bd(et);return}rt--}else tt!=="$"&&tt!=="$?"&&tt!=="$!"||rt++;tt=nt}while(tt);bd(et)}function Lf(_e){for(;_e!=null;_e=_e.nextSibling){var et=_e.nodeType;if(et===1||et===3)break;if(et===8){if(et=_e.data,et==="$"||et==="$!"||et==="$?")break;if(et==="/$")return null}}return _e}function Mf(_e){_e=_e.previousSibling;for(var et=0;_e;){if(_e.nodeType===8){var tt=_e.data;if(tt==="$"||tt==="$!"||tt==="$?"){if(et===0)return _e;et--}else tt==="/$"&&et++}_e=_e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of$1="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(_e){var et=_e[Of];if(et)return et;for(var tt=_e.parentNode;tt;){if(et=tt[uf]||tt[Of]){if(tt=et.alternate,et.child!==null||tt!==null&&tt.child!==null)for(_e=Mf(_e);_e!==null;){if(tt=_e[Of])return tt;_e=Mf(_e)}return et}_e=tt,tt=_e.parentNode}return null}function Cb(_e){return _e=_e[Of]||_e[uf],!_e||_e.tag!==5&&_e.tag!==6&&_e.tag!==13&&_e.tag!==3?null:_e}function ue$1(_e){if(_e.tag===5||_e.tag===6)return _e.stateNode;throw Error(p$3(33))}function Db(_e){return _e[Pf]||null}var Sf=[],Tf=-1;function Uf(_e){return{current:_e}}function E(_e){0>Tf||(_e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(_e,et){Tf++,Sf[Tf]=_e.current,_e.current=et}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(_e,et){var tt=_e.type.contextTypes;if(!tt)return Vf;var rt=_e.stateNode;if(rt&&rt.__reactInternalMemoizedUnmaskedChildContext===et)return rt.__reactInternalMemoizedMaskedChildContext;var nt={},st;for(st in tt)nt[st]=et[st];return rt&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=et,_e.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf(_e){return _e=_e.childContextTypes,_e!=null}function $f(){E(Wf),E(H)}function ag(_e,et,tt){if(H.current!==Vf)throw Error(p$3(168));G$2(H,et),G$2(Wf,tt)}function bg(_e,et,tt){var rt=_e.stateNode;if(et=et.childContextTypes,typeof rt.getChildContext!="function")return tt;rt=rt.getChildContext();for(var nt in rt)if(!(nt in et))throw Error(p$3(108,Ra(_e)||"Unknown",nt));return A$1({},tt,rt)}function cg(_e){return _e=(_e=_e.stateNode)&&_e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G$2(H,_e),G$2(Wf,Wf.current),!0}function dg(_e,et,tt){var rt=_e.stateNode;if(!rt)throw Error(p$3(169));tt?(_e=bg(_e,et,Xf),rt.__reactInternalMemoizedMergedChildContext=_e,E(Wf),E(H),G$2(H,_e)):E(Wf),G$2(Wf,tt)}var eg=null,fg=!1,gg=!1;function hg(_e){eg===null?eg=[_e]:eg.push(_e)}function ig(_e){fg=!0,hg(_e)}function jg(){if(!gg&&eg!==null){gg=!0;var _e=0,et=C$1;try{var tt=eg;for(C$1=1;_e<tt.length;_e++){var rt=tt[_e];do rt=rt(!0);while(rt!==null)}eg=null,fg=!1}catch(nt){throw eg!==null&&(eg=eg.slice(_e+1)),ac(fc,jg),nt}finally{C$1=et,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(_e,et){kg[lg++]=ng,kg[lg++]=mg,mg=_e,ng=et}function ug(_e,et,tt){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=_e;var rt=rg;_e=sg;var nt=32-oc(rt)-1;rt&=~(1<<nt),tt+=1;var st=32-oc(et)+nt;if(30<st){var ot=nt-nt%5;st=(rt&(1<<ot)-1).toString(32),rt>>=ot,nt-=ot,rg=1<<32-oc(et)+nt|tt<<nt|rt,sg=st+_e}else rg=1<<st|tt<<nt|rt,sg=_e}function vg(_e){_e.return!==null&&(tg(_e,1),ug(_e,1,0))}function wg(_e){for(;_e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;_e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$2=!1,zg=null;function Ag(_e,et){var tt=Bg(5,null,null,0);tt.elementType="DELETED",tt.stateNode=et,tt.return=_e,et=_e.deletions,et===null?(_e.deletions=[tt],_e.flags|=16):et.push(tt)}function Cg(_e,et){switch(_e.tag){case 5:var tt=_e.type;return et=et.nodeType!==1||tt.toLowerCase()!==et.nodeName.toLowerCase()?null:et,et!==null?(_e.stateNode=et,xg=_e,yg=Lf(et.firstChild),!0):!1;case 6:return et=_e.pendingProps===""||et.nodeType!==3?null:et,et!==null?(_e.stateNode=et,xg=_e,yg=null,!0):!1;case 13:return et=et.nodeType!==8?null:et,et!==null?(tt=qg!==null?{id:rg,overflow:sg}:null,_e.memoizedState={dehydrated:et,treeContext:tt,retryLane:1073741824},tt=Bg(18,null,null,0),tt.stateNode=et,tt.return=_e,_e.child=tt,xg=_e,yg=null,!0):!1;default:return!1}}function Dg(_e){return(_e.mode&1)!==0&&(_e.flags&128)===0}function Eg(_e){if(I$2){var et=yg;if(et){var tt=et;if(!Cg(_e,et)){if(Dg(_e))throw Error(p$3(418));et=Lf(tt.nextSibling);var rt=xg;et&&Cg(_e,et)?Ag(rt,tt):(_e.flags=_e.flags&-4097|2,I$2=!1,xg=_e)}}else{if(Dg(_e))throw Error(p$3(418));_e.flags=_e.flags&-4097|2,I$2=!1,xg=_e}}}function Fg(_e){for(_e=_e.return;_e!==null&&_e.tag!==5&&_e.tag!==3&&_e.tag!==13;)_e=_e.return;xg=_e}function Gg(_e){if(_e!==xg)return!1;if(!I$2)return Fg(_e),I$2=!0,!1;var et;if((et=_e.tag!==3)&&!(et=_e.tag!==5)&&(et=_e.type,et=et!=="head"&&et!=="body"&&!Ef(_e.type,_e.memoizedProps)),et&&(et=yg)){if(Dg(_e))throw Hg(),Error(p$3(418));for(;et;)Ag(_e,et),et=Lf(et.nextSibling)}if(Fg(_e),_e.tag===13){if(_e=_e.memoizedState,_e=_e!==null?_e.dehydrated:null,!_e)throw Error(p$3(317));e:{for(_e=_e.nextSibling,et=0;_e;){if(_e.nodeType===8){var tt=_e.data;if(tt==="/$"){if(et===0){yg=Lf(_e.nextSibling);break e}et--}else tt!=="$"&&tt!=="$!"&&tt!=="$?"||et++}_e=_e.nextSibling}yg=null}}else yg=xg?Lf(_e.stateNode.nextSibling):null;return!0}function Hg(){for(var _e=yg;_e;)_e=Lf(_e.nextSibling)}function Ig(){yg=xg=null,I$2=!1}function Jg(_e){zg===null?zg=[_e]:zg.push(_e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(_e,et){if(_e&&_e.defaultProps){et=A$1({},et),_e=_e.defaultProps;for(var tt in _e)et[tt]===void 0&&(et[tt]=_e[tt]);return et}return et}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(_e){var et=Mg.current;E(Mg),_e._currentValue=et}function Sg(_e,et,tt){for(;_e!==null;){var rt=_e.alternate;if((_e.childLanes&et)!==et?(_e.childLanes|=et,rt!==null&&(rt.childLanes|=et)):rt!==null&&(rt.childLanes&et)!==et&&(rt.childLanes|=et),_e===tt)break;_e=_e.return}}function Tg(_e,et){Ng=_e,Pg=Og=null,_e=_e.dependencies,_e!==null&&_e.firstContext!==null&&(_e.lanes&et&&(Ug=!0),_e.firstContext=null)}function Vg(_e){var et=_e._currentValue;if(Pg!==_e)if(_e={context:_e,memoizedValue:et,next:null},Og===null){if(Ng===null)throw Error(p$3(308));Og=_e,Ng.dependencies={lanes:0,firstContext:_e}}else Og=Og.next=_e;return et}var Wg=null;function Xg(_e){Wg===null?Wg=[_e]:Wg.push(_e)}function Yg(_e,et,tt,rt){var nt=et.interleaved;return nt===null?(tt.next=tt,Xg(et)):(tt.next=nt.next,nt.next=tt),et.interleaved=tt,Zg(_e,rt)}function Zg(_e,et){_e.lanes|=et;var tt=_e.alternate;for(tt!==null&&(tt.lanes|=et),tt=_e,_e=_e.return;_e!==null;)_e.childLanes|=et,tt=_e.alternate,tt!==null&&(tt.childLanes|=et),tt=_e,_e=_e.return;return tt.tag===3?tt.stateNode:null}var $g=!1;function ah(_e){_e.updateQueue={baseState:_e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(_e,et){_e=_e.updateQueue,et.updateQueue===_e&&(et.updateQueue={baseState:_e.baseState,firstBaseUpdate:_e.firstBaseUpdate,lastBaseUpdate:_e.lastBaseUpdate,shared:_e.shared,effects:_e.effects})}function ch(_e,et){return{eventTime:_e,lane:et,tag:0,payload:null,callback:null,next:null}}function dh(_e,et,tt){var rt=_e.updateQueue;if(rt===null)return null;if(rt=rt.shared,K&2){var nt=rt.pending;return nt===null?et.next=et:(et.next=nt.next,nt.next=et),rt.pending=et,Zg(_e,tt)}return nt=rt.interleaved,nt===null?(et.next=et,Xg(rt)):(et.next=nt.next,nt.next=et),rt.interleaved=et,Zg(_e,tt)}function eh(_e,et,tt){if(et=et.updateQueue,et!==null&&(et=et.shared,(tt&4194240)!==0)){var rt=et.lanes;rt&=_e.pendingLanes,tt|=rt,et.lanes=tt,Cc(_e,tt)}}function fh(_e,et){var tt=_e.updateQueue,rt=_e.alternate;if(rt!==null&&(rt=rt.updateQueue,tt===rt)){var nt=null,st=null;if(tt=tt.firstBaseUpdate,tt!==null){do{var ot={eventTime:tt.eventTime,lane:tt.lane,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null};st===null?nt=st=ot:st=st.next=ot,tt=tt.next}while(tt!==null);st===null?nt=st=et:st=st.next=et}else nt=st=et;tt={baseState:rt.baseState,firstBaseUpdate:nt,lastBaseUpdate:st,shared:rt.shared,effects:rt.effects},_e.updateQueue=tt;return}_e=tt.lastBaseUpdate,_e===null?tt.firstBaseUpdate=et:_e.next=et,tt.lastBaseUpdate=et}function gh(_e,et,tt,rt){var nt=_e.updateQueue;$g=!1;var st=nt.firstBaseUpdate,ot=nt.lastBaseUpdate,at=nt.shared.pending;if(at!==null){nt.shared.pending=null;var ut=at,lt=ut.next;ut.next=null,ot===null?st=lt:ot.next=lt,ot=ut;var dt=_e.alternate;dt!==null&&(dt=dt.updateQueue,at=dt.lastBaseUpdate,at!==ot&&(at===null?dt.firstBaseUpdate=lt:at.next=lt,dt.lastBaseUpdate=ut))}if(st!==null){var ct=nt.baseState;ot=0,dt=lt=ut=null,at=st;do{var ft=at.lane,ht=at.eventTime;if((rt&ft)===ft){dt!==null&&(dt=dt.next={eventTime:ht,lane:0,tag:at.tag,payload:at.payload,callback:at.callback,next:null});e:{var mt=_e,vt=at;switch(ft=et,ht=tt,vt.tag){case 1:if(mt=vt.payload,typeof mt=="function"){ct=mt.call(ht,ct,ft);break e}ct=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=vt.payload,ft=typeof mt=="function"?mt.call(ht,ct,ft):mt,ft==null)break e;ct=A$1({},ct,ft);break e;case 2:$g=!0}}at.callback!==null&&at.lane!==0&&(_e.flags|=64,ft=nt.effects,ft===null?nt.effects=[at]:ft.push(at))}else ht={eventTime:ht,lane:ft,tag:at.tag,payload:at.payload,callback:at.callback,next:null},dt===null?(lt=dt=ht,ut=ct):dt=dt.next=ht,ot|=ft;if(at=at.next,at===null){if(at=nt.shared.pending,at===null)break;ft=at,at=ft.next,ft.next=null,nt.lastBaseUpdate=ft,nt.shared.pending=null}}while(1);if(dt===null&&(ut=ct),nt.baseState=ut,nt.firstBaseUpdate=lt,nt.lastBaseUpdate=dt,et=nt.shared.interleaved,et!==null){nt=et;do ot|=nt.lane,nt=nt.next;while(nt!==et)}else st===null&&(nt.shared.lanes=0);hh|=ot,_e.lanes=ot,_e.memoizedState=ct}}function ih(_e,et,tt){if(_e=et.effects,et.effects=null,_e!==null)for(et=0;et<_e.length;et++){var rt=_e[et],nt=rt.callback;if(nt!==null){if(rt.callback=null,rt=tt,typeof nt!="function")throw Error(p$3(191,nt));nt.call(rt)}}}var jh=new aa.Component().refs;function kh(_e,et,tt,rt){et=_e.memoizedState,tt=tt(rt,et),tt=tt==null?et:A$1({},et,tt),_e.memoizedState=tt,_e.lanes===0&&(_e.updateQueue.baseState=tt)}var nh={isMounted:function(_e){return(_e=_e._reactInternals)?Vb(_e)===_e:!1},enqueueSetState:function(_e,et,tt){_e=_e._reactInternals;var rt=L$1(),nt=lh(_e),st=ch(rt,nt);st.payload=et,tt!=null&&(st.callback=tt),et=dh(_e,st,nt),et!==null&&(mh(et,_e,nt,rt),eh(et,_e,nt))},enqueueReplaceState:function(_e,et,tt){_e=_e._reactInternals;var rt=L$1(),nt=lh(_e),st=ch(rt,nt);st.tag=1,st.payload=et,tt!=null&&(st.callback=tt),et=dh(_e,st,nt),et!==null&&(mh(et,_e,nt,rt),eh(et,_e,nt))},enqueueForceUpdate:function(_e,et){_e=_e._reactInternals;var tt=L$1(),rt=lh(_e),nt=ch(tt,rt);nt.tag=2,et!=null&&(nt.callback=et),et=dh(_e,nt,rt),et!==null&&(mh(et,_e,rt,tt),eh(et,_e,rt))}};function oh(_e,et,tt,rt,nt,st,ot){return _e=_e.stateNode,typeof _e.shouldComponentUpdate=="function"?_e.shouldComponentUpdate(rt,st,ot):et.prototype&&et.prototype.isPureReactComponent?!Ie$1(tt,rt)||!Ie$1(nt,st):!0}function ph(_e,et,tt){var rt=!1,nt=Vf,st=et.contextType;return typeof st=="object"&&st!==null?st=Vg(st):(nt=Zf(et)?Xf:H.current,rt=et.contextTypes,st=(rt=rt!=null)?Yf(_e,nt):Vf),et=new et(tt,st),_e.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,et.updater=nh,_e.stateNode=et,et._reactInternals=_e,rt&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=nt,_e.__reactInternalMemoizedMaskedChildContext=st),et}function qh(_e,et,tt,rt){_e=et.state,typeof et.componentWillReceiveProps=="function"&&et.componentWillReceiveProps(tt,rt),typeof et.UNSAFE_componentWillReceiveProps=="function"&&et.UNSAFE_componentWillReceiveProps(tt,rt),et.state!==_e&&nh.enqueueReplaceState(et,et.state,null)}function rh(_e,et,tt,rt){var nt=_e.stateNode;nt.props=tt,nt.state=_e.memoizedState,nt.refs=jh,ah(_e);var st=et.contextType;typeof st=="object"&&st!==null?nt.context=Vg(st):(st=Zf(et)?Xf:H.current,nt.context=Yf(_e,st)),nt.state=_e.memoizedState,st=et.getDerivedStateFromProps,typeof st=="function"&&(kh(_e,et,st,tt),nt.state=_e.memoizedState),typeof et.getDerivedStateFromProps=="function"||typeof nt.getSnapshotBeforeUpdate=="function"||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(et=nt.state,typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount(),et!==nt.state&&nh.enqueueReplaceState(nt,nt.state,null),gh(_e,tt,nt,rt),nt.state=_e.memoizedState),typeof nt.componentDidMount=="function"&&(_e.flags|=4194308)}function sh(_e,et,tt){if(_e=tt.ref,_e!==null&&typeof _e!="function"&&typeof _e!="object"){if(tt._owner){if(tt=tt._owner,tt){if(tt.tag!==1)throw Error(p$3(309));var rt=tt.stateNode}if(!rt)throw Error(p$3(147,_e));var nt=rt,st=""+_e;return et!==null&&et.ref!==null&&typeof et.ref=="function"&&et.ref._stringRef===st?et.ref:(et=function(ot){var at=nt.refs;at===jh&&(at=nt.refs={}),ot===null?delete at[st]:at[st]=ot},et._stringRef=st,et)}if(typeof _e!="string")throw Error(p$3(284));if(!tt._owner)throw Error(p$3(290,_e))}return _e}function th(_e,et){throw _e=Object.prototype.toString.call(et),Error(p$3(31,_e==="[object Object]"?"object with keys {"+Object.keys(et).join(", ")+"}":_e))}function uh(_e){var et=_e._init;return et(_e._payload)}function vh(_e){function et(gt,yt){if(_e){var xt=gt.deletions;xt===null?(gt.deletions=[yt],gt.flags|=16):xt.push(yt)}}function tt(gt,yt){if(!_e)return null;for(;yt!==null;)et(gt,yt),yt=yt.sibling;return null}function rt(gt,yt){for(gt=new Map;yt!==null;)yt.key!==null?gt.set(yt.key,yt):gt.set(yt.index,yt),yt=yt.sibling;return gt}function nt(gt,yt){return gt=wh(gt,yt),gt.index=0,gt.sibling=null,gt}function st(gt,yt,xt){return gt.index=xt,_e?(xt=gt.alternate,xt!==null?(xt=xt.index,xt<yt?(gt.flags|=2,yt):xt):(gt.flags|=2,yt)):(gt.flags|=1048576,yt)}function ot(gt){return _e&&gt.alternate===null&&(gt.flags|=2),gt}function at(gt,yt,xt,St){return yt===null||yt.tag!==6?(yt=xh(xt,gt.mode,St),yt.return=gt,yt):(yt=nt(yt,xt),yt.return=gt,yt)}function ut(gt,yt,xt,St){var bt=xt.type;return bt===ya?dt(gt,yt,xt.props.children,St,xt.key):yt!==null&&(yt.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Ha&&uh(bt)===yt.type)?(St=nt(yt,xt.props),St.ref=sh(gt,yt,xt),St.return=gt,St):(St=yh(xt.type,xt.key,xt.props,null,gt.mode,St),St.ref=sh(gt,yt,xt),St.return=gt,St)}function lt(gt,yt,xt,St){return yt===null||yt.tag!==4||yt.stateNode.containerInfo!==xt.containerInfo||yt.stateNode.implementation!==xt.implementation?(yt=zh(xt,gt.mode,St),yt.return=gt,yt):(yt=nt(yt,xt.children||[]),yt.return=gt,yt)}function dt(gt,yt,xt,St,bt){return yt===null||yt.tag!==7?(yt=Ah(xt,gt.mode,St,bt),yt.return=gt,yt):(yt=nt(yt,xt),yt.return=gt,yt)}function ct(gt,yt,xt){if(typeof yt=="string"&&yt!==""||typeof yt=="number")return yt=xh(""+yt,gt.mode,xt),yt.return=gt,yt;if(typeof yt=="object"&&yt!==null){switch(yt.$$typeof){case va:return xt=yh(yt.type,yt.key,yt.props,null,gt.mode,xt),xt.ref=sh(gt,null,yt),xt.return=gt,xt;case wa:return yt=zh(yt,gt.mode,xt),yt.return=gt,yt;case Ha:var St=yt._init;return ct(gt,St(yt._payload),xt)}if(eb(yt)||Ka(yt))return yt=Ah(yt,gt.mode,xt,null),yt.return=gt,yt;th(gt,yt)}return null}function ft(gt,yt,xt,St){var bt=yt!==null?yt.key:null;if(typeof xt=="string"&&xt!==""||typeof xt=="number")return bt!==null?null:at(gt,yt,""+xt,St);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va:return xt.key===bt?ut(gt,yt,xt,St):null;case wa:return xt.key===bt?lt(gt,yt,xt,St):null;case Ha:return bt=xt._init,ft(gt,yt,bt(xt._payload),St)}if(eb(xt)||Ka(xt))return bt!==null?null:dt(gt,yt,xt,St,null);th(gt,xt)}return null}function ht(gt,yt,xt,St,bt){if(typeof St=="string"&&St!==""||typeof St=="number")return gt=gt.get(xt)||null,at(yt,gt,""+St,bt);if(typeof St=="object"&&St!==null){switch(St.$$typeof){case va:return gt=gt.get(St.key===null?xt:St.key)||null,ut(yt,gt,St,bt);case wa:return gt=gt.get(St.key===null?xt:St.key)||null,lt(yt,gt,St,bt);case Ha:var $t=St._init;return ht(gt,yt,xt,$t(St._payload),bt)}if(eb(St)||Ka(St))return gt=gt.get(xt)||null,dt(yt,gt,St,bt,null);th(yt,St)}return null}function mt(gt,yt,xt,St){for(var bt=null,$t=null,At=yt,Tt=yt=0,It=null;At!==null&&Tt<xt.length;Tt++){At.index>Tt?(It=At,At=null):It=At.sibling;var kt=ft(gt,At,xt[Tt],St);if(kt===null){At===null&&(At=It);break}_e&&At&&kt.alternate===null&&et(gt,At),yt=st(kt,yt,Tt),$t===null?bt=kt:$t.sibling=kt,$t=kt,At=It}if(Tt===xt.length)return tt(gt,At),I$2&&tg(gt,Tt),bt;if(At===null){for(;Tt<xt.length;Tt++)At=ct(gt,xt[Tt],St),At!==null&&(yt=st(At,yt,Tt),$t===null?bt=At:$t.sibling=At,$t=At);return I$2&&tg(gt,Tt),bt}for(At=rt(gt,At);Tt<xt.length;Tt++)It=ht(At,gt,Tt,xt[Tt],St),It!==null&&(_e&&It.alternate!==null&&At.delete(It.key===null?Tt:It.key),yt=st(It,yt,Tt),$t===null?bt=It:$t.sibling=It,$t=It);return _e&&At.forEach(function(Dt){return et(gt,Dt)}),I$2&&tg(gt,Tt),bt}function vt(gt,yt,xt,St){var bt=Ka(xt);if(typeof bt!="function")throw Error(p$3(150));if(xt=bt.call(xt),xt==null)throw Error(p$3(151));for(var $t=bt=null,At=yt,Tt=yt=0,It=null,kt=xt.next();At!==null&&!kt.done;Tt++,kt=xt.next()){At.index>Tt?(It=At,At=null):It=At.sibling;var Dt=ft(gt,At,kt.value,St);if(Dt===null){At===null&&(At=It);break}_e&&At&&Dt.alternate===null&&et(gt,At),yt=st(Dt,yt,Tt),$t===null?bt=Dt:$t.sibling=Dt,$t=Dt,At=It}if(kt.done)return tt(gt,At),I$2&&tg(gt,Tt),bt;if(At===null){for(;!kt.done;Tt++,kt=xt.next())kt=ct(gt,kt.value,St),kt!==null&&(yt=st(kt,yt,Tt),$t===null?bt=kt:$t.sibling=kt,$t=kt);return I$2&&tg(gt,Tt),bt}for(At=rt(gt,At);!kt.done;Tt++,kt=xt.next())kt=ht(At,gt,Tt,kt.value,St),kt!==null&&(_e&&kt.alternate!==null&&At.delete(kt.key===null?Tt:kt.key),yt=st(kt,yt,Tt),$t===null?bt=kt:$t.sibling=kt,$t=kt);return _e&&At.forEach(function(Mt){return et(gt,Mt)}),I$2&&tg(gt,Tt),bt}function wt(gt,yt,xt,St){if(typeof xt=="object"&&xt!==null&&xt.type===ya&&xt.key===null&&(xt=xt.props.children),typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va:e:{for(var bt=xt.key,$t=yt;$t!==null;){if($t.key===bt){if(bt=xt.type,bt===ya){if($t.tag===7){tt(gt,$t.sibling),yt=nt($t,xt.props.children),yt.return=gt,gt=yt;break e}}else if($t.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Ha&&uh(bt)===$t.type){tt(gt,$t.sibling),yt=nt($t,xt.props),yt.ref=sh(gt,$t,xt),yt.return=gt,gt=yt;break e}tt(gt,$t);break}else et(gt,$t);$t=$t.sibling}xt.type===ya?(yt=Ah(xt.props.children,gt.mode,St,xt.key),yt.return=gt,gt=yt):(St=yh(xt.type,xt.key,xt.props,null,gt.mode,St),St.ref=sh(gt,yt,xt),St.return=gt,gt=St)}return ot(gt);case wa:e:{for($t=xt.key;yt!==null;){if(yt.key===$t)if(yt.tag===4&&yt.stateNode.containerInfo===xt.containerInfo&&yt.stateNode.implementation===xt.implementation){tt(gt,yt.sibling),yt=nt(yt,xt.children||[]),yt.return=gt,gt=yt;break e}else{tt(gt,yt);break}else et(gt,yt);yt=yt.sibling}yt=zh(xt,gt.mode,St),yt.return=gt,gt=yt}return ot(gt);case Ha:return $t=xt._init,wt(gt,yt,$t(xt._payload),St)}if(eb(xt))return mt(gt,yt,xt,St);if(Ka(xt))return vt(gt,yt,xt,St);th(gt,xt)}return typeof xt=="string"&&xt!==""||typeof xt=="number"?(xt=""+xt,yt!==null&&yt.tag===6?(tt(gt,yt.sibling),yt=nt(yt,xt),yt.return=gt,gt=yt):(tt(gt,yt),yt=xh(xt,gt.mode,St),yt.return=gt,gt=yt),ot(gt)):tt(gt,yt)}return wt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(_e){if(_e===Dh)throw Error(p$3(174));return _e}function Ih(_e,et){switch(G$2(Gh,et),G$2(Fh,_e),G$2(Eh,Dh),_e=et.nodeType,_e){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:_e=_e===8?et.parentNode:et,et=_e.namespaceURI||null,_e=_e.tagName,et=lb(et,_e)}E(Eh),G$2(Eh,et)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(_e){Hh(Gh.current);var et=Hh(Eh.current),tt=lb(et,_e.type);et!==tt&&(G$2(Fh,_e),G$2(Eh,tt))}function Lh(_e){Fh.current===_e&&(E(Eh),E(Fh))}var M$1=Uf(0);function Mh(_e){for(var et=_e;et!==null;){if(et.tag===13){var tt=et.memoizedState;if(tt!==null&&(tt=tt.dehydrated,tt===null||tt.data==="$?"||tt.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var _e=0;_e<Nh.length;_e++)Nh[_e]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O$2=null,P$1=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q$1(){throw Error(p$3(321))}function Wh(_e,et){if(et===null)return!1;for(var tt=0;tt<et.length&&tt<_e.length;tt++)if(!He(_e[tt],et[tt]))return!1;return!0}function Xh(_e,et,tt,rt,nt,st){if(Rh=st,N=et,et.memoizedState=null,et.updateQueue=null,et.lanes=0,Ph.current=_e===null||_e.memoizedState===null?Yh:Zh,_e=tt(rt,nt),Th){st=0;do{if(Th=!1,Uh=0,25<=st)throw Error(p$3(301));st+=1,P$1=O$2=null,et.updateQueue=null,Ph.current=$h,_e=tt(rt,nt)}while(Th)}if(Ph.current=ai,et=O$2!==null&&O$2.next!==null,Rh=0,P$1=O$2=N=null,Sh=!1,et)throw Error(p$3(300));return _e}function bi(){var _e=Uh!==0;return Uh=0,_e}function ci(){var _e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P$1===null?N.memoizedState=P$1=_e:P$1=P$1.next=_e,P$1}function di(){if(O$2===null){var _e=N.alternate;_e=_e!==null?_e.memoizedState:null}else _e=O$2.next;var et=P$1===null?N.memoizedState:P$1.next;if(et!==null)P$1=et,O$2=_e;else{if(_e===null)throw Error(p$3(310));O$2=_e,_e={memoizedState:O$2.memoizedState,baseState:O$2.baseState,baseQueue:O$2.baseQueue,queue:O$2.queue,next:null},P$1===null?N.memoizedState=P$1=_e:P$1=P$1.next=_e}return P$1}function ei(_e,et){return typeof et=="function"?et(_e):et}function fi(_e){var et=di(),tt=et.queue;if(tt===null)throw Error(p$3(311));tt.lastRenderedReducer=_e;var rt=O$2,nt=rt.baseQueue,st=tt.pending;if(st!==null){if(nt!==null){var ot=nt.next;nt.next=st.next,st.next=ot}rt.baseQueue=nt=st,tt.pending=null}if(nt!==null){st=nt.next,rt=rt.baseState;var at=ot=null,ut=null,lt=st;do{var dt=lt.lane;if((Rh&dt)===dt)ut!==null&&(ut=ut.next={lane:0,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null}),rt=lt.hasEagerState?lt.eagerState:_e(rt,lt.action);else{var ct={lane:dt,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null};ut===null?(at=ut=ct,ot=rt):ut=ut.next=ct,N.lanes|=dt,hh|=dt}lt=lt.next}while(lt!==null&&lt!==st);ut===null?ot=rt:ut.next=at,He(rt,et.memoizedState)||(Ug=!0),et.memoizedState=rt,et.baseState=ot,et.baseQueue=ut,tt.lastRenderedState=rt}if(_e=tt.interleaved,_e!==null){nt=_e;do st=nt.lane,N.lanes|=st,hh|=st,nt=nt.next;while(nt!==_e)}else nt===null&&(tt.lanes=0);return[et.memoizedState,tt.dispatch]}function gi(_e){var et=di(),tt=et.queue;if(tt===null)throw Error(p$3(311));tt.lastRenderedReducer=_e;var rt=tt.dispatch,nt=tt.pending,st=et.memoizedState;if(nt!==null){tt.pending=null;var ot=nt=nt.next;do st=_e(st,ot.action),ot=ot.next;while(ot!==nt);He(st,et.memoizedState)||(Ug=!0),et.memoizedState=st,et.baseQueue===null&&(et.baseState=st),tt.lastRenderedState=st}return[st,rt]}function hi(){}function ii(_e,et){var tt=N,rt=di(),nt=et(),st=!He(rt.memoizedState,nt);if(st&&(rt.memoizedState=nt,Ug=!0),rt=rt.queue,ji(ki.bind(null,tt,rt,_e),[_e]),rt.getSnapshot!==et||st||P$1!==null&&P$1.memoizedState.tag&1){if(tt.flags|=2048,li(9,mi.bind(null,tt,rt,nt,et),void 0,null),R===null)throw Error(p$3(349));Rh&30||ni(tt,et,nt)}return nt}function ni(_e,et,tt){_e.flags|=16384,_e={getSnapshot:et,value:tt},et=N.updateQueue,et===null?(et={lastEffect:null,stores:null},N.updateQueue=et,et.stores=[_e]):(tt=et.stores,tt===null?et.stores=[_e]:tt.push(_e))}function mi(_e,et,tt,rt){et.value=tt,et.getSnapshot=rt,oi(et)&&pi(_e)}function ki(_e,et,tt){return tt(function(){oi(et)&&pi(_e)})}function oi(_e){var et=_e.getSnapshot;_e=_e.value;try{var tt=et();return!He(_e,tt)}catch{return!0}}function pi(_e){var et=Zg(_e,1);et!==null&&mh(et,_e,1,-1)}function qi(_e){var et=ci();return typeof _e=="function"&&(_e=_e()),et.memoizedState=et.baseState=_e,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:_e},et.queue=_e,_e=_e.dispatch=ri.bind(null,N,_e),[et.memoizedState,_e]}function li(_e,et,tt,rt){return _e={tag:_e,create:et,destroy:tt,deps:rt,next:null},et=N.updateQueue,et===null?(et={lastEffect:null,stores:null},N.updateQueue=et,et.lastEffect=_e.next=_e):(tt=et.lastEffect,tt===null?et.lastEffect=_e.next=_e:(rt=tt.next,tt.next=_e,_e.next=rt,et.lastEffect=_e)),_e}function si(){return di().memoizedState}function ti(_e,et,tt,rt){var nt=ci();N.flags|=_e,nt.memoizedState=li(1|et,tt,void 0,rt===void 0?null:rt)}function ui(_e,et,tt,rt){var nt=di();rt=rt===void 0?null:rt;var st=void 0;if(O$2!==null){var ot=O$2.memoizedState;if(st=ot.destroy,rt!==null&&Wh(rt,ot.deps)){nt.memoizedState=li(et,tt,st,rt);return}}N.flags|=_e,nt.memoizedState=li(1|et,tt,st,rt)}function vi(_e,et){return ti(8390656,8,_e,et)}function ji(_e,et){return ui(2048,8,_e,et)}function wi(_e,et){return ui(4,2,_e,et)}function xi(_e,et){return ui(4,4,_e,et)}function yi(_e,et){if(typeof et=="function")return _e=_e(),et(_e),function(){et(null)};if(et!=null)return _e=_e(),et.current=_e,function(){et.current=null}}function zi(_e,et,tt){return tt=tt!=null?tt.concat([_e]):null,ui(4,4,yi.bind(null,et,_e),tt)}function Ai(){}function Bi(_e,et){var tt=di();et=et===void 0?null:et;var rt=tt.memoizedState;return rt!==null&&et!==null&&Wh(et,rt[1])?rt[0]:(tt.memoizedState=[_e,et],_e)}function Ci(_e,et){var tt=di();et=et===void 0?null:et;var rt=tt.memoizedState;return rt!==null&&et!==null&&Wh(et,rt[1])?rt[0]:(_e=_e(),tt.memoizedState=[_e,et],_e)}function Di(_e,et,tt){return Rh&21?(He(tt,et)||(tt=yc(),N.lanes|=tt,hh|=tt,_e.baseState=!0),et):(_e.baseState&&(_e.baseState=!1,Ug=!0),_e.memoizedState=tt)}function Ei(_e,et){var tt=C$1;C$1=tt!==0&&4>tt?tt:4,_e(!0);var rt=Qh.transition;Qh.transition={};try{_e(!1),et()}finally{C$1=tt,Qh.transition=rt}}function Fi(){return di().memoizedState}function Gi(_e,et,tt){var rt=lh(_e);if(tt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null},Hi(_e))Ii(et,tt);else if(tt=Yg(_e,et,tt,rt),tt!==null){var nt=L$1();mh(tt,_e,rt,nt),Ji(tt,et,rt)}}function ri(_e,et,tt){var rt=lh(_e),nt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null};if(Hi(_e))Ii(et,nt);else{var st=_e.alternate;if(_e.lanes===0&&(st===null||st.lanes===0)&&(st=et.lastRenderedReducer,st!==null))try{var ot=et.lastRenderedState,at=st(ot,tt);if(nt.hasEagerState=!0,nt.eagerState=at,He(at,ot)){var ut=et.interleaved;ut===null?(nt.next=nt,Xg(et)):(nt.next=ut.next,ut.next=nt),et.interleaved=nt;return}}catch{}finally{}tt=Yg(_e,et,nt,rt),tt!==null&&(nt=L$1(),mh(tt,_e,rt,nt),Ji(tt,et,rt))}}function Hi(_e){var et=_e.alternate;return _e===N||et!==null&&et===N}function Ii(_e,et){Th=Sh=!0;var tt=_e.pending;tt===null?et.next=et:(et.next=tt.next,tt.next=et),_e.pending=et}function Ji(_e,et,tt){if(tt&4194240){var rt=et.lanes;rt&=_e.pendingLanes,tt|=rt,et.lanes=tt,Cc(_e,tt)}}var ai={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(_e,et){return ci().memoizedState=[_e,et===void 0?null:et],_e},useContext:Vg,useEffect:vi,useImperativeHandle:function(_e,et,tt){return tt=tt!=null?tt.concat([_e]):null,ti(4194308,4,yi.bind(null,et,_e),tt)},useLayoutEffect:function(_e,et){return ti(4194308,4,_e,et)},useInsertionEffect:function(_e,et){return ti(4,2,_e,et)},useMemo:function(_e,et){var tt=ci();return et=et===void 0?null:et,_e=_e(),tt.memoizedState=[_e,et],_e},useReducer:function(_e,et,tt){var rt=ci();return et=tt!==void 0?tt(et):et,rt.memoizedState=rt.baseState=et,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_e,lastRenderedState:et},rt.queue=_e,_e=_e.dispatch=Gi.bind(null,N,_e),[rt.memoizedState,_e]},useRef:function(_e){var et=ci();return _e={current:_e},et.memoizedState=_e},useState:qi,useDebugValue:Ai,useDeferredValue:function(_e){return ci().memoizedState=_e},useTransition:function(){var _e=qi(!1),et=_e[0];return _e=Ei.bind(null,_e[1]),ci().memoizedState=_e,[et,_e]},useMutableSource:function(){},useSyncExternalStore:function(_e,et,tt){var rt=N,nt=ci();if(I$2){if(tt===void 0)throw Error(p$3(407));tt=tt()}else{if(tt=et(),R===null)throw Error(p$3(349));Rh&30||ni(rt,et,tt)}nt.memoizedState=tt;var st={value:tt,getSnapshot:et};return nt.queue=st,vi(ki.bind(null,rt,st,_e),[_e]),rt.flags|=2048,li(9,mi.bind(null,rt,st,tt,et),void 0,null),tt},useId:function(){var _e=ci(),et=R.identifierPrefix;if(I$2){var tt=sg,rt=rg;tt=(rt&~(1<<32-oc(rt)-1)).toString(32)+tt,et=":"+et+"R"+tt,tt=Uh++,0<tt&&(et+="H"+tt.toString(32)),et+=":"}else tt=Vh++,et=":"+et+"r"+tt.toString(32)+":";return _e.memoizedState=et},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(_e){var et=di();return Di(et,O$2.memoizedState,_e)},useTransition:function(){var _e=fi(ei)[0],et=di().memoizedState;return[_e,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(_e){var et=di();return O$2===null?et.memoizedState=_e:Di(et,O$2.memoizedState,_e)},useTransition:function(){var _e=gi(ei)[0],et=di().memoizedState;return[_e,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(_e,et){try{var tt="",rt=et;do tt+=Pa(rt),rt=rt.return;while(rt);var nt=tt}catch(st){nt=`
38
+ `).replace(yf,"")}function Af(_e,et,tt){if(et=zf(et),zf(_e)!==et&&tt)throw Error(p$3(425))}function Bf(){}var Cf=null,Df=null;function Ef(_e,et){return _e==="textarea"||_e==="noscript"||typeof et.children=="string"||typeof et.children=="number"||typeof et.dangerouslySetInnerHTML=="object"&&et.dangerouslySetInnerHTML!==null&&et.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(_e){return Hf.resolve(null).then(_e).catch(If)}:Ff;function If(_e){setTimeout(function(){throw _e})}function Kf(_e,et){var tt=et,rt=0;do{var nt=tt.nextSibling;if(_e.removeChild(tt),nt&&nt.nodeType===8)if(tt=nt.data,tt==="/$"){if(rt===0){_e.removeChild(nt),bd(et);return}rt--}else tt!=="$"&&tt!=="$?"&&tt!=="$!"||rt++;tt=nt}while(tt);bd(et)}function Lf(_e){for(;_e!=null;_e=_e.nextSibling){var et=_e.nodeType;if(et===1||et===3)break;if(et===8){if(et=_e.data,et==="$"||et==="$!"||et==="$?")break;if(et==="/$")return null}}return _e}function Mf(_e){_e=_e.previousSibling;for(var et=0;_e;){if(_e.nodeType===8){var tt=_e.data;if(tt==="$"||tt==="$!"||tt==="$?"){if(et===0)return _e;et--}else tt==="/$"&&et++}_e=_e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of$1="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(_e){var et=_e[Of];if(et)return et;for(var tt=_e.parentNode;tt;){if(et=tt[uf]||tt[Of]){if(tt=et.alternate,et.child!==null||tt!==null&&tt.child!==null)for(_e=Mf(_e);_e!==null;){if(tt=_e[Of])return tt;_e=Mf(_e)}return et}_e=tt,tt=_e.parentNode}return null}function Cb(_e){return _e=_e[Of]||_e[uf],!_e||_e.tag!==5&&_e.tag!==6&&_e.tag!==13&&_e.tag!==3?null:_e}function ue$1(_e){if(_e.tag===5||_e.tag===6)return _e.stateNode;throw Error(p$3(33))}function Db(_e){return _e[Pf]||null}var Sf=[],Tf=-1;function Uf(_e){return{current:_e}}function E(_e){0>Tf||(_e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(_e,et){Tf++,Sf[Tf]=_e.current,_e.current=et}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(_e,et){var tt=_e.type.contextTypes;if(!tt)return Vf;var rt=_e.stateNode;if(rt&&rt.__reactInternalMemoizedUnmaskedChildContext===et)return rt.__reactInternalMemoizedMaskedChildContext;var nt={},st;for(st in tt)nt[st]=et[st];return rt&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=et,_e.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf(_e){return _e=_e.childContextTypes,_e!=null}function $f(){E(Wf),E(H)}function ag(_e,et,tt){if(H.current!==Vf)throw Error(p$3(168));G$2(H,et),G$2(Wf,tt)}function bg(_e,et,tt){var rt=_e.stateNode;if(et=et.childContextTypes,typeof rt.getChildContext!="function")return tt;rt=rt.getChildContext();for(var nt in rt)if(!(nt in et))throw Error(p$3(108,Ra(_e)||"Unknown",nt));return A$1({},tt,rt)}function cg(_e){return _e=(_e=_e.stateNode)&&_e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G$2(H,_e),G$2(Wf,Wf.current),!0}function dg(_e,et,tt){var rt=_e.stateNode;if(!rt)throw Error(p$3(169));tt?(_e=bg(_e,et,Xf),rt.__reactInternalMemoizedMergedChildContext=_e,E(Wf),E(H),G$2(H,_e)):E(Wf),G$2(Wf,tt)}var eg=null,fg=!1,gg=!1;function hg(_e){eg===null?eg=[_e]:eg.push(_e)}function ig(_e){fg=!0,hg(_e)}function jg(){if(!gg&&eg!==null){gg=!0;var _e=0,et=C$1;try{var tt=eg;for(C$1=1;_e<tt.length;_e++){var rt=tt[_e];do rt=rt(!0);while(rt!==null)}eg=null,fg=!1}catch(nt){throw eg!==null&&(eg=eg.slice(_e+1)),ac(fc,jg),nt}finally{C$1=et,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(_e,et){kg[lg++]=ng,kg[lg++]=mg,mg=_e,ng=et}function ug(_e,et,tt){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=_e;var rt=rg;_e=sg;var nt=32-oc(rt)-1;rt&=~(1<<nt),tt+=1;var st=32-oc(et)+nt;if(30<st){var ot=nt-nt%5;st=(rt&(1<<ot)-1).toString(32),rt>>=ot,nt-=ot,rg=1<<32-oc(et)+nt|tt<<nt|rt,sg=st+_e}else rg=1<<st|tt<<nt|rt,sg=_e}function vg(_e){_e.return!==null&&(tg(_e,1),ug(_e,1,0))}function wg(_e){for(;_e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;_e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$3=!1,zg=null;function Ag(_e,et){var tt=Bg(5,null,null,0);tt.elementType="DELETED",tt.stateNode=et,tt.return=_e,et=_e.deletions,et===null?(_e.deletions=[tt],_e.flags|=16):et.push(tt)}function Cg(_e,et){switch(_e.tag){case 5:var tt=_e.type;return et=et.nodeType!==1||tt.toLowerCase()!==et.nodeName.toLowerCase()?null:et,et!==null?(_e.stateNode=et,xg=_e,yg=Lf(et.firstChild),!0):!1;case 6:return et=_e.pendingProps===""||et.nodeType!==3?null:et,et!==null?(_e.stateNode=et,xg=_e,yg=null,!0):!1;case 13:return et=et.nodeType!==8?null:et,et!==null?(tt=qg!==null?{id:rg,overflow:sg}:null,_e.memoizedState={dehydrated:et,treeContext:tt,retryLane:1073741824},tt=Bg(18,null,null,0),tt.stateNode=et,tt.return=_e,_e.child=tt,xg=_e,yg=null,!0):!1;default:return!1}}function Dg(_e){return(_e.mode&1)!==0&&(_e.flags&128)===0}function Eg(_e){if(I$3){var et=yg;if(et){var tt=et;if(!Cg(_e,et)){if(Dg(_e))throw Error(p$3(418));et=Lf(tt.nextSibling);var rt=xg;et&&Cg(_e,et)?Ag(rt,tt):(_e.flags=_e.flags&-4097|2,I$3=!1,xg=_e)}}else{if(Dg(_e))throw Error(p$3(418));_e.flags=_e.flags&-4097|2,I$3=!1,xg=_e}}}function Fg(_e){for(_e=_e.return;_e!==null&&_e.tag!==5&&_e.tag!==3&&_e.tag!==13;)_e=_e.return;xg=_e}function Gg(_e){if(_e!==xg)return!1;if(!I$3)return Fg(_e),I$3=!0,!1;var et;if((et=_e.tag!==3)&&!(et=_e.tag!==5)&&(et=_e.type,et=et!=="head"&&et!=="body"&&!Ef(_e.type,_e.memoizedProps)),et&&(et=yg)){if(Dg(_e))throw Hg(),Error(p$3(418));for(;et;)Ag(_e,et),et=Lf(et.nextSibling)}if(Fg(_e),_e.tag===13){if(_e=_e.memoizedState,_e=_e!==null?_e.dehydrated:null,!_e)throw Error(p$3(317));e:{for(_e=_e.nextSibling,et=0;_e;){if(_e.nodeType===8){var tt=_e.data;if(tt==="/$"){if(et===0){yg=Lf(_e.nextSibling);break e}et--}else tt!=="$"&&tt!=="$!"&&tt!=="$?"||et++}_e=_e.nextSibling}yg=null}}else yg=xg?Lf(_e.stateNode.nextSibling):null;return!0}function Hg(){for(var _e=yg;_e;)_e=Lf(_e.nextSibling)}function Ig(){yg=xg=null,I$3=!1}function Jg(_e){zg===null?zg=[_e]:zg.push(_e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(_e,et){if(_e&&_e.defaultProps){et=A$1({},et),_e=_e.defaultProps;for(var tt in _e)et[tt]===void 0&&(et[tt]=_e[tt]);return et}return et}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(_e){var et=Mg.current;E(Mg),_e._currentValue=et}function Sg(_e,et,tt){for(;_e!==null;){var rt=_e.alternate;if((_e.childLanes&et)!==et?(_e.childLanes|=et,rt!==null&&(rt.childLanes|=et)):rt!==null&&(rt.childLanes&et)!==et&&(rt.childLanes|=et),_e===tt)break;_e=_e.return}}function Tg(_e,et){Ng=_e,Pg=Og=null,_e=_e.dependencies,_e!==null&&_e.firstContext!==null&&(_e.lanes&et&&(Ug=!0),_e.firstContext=null)}function Vg(_e){var et=_e._currentValue;if(Pg!==_e)if(_e={context:_e,memoizedValue:et,next:null},Og===null){if(Ng===null)throw Error(p$3(308));Og=_e,Ng.dependencies={lanes:0,firstContext:_e}}else Og=Og.next=_e;return et}var Wg=null;function Xg(_e){Wg===null?Wg=[_e]:Wg.push(_e)}function Yg(_e,et,tt,rt){var nt=et.interleaved;return nt===null?(tt.next=tt,Xg(et)):(tt.next=nt.next,nt.next=tt),et.interleaved=tt,Zg(_e,rt)}function Zg(_e,et){_e.lanes|=et;var tt=_e.alternate;for(tt!==null&&(tt.lanes|=et),tt=_e,_e=_e.return;_e!==null;)_e.childLanes|=et,tt=_e.alternate,tt!==null&&(tt.childLanes|=et),tt=_e,_e=_e.return;return tt.tag===3?tt.stateNode:null}var $g=!1;function ah(_e){_e.updateQueue={baseState:_e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(_e,et){_e=_e.updateQueue,et.updateQueue===_e&&(et.updateQueue={baseState:_e.baseState,firstBaseUpdate:_e.firstBaseUpdate,lastBaseUpdate:_e.lastBaseUpdate,shared:_e.shared,effects:_e.effects})}function ch(_e,et){return{eventTime:_e,lane:et,tag:0,payload:null,callback:null,next:null}}function dh(_e,et,tt){var rt=_e.updateQueue;if(rt===null)return null;if(rt=rt.shared,K&2){var nt=rt.pending;return nt===null?et.next=et:(et.next=nt.next,nt.next=et),rt.pending=et,Zg(_e,tt)}return nt=rt.interleaved,nt===null?(et.next=et,Xg(rt)):(et.next=nt.next,nt.next=et),rt.interleaved=et,Zg(_e,tt)}function eh(_e,et,tt){if(et=et.updateQueue,et!==null&&(et=et.shared,(tt&4194240)!==0)){var rt=et.lanes;rt&=_e.pendingLanes,tt|=rt,et.lanes=tt,Cc(_e,tt)}}function fh(_e,et){var tt=_e.updateQueue,rt=_e.alternate;if(rt!==null&&(rt=rt.updateQueue,tt===rt)){var nt=null,st=null;if(tt=tt.firstBaseUpdate,tt!==null){do{var ot={eventTime:tt.eventTime,lane:tt.lane,tag:tt.tag,payload:tt.payload,callback:tt.callback,next:null};st===null?nt=st=ot:st=st.next=ot,tt=tt.next}while(tt!==null);st===null?nt=st=et:st=st.next=et}else nt=st=et;tt={baseState:rt.baseState,firstBaseUpdate:nt,lastBaseUpdate:st,shared:rt.shared,effects:rt.effects},_e.updateQueue=tt;return}_e=tt.lastBaseUpdate,_e===null?tt.firstBaseUpdate=et:_e.next=et,tt.lastBaseUpdate=et}function gh(_e,et,tt,rt){var nt=_e.updateQueue;$g=!1;var st=nt.firstBaseUpdate,ot=nt.lastBaseUpdate,at=nt.shared.pending;if(at!==null){nt.shared.pending=null;var ut=at,lt=ut.next;ut.next=null,ot===null?st=lt:ot.next=lt,ot=ut;var dt=_e.alternate;dt!==null&&(dt=dt.updateQueue,at=dt.lastBaseUpdate,at!==ot&&(at===null?dt.firstBaseUpdate=lt:at.next=lt,dt.lastBaseUpdate=ut))}if(st!==null){var ct=nt.baseState;ot=0,dt=lt=ut=null,at=st;do{var ft=at.lane,ht=at.eventTime;if((rt&ft)===ft){dt!==null&&(dt=dt.next={eventTime:ht,lane:0,tag:at.tag,payload:at.payload,callback:at.callback,next:null});e:{var mt=_e,vt=at;switch(ft=et,ht=tt,vt.tag){case 1:if(mt=vt.payload,typeof mt=="function"){ct=mt.call(ht,ct,ft);break e}ct=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=vt.payload,ft=typeof mt=="function"?mt.call(ht,ct,ft):mt,ft==null)break e;ct=A$1({},ct,ft);break e;case 2:$g=!0}}at.callback!==null&&at.lane!==0&&(_e.flags|=64,ft=nt.effects,ft===null?nt.effects=[at]:ft.push(at))}else ht={eventTime:ht,lane:ft,tag:at.tag,payload:at.payload,callback:at.callback,next:null},dt===null?(lt=dt=ht,ut=ct):dt=dt.next=ht,ot|=ft;if(at=at.next,at===null){if(at=nt.shared.pending,at===null)break;ft=at,at=ft.next,ft.next=null,nt.lastBaseUpdate=ft,nt.shared.pending=null}}while(1);if(dt===null&&(ut=ct),nt.baseState=ut,nt.firstBaseUpdate=lt,nt.lastBaseUpdate=dt,et=nt.shared.interleaved,et!==null){nt=et;do ot|=nt.lane,nt=nt.next;while(nt!==et)}else st===null&&(nt.shared.lanes=0);hh|=ot,_e.lanes=ot,_e.memoizedState=ct}}function ih(_e,et,tt){if(_e=et.effects,et.effects=null,_e!==null)for(et=0;et<_e.length;et++){var rt=_e[et],nt=rt.callback;if(nt!==null){if(rt.callback=null,rt=tt,typeof nt!="function")throw Error(p$3(191,nt));nt.call(rt)}}}var jh=new aa.Component().refs;function kh(_e,et,tt,rt){et=_e.memoizedState,tt=tt(rt,et),tt=tt==null?et:A$1({},et,tt),_e.memoizedState=tt,_e.lanes===0&&(_e.updateQueue.baseState=tt)}var nh={isMounted:function(_e){return(_e=_e._reactInternals)?Vb(_e)===_e:!1},enqueueSetState:function(_e,et,tt){_e=_e._reactInternals;var rt=L$1(),nt=lh(_e),st=ch(rt,nt);st.payload=et,tt!=null&&(st.callback=tt),et=dh(_e,st,nt),et!==null&&(mh(et,_e,nt,rt),eh(et,_e,nt))},enqueueReplaceState:function(_e,et,tt){_e=_e._reactInternals;var rt=L$1(),nt=lh(_e),st=ch(rt,nt);st.tag=1,st.payload=et,tt!=null&&(st.callback=tt),et=dh(_e,st,nt),et!==null&&(mh(et,_e,nt,rt),eh(et,_e,nt))},enqueueForceUpdate:function(_e,et){_e=_e._reactInternals;var tt=L$1(),rt=lh(_e),nt=ch(tt,rt);nt.tag=2,et!=null&&(nt.callback=et),et=dh(_e,nt,rt),et!==null&&(mh(et,_e,rt,tt),eh(et,_e,rt))}};function oh(_e,et,tt,rt,nt,st,ot){return _e=_e.stateNode,typeof _e.shouldComponentUpdate=="function"?_e.shouldComponentUpdate(rt,st,ot):et.prototype&&et.prototype.isPureReactComponent?!Ie$1(tt,rt)||!Ie$1(nt,st):!0}function ph(_e,et,tt){var rt=!1,nt=Vf,st=et.contextType;return typeof st=="object"&&st!==null?st=Vg(st):(nt=Zf(et)?Xf:H.current,rt=et.contextTypes,st=(rt=rt!=null)?Yf(_e,nt):Vf),et=new et(tt,st),_e.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,et.updater=nh,_e.stateNode=et,et._reactInternals=_e,rt&&(_e=_e.stateNode,_e.__reactInternalMemoizedUnmaskedChildContext=nt,_e.__reactInternalMemoizedMaskedChildContext=st),et}function qh(_e,et,tt,rt){_e=et.state,typeof et.componentWillReceiveProps=="function"&&et.componentWillReceiveProps(tt,rt),typeof et.UNSAFE_componentWillReceiveProps=="function"&&et.UNSAFE_componentWillReceiveProps(tt,rt),et.state!==_e&&nh.enqueueReplaceState(et,et.state,null)}function rh(_e,et,tt,rt){var nt=_e.stateNode;nt.props=tt,nt.state=_e.memoizedState,nt.refs=jh,ah(_e);var st=et.contextType;typeof st=="object"&&st!==null?nt.context=Vg(st):(st=Zf(et)?Xf:H.current,nt.context=Yf(_e,st)),nt.state=_e.memoizedState,st=et.getDerivedStateFromProps,typeof st=="function"&&(kh(_e,et,st,tt),nt.state=_e.memoizedState),typeof et.getDerivedStateFromProps=="function"||typeof nt.getSnapshotBeforeUpdate=="function"||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(et=nt.state,typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount(),et!==nt.state&&nh.enqueueReplaceState(nt,nt.state,null),gh(_e,tt,nt,rt),nt.state=_e.memoizedState),typeof nt.componentDidMount=="function"&&(_e.flags|=4194308)}function sh(_e,et,tt){if(_e=tt.ref,_e!==null&&typeof _e!="function"&&typeof _e!="object"){if(tt._owner){if(tt=tt._owner,tt){if(tt.tag!==1)throw Error(p$3(309));var rt=tt.stateNode}if(!rt)throw Error(p$3(147,_e));var nt=rt,st=""+_e;return et!==null&&et.ref!==null&&typeof et.ref=="function"&&et.ref._stringRef===st?et.ref:(et=function(ot){var at=nt.refs;at===jh&&(at=nt.refs={}),ot===null?delete at[st]:at[st]=ot},et._stringRef=st,et)}if(typeof _e!="string")throw Error(p$3(284));if(!tt._owner)throw Error(p$3(290,_e))}return _e}function th(_e,et){throw _e=Object.prototype.toString.call(et),Error(p$3(31,_e==="[object Object]"?"object with keys {"+Object.keys(et).join(", ")+"}":_e))}function uh(_e){var et=_e._init;return et(_e._payload)}function vh(_e){function et(gt,yt){if(_e){var xt=gt.deletions;xt===null?(gt.deletions=[yt],gt.flags|=16):xt.push(yt)}}function tt(gt,yt){if(!_e)return null;for(;yt!==null;)et(gt,yt),yt=yt.sibling;return null}function rt(gt,yt){for(gt=new Map;yt!==null;)yt.key!==null?gt.set(yt.key,yt):gt.set(yt.index,yt),yt=yt.sibling;return gt}function nt(gt,yt){return gt=wh(gt,yt),gt.index=0,gt.sibling=null,gt}function st(gt,yt,xt){return gt.index=xt,_e?(xt=gt.alternate,xt!==null?(xt=xt.index,xt<yt?(gt.flags|=2,yt):xt):(gt.flags|=2,yt)):(gt.flags|=1048576,yt)}function ot(gt){return _e&&gt.alternate===null&&(gt.flags|=2),gt}function at(gt,yt,xt,St){return yt===null||yt.tag!==6?(yt=xh(xt,gt.mode,St),yt.return=gt,yt):(yt=nt(yt,xt),yt.return=gt,yt)}function ut(gt,yt,xt,St){var bt=xt.type;return bt===ya?dt(gt,yt,xt.props.children,St,xt.key):yt!==null&&(yt.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Ha&&uh(bt)===yt.type)?(St=nt(yt,xt.props),St.ref=sh(gt,yt,xt),St.return=gt,St):(St=yh(xt.type,xt.key,xt.props,null,gt.mode,St),St.ref=sh(gt,yt,xt),St.return=gt,St)}function lt(gt,yt,xt,St){return yt===null||yt.tag!==4||yt.stateNode.containerInfo!==xt.containerInfo||yt.stateNode.implementation!==xt.implementation?(yt=zh(xt,gt.mode,St),yt.return=gt,yt):(yt=nt(yt,xt.children||[]),yt.return=gt,yt)}function dt(gt,yt,xt,St,bt){return yt===null||yt.tag!==7?(yt=Ah(xt,gt.mode,St,bt),yt.return=gt,yt):(yt=nt(yt,xt),yt.return=gt,yt)}function ct(gt,yt,xt){if(typeof yt=="string"&&yt!==""||typeof yt=="number")return yt=xh(""+yt,gt.mode,xt),yt.return=gt,yt;if(typeof yt=="object"&&yt!==null){switch(yt.$$typeof){case va:return xt=yh(yt.type,yt.key,yt.props,null,gt.mode,xt),xt.ref=sh(gt,null,yt),xt.return=gt,xt;case wa:return yt=zh(yt,gt.mode,xt),yt.return=gt,yt;case Ha:var St=yt._init;return ct(gt,St(yt._payload),xt)}if(eb(yt)||Ka(yt))return yt=Ah(yt,gt.mode,xt,null),yt.return=gt,yt;th(gt,yt)}return null}function ft(gt,yt,xt,St){var bt=yt!==null?yt.key:null;if(typeof xt=="string"&&xt!==""||typeof xt=="number")return bt!==null?null:at(gt,yt,""+xt,St);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va:return xt.key===bt?ut(gt,yt,xt,St):null;case wa:return xt.key===bt?lt(gt,yt,xt,St):null;case Ha:return bt=xt._init,ft(gt,yt,bt(xt._payload),St)}if(eb(xt)||Ka(xt))return bt!==null?null:dt(gt,yt,xt,St,null);th(gt,xt)}return null}function ht(gt,yt,xt,St,bt){if(typeof St=="string"&&St!==""||typeof St=="number")return gt=gt.get(xt)||null,at(yt,gt,""+St,bt);if(typeof St=="object"&&St!==null){switch(St.$$typeof){case va:return gt=gt.get(St.key===null?xt:St.key)||null,ut(yt,gt,St,bt);case wa:return gt=gt.get(St.key===null?xt:St.key)||null,lt(yt,gt,St,bt);case Ha:var $t=St._init;return ht(gt,yt,xt,$t(St._payload),bt)}if(eb(St)||Ka(St))return gt=gt.get(xt)||null,dt(yt,gt,St,bt,null);th(yt,St)}return null}function mt(gt,yt,xt,St){for(var bt=null,$t=null,At=yt,Tt=yt=0,It=null;At!==null&&Tt<xt.length;Tt++){At.index>Tt?(It=At,At=null):It=At.sibling;var kt=ft(gt,At,xt[Tt],St);if(kt===null){At===null&&(At=It);break}_e&&At&&kt.alternate===null&&et(gt,At),yt=st(kt,yt,Tt),$t===null?bt=kt:$t.sibling=kt,$t=kt,At=It}if(Tt===xt.length)return tt(gt,At),I$3&&tg(gt,Tt),bt;if(At===null){for(;Tt<xt.length;Tt++)At=ct(gt,xt[Tt],St),At!==null&&(yt=st(At,yt,Tt),$t===null?bt=At:$t.sibling=At,$t=At);return I$3&&tg(gt,Tt),bt}for(At=rt(gt,At);Tt<xt.length;Tt++)It=ht(At,gt,Tt,xt[Tt],St),It!==null&&(_e&&It.alternate!==null&&At.delete(It.key===null?Tt:It.key),yt=st(It,yt,Tt),$t===null?bt=It:$t.sibling=It,$t=It);return _e&&At.forEach(function(Dt){return et(gt,Dt)}),I$3&&tg(gt,Tt),bt}function vt(gt,yt,xt,St){var bt=Ka(xt);if(typeof bt!="function")throw Error(p$3(150));if(xt=bt.call(xt),xt==null)throw Error(p$3(151));for(var $t=bt=null,At=yt,Tt=yt=0,It=null,kt=xt.next();At!==null&&!kt.done;Tt++,kt=xt.next()){At.index>Tt?(It=At,At=null):It=At.sibling;var Dt=ft(gt,At,kt.value,St);if(Dt===null){At===null&&(At=It);break}_e&&At&&Dt.alternate===null&&et(gt,At),yt=st(Dt,yt,Tt),$t===null?bt=Dt:$t.sibling=Dt,$t=Dt,At=It}if(kt.done)return tt(gt,At),I$3&&tg(gt,Tt),bt;if(At===null){for(;!kt.done;Tt++,kt=xt.next())kt=ct(gt,kt.value,St),kt!==null&&(yt=st(kt,yt,Tt),$t===null?bt=kt:$t.sibling=kt,$t=kt);return I$3&&tg(gt,Tt),bt}for(At=rt(gt,At);!kt.done;Tt++,kt=xt.next())kt=ht(At,gt,Tt,kt.value,St),kt!==null&&(_e&&kt.alternate!==null&&At.delete(kt.key===null?Tt:kt.key),yt=st(kt,yt,Tt),$t===null?bt=kt:$t.sibling=kt,$t=kt);return _e&&At.forEach(function(Mt){return et(gt,Mt)}),I$3&&tg(gt,Tt),bt}function wt(gt,yt,xt,St){if(typeof xt=="object"&&xt!==null&&xt.type===ya&&xt.key===null&&(xt=xt.props.children),typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va:e:{for(var bt=xt.key,$t=yt;$t!==null;){if($t.key===bt){if(bt=xt.type,bt===ya){if($t.tag===7){tt(gt,$t.sibling),yt=nt($t,xt.props.children),yt.return=gt,gt=yt;break e}}else if($t.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===Ha&&uh(bt)===$t.type){tt(gt,$t.sibling),yt=nt($t,xt.props),yt.ref=sh(gt,$t,xt),yt.return=gt,gt=yt;break e}tt(gt,$t);break}else et(gt,$t);$t=$t.sibling}xt.type===ya?(yt=Ah(xt.props.children,gt.mode,St,xt.key),yt.return=gt,gt=yt):(St=yh(xt.type,xt.key,xt.props,null,gt.mode,St),St.ref=sh(gt,yt,xt),St.return=gt,gt=St)}return ot(gt);case wa:e:{for($t=xt.key;yt!==null;){if(yt.key===$t)if(yt.tag===4&&yt.stateNode.containerInfo===xt.containerInfo&&yt.stateNode.implementation===xt.implementation){tt(gt,yt.sibling),yt=nt(yt,xt.children||[]),yt.return=gt,gt=yt;break e}else{tt(gt,yt);break}else et(gt,yt);yt=yt.sibling}yt=zh(xt,gt.mode,St),yt.return=gt,gt=yt}return ot(gt);case Ha:return $t=xt._init,wt(gt,yt,$t(xt._payload),St)}if(eb(xt))return mt(gt,yt,xt,St);if(Ka(xt))return vt(gt,yt,xt,St);th(gt,xt)}return typeof xt=="string"&&xt!==""||typeof xt=="number"?(xt=""+xt,yt!==null&&yt.tag===6?(tt(gt,yt.sibling),yt=nt(yt,xt),yt.return=gt,gt=yt):(tt(gt,yt),yt=xh(xt,gt.mode,St),yt.return=gt,gt=yt),ot(gt)):tt(gt,yt)}return wt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(_e){if(_e===Dh)throw Error(p$3(174));return _e}function Ih(_e,et){switch(G$2(Gh,et),G$2(Fh,_e),G$2(Eh,Dh),_e=et.nodeType,_e){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:_e=_e===8?et.parentNode:et,et=_e.namespaceURI||null,_e=_e.tagName,et=lb(et,_e)}E(Eh),G$2(Eh,et)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(_e){Hh(Gh.current);var et=Hh(Eh.current),tt=lb(et,_e.type);et!==tt&&(G$2(Fh,_e),G$2(Eh,tt))}function Lh(_e){Fh.current===_e&&(E(Eh),E(Fh))}var M$1=Uf(0);function Mh(_e){for(var et=_e;et!==null;){if(et.tag===13){var tt=et.memoizedState;if(tt!==null&&(tt=tt.dehydrated,tt===null||tt.data==="$?"||tt.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var _e=0;_e<Nh.length;_e++)Nh[_e]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O$2=null,P$1=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q$1(){throw Error(p$3(321))}function Wh(_e,et){if(et===null)return!1;for(var tt=0;tt<et.length&&tt<_e.length;tt++)if(!He(_e[tt],et[tt]))return!1;return!0}function Xh(_e,et,tt,rt,nt,st){if(Rh=st,N=et,et.memoizedState=null,et.updateQueue=null,et.lanes=0,Ph.current=_e===null||_e.memoizedState===null?Yh:Zh,_e=tt(rt,nt),Th){st=0;do{if(Th=!1,Uh=0,25<=st)throw Error(p$3(301));st+=1,P$1=O$2=null,et.updateQueue=null,Ph.current=$h,_e=tt(rt,nt)}while(Th)}if(Ph.current=ai,et=O$2!==null&&O$2.next!==null,Rh=0,P$1=O$2=N=null,Sh=!1,et)throw Error(p$3(300));return _e}function bi(){var _e=Uh!==0;return Uh=0,_e}function ci(){var _e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P$1===null?N.memoizedState=P$1=_e:P$1=P$1.next=_e,P$1}function di(){if(O$2===null){var _e=N.alternate;_e=_e!==null?_e.memoizedState:null}else _e=O$2.next;var et=P$1===null?N.memoizedState:P$1.next;if(et!==null)P$1=et,O$2=_e;else{if(_e===null)throw Error(p$3(310));O$2=_e,_e={memoizedState:O$2.memoizedState,baseState:O$2.baseState,baseQueue:O$2.baseQueue,queue:O$2.queue,next:null},P$1===null?N.memoizedState=P$1=_e:P$1=P$1.next=_e}return P$1}function ei(_e,et){return typeof et=="function"?et(_e):et}function fi(_e){var et=di(),tt=et.queue;if(tt===null)throw Error(p$3(311));tt.lastRenderedReducer=_e;var rt=O$2,nt=rt.baseQueue,st=tt.pending;if(st!==null){if(nt!==null){var ot=nt.next;nt.next=st.next,st.next=ot}rt.baseQueue=nt=st,tt.pending=null}if(nt!==null){st=nt.next,rt=rt.baseState;var at=ot=null,ut=null,lt=st;do{var dt=lt.lane;if((Rh&dt)===dt)ut!==null&&(ut=ut.next={lane:0,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null}),rt=lt.hasEagerState?lt.eagerState:_e(rt,lt.action);else{var ct={lane:dt,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null};ut===null?(at=ut=ct,ot=rt):ut=ut.next=ct,N.lanes|=dt,hh|=dt}lt=lt.next}while(lt!==null&&lt!==st);ut===null?ot=rt:ut.next=at,He(rt,et.memoizedState)||(Ug=!0),et.memoizedState=rt,et.baseState=ot,et.baseQueue=ut,tt.lastRenderedState=rt}if(_e=tt.interleaved,_e!==null){nt=_e;do st=nt.lane,N.lanes|=st,hh|=st,nt=nt.next;while(nt!==_e)}else nt===null&&(tt.lanes=0);return[et.memoizedState,tt.dispatch]}function gi(_e){var et=di(),tt=et.queue;if(tt===null)throw Error(p$3(311));tt.lastRenderedReducer=_e;var rt=tt.dispatch,nt=tt.pending,st=et.memoizedState;if(nt!==null){tt.pending=null;var ot=nt=nt.next;do st=_e(st,ot.action),ot=ot.next;while(ot!==nt);He(st,et.memoizedState)||(Ug=!0),et.memoizedState=st,et.baseQueue===null&&(et.baseState=st),tt.lastRenderedState=st}return[st,rt]}function hi(){}function ii(_e,et){var tt=N,rt=di(),nt=et(),st=!He(rt.memoizedState,nt);if(st&&(rt.memoizedState=nt,Ug=!0),rt=rt.queue,ji(ki.bind(null,tt,rt,_e),[_e]),rt.getSnapshot!==et||st||P$1!==null&&P$1.memoizedState.tag&1){if(tt.flags|=2048,li(9,mi.bind(null,tt,rt,nt,et),void 0,null),R===null)throw Error(p$3(349));Rh&30||ni(tt,et,nt)}return nt}function ni(_e,et,tt){_e.flags|=16384,_e={getSnapshot:et,value:tt},et=N.updateQueue,et===null?(et={lastEffect:null,stores:null},N.updateQueue=et,et.stores=[_e]):(tt=et.stores,tt===null?et.stores=[_e]:tt.push(_e))}function mi(_e,et,tt,rt){et.value=tt,et.getSnapshot=rt,oi(et)&&pi(_e)}function ki(_e,et,tt){return tt(function(){oi(et)&&pi(_e)})}function oi(_e){var et=_e.getSnapshot;_e=_e.value;try{var tt=et();return!He(_e,tt)}catch{return!0}}function pi(_e){var et=Zg(_e,1);et!==null&&mh(et,_e,1,-1)}function qi(_e){var et=ci();return typeof _e=="function"&&(_e=_e()),et.memoizedState=et.baseState=_e,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:_e},et.queue=_e,_e=_e.dispatch=ri.bind(null,N,_e),[et.memoizedState,_e]}function li(_e,et,tt,rt){return _e={tag:_e,create:et,destroy:tt,deps:rt,next:null},et=N.updateQueue,et===null?(et={lastEffect:null,stores:null},N.updateQueue=et,et.lastEffect=_e.next=_e):(tt=et.lastEffect,tt===null?et.lastEffect=_e.next=_e:(rt=tt.next,tt.next=_e,_e.next=rt,et.lastEffect=_e)),_e}function si(){return di().memoizedState}function ti(_e,et,tt,rt){var nt=ci();N.flags|=_e,nt.memoizedState=li(1|et,tt,void 0,rt===void 0?null:rt)}function ui(_e,et,tt,rt){var nt=di();rt=rt===void 0?null:rt;var st=void 0;if(O$2!==null){var ot=O$2.memoizedState;if(st=ot.destroy,rt!==null&&Wh(rt,ot.deps)){nt.memoizedState=li(et,tt,st,rt);return}}N.flags|=_e,nt.memoizedState=li(1|et,tt,st,rt)}function vi(_e,et){return ti(8390656,8,_e,et)}function ji(_e,et){return ui(2048,8,_e,et)}function wi(_e,et){return ui(4,2,_e,et)}function xi(_e,et){return ui(4,4,_e,et)}function yi(_e,et){if(typeof et=="function")return _e=_e(),et(_e),function(){et(null)};if(et!=null)return _e=_e(),et.current=_e,function(){et.current=null}}function zi(_e,et,tt){return tt=tt!=null?tt.concat([_e]):null,ui(4,4,yi.bind(null,et,_e),tt)}function Ai(){}function Bi(_e,et){var tt=di();et=et===void 0?null:et;var rt=tt.memoizedState;return rt!==null&&et!==null&&Wh(et,rt[1])?rt[0]:(tt.memoizedState=[_e,et],_e)}function Ci(_e,et){var tt=di();et=et===void 0?null:et;var rt=tt.memoizedState;return rt!==null&&et!==null&&Wh(et,rt[1])?rt[0]:(_e=_e(),tt.memoizedState=[_e,et],_e)}function Di(_e,et,tt){return Rh&21?(He(tt,et)||(tt=yc(),N.lanes|=tt,hh|=tt,_e.baseState=!0),et):(_e.baseState&&(_e.baseState=!1,Ug=!0),_e.memoizedState=tt)}function Ei(_e,et){var tt=C$1;C$1=tt!==0&&4>tt?tt:4,_e(!0);var rt=Qh.transition;Qh.transition={};try{_e(!1),et()}finally{C$1=tt,Qh.transition=rt}}function Fi(){return di().memoizedState}function Gi(_e,et,tt){var rt=lh(_e);if(tt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null},Hi(_e))Ii(et,tt);else if(tt=Yg(_e,et,tt,rt),tt!==null){var nt=L$1();mh(tt,_e,rt,nt),Ji(tt,et,rt)}}function ri(_e,et,tt){var rt=lh(_e),nt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null};if(Hi(_e))Ii(et,nt);else{var st=_e.alternate;if(_e.lanes===0&&(st===null||st.lanes===0)&&(st=et.lastRenderedReducer,st!==null))try{var ot=et.lastRenderedState,at=st(ot,tt);if(nt.hasEagerState=!0,nt.eagerState=at,He(at,ot)){var ut=et.interleaved;ut===null?(nt.next=nt,Xg(et)):(nt.next=ut.next,ut.next=nt),et.interleaved=nt;return}}catch{}finally{}tt=Yg(_e,et,nt,rt),tt!==null&&(nt=L$1(),mh(tt,_e,rt,nt),Ji(tt,et,rt))}}function Hi(_e){var et=_e.alternate;return _e===N||et!==null&&et===N}function Ii(_e,et){Th=Sh=!0;var tt=_e.pending;tt===null?et.next=et:(et.next=tt.next,tt.next=et),_e.pending=et}function Ji(_e,et,tt){if(tt&4194240){var rt=et.lanes;rt&=_e.pendingLanes,tt|=rt,et.lanes=tt,Cc(_e,tt)}}var ai={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(_e,et){return ci().memoizedState=[_e,et===void 0?null:et],_e},useContext:Vg,useEffect:vi,useImperativeHandle:function(_e,et,tt){return tt=tt!=null?tt.concat([_e]):null,ti(4194308,4,yi.bind(null,et,_e),tt)},useLayoutEffect:function(_e,et){return ti(4194308,4,_e,et)},useInsertionEffect:function(_e,et){return ti(4,2,_e,et)},useMemo:function(_e,et){var tt=ci();return et=et===void 0?null:et,_e=_e(),tt.memoizedState=[_e,et],_e},useReducer:function(_e,et,tt){var rt=ci();return et=tt!==void 0?tt(et):et,rt.memoizedState=rt.baseState=et,_e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_e,lastRenderedState:et},rt.queue=_e,_e=_e.dispatch=Gi.bind(null,N,_e),[rt.memoizedState,_e]},useRef:function(_e){var et=ci();return _e={current:_e},et.memoizedState=_e},useState:qi,useDebugValue:Ai,useDeferredValue:function(_e){return ci().memoizedState=_e},useTransition:function(){var _e=qi(!1),et=_e[0];return _e=Ei.bind(null,_e[1]),ci().memoizedState=_e,[et,_e]},useMutableSource:function(){},useSyncExternalStore:function(_e,et,tt){var rt=N,nt=ci();if(I$3){if(tt===void 0)throw Error(p$3(407));tt=tt()}else{if(tt=et(),R===null)throw Error(p$3(349));Rh&30||ni(rt,et,tt)}nt.memoizedState=tt;var st={value:tt,getSnapshot:et};return nt.queue=st,vi(ki.bind(null,rt,st,_e),[_e]),rt.flags|=2048,li(9,mi.bind(null,rt,st,tt,et),void 0,null),tt},useId:function(){var _e=ci(),et=R.identifierPrefix;if(I$3){var tt=sg,rt=rg;tt=(rt&~(1<<32-oc(rt)-1)).toString(32)+tt,et=":"+et+"R"+tt,tt=Uh++,0<tt&&(et+="H"+tt.toString(32)),et+=":"}else tt=Vh++,et=":"+et+"r"+tt.toString(32)+":";return _e.memoizedState=et},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(_e){var et=di();return Di(et,O$2.memoizedState,_e)},useTransition:function(){var _e=fi(ei)[0],et=di().memoizedState;return[_e,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(_e){var et=di();return O$2===null?et.memoizedState=_e:Di(et,O$2.memoizedState,_e)},useTransition:function(){var _e=gi(ei)[0],et=di().memoizedState;return[_e,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(_e,et){try{var tt="",rt=et;do tt+=Pa(rt),rt=rt.return;while(rt);var nt=tt}catch(st){nt=`
39
39
  Error generating stack: `+st.message+`
40
- `+st.stack}return{value:_e,source:et,stack:nt,digest:null}}function Li(_e,et,tt){return{value:_e,source:null,stack:tt??null,digest:et??null}}function Mi(_e,et){try{console.error(et.value)}catch(tt){setTimeout(function(){throw tt})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(_e,et,tt){tt=ch(-1,tt),tt.tag=3,tt.payload={element:null};var rt=et.value;return tt.callback=function(){Pi||(Pi=!0,Qi=rt),Mi(_e,et)},tt}function Ri(_e,et,tt){tt=ch(-1,tt),tt.tag=3;var rt=_e.type.getDerivedStateFromError;if(typeof rt=="function"){var nt=et.value;tt.payload=function(){return rt(nt)},tt.callback=function(){Mi(_e,et)}}var st=_e.stateNode;return st!==null&&typeof st.componentDidCatch=="function"&&(tt.callback=function(){Mi(_e,et),typeof rt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var ot=et.stack;this.componentDidCatch(et.value,{componentStack:ot!==null?ot:""})}),tt}function Ti(_e,et,tt){var rt=_e.pingCache;if(rt===null){rt=_e.pingCache=new Ni;var nt=new Set;rt.set(et,nt)}else nt=rt.get(et),nt===void 0&&(nt=new Set,rt.set(et,nt));nt.has(tt)||(nt.add(tt),_e=Ui.bind(null,_e,et,tt),et.then(_e,_e))}function Vi(_e){do{var et;if((et=_e.tag===13)&&(et=_e.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return _e;_e=_e.return}while(_e!==null);return null}function Wi(_e,et,tt,rt,nt){return _e.mode&1?(_e.flags|=65536,_e.lanes=nt,_e):(_e===et?_e.flags|=65536:(_e.flags|=128,tt.flags|=131072,tt.flags&=-52805,tt.tag===1&&(tt.alternate===null?tt.tag=17:(et=ch(-1,1),et.tag=2,dh(tt,et,1))),tt.lanes|=1),_e)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(_e,et,tt,rt){et.child=_e===null?Ch(et,null,tt,rt):Bh(et,_e.child,tt,rt)}function Zi(_e,et,tt,rt,nt){tt=tt.render;var st=et.ref;return Tg(et,nt),rt=Xh(_e,et,tt,rt,st,nt),tt=bi(),_e!==null&&!Ug?(et.updateQueue=_e.updateQueue,et.flags&=-2053,_e.lanes&=~nt,$i(_e,et,nt)):(I$2&&tt&&vg(et),et.flags|=1,Yi(_e,et,rt,nt),et.child)}function aj(_e,et,tt,rt,nt){if(_e===null){var st=tt.type;return typeof st=="function"&&!bj(st)&&st.defaultProps===void 0&&tt.compare===null&&tt.defaultProps===void 0?(et.tag=15,et.type=st,cj(_e,et,st,rt,nt)):(_e=yh(tt.type,null,rt,et,et.mode,nt),_e.ref=et.ref,_e.return=et,et.child=_e)}if(st=_e.child,!(_e.lanes&nt)){var ot=st.memoizedProps;if(tt=tt.compare,tt=tt!==null?tt:Ie$1,tt(ot,rt)&&_e.ref===et.ref)return $i(_e,et,nt)}return et.flags|=1,_e=wh(st,rt),_e.ref=et.ref,_e.return=et,et.child=_e}function cj(_e,et,tt,rt,nt){if(_e!==null){var st=_e.memoizedProps;if(Ie$1(st,rt)&&_e.ref===et.ref)if(Ug=!1,et.pendingProps=rt=st,(_e.lanes&nt)!==0)_e.flags&131072&&(Ug=!0);else return et.lanes=_e.lanes,$i(_e,et,nt)}return dj(_e,et,tt,rt,nt)}function ej(_e,et,tt){var rt=et.pendingProps,nt=rt.children,st=_e!==null?_e.memoizedState:null;if(rt.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$2(fj,gj),gj|=tt;else{if(!(tt&1073741824))return _e=st!==null?st.baseLanes|tt:tt,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:_e,cachePool:null,transitions:null},et.updateQueue=null,G$2(fj,gj),gj|=_e,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt=st!==null?st.baseLanes:tt,G$2(fj,gj),gj|=rt}else st!==null?(rt=st.baseLanes|tt,et.memoizedState=null):rt=tt,G$2(fj,gj),gj|=rt;return Yi(_e,et,nt,tt),et.child}function hj(_e,et){var tt=et.ref;(_e===null&&tt!==null||_e!==null&&_e.ref!==tt)&&(et.flags|=512,et.flags|=2097152)}function dj(_e,et,tt,rt,nt){var st=Zf(tt)?Xf:H.current;return st=Yf(et,st),Tg(et,nt),tt=Xh(_e,et,tt,rt,st,nt),rt=bi(),_e!==null&&!Ug?(et.updateQueue=_e.updateQueue,et.flags&=-2053,_e.lanes&=~nt,$i(_e,et,nt)):(I$2&&rt&&vg(et),et.flags|=1,Yi(_e,et,tt,nt),et.child)}function ij(_e,et,tt,rt,nt){if(Zf(tt)){var st=!0;cg(et)}else st=!1;if(Tg(et,nt),et.stateNode===null)jj(_e,et),ph(et,tt,rt),rh(et,tt,rt,nt),rt=!0;else if(_e===null){var ot=et.stateNode,at=et.memoizedProps;ot.props=at;var ut=ot.context,lt=tt.contextType;typeof lt=="object"&&lt!==null?lt=Vg(lt):(lt=Zf(tt)?Xf:H.current,lt=Yf(et,lt));var dt=tt.getDerivedStateFromProps,ct=typeof dt=="function"||typeof ot.getSnapshotBeforeUpdate=="function";ct||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(at!==rt||ut!==lt)&&qh(et,ot,rt,lt),$g=!1;var ft=et.memoizedState;ot.state=ft,gh(et,rt,ot,nt),ut=et.memoizedState,at!==rt||ft!==ut||Wf.current||$g?(typeof dt=="function"&&(kh(et,tt,dt,rt),ut=et.memoizedState),(at=$g||oh(et,tt,at,rt,ft,ut,lt))?(ct||typeof ot.UNSAFE_componentWillMount!="function"&&typeof ot.componentWillMount!="function"||(typeof ot.componentWillMount=="function"&&ot.componentWillMount(),typeof ot.UNSAFE_componentWillMount=="function"&&ot.UNSAFE_componentWillMount()),typeof ot.componentDidMount=="function"&&(et.flags|=4194308)):(typeof ot.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=rt,et.memoizedState=ut),ot.props=rt,ot.state=ut,ot.context=lt,rt=at):(typeof ot.componentDidMount=="function"&&(et.flags|=4194308),rt=!1)}else{ot=et.stateNode,bh(_e,et),at=et.memoizedProps,lt=et.type===et.elementType?at:Lg(et.type,at),ot.props=lt,ct=et.pendingProps,ft=ot.context,ut=tt.contextType,typeof ut=="object"&&ut!==null?ut=Vg(ut):(ut=Zf(tt)?Xf:H.current,ut=Yf(et,ut));var ht=tt.getDerivedStateFromProps;(dt=typeof ht=="function"||typeof ot.getSnapshotBeforeUpdate=="function")||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(at!==ct||ft!==ut)&&qh(et,ot,rt,ut),$g=!1,ft=et.memoizedState,ot.state=ft,gh(et,rt,ot,nt);var mt=et.memoizedState;at!==ct||ft!==mt||Wf.current||$g?(typeof ht=="function"&&(kh(et,tt,ht,rt),mt=et.memoizedState),(lt=$g||oh(et,tt,lt,rt,ft,mt,ut)||!1)?(dt||typeof ot.UNSAFE_componentWillUpdate!="function"&&typeof ot.componentWillUpdate!="function"||(typeof ot.componentWillUpdate=="function"&&ot.componentWillUpdate(rt,mt,ut),typeof ot.UNSAFE_componentWillUpdate=="function"&&ot.UNSAFE_componentWillUpdate(rt,mt,ut)),typeof ot.componentDidUpdate=="function"&&(et.flags|=4),typeof ot.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof ot.componentDidUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=1024),et.memoizedProps=rt,et.memoizedState=mt),ot.props=rt,ot.state=mt,ot.context=ut,rt=lt):(typeof ot.componentDidUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=1024),rt=!1)}return kj(_e,et,tt,rt,st,nt)}function kj(_e,et,tt,rt,nt,st){hj(_e,et);var ot=(et.flags&128)!==0;if(!rt&&!ot)return nt&&dg(et,tt,!1),$i(_e,et,st);rt=et.stateNode,Xi.current=et;var at=ot&&typeof tt.getDerivedStateFromError!="function"?null:rt.render();return et.flags|=1,_e!==null&&ot?(et.child=Bh(et,_e.child,null,st),et.child=Bh(et,null,at,st)):Yi(_e,et,at,st),et.memoizedState=rt.state,nt&&dg(et,tt,!0),et.child}function lj(_e){var et=_e.stateNode;et.pendingContext?ag(_e,et.pendingContext,et.pendingContext!==et.context):et.context&&ag(_e,et.context,!1),Ih(_e,et.containerInfo)}function mj(_e,et,tt,rt,nt){return Ig(),Jg(nt),et.flags|=256,Yi(_e,et,tt,rt),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(_e){return{baseLanes:_e,cachePool:null,transitions:null}}function pj(_e,et,tt){var rt=et.pendingProps,nt=M$1.current,st=!1,ot=(et.flags&128)!==0,at;if((at=ot)||(at=_e!==null&&_e.memoizedState===null?!1:(nt&2)!==0),at?(st=!0,et.flags&=-129):(_e===null||_e.memoizedState!==null)&&(nt|=1),G$2(M$1,nt&1),_e===null)return Eg(et),_e=et.memoizedState,_e!==null&&(_e=_e.dehydrated,_e!==null)?(et.mode&1?_e.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(ot=rt.children,_e=rt.fallback,st?(rt=et.mode,st=et.child,ot={mode:"hidden",children:ot},!(rt&1)&&st!==null?(st.childLanes=0,st.pendingProps=ot):st=qj(ot,rt,0,null),_e=Ah(_e,rt,tt,null),st.return=et,_e.return=et,st.sibling=_e,et.child=st,et.child.memoizedState=oj(tt),et.memoizedState=nj,_e):rj(et,ot));if(nt=_e.memoizedState,nt!==null&&(at=nt.dehydrated,at!==null))return sj(_e,et,ot,rt,at,nt,tt);if(st){st=rt.fallback,ot=et.mode,nt=_e.child,at=nt.sibling;var ut={mode:"hidden",children:rt.children};return!(ot&1)&&et.child!==nt?(rt=et.child,rt.childLanes=0,rt.pendingProps=ut,et.deletions=null):(rt=wh(nt,ut),rt.subtreeFlags=nt.subtreeFlags&14680064),at!==null?st=wh(at,st):(st=Ah(st,ot,tt,null),st.flags|=2),st.return=et,rt.return=et,rt.sibling=st,et.child=rt,rt=st,st=et.child,ot=_e.child.memoizedState,ot=ot===null?oj(tt):{baseLanes:ot.baseLanes|tt,cachePool:null,transitions:ot.transitions},st.memoizedState=ot,st.childLanes=_e.childLanes&~tt,et.memoizedState=nj,rt}return st=_e.child,_e=st.sibling,rt=wh(st,{mode:"visible",children:rt.children}),!(et.mode&1)&&(rt.lanes=tt),rt.return=et,rt.sibling=null,_e!==null&&(tt=et.deletions,tt===null?(et.deletions=[_e],et.flags|=16):tt.push(_e)),et.child=rt,et.memoizedState=null,rt}function rj(_e,et){return et=qj({mode:"visible",children:et},_e.mode,0,null),et.return=_e,_e.child=et}function tj(_e,et,tt,rt){return rt!==null&&Jg(rt),Bh(et,_e.child,null,tt),_e=rj(et,et.pendingProps.children),_e.flags|=2,et.memoizedState=null,_e}function sj(_e,et,tt,rt,nt,st,ot){if(tt)return et.flags&256?(et.flags&=-257,rt=Li(Error(p$3(422))),tj(_e,et,ot,rt)):et.memoizedState!==null?(et.child=_e.child,et.flags|=128,null):(st=rt.fallback,nt=et.mode,rt=qj({mode:"visible",children:rt.children},nt,0,null),st=Ah(st,nt,ot,null),st.flags|=2,rt.return=et,st.return=et,rt.sibling=st,et.child=rt,et.mode&1&&Bh(et,_e.child,null,ot),et.child.memoizedState=oj(ot),et.memoizedState=nj,st);if(!(et.mode&1))return tj(_e,et,ot,null);if(nt.data==="$!"){if(rt=nt.nextSibling&&nt.nextSibling.dataset,rt)var at=rt.dgst;return rt=at,st=Error(p$3(419)),rt=Li(st,rt,void 0),tj(_e,et,ot,rt)}if(at=(ot&_e.childLanes)!==0,Ug||at){if(rt=R,rt!==null){switch(ot&-ot){case 4:nt=2;break;case 16:nt=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:nt=32;break;case 536870912:nt=268435456;break;default:nt=0}nt=nt&(rt.suspendedLanes|ot)?0:nt,nt!==0&&nt!==st.retryLane&&(st.retryLane=nt,Zg(_e,nt),mh(rt,_e,nt,-1))}return uj(),rt=Li(Error(p$3(421))),tj(_e,et,ot,rt)}return nt.data==="$?"?(et.flags|=128,et.child=_e.child,et=vj.bind(null,_e),nt._reactRetry=et,null):(_e=st.treeContext,yg=Lf(nt.nextSibling),xg=et,I$2=!0,zg=null,_e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=_e.id,sg=_e.overflow,qg=et),et=rj(et,rt.children),et.flags|=4096,et)}function wj(_e,et,tt){_e.lanes|=et;var rt=_e.alternate;rt!==null&&(rt.lanes|=et),Sg(_e.return,et,tt)}function xj(_e,et,tt,rt,nt){var st=_e.memoizedState;st===null?_e.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:rt,tail:tt,tailMode:nt}:(st.isBackwards=et,st.rendering=null,st.renderingStartTime=0,st.last=rt,st.tail=tt,st.tailMode=nt)}function yj(_e,et,tt){var rt=et.pendingProps,nt=rt.revealOrder,st=rt.tail;if(Yi(_e,et,rt.children,tt),rt=M$1.current,rt&2)rt=rt&1|2,et.flags|=128;else{if(_e!==null&&_e.flags&128)e:for(_e=et.child;_e!==null;){if(_e.tag===13)_e.memoizedState!==null&&wj(_e,tt,et);else if(_e.tag===19)wj(_e,tt,et);else if(_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===et)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===et)break e;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}rt&=1}if(G$2(M$1,rt),!(et.mode&1))et.memoizedState=null;else switch(nt){case"forwards":for(tt=et.child,nt=null;tt!==null;)_e=tt.alternate,_e!==null&&Mh(_e)===null&&(nt=tt),tt=tt.sibling;tt=nt,tt===null?(nt=et.child,et.child=null):(nt=tt.sibling,tt.sibling=null),xj(et,!1,nt,tt,st);break;case"backwards":for(tt=null,nt=et.child,et.child=null;nt!==null;){if(_e=nt.alternate,_e!==null&&Mh(_e)===null){et.child=nt;break}_e=nt.sibling,nt.sibling=tt,tt=nt,nt=_e}xj(et,!0,tt,null,st);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj(_e,et){!(et.mode&1)&&_e!==null&&(_e.alternate=null,et.alternate=null,et.flags|=2)}function $i(_e,et,tt){if(_e!==null&&(et.dependencies=_e.dependencies),hh|=et.lanes,!(tt&et.childLanes))return null;if(_e!==null&&et.child!==_e.child)throw Error(p$3(153));if(et.child!==null){for(_e=et.child,tt=wh(_e,_e.pendingProps),et.child=tt,tt.return=et;_e.sibling!==null;)_e=_e.sibling,tt=tt.sibling=wh(_e,_e.pendingProps),tt.return=et;tt.sibling=null}return et.child}function zj(_e,et,tt){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var rt=et.type._context,nt=et.memoizedProps.value;G$2(Mg,rt._currentValue),rt._currentValue=nt;break;case 13:if(rt=et.memoizedState,rt!==null)return rt.dehydrated!==null?(G$2(M$1,M$1.current&1),et.flags|=128,null):tt&et.child.childLanes?pj(_e,et,tt):(G$2(M$1,M$1.current&1),_e=$i(_e,et,tt),_e!==null?_e.sibling:null);G$2(M$1,M$1.current&1);break;case 19:if(rt=(tt&et.childLanes)!==0,_e.flags&128){if(rt)return yj(_e,et,tt);et.flags|=128}if(nt=et.memoizedState,nt!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),G$2(M$1,M$1.current),rt)break;return null;case 22:case 23:return et.lanes=0,ej(_e,et,tt)}return $i(_e,et,tt)}var Aj,Bj,Cj,Dj;Aj=function(_e,et){for(var tt=et.child;tt!==null;){if(tt.tag===5||tt.tag===6)_e.appendChild(tt.stateNode);else if(tt.tag!==4&&tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}};Bj=function(){};Cj=function(_e,et,tt,rt){var nt=_e.memoizedProps;if(nt!==rt){_e=et.stateNode,Hh(Eh.current);var st=null;switch(tt){case"input":nt=Ya(_e,nt),rt=Ya(_e,rt),st=[];break;case"select":nt=A$1({},nt,{value:void 0}),rt=A$1({},rt,{value:void 0}),st=[];break;case"textarea":nt=gb(_e,nt),rt=gb(_e,rt),st=[];break;default:typeof nt.onClick!="function"&&typeof rt.onClick=="function"&&(_e.onclick=Bf)}ub(tt,rt);var ot;tt=null;for(lt in nt)if(!rt.hasOwnProperty(lt)&&nt.hasOwnProperty(lt)&&nt[lt]!=null)if(lt==="style"){var at=nt[lt];for(ot in at)at.hasOwnProperty(ot)&&(tt||(tt={}),tt[ot]="")}else lt!=="dangerouslySetInnerHTML"&&lt!=="children"&&lt!=="suppressContentEditableWarning"&&lt!=="suppressHydrationWarning"&&lt!=="autoFocus"&&(ea.hasOwnProperty(lt)?st||(st=[]):(st=st||[]).push(lt,null));for(lt in rt){var ut=rt[lt];if(at=nt!=null?nt[lt]:void 0,rt.hasOwnProperty(lt)&&ut!==at&&(ut!=null||at!=null))if(lt==="style")if(at){for(ot in at)!at.hasOwnProperty(ot)||ut&&ut.hasOwnProperty(ot)||(tt||(tt={}),tt[ot]="");for(ot in ut)ut.hasOwnProperty(ot)&&at[ot]!==ut[ot]&&(tt||(tt={}),tt[ot]=ut[ot])}else tt||(st||(st=[]),st.push(lt,tt)),tt=ut;else lt==="dangerouslySetInnerHTML"?(ut=ut?ut.__html:void 0,at=at?at.__html:void 0,ut!=null&&at!==ut&&(st=st||[]).push(lt,ut)):lt==="children"?typeof ut!="string"&&typeof ut!="number"||(st=st||[]).push(lt,""+ut):lt!=="suppressContentEditableWarning"&&lt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(lt)?(ut!=null&&lt==="onScroll"&&D$1("scroll",_e),st||at===ut||(st=[])):(st=st||[]).push(lt,ut))}tt&&(st=st||[]).push("style",tt);var lt=st;(et.updateQueue=lt)&&(et.flags|=4)}};Dj=function(_e,et,tt,rt){tt!==rt&&(et.flags|=4)};function Ej(_e,et){if(!I$2)switch(_e.tailMode){case"hidden":et=_e.tail;for(var tt=null;et!==null;)et.alternate!==null&&(tt=et),et=et.sibling;tt===null?_e.tail=null:tt.sibling=null;break;case"collapsed":tt=_e.tail;for(var rt=null;tt!==null;)tt.alternate!==null&&(rt=tt),tt=tt.sibling;rt===null?et||_e.tail===null?_e.tail=null:_e.tail.sibling=null:rt.sibling=null}}function S$2(_e){var et=_e.alternate!==null&&_e.alternate.child===_e.child,tt=0,rt=0;if(et)for(var nt=_e.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags&14680064,rt|=nt.flags&14680064,nt.return=_e,nt=nt.sibling;else for(nt=_e.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags,rt|=nt.flags,nt.return=_e,nt=nt.sibling;return _e.subtreeFlags|=rt,_e.childLanes=tt,et}function Fj(_e,et,tt){var rt=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$2(et),null;case 1:return Zf(et.type)&&$f(),S$2(et),null;case 3:return rt=et.stateNode,Jh(),E(Wf),E(H),Oh(),rt.pendingContext&&(rt.context=rt.pendingContext,rt.pendingContext=null),(_e===null||_e.child===null)&&(Gg(et)?et.flags|=4:_e===null||_e.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(_e,et),S$2(et),null;case 5:Lh(et);var nt=Hh(Gh.current);if(tt=et.type,_e!==null&&et.stateNode!=null)Cj(_e,et,tt,rt,nt),_e.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!rt){if(et.stateNode===null)throw Error(p$3(166));return S$2(et),null}if(_e=Hh(Eh.current),Gg(et)){rt=et.stateNode,tt=et.type;var st=et.memoizedProps;switch(rt[Of]=et,rt[Pf]=st,_e=(et.mode&1)!==0,tt){case"dialog":D$1("cancel",rt),D$1("close",rt);break;case"iframe":case"object":case"embed":D$1("load",rt);break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D$1(lf[nt],rt);break;case"source":D$1("error",rt);break;case"img":case"image":case"link":D$1("error",rt),D$1("load",rt);break;case"details":D$1("toggle",rt);break;case"input":Za(rt,st),D$1("invalid",rt);break;case"select":rt._wrapperState={wasMultiple:!!st.multiple},D$1("invalid",rt);break;case"textarea":hb(rt,st),D$1("invalid",rt)}ub(tt,st),nt=null;for(var ot in st)if(st.hasOwnProperty(ot)){var at=st[ot];ot==="children"?typeof at=="string"?rt.textContent!==at&&(st.suppressHydrationWarning!==!0&&Af(rt.textContent,at,_e),nt=["children",at]):typeof at=="number"&&rt.textContent!==""+at&&(st.suppressHydrationWarning!==!0&&Af(rt.textContent,at,_e),nt=["children",""+at]):ea.hasOwnProperty(ot)&&at!=null&&ot==="onScroll"&&D$1("scroll",rt)}switch(tt){case"input":Va(rt),db(rt,st,!0);break;case"textarea":Va(rt),jb(rt);break;case"select":case"option":break;default:typeof st.onClick=="function"&&(rt.onclick=Bf)}rt=nt,et.updateQueue=rt,rt!==null&&(et.flags|=4)}else{ot=nt.nodeType===9?nt:nt.ownerDocument,_e==="http://www.w3.org/1999/xhtml"&&(_e=kb(tt)),_e==="http://www.w3.org/1999/xhtml"?tt==="script"?(_e=ot.createElement("div"),_e.innerHTML="<script><\/script>",_e=_e.removeChild(_e.firstChild)):typeof rt.is=="string"?_e=ot.createElement(tt,{is:rt.is}):(_e=ot.createElement(tt),tt==="select"&&(ot=_e,rt.multiple?ot.multiple=!0:rt.size&&(ot.size=rt.size))):_e=ot.createElementNS(_e,tt),_e[Of]=et,_e[Pf]=rt,Aj(_e,et,!1,!1),et.stateNode=_e;e:{switch(ot=vb(tt,rt),tt){case"dialog":D$1("cancel",_e),D$1("close",_e),nt=rt;break;case"iframe":case"object":case"embed":D$1("load",_e),nt=rt;break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D$1(lf[nt],_e);nt=rt;break;case"source":D$1("error",_e),nt=rt;break;case"img":case"image":case"link":D$1("error",_e),D$1("load",_e),nt=rt;break;case"details":D$1("toggle",_e),nt=rt;break;case"input":Za(_e,rt),nt=Ya(_e,rt),D$1("invalid",_e);break;case"option":nt=rt;break;case"select":_e._wrapperState={wasMultiple:!!rt.multiple},nt=A$1({},rt,{value:void 0}),D$1("invalid",_e);break;case"textarea":hb(_e,rt),nt=gb(_e,rt),D$1("invalid",_e);break;default:nt=rt}ub(tt,nt),at=nt;for(st in at)if(at.hasOwnProperty(st)){var ut=at[st];st==="style"?sb(_e,ut):st==="dangerouslySetInnerHTML"?(ut=ut?ut.__html:void 0,ut!=null&&nb(_e,ut)):st==="children"?typeof ut=="string"?(tt!=="textarea"||ut!=="")&&ob(_e,ut):typeof ut=="number"&&ob(_e,""+ut):st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&st!=="autoFocus"&&(ea.hasOwnProperty(st)?ut!=null&&st==="onScroll"&&D$1("scroll",_e):ut!=null&&ta(_e,st,ut,ot))}switch(tt){case"input":Va(_e),db(_e,rt,!1);break;case"textarea":Va(_e),jb(_e);break;case"option":rt.value!=null&&_e.setAttribute("value",""+Sa(rt.value));break;case"select":_e.multiple=!!rt.multiple,st=rt.value,st!=null?fb(_e,!!rt.multiple,st,!1):rt.defaultValue!=null&&fb(_e,!!rt.multiple,rt.defaultValue,!0);break;default:typeof nt.onClick=="function"&&(_e.onclick=Bf)}switch(tt){case"button":case"input":case"select":case"textarea":rt=!!rt.autoFocus;break e;case"img":rt=!0;break e;default:rt=!1}}rt&&(et.flags|=4)}et.ref!==null&&(et.flags|=512,et.flags|=2097152)}return S$2(et),null;case 6:if(_e&&et.stateNode!=null)Dj(_e,et,_e.memoizedProps,rt);else{if(typeof rt!="string"&&et.stateNode===null)throw Error(p$3(166));if(tt=Hh(Gh.current),Hh(Eh.current),Gg(et)){if(rt=et.stateNode,tt=et.memoizedProps,rt[Of]=et,(st=rt.nodeValue!==tt)&&(_e=xg,_e!==null))switch(_e.tag){case 3:Af(rt.nodeValue,tt,(_e.mode&1)!==0);break;case 5:_e.memoizedProps.suppressHydrationWarning!==!0&&Af(rt.nodeValue,tt,(_e.mode&1)!==0)}st&&(et.flags|=4)}else rt=(tt.nodeType===9?tt:tt.ownerDocument).createTextNode(rt),rt[Of]=et,et.stateNode=rt}return S$2(et),null;case 13:if(E(M$1),rt=et.memoizedState,_e===null||_e.memoizedState!==null&&_e.memoizedState.dehydrated!==null){if(I$2&&yg!==null&&et.mode&1&&!(et.flags&128))Hg(),Ig(),et.flags|=98560,st=!1;else if(st=Gg(et),rt!==null&&rt.dehydrated!==null){if(_e===null){if(!st)throw Error(p$3(318));if(st=et.memoizedState,st=st!==null?st.dehydrated:null,!st)throw Error(p$3(317));st[Of]=et}else Ig(),!(et.flags&128)&&(et.memoizedState=null),et.flags|=4;S$2(et),st=!1}else zg!==null&&(Gj(zg),zg=null),st=!0;if(!st)return et.flags&65536?et:null}return et.flags&128?(et.lanes=tt,et):(rt=rt!==null,rt!==(_e!==null&&_e.memoizedState!==null)&&rt&&(et.child.flags|=8192,et.mode&1&&(_e===null||M$1.current&1?T$2===0&&(T$2=3):uj())),et.updateQueue!==null&&(et.flags|=4),S$2(et),null);case 4:return Jh(),Bj(_e,et),_e===null&&sf(et.stateNode.containerInfo),S$2(et),null;case 10:return Rg(et.type._context),S$2(et),null;case 17:return Zf(et.type)&&$f(),S$2(et),null;case 19:if(E(M$1),st=et.memoizedState,st===null)return S$2(et),null;if(rt=(et.flags&128)!==0,ot=st.rendering,ot===null)if(rt)Ej(st,!1);else{if(T$2!==0||_e!==null&&_e.flags&128)for(_e=et.child;_e!==null;){if(ot=Mh(_e),ot!==null){for(et.flags|=128,Ej(st,!1),rt=ot.updateQueue,rt!==null&&(et.updateQueue=rt,et.flags|=4),et.subtreeFlags=0,rt=tt,tt=et.child;tt!==null;)st=tt,_e=rt,st.flags&=14680066,ot=st.alternate,ot===null?(st.childLanes=0,st.lanes=_e,st.child=null,st.subtreeFlags=0,st.memoizedProps=null,st.memoizedState=null,st.updateQueue=null,st.dependencies=null,st.stateNode=null):(st.childLanes=ot.childLanes,st.lanes=ot.lanes,st.child=ot.child,st.subtreeFlags=0,st.deletions=null,st.memoizedProps=ot.memoizedProps,st.memoizedState=ot.memoizedState,st.updateQueue=ot.updateQueue,st.type=ot.type,_e=ot.dependencies,st.dependencies=_e===null?null:{lanes:_e.lanes,firstContext:_e.firstContext}),tt=tt.sibling;return G$2(M$1,M$1.current&1|2),et.child}_e=_e.sibling}st.tail!==null&&B()>Hj&&(et.flags|=128,rt=!0,Ej(st,!1),et.lanes=4194304)}else{if(!rt)if(_e=Mh(ot),_e!==null){if(et.flags|=128,rt=!0,tt=_e.updateQueue,tt!==null&&(et.updateQueue=tt,et.flags|=4),Ej(st,!0),st.tail===null&&st.tailMode==="hidden"&&!ot.alternate&&!I$2)return S$2(et),null}else 2*B()-st.renderingStartTime>Hj&&tt!==1073741824&&(et.flags|=128,rt=!0,Ej(st,!1),et.lanes=4194304);st.isBackwards?(ot.sibling=et.child,et.child=ot):(tt=st.last,tt!==null?tt.sibling=ot:et.child=ot,st.last=ot)}return st.tail!==null?(et=st.tail,st.rendering=et,st.tail=et.sibling,st.renderingStartTime=B(),et.sibling=null,tt=M$1.current,G$2(M$1,rt?tt&1|2:tt&1),et):(S$2(et),null);case 22:case 23:return Ij(),rt=et.memoizedState!==null,_e!==null&&_e.memoizedState!==null!==rt&&(et.flags|=8192),rt&&et.mode&1?gj&1073741824&&(S$2(et),et.subtreeFlags&6&&(et.flags|=8192)):S$2(et),null;case 24:return null;case 25:return null}throw Error(p$3(156,et.tag))}function Jj(_e,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),_e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 3:return Jh(),E(Wf),E(H),Oh(),_e=et.flags,_e&65536&&!(_e&128)?(et.flags=_e&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E(M$1),_e=et.memoizedState,_e!==null&&_e.dehydrated!==null){if(et.alternate===null)throw Error(p$3(340));Ig()}return _e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 19:return E(M$1),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(_e,et){var tt=_e.ref;if(tt!==null)if(typeof tt=="function")try{tt(null)}catch(rt){W$1(_e,et,rt)}else tt.current=null}function Nj(_e,et,tt){try{tt()}catch(rt){W$1(_e,et,rt)}}var Oj=!1;function Pj(_e,et){if(Cf=dd,_e=Me(),Ne(_e)){if("selectionStart"in _e)var tt={start:_e.selectionStart,end:_e.selectionEnd};else e:{tt=(tt=_e.ownerDocument)&&tt.defaultView||window;var rt=tt.getSelection&&tt.getSelection();if(rt&&rt.rangeCount!==0){tt=rt.anchorNode;var nt=rt.anchorOffset,st=rt.focusNode;rt=rt.focusOffset;try{tt.nodeType,st.nodeType}catch{tt=null;break e}var ot=0,at=-1,ut=-1,lt=0,dt=0,ct=_e,ft=null;t:for(;;){for(var ht;ct!==tt||nt!==0&&ct.nodeType!==3||(at=ot+nt),ct!==st||rt!==0&&ct.nodeType!==3||(ut=ot+rt),ct.nodeType===3&&(ot+=ct.nodeValue.length),(ht=ct.firstChild)!==null;)ft=ct,ct=ht;for(;;){if(ct===_e)break t;if(ft===tt&&++lt===nt&&(at=ot),ft===st&&++dt===rt&&(ut=ot),(ht=ct.nextSibling)!==null)break;ct=ft,ft=ct.parentNode}ct=ht}tt=at===-1||ut===-1?null:{start:at,end:ut}}else tt=null}tt=tt||{start:0,end:0}}else tt=null;for(Df={focusedElem:_e,selectionRange:tt},dd=!1,V$2=et;V$2!==null;)if(et=V$2,_e=et.child,(et.subtreeFlags&1028)!==0&&_e!==null)_e.return=et,V$2=_e;else for(;V$2!==null;){et=V$2;try{var mt=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(mt!==null){var vt=mt.memoizedProps,wt=mt.memoizedState,gt=et.stateNode,yt=gt.getSnapshotBeforeUpdate(et.elementType===et.type?vt:Lg(et.type,vt),wt);gt.__reactInternalSnapshotBeforeUpdate=yt}break;case 3:var xt=et.stateNode.containerInfo;xt.nodeType===1?xt.textContent="":xt.nodeType===9&&xt.documentElement&&xt.removeChild(xt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(St){W$1(et,et.return,St)}if(_e=et.sibling,_e!==null){_e.return=et.return,V$2=_e;break}V$2=et.return}return mt=Oj,Oj=!1,mt}function Qj(_e,et,tt){var rt=et.updateQueue;if(rt=rt!==null?rt.lastEffect:null,rt!==null){var nt=rt=rt.next;do{if((nt.tag&_e)===_e){var st=nt.destroy;nt.destroy=void 0,st!==void 0&&Nj(et,tt,st)}nt=nt.next}while(nt!==rt)}}function Rj(_e,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var tt=et=et.next;do{if((tt.tag&_e)===_e){var rt=tt.create;tt.destroy=rt()}tt=tt.next}while(tt!==et)}}function Sj(_e){var et=_e.ref;if(et!==null){var tt=_e.stateNode;switch(_e.tag){case 5:_e=tt;break;default:_e=tt}typeof et=="function"?et(_e):et.current=_e}}function Tj(_e){var et=_e.alternate;et!==null&&(_e.alternate=null,Tj(et)),_e.child=null,_e.deletions=null,_e.sibling=null,_e.tag===5&&(et=_e.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of$1],delete et[Qf],delete et[Rf])),_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 Uj(_e){return _e.tag===5||_e.tag===3||_e.tag===4}function Vj(_e){e:for(;;){for(;_e.sibling===null;){if(_e.return===null||Uj(_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 Wj(_e,et,tt){var rt=_e.tag;if(rt===5||rt===6)_e=_e.stateNode,et?tt.nodeType===8?tt.parentNode.insertBefore(_e,et):tt.insertBefore(_e,et):(tt.nodeType===8?(et=tt.parentNode,et.insertBefore(_e,tt)):(et=tt,et.appendChild(_e)),tt=tt._reactRootContainer,tt!=null||et.onclick!==null||(et.onclick=Bf));else if(rt!==4&&(_e=_e.child,_e!==null))for(Wj(_e,et,tt),_e=_e.sibling;_e!==null;)Wj(_e,et,tt),_e=_e.sibling}function Xj(_e,et,tt){var rt=_e.tag;if(rt===5||rt===6)_e=_e.stateNode,et?tt.insertBefore(_e,et):tt.appendChild(_e);else if(rt!==4&&(_e=_e.child,_e!==null))for(Xj(_e,et,tt),_e=_e.sibling;_e!==null;)Xj(_e,et,tt),_e=_e.sibling}var X$1=null,Yj=!1;function Zj(_e,et,tt){for(tt=tt.child;tt!==null;)ak(_e,et,tt),tt=tt.sibling}function ak(_e,et,tt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,tt)}catch{}switch(tt.tag){case 5:U$1||Mj(tt,et);case 6:var rt=X$1,nt=Yj;X$1=null,Zj(_e,et,tt),X$1=rt,Yj=nt,X$1!==null&&(Yj?(_e=X$1,tt=tt.stateNode,_e.nodeType===8?_e.parentNode.removeChild(tt):_e.removeChild(tt)):X$1.removeChild(tt.stateNode));break;case 18:X$1!==null&&(Yj?(_e=X$1,tt=tt.stateNode,_e.nodeType===8?Kf(_e.parentNode,tt):_e.nodeType===1&&Kf(_e,tt),bd(_e)):Kf(X$1,tt.stateNode));break;case 4:rt=X$1,nt=Yj,X$1=tt.stateNode.containerInfo,Yj=!0,Zj(_e,et,tt),X$1=rt,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U$1&&(rt=tt.updateQueue,rt!==null&&(rt=rt.lastEffect,rt!==null))){nt=rt=rt.next;do{var st=nt,ot=st.destroy;st=st.tag,ot!==void 0&&(st&2||st&4)&&Nj(tt,et,ot),nt=nt.next}while(nt!==rt)}Zj(_e,et,tt);break;case 1:if(!U$1&&(Mj(tt,et),rt=tt.stateNode,typeof rt.componentWillUnmount=="function"))try{rt.props=tt.memoizedProps,rt.state=tt.memoizedState,rt.componentWillUnmount()}catch(at){W$1(tt,et,at)}Zj(_e,et,tt);break;case 21:Zj(_e,et,tt);break;case 22:tt.mode&1?(U$1=(rt=U$1)||tt.memoizedState!==null,Zj(_e,et,tt),U$1=rt):Zj(_e,et,tt);break;default:Zj(_e,et,tt)}}function bk(_e){var et=_e.updateQueue;if(et!==null){_e.updateQueue=null;var tt=_e.stateNode;tt===null&&(tt=_e.stateNode=new Lj),et.forEach(function(rt){var nt=ck.bind(null,_e,rt);tt.has(rt)||(tt.add(rt),rt.then(nt,nt))})}}function dk(_e,et){var tt=et.deletions;if(tt!==null)for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];try{var st=_e,ot=et,at=ot;e:for(;at!==null;){switch(at.tag){case 5:X$1=at.stateNode,Yj=!1;break e;case 3:X$1=at.stateNode.containerInfo,Yj=!0;break e;case 4:X$1=at.stateNode.containerInfo,Yj=!0;break e}at=at.return}if(X$1===null)throw Error(p$3(160));ak(st,ot,nt),X$1=null,Yj=!1;var ut=nt.alternate;ut!==null&&(ut.return=null),nt.return=null}catch(lt){W$1(nt,et,lt)}}if(et.subtreeFlags&12854)for(et=et.child;et!==null;)ek(et,_e),et=et.sibling}function ek(_e,et){var tt=_e.alternate,rt=_e.flags;switch(_e.tag){case 0:case 11:case 14:case 15:if(dk(et,_e),fk(_e),rt&4){try{Qj(3,_e,_e.return),Rj(3,_e)}catch(vt){W$1(_e,_e.return,vt)}try{Qj(5,_e,_e.return)}catch(vt){W$1(_e,_e.return,vt)}}break;case 1:dk(et,_e),fk(_e),rt&512&&tt!==null&&Mj(tt,tt.return);break;case 5:if(dk(et,_e),fk(_e),rt&512&&tt!==null&&Mj(tt,tt.return),_e.flags&32){var nt=_e.stateNode;try{ob(nt,"")}catch(vt){W$1(_e,_e.return,vt)}}if(rt&4&&(nt=_e.stateNode,nt!=null)){var st=_e.memoizedProps,ot=tt!==null?tt.memoizedProps:st,at=_e.type,ut=_e.updateQueue;if(_e.updateQueue=null,ut!==null)try{at==="input"&&st.type==="radio"&&st.name!=null&&ab(nt,st),vb(at,ot);var lt=vb(at,st);for(ot=0;ot<ut.length;ot+=2){var dt=ut[ot],ct=ut[ot+1];dt==="style"?sb(nt,ct):dt==="dangerouslySetInnerHTML"?nb(nt,ct):dt==="children"?ob(nt,ct):ta(nt,dt,ct,lt)}switch(at){case"input":bb(nt,st);break;case"textarea":ib(nt,st);break;case"select":var ft=nt._wrapperState.wasMultiple;nt._wrapperState.wasMultiple=!!st.multiple;var ht=st.value;ht!=null?fb(nt,!!st.multiple,ht,!1):ft!==!!st.multiple&&(st.defaultValue!=null?fb(nt,!!st.multiple,st.defaultValue,!0):fb(nt,!!st.multiple,st.multiple?[]:"",!1))}nt[Pf]=st}catch(vt){W$1(_e,_e.return,vt)}}break;case 6:if(dk(et,_e),fk(_e),rt&4){if(_e.stateNode===null)throw Error(p$3(162));nt=_e.stateNode,st=_e.memoizedProps;try{nt.nodeValue=st}catch(vt){W$1(_e,_e.return,vt)}}break;case 3:if(dk(et,_e),fk(_e),rt&4&&tt!==null&&tt.memoizedState.isDehydrated)try{bd(et.containerInfo)}catch(vt){W$1(_e,_e.return,vt)}break;case 4:dk(et,_e),fk(_e);break;case 13:dk(et,_e),fk(_e),nt=_e.child,nt.flags&8192&&(st=nt.memoizedState!==null,nt.stateNode.isHidden=st,!st||nt.alternate!==null&&nt.alternate.memoizedState!==null||(gk=B())),rt&4&&bk(_e);break;case 22:if(dt=tt!==null&&tt.memoizedState!==null,_e.mode&1?(U$1=(lt=U$1)||dt,dk(et,_e),U$1=lt):dk(et,_e),fk(_e),rt&8192){if(lt=_e.memoizedState!==null,(_e.stateNode.isHidden=lt)&&!dt&&_e.mode&1)for(V$2=_e,dt=_e.child;dt!==null;){for(ct=V$2=dt;V$2!==null;){switch(ft=V$2,ht=ft.child,ft.tag){case 0:case 11:case 14:case 15:Qj(4,ft,ft.return);break;case 1:Mj(ft,ft.return);var mt=ft.stateNode;if(typeof mt.componentWillUnmount=="function"){rt=ft,tt=ft.return;try{et=rt,mt.props=et.memoizedProps,mt.state=et.memoizedState,mt.componentWillUnmount()}catch(vt){W$1(rt,tt,vt)}}break;case 5:Mj(ft,ft.return);break;case 22:if(ft.memoizedState!==null){hk(ct);continue}}ht!==null?(ht.return=ft,V$2=ht):hk(ct)}dt=dt.sibling}e:for(dt=null,ct=_e;;){if(ct.tag===5){if(dt===null){dt=ct;try{nt=ct.stateNode,lt?(st=nt.style,typeof st.setProperty=="function"?st.setProperty("display","none","important"):st.display="none"):(at=ct.stateNode,ut=ct.memoizedProps.style,ot=ut!=null&&ut.hasOwnProperty("display")?ut.display:null,at.style.display=rb("display",ot))}catch(vt){W$1(_e,_e.return,vt)}}}else if(ct.tag===6){if(dt===null)try{ct.stateNode.nodeValue=lt?"":ct.memoizedProps}catch(vt){W$1(_e,_e.return,vt)}}else if((ct.tag!==22&&ct.tag!==23||ct.memoizedState===null||ct===_e)&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===_e)break e;for(;ct.sibling===null;){if(ct.return===null||ct.return===_e)break e;dt===ct&&(dt=null),ct=ct.return}dt===ct&&(dt=null),ct.sibling.return=ct.return,ct=ct.sibling}}break;case 19:dk(et,_e),fk(_e),rt&4&&bk(_e);break;case 21:break;default:dk(et,_e),fk(_e)}}function fk(_e){var et=_e.flags;if(et&2){try{e:{for(var tt=_e.return;tt!==null;){if(Uj(tt)){var rt=tt;break e}tt=tt.return}throw Error(p$3(160))}switch(rt.tag){case 5:var nt=rt.stateNode;rt.flags&32&&(ob(nt,""),rt.flags&=-33);var st=Vj(_e);Xj(_e,st,nt);break;case 3:case 4:var ot=rt.stateNode.containerInfo,at=Vj(_e);Wj(_e,at,ot);break;default:throw Error(p$3(161))}}catch(ut){W$1(_e,_e.return,ut)}_e.flags&=-3}et&4096&&(_e.flags&=-4097)}function ik(_e,et,tt){V$2=_e,jk(_e)}function jk(_e,et,tt){for(var rt=(_e.mode&1)!==0;V$2!==null;){var nt=V$2,st=nt.child;if(nt.tag===22&&rt){var ot=nt.memoizedState!==null||Kj;if(!ot){var at=nt.alternate,ut=at!==null&&at.memoizedState!==null||U$1;at=Kj;var lt=U$1;if(Kj=ot,(U$1=ut)&&!lt)for(V$2=nt;V$2!==null;)ot=V$2,ut=ot.child,ot.tag===22&&ot.memoizedState!==null?kk(nt):ut!==null?(ut.return=ot,V$2=ut):kk(nt);for(;st!==null;)V$2=st,jk(st),st=st.sibling;V$2=nt,Kj=at,U$1=lt}lk(_e)}else nt.subtreeFlags&8772&&st!==null?(st.return=nt,V$2=st):lk(_e)}}function lk(_e){for(;V$2!==null;){var et=V$2;if(et.flags&8772){var tt=et.alternate;try{if(et.flags&8772)switch(et.tag){case 0:case 11:case 15:U$1||Rj(5,et);break;case 1:var rt=et.stateNode;if(et.flags&4&&!U$1)if(tt===null)rt.componentDidMount();else{var nt=et.elementType===et.type?tt.memoizedProps:Lg(et.type,tt.memoizedProps);rt.componentDidUpdate(nt,tt.memoizedState,rt.__reactInternalSnapshotBeforeUpdate)}var st=et.updateQueue;st!==null&&ih(et,st,rt);break;case 3:var ot=et.updateQueue;if(ot!==null){if(tt=null,et.child!==null)switch(et.child.tag){case 5:tt=et.child.stateNode;break;case 1:tt=et.child.stateNode}ih(et,ot,tt)}break;case 5:var at=et.stateNode;if(tt===null&&et.flags&4){tt=at;var ut=et.memoizedProps;switch(et.type){case"button":case"input":case"select":case"textarea":ut.autoFocus&&tt.focus();break;case"img":ut.src&&(tt.src=ut.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(et.memoizedState===null){var lt=et.alternate;if(lt!==null){var dt=lt.memoizedState;if(dt!==null){var ct=dt.dehydrated;ct!==null&&bd(ct)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$3(163))}U$1||et.flags&512&&Sj(et)}catch(ft){W$1(et,et.return,ft)}}if(et===_e){V$2=null;break}if(tt=et.sibling,tt!==null){tt.return=et.return,V$2=tt;break}V$2=et.return}}function hk(_e){for(;V$2!==null;){var et=V$2;if(et===_e){V$2=null;break}var tt=et.sibling;if(tt!==null){tt.return=et.return,V$2=tt;break}V$2=et.return}}function kk(_e){for(;V$2!==null;){var et=V$2;try{switch(et.tag){case 0:case 11:case 15:var tt=et.return;try{Rj(4,et)}catch(ut){W$1(et,tt,ut)}break;case 1:var rt=et.stateNode;if(typeof rt.componentDidMount=="function"){var nt=et.return;try{rt.componentDidMount()}catch(ut){W$1(et,nt,ut)}}var st=et.return;try{Sj(et)}catch(ut){W$1(et,st,ut)}break;case 5:var ot=et.return;try{Sj(et)}catch(ut){W$1(et,ot,ut)}}}catch(ut){W$1(et,et.return,ut)}if(et===_e){V$2=null;break}var at=et.sibling;if(at!==null){at.return=et.return,V$2=at;break}V$2=et.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y$1=null,Z$1=0,gj=0,fj=Uf(0),T$2=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$1(){return K&6?B():Bk!==-1?Bk:Bk=B()}function lh(_e){return _e.mode&1?K&2&&Z$1!==0?Z$1&-Z$1:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(_e=C$1,_e!==0||(_e=window.event,_e=_e===void 0?16:jd(_e.type)),_e):1}function mh(_e,et,tt,rt){if(50<zk)throw zk=0,Ak=null,Error(p$3(185));Ac(_e,tt,rt),(!(K&2)||_e!==R)&&(_e===R&&(!(K&2)&&(rk|=tt),T$2===4&&Dk(_e,Z$1)),Ek(_e,rt),tt===1&&K===0&&!(et.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(_e,et){var tt=_e.callbackNode;wc(_e,et);var rt=uc(_e,_e===R?Z$1:0);if(rt===0)tt!==null&&bc(tt),_e.callbackNode=null,_e.callbackPriority=0;else if(et=rt&-rt,_e.callbackPriority!==et){if(tt!=null&&bc(tt),et===1)_e.tag===0?ig(Fk.bind(null,_e)):hg(Fk.bind(null,_e)),Jf(function(){!(K&6)&&jg()}),tt=null;else{switch(Dc(rt)){case 1:tt=fc;break;case 4:tt=gc;break;case 16:tt=hc;break;case 536870912:tt=jc;break;default:tt=hc}tt=Gk(tt,Hk.bind(null,_e))}_e.callbackPriority=et,_e.callbackNode=tt}}function Hk(_e,et){if(Bk=-1,Ck=0,K&6)throw Error(p$3(327));var tt=_e.callbackNode;if(Ik()&&_e.callbackNode!==tt)return null;var rt=uc(_e,_e===R?Z$1:0);if(rt===0)return null;if(rt&30||rt&_e.expiredLanes||et)et=Jk(_e,rt);else{et=rt;var nt=K;K|=2;var st=Kk();(R!==_e||Z$1!==et)&&(vk=null,Hj=B()+500,Lk(_e,et));do try{Mk();break}catch(at){Nk(_e,at)}while(1);Qg(),nk.current=st,K=nt,Y$1!==null?et=0:(R=null,Z$1=0,et=T$2)}if(et!==0){if(et===2&&(nt=xc(_e),nt!==0&&(rt=nt,et=Ok(_e,nt))),et===1)throw tt=qk,Lk(_e,0),Dk(_e,rt),Ek(_e,B()),tt;if(et===6)Dk(_e,rt);else{if(nt=_e.current.alternate,!(rt&30)&&!Pk(nt)&&(et=Jk(_e,rt),et===2&&(st=xc(_e),st!==0&&(rt=st,et=Ok(_e,st))),et===1))throw tt=qk,Lk(_e,0),Dk(_e,rt),Ek(_e,B()),tt;switch(_e.finishedWork=nt,_e.finishedLanes=rt,et){case 0:case 1:throw Error(p$3(345));case 2:Qk(_e,uk,vk);break;case 3:if(Dk(_e,rt),(rt&130023424)===rt&&(et=gk+500-B(),10<et)){if(uc(_e,0)!==0)break;if(nt=_e.suspendedLanes,(nt&rt)!==rt){L$1(),_e.pingedLanes|=_e.suspendedLanes&nt;break}_e.timeoutHandle=Ff(Qk.bind(null,_e,uk,vk),et);break}Qk(_e,uk,vk);break;case 4:if(Dk(_e,rt),(rt&4194240)===rt)break;for(et=_e.eventTimes,nt=-1;0<rt;){var ot=31-oc(rt);st=1<<ot,ot=et[ot],ot>nt&&(nt=ot),rt&=~st}if(rt=nt,rt=B()-rt,rt=(120>rt?120:480>rt?480:1080>rt?1080:1920>rt?1920:3e3>rt?3e3:4320>rt?4320:1960*mk(rt/1960))-rt,10<rt){_e.timeoutHandle=Ff(Qk.bind(null,_e,uk,vk),rt);break}Qk(_e,uk,vk);break;case 5:Qk(_e,uk,vk);break;default:throw Error(p$3(329))}}}return Ek(_e,B()),_e.callbackNode===tt?Hk.bind(null,_e):null}function Ok(_e,et){var tt=tk;return _e.current.memoizedState.isDehydrated&&(Lk(_e,et).flags|=256),_e=Jk(_e,et),_e!==2&&(et=uk,uk=tt,et!==null&&Gj(et)),_e}function Gj(_e){uk===null?uk=_e:uk.push.apply(uk,_e)}function Pk(_e){for(var et=_e;;){if(et.flags&16384){var tt=et.updateQueue;if(tt!==null&&(tt=tt.stores,tt!==null))for(var rt=0;rt<tt.length;rt++){var nt=tt[rt],st=nt.getSnapshot;nt=nt.value;try{if(!He(st(),nt))return!1}catch{return!1}}}if(tt=et.child,et.subtreeFlags&16384&&tt!==null)tt.return=et,et=tt;else{if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return!0;et=et.return}et.sibling.return=et.return,et=et.sibling}}return!0}function Dk(_e,et){for(et&=~sk,et&=~rk,_e.suspendedLanes|=et,_e.pingedLanes&=~et,_e=_e.expirationTimes;0<et;){var tt=31-oc(et),rt=1<<tt;_e[tt]=-1,et&=~rt}}function Fk(_e){if(K&6)throw Error(p$3(327));Ik();var et=uc(_e,0);if(!(et&1))return Ek(_e,B()),null;var tt=Jk(_e,et);if(_e.tag!==0&&tt===2){var rt=xc(_e);rt!==0&&(et=rt,tt=Ok(_e,rt))}if(tt===1)throw tt=qk,Lk(_e,0),Dk(_e,et),Ek(_e,B()),tt;if(tt===6)throw Error(p$3(345));return _e.finishedWork=_e.current.alternate,_e.finishedLanes=et,Qk(_e,uk,vk),Ek(_e,B()),null}function Rk(_e,et){var tt=K;K|=1;try{return _e(et)}finally{K=tt,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(_e){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var et=K;K|=1;var tt=pk.transition,rt=C$1;try{if(pk.transition=null,C$1=1,_e)return _e()}finally{C$1=rt,pk.transition=tt,K=et,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(_e,et){_e.finishedWork=null,_e.finishedLanes=0;var tt=_e.timeoutHandle;if(tt!==-1&&(_e.timeoutHandle=-1,Gf(tt)),Y$1!==null)for(tt=Y$1.return;tt!==null;){var rt=tt;switch(wg(rt),rt.tag){case 1:rt=rt.type.childContextTypes,rt!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(rt);break;case 4:Jh();break;case 13:E(M$1);break;case 19:E(M$1);break;case 10:Rg(rt.type._context);break;case 22:case 23:Ij()}tt=tt.return}if(R=_e,Y$1=_e=wh(_e.current,null),Z$1=gj=et,T$2=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(et=0;et<Wg.length;et++)if(tt=Wg[et],rt=tt.interleaved,rt!==null){tt.interleaved=null;var nt=rt.next,st=tt.pending;if(st!==null){var ot=st.next;st.next=nt,rt.next=ot}tt.pending=rt}Wg=null}return _e}function Nk(_e,et){do{var tt=Y$1;try{if(Qg(),Ph.current=ai,Sh){for(var rt=N.memoizedState;rt!==null;){var nt=rt.queue;nt!==null&&(nt.pending=null),rt=rt.next}Sh=!1}if(Rh=0,P$1=O$2=N=null,Th=!1,Uh=0,ok.current=null,tt===null||tt.return===null){T$2=1,qk=et,Y$1=null;break}e:{var st=_e,ot=tt.return,at=tt,ut=et;if(et=Z$1,at.flags|=32768,ut!==null&&typeof ut=="object"&&typeof ut.then=="function"){var lt=ut,dt=at,ct=dt.tag;if(!(dt.mode&1)&&(ct===0||ct===11||ct===15)){var ft=dt.alternate;ft?(dt.updateQueue=ft.updateQueue,dt.memoizedState=ft.memoizedState,dt.lanes=ft.lanes):(dt.updateQueue=null,dt.memoizedState=null)}var ht=Vi(ot);if(ht!==null){ht.flags&=-257,Wi(ht,ot,at,st,et),ht.mode&1&&Ti(st,lt,et),et=ht,ut=lt;var mt=et.updateQueue;if(mt===null){var vt=new Set;vt.add(ut),et.updateQueue=vt}else mt.add(ut);break e}else{if(!(et&1)){Ti(st,lt,et),uj();break e}ut=Error(p$3(426))}}else if(I$2&&at.mode&1){var wt=Vi(ot);if(wt!==null){!(wt.flags&65536)&&(wt.flags|=256),Wi(wt,ot,at,st,et),Jg(Ki(ut,at));break e}}st=ut=Ki(ut,at),T$2!==4&&(T$2=2),tk===null?tk=[st]:tk.push(st),st=ot;do{switch(st.tag){case 3:st.flags|=65536,et&=-et,st.lanes|=et;var gt=Oi(st,ut,et);fh(st,gt);break e;case 1:at=ut;var yt=st.type,xt=st.stateNode;if(!(st.flags&128)&&(typeof yt.getDerivedStateFromError=="function"||xt!==null&&typeof xt.componentDidCatch=="function"&&(Si===null||!Si.has(xt)))){st.flags|=65536,et&=-et,st.lanes|=et;var St=Ri(st,at,et);fh(st,St);break e}}st=st.return}while(st!==null)}Tk(tt)}catch(bt){et=bt,Y$1===tt&&tt!==null&&(Y$1=tt=tt.return);continue}break}while(1)}function Kk(){var _e=nk.current;return nk.current=ai,_e===null?ai:_e}function uj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),R===null||!(hh&268435455)&&!(rk&268435455)||Dk(R,Z$1)}function Jk(_e,et){var tt=K;K|=2;var rt=Kk();(R!==_e||Z$1!==et)&&(vk=null,Lk(_e,et));do try{Uk();break}catch(nt){Nk(_e,nt)}while(1);if(Qg(),K=tt,nk.current=rt,Y$1!==null)throw Error(p$3(261));return R=null,Z$1=0,T$2}function Uk(){for(;Y$1!==null;)Vk(Y$1)}function Mk(){for(;Y$1!==null&&!cc();)Vk(Y$1)}function Vk(_e){var et=Wk(_e.alternate,_e,gj);_e.memoizedProps=_e.pendingProps,et===null?Tk(_e):Y$1=et,ok.current=null}function Tk(_e){var et=_e;do{var tt=et.alternate;if(_e=et.return,et.flags&32768){if(tt=Jj(tt,et),tt!==null){tt.flags&=32767,Y$1=tt;return}if(_e!==null)_e.flags|=32768,_e.subtreeFlags=0,_e.deletions=null;else{T$2=6,Y$1=null;return}}else if(tt=Fj(tt,et,gj),tt!==null){Y$1=tt;return}if(et=et.sibling,et!==null){Y$1=et;return}Y$1=et=_e}while(et!==null);T$2===0&&(T$2=5)}function Qk(_e,et,tt){var rt=C$1,nt=pk.transition;try{pk.transition=null,C$1=1,Xk(_e,et,tt,rt)}finally{pk.transition=nt,C$1=rt}return null}function Xk(_e,et,tt,rt){do Ik();while(xk!==null);if(K&6)throw Error(p$3(327));tt=_e.finishedWork;var nt=_e.finishedLanes;if(tt===null)return null;if(_e.finishedWork=null,_e.finishedLanes=0,tt===_e.current)throw Error(p$3(177));_e.callbackNode=null,_e.callbackPriority=0;var st=tt.lanes|tt.childLanes;if(Bc(_e,st),_e===R&&(Y$1=R=null,Z$1=0),!(tt.subtreeFlags&2064)&&!(tt.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),st=(tt.flags&15990)!==0,tt.subtreeFlags&15990||st){st=pk.transition,pk.transition=null;var ot=C$1;C$1=1;var at=K;K|=4,ok.current=null,Pj(_e,tt),ek(tt,_e),Oe(Df),dd=!!Cf,Df=Cf=null,_e.current=tt,ik(tt),dc(),K=at,C$1=ot,pk.transition=st}else _e.current=tt;if(wk&&(wk=!1,xk=_e,yk=nt),st=_e.pendingLanes,st===0&&(Si=null),mc(tt.stateNode),Ek(_e,B()),et!==null)for(rt=_e.onRecoverableError,tt=0;tt<et.length;tt++)nt=et[tt],rt(nt.value,{componentStack:nt.stack,digest:nt.digest});if(Pi)throw Pi=!1,_e=Qi,Qi=null,_e;return yk&1&&_e.tag!==0&&Ik(),st=_e.pendingLanes,st&1?_e===Ak?zk++:(zk=0,Ak=_e):zk=0,jg(),null}function Ik(){if(xk!==null){var _e=Dc(yk),et=pk.transition,tt=C$1;try{if(pk.transition=null,C$1=16>_e?16:_e,xk===null)var rt=!1;else{if(_e=xk,xk=null,yk=0,K&6)throw Error(p$3(331));var nt=K;for(K|=4,V$2=_e.current;V$2!==null;){var st=V$2,ot=st.child;if(V$2.flags&16){var at=st.deletions;if(at!==null){for(var ut=0;ut<at.length;ut++){var lt=at[ut];for(V$2=lt;V$2!==null;){var dt=V$2;switch(dt.tag){case 0:case 11:case 15:Qj(8,dt,st)}var ct=dt.child;if(ct!==null)ct.return=dt,V$2=ct;else for(;V$2!==null;){dt=V$2;var ft=dt.sibling,ht=dt.return;if(Tj(dt),dt===lt){V$2=null;break}if(ft!==null){ft.return=ht,V$2=ft;break}V$2=ht}}}var mt=st.alternate;if(mt!==null){var vt=mt.child;if(vt!==null){mt.child=null;do{var wt=vt.sibling;vt.sibling=null,vt=wt}while(vt!==null)}}V$2=st}}if(st.subtreeFlags&2064&&ot!==null)ot.return=st,V$2=ot;else e:for(;V$2!==null;){if(st=V$2,st.flags&2048)switch(st.tag){case 0:case 11:case 15:Qj(9,st,st.return)}var gt=st.sibling;if(gt!==null){gt.return=st.return,V$2=gt;break e}V$2=st.return}}var yt=_e.current;for(V$2=yt;V$2!==null;){ot=V$2;var xt=ot.child;if(ot.subtreeFlags&2064&&xt!==null)xt.return=ot,V$2=xt;else e:for(ot=yt;V$2!==null;){if(at=V$2,at.flags&2048)try{switch(at.tag){case 0:case 11:case 15:Rj(9,at)}}catch(bt){W$1(at,at.return,bt)}if(at===ot){V$2=null;break e}var St=at.sibling;if(St!==null){St.return=at.return,V$2=St;break e}V$2=at.return}}if(K=nt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,_e)}catch{}rt=!0}return rt}finally{C$1=tt,pk.transition=et}}return!1}function Yk(_e,et,tt){et=Ki(tt,et),et=Oi(_e,et,1),_e=dh(_e,et,1),et=L$1(),_e!==null&&(Ac(_e,1,et),Ek(_e,et))}function W$1(_e,et,tt){if(_e.tag===3)Yk(_e,_e,tt);else for(;et!==null;){if(et.tag===3){Yk(et,_e,tt);break}else if(et.tag===1){var rt=et.stateNode;if(typeof et.type.getDerivedStateFromError=="function"||typeof rt.componentDidCatch=="function"&&(Si===null||!Si.has(rt))){_e=Ki(tt,_e),_e=Ri(et,_e,1),et=dh(et,_e,1),_e=L$1(),et!==null&&(Ac(et,1,_e),Ek(et,_e));break}}et=et.return}}function Ui(_e,et,tt){var rt=_e.pingCache;rt!==null&&rt.delete(et),et=L$1(),_e.pingedLanes|=_e.suspendedLanes&tt,R===_e&&(Z$1&tt)===tt&&(T$2===4||T$2===3&&(Z$1&130023424)===Z$1&&500>B()-gk?Lk(_e,0):sk|=tt),Ek(_e,et)}function Zk(_e,et){et===0&&(_e.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var tt=L$1();_e=Zg(_e,et),_e!==null&&(Ac(_e,et,tt),Ek(_e,tt))}function vj(_e){var et=_e.memoizedState,tt=0;et!==null&&(tt=et.retryLane),Zk(_e,tt)}function ck(_e,et){var tt=0;switch(_e.tag){case 13:var rt=_e.stateNode,nt=_e.memoizedState;nt!==null&&(tt=nt.retryLane);break;case 19:rt=_e.stateNode;break;default:throw Error(p$3(314))}rt!==null&&rt.delete(et),Zk(_e,tt)}var Wk;Wk=function(_e,et,tt){if(_e!==null)if(_e.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(_e.lanes&tt)&&!(et.flags&128))return Ug=!1,zj(_e,et,tt);Ug=!!(_e.flags&131072)}else Ug=!1,I$2&&et.flags&1048576&&ug(et,ng,et.index);switch(et.lanes=0,et.tag){case 2:var rt=et.type;jj(_e,et),_e=et.pendingProps;var nt=Yf(et,H.current);Tg(et,tt),nt=Xh(null,et,rt,_e,nt,tt);var st=bi();return et.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(rt)?(st=!0,cg(et)):st=!1,et.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(et),nt.updater=nh,et.stateNode=nt,nt._reactInternals=et,rh(et,rt,_e,tt),et=kj(null,et,rt,!0,st,tt)):(et.tag=0,I$2&&st&&vg(et),Yi(null,et,nt,tt),et=et.child),et;case 16:rt=et.elementType;e:{switch(jj(_e,et),_e=et.pendingProps,nt=rt._init,rt=nt(rt._payload),et.type=rt,nt=et.tag=$k(rt),_e=Lg(rt,_e),nt){case 0:et=dj(null,et,rt,_e,tt);break e;case 1:et=ij(null,et,rt,_e,tt);break e;case 11:et=Zi(null,et,rt,_e,tt);break e;case 14:et=aj(null,et,rt,Lg(rt.type,_e),tt);break e}throw Error(p$3(306,rt,""))}return et;case 0:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),dj(_e,et,rt,nt,tt);case 1:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),ij(_e,et,rt,nt,tt);case 3:e:{if(lj(et),_e===null)throw Error(p$3(387));rt=et.pendingProps,st=et.memoizedState,nt=st.element,bh(_e,et),gh(et,rt,null,tt);var ot=et.memoizedState;if(rt=ot.element,st.isDehydrated)if(st={element:rt,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},et.updateQueue.baseState=st,et.memoizedState=st,et.flags&256){nt=Ki(Error(p$3(423)),et),et=mj(_e,et,rt,tt,nt);break e}else if(rt!==nt){nt=Ki(Error(p$3(424)),et),et=mj(_e,et,rt,tt,nt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$2=!0,zg=null,tt=Ch(et,null,rt,tt),et.child=tt;tt;)tt.flags=tt.flags&-3|4096,tt=tt.sibling;else{if(Ig(),rt===nt){et=$i(_e,et,tt);break e}Yi(_e,et,rt,tt)}et=et.child}return et;case 5:return Kh(et),_e===null&&Eg(et),rt=et.type,nt=et.pendingProps,st=_e!==null?_e.memoizedProps:null,ot=nt.children,Ef(rt,nt)?ot=null:st!==null&&Ef(rt,st)&&(et.flags|=32),hj(_e,et),Yi(_e,et,ot,tt),et.child;case 6:return _e===null&&Eg(et),null;case 13:return pj(_e,et,tt);case 4:return Ih(et,et.stateNode.containerInfo),rt=et.pendingProps,_e===null?et.child=Bh(et,null,rt,tt):Yi(_e,et,rt,tt),et.child;case 11:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),Zi(_e,et,rt,nt,tt);case 7:return Yi(_e,et,et.pendingProps,tt),et.child;case 8:return Yi(_e,et,et.pendingProps.children,tt),et.child;case 12:return Yi(_e,et,et.pendingProps.children,tt),et.child;case 10:e:{if(rt=et.type._context,nt=et.pendingProps,st=et.memoizedProps,ot=nt.value,G$2(Mg,rt._currentValue),rt._currentValue=ot,st!==null)if(He(st.value,ot)){if(st.children===nt.children&&!Wf.current){et=$i(_e,et,tt);break e}}else for(st=et.child,st!==null&&(st.return=et);st!==null;){var at=st.dependencies;if(at!==null){ot=st.child;for(var ut=at.firstContext;ut!==null;){if(ut.context===rt){if(st.tag===1){ut=ch(-1,tt&-tt),ut.tag=2;var lt=st.updateQueue;if(lt!==null){lt=lt.shared;var dt=lt.pending;dt===null?ut.next=ut:(ut.next=dt.next,dt.next=ut),lt.pending=ut}}st.lanes|=tt,ut=st.alternate,ut!==null&&(ut.lanes|=tt),Sg(st.return,tt,et),at.lanes|=tt;break}ut=ut.next}}else if(st.tag===10)ot=st.type===et.type?null:st.child;else if(st.tag===18){if(ot=st.return,ot===null)throw Error(p$3(341));ot.lanes|=tt,at=ot.alternate,at!==null&&(at.lanes|=tt),Sg(ot,tt,et),ot=st.sibling}else ot=st.child;if(ot!==null)ot.return=st;else for(ot=st;ot!==null;){if(ot===et){ot=null;break}if(st=ot.sibling,st!==null){st.return=ot.return,ot=st;break}ot=ot.return}st=ot}Yi(_e,et,nt.children,tt),et=et.child}return et;case 9:return nt=et.type,rt=et.pendingProps.children,Tg(et,tt),nt=Vg(nt),rt=rt(nt),et.flags|=1,Yi(_e,et,rt,tt),et.child;case 14:return rt=et.type,nt=Lg(rt,et.pendingProps),nt=Lg(rt.type,nt),aj(_e,et,rt,nt,tt);case 15:return cj(_e,et,et.type,et.pendingProps,tt);case 17:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),jj(_e,et),et.tag=1,Zf(rt)?(_e=!0,cg(et)):_e=!1,Tg(et,tt),ph(et,rt,nt),rh(et,rt,nt,tt),kj(null,et,rt,!0,_e,tt);case 19:return yj(_e,et,tt);case 22:return ej(_e,et,tt)}throw Error(p$3(156,et.tag))};function Gk(_e,et){return ac(_e,et)}function al(_e,et,tt,rt){this.tag=_e,this.key=tt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=rt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(_e,et,tt,rt){return new al(_e,et,tt,rt)}function bj(_e){return _e=_e.prototype,!(!_e||!_e.isReactComponent)}function $k(_e){if(typeof _e=="function")return bj(_e)?1:0;if(_e!=null){if(_e=_e.$$typeof,_e===Da)return 11;if(_e===Ga)return 14}return 2}function wh(_e,et){var tt=_e.alternate;return tt===null?(tt=Bg(_e.tag,et,_e.key,_e.mode),tt.elementType=_e.elementType,tt.type=_e.type,tt.stateNode=_e.stateNode,tt.alternate=_e,_e.alternate=tt):(tt.pendingProps=et,tt.type=_e.type,tt.flags=0,tt.subtreeFlags=0,tt.deletions=null),tt.flags=_e.flags&14680064,tt.childLanes=_e.childLanes,tt.lanes=_e.lanes,tt.child=_e.child,tt.memoizedProps=_e.memoizedProps,tt.memoizedState=_e.memoizedState,tt.updateQueue=_e.updateQueue,et=_e.dependencies,tt.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},tt.sibling=_e.sibling,tt.index=_e.index,tt.ref=_e.ref,tt}function yh(_e,et,tt,rt,nt,st){var ot=2;if(rt=_e,typeof _e=="function")bj(_e)&&(ot=1);else if(typeof _e=="string")ot=5;else e:switch(_e){case ya:return Ah(tt.children,nt,st,et);case za:ot=8,nt|=8;break;case Aa:return _e=Bg(12,tt,et,nt|2),_e.elementType=Aa,_e.lanes=st,_e;case Ea:return _e=Bg(13,tt,et,nt),_e.elementType=Ea,_e.lanes=st,_e;case Fa:return _e=Bg(19,tt,et,nt),_e.elementType=Fa,_e.lanes=st,_e;case Ia:return qj(tt,nt,st,et);default:if(typeof _e=="object"&&_e!==null)switch(_e.$$typeof){case Ba:ot=10;break e;case Ca:ot=9;break e;case Da:ot=11;break e;case Ga:ot=14;break e;case Ha:ot=16,rt=null;break e}throw Error(p$3(130,_e==null?_e:typeof _e,""))}return et=Bg(ot,tt,et,nt),et.elementType=_e,et.type=rt,et.lanes=st,et}function Ah(_e,et,tt,rt){return _e=Bg(7,_e,rt,et),_e.lanes=tt,_e}function qj(_e,et,tt,rt){return _e=Bg(22,_e,rt,et),_e.elementType=Ia,_e.lanes=tt,_e.stateNode={isHidden:!1},_e}function xh(_e,et,tt){return _e=Bg(6,_e,null,et),_e.lanes=tt,_e}function zh(_e,et,tt){return et=Bg(4,_e.children!==null?_e.children:[],_e.key,et),et.lanes=tt,et.stateNode={containerInfo:_e.containerInfo,pendingChildren:null,implementation:_e.implementation},et}function bl(_e,et,tt,rt,nt){this.tag=et,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=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=rt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl(_e,et,tt,rt,nt,st,ot,at,ut){return _e=new bl(_e,et,tt,at,ut),et===1?(et=1,st===!0&&(et|=8)):et=0,st=Bg(3,null,null,et),_e.current=st,st.stateNode=_e,st.memoizedState={element:rt,isDehydrated:tt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(st),_e}function dl(_e,et,tt){var rt=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:rt==null?null:""+rt,children:_e,containerInfo:et,implementation:tt}}function el(_e){if(!_e)return Vf;_e=_e._reactInternals;e:{if(Vb(_e)!==_e||_e.tag!==1)throw Error(p$3(170));var et=_e;do{switch(et.tag){case 3:et=et.stateNode.context;break e;case 1:if(Zf(et.type)){et=et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}et=et.return}while(et!==null);throw Error(p$3(171))}if(_e.tag===1){var tt=_e.type;if(Zf(tt))return bg(_e,tt,et)}return et}function fl(_e,et,tt,rt,nt,st,ot,at,ut){return _e=cl(tt,rt,!0,_e,nt,st,ot,at,ut),_e.context=el(null),tt=_e.current,rt=L$1(),nt=lh(tt),st=ch(rt,nt),st.callback=et??null,dh(tt,st,nt),_e.current.lanes=nt,Ac(_e,nt,rt),Ek(_e,rt),_e}function gl(_e,et,tt,rt){var nt=et.current,st=L$1(),ot=lh(nt);return tt=el(tt),et.context===null?et.context=tt:et.pendingContext=tt,et=ch(st,ot),et.payload={element:_e},rt=rt===void 0?null:rt,rt!==null&&(et.callback=rt),_e=dh(nt,et,ot),_e!==null&&(mh(_e,nt,ot,st),eh(_e,nt,ot)),ot}function hl(_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 il(_e,et){if(_e=_e.memoizedState,_e!==null&&_e.dehydrated!==null){var tt=_e.retryLane;_e.retryLane=tt!==0&&tt<et?tt:et}}function jl(_e,et){il(_e,et),(_e=_e.alternate)&&il(_e,et)}function kl(){return null}var ll=typeof reportError=="function"?reportError:function(_e){console.error(_e)};function ml(_e){this._internalRoot=_e}nl.prototype.render=ml.prototype.render=function(_e){var et=this._internalRoot;if(et===null)throw Error(p$3(409));gl(_e,et,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var _e=this._internalRoot;if(_e!==null){this._internalRoot=null;var et=_e.containerInfo;Sk(function(){gl(null,_e,null,null)}),et[uf]=null}};function nl(_e){this._internalRoot=_e}nl.prototype.unstable_scheduleHydration=function(_e){if(_e){var et=Hc();_e={blockedOn:null,target:_e,priority:et};for(var tt=0;tt<Qc.length&&et!==0&&et<Qc[tt].priority;tt++);Qc.splice(tt,0,_e),tt===0&&Vc(_e)}};function ol(_e){return!(!_e||_e.nodeType!==1&&_e.nodeType!==9&&_e.nodeType!==11)}function pl(_e){return!(!_e||_e.nodeType!==1&&_e.nodeType!==9&&_e.nodeType!==11&&(_e.nodeType!==8||_e.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(_e,et,tt,rt,nt){if(nt){if(typeof rt=="function"){var st=rt;rt=function(){var lt=hl(ot);st.call(lt)}}var ot=fl(et,rt,_e,0,null,!1,!1,"",ql);return _e._reactRootContainer=ot,_e[uf]=ot.current,sf(_e.nodeType===8?_e.parentNode:_e),Sk(),ot}for(;nt=_e.lastChild;)_e.removeChild(nt);if(typeof rt=="function"){var at=rt;rt=function(){var lt=hl(ut);at.call(lt)}}var ut=cl(_e,0,!1,null,null,!1,!1,"",ql);return _e._reactRootContainer=ut,_e[uf]=ut.current,sf(_e.nodeType===8?_e.parentNode:_e),Sk(function(){gl(et,ut,tt,rt)}),ut}function sl(_e,et,tt,rt,nt){var st=tt._reactRootContainer;if(st){var ot=st;if(typeof nt=="function"){var at=nt;nt=function(){var ut=hl(ot);at.call(ut)}}gl(et,ot,_e,nt)}else ot=rl(tt,et,_e,nt,rt);return hl(ot)}Ec=function(_e){switch(_e.tag){case 3:var et=_e.stateNode;if(et.current.memoizedState.isDehydrated){var tt=tc(et.pendingLanes);tt!==0&&(Cc(et,tt|1),Ek(et,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var rt=Zg(_e,1);if(rt!==null){var nt=L$1();mh(rt,_e,1,nt)}}),jl(_e,1)}};Fc=function(_e){if(_e.tag===13){var et=Zg(_e,134217728);if(et!==null){var tt=L$1();mh(et,_e,134217728,tt)}jl(_e,134217728)}};Gc=function(_e){if(_e.tag===13){var et=lh(_e),tt=Zg(_e,et);if(tt!==null){var rt=L$1();mh(tt,_e,et,rt)}jl(_e,et)}};Hc=function(){return C$1};Ic=function(_e,et){var tt=C$1;try{return C$1=_e,et()}finally{C$1=tt}};yb=function(_e,et,tt){switch(et){case"input":if(bb(_e,tt),et=tt.name,tt.type==="radio"&&et!=null){for(tt=_e;tt.parentNode;)tt=tt.parentNode;for(tt=tt.querySelectorAll("input[name="+JSON.stringify(""+et)+'][type="radio"]'),et=0;et<tt.length;et++){var rt=tt[et];if(rt!==_e&&rt.form===_e.form){var nt=Db(rt);if(!nt)throw Error(p$3(90));Wa(rt),bb(rt,nt)}}}break;case"textarea":ib(_e,tt);break;case"select":et=tt.value,et!=null&&fb(_e,!!tt.multiple,et,!1)}};Gb=Rk;Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(_e){return _e=Zb(_e),_e===null?null:_e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,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 wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;reactDom_production_min.createPortal=function(_e,et){var tt=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(et))throw Error(p$3(200));return dl(_e,et,null,tt)};reactDom_production_min.createRoot=function(_e,et){if(!ol(_e))throw Error(p$3(299));var tt=!1,rt="",nt=ll;return et!=null&&(et.unstable_strictMode===!0&&(tt=!0),et.identifierPrefix!==void 0&&(rt=et.identifierPrefix),et.onRecoverableError!==void 0&&(nt=et.onRecoverableError)),et=cl(_e,1,!1,null,null,tt,!1,rt,nt),_e[uf]=et.current,sf(_e.nodeType===8?_e.parentNode:_e),new ml(et)};reactDom_production_min.findDOMNode=function(_e){if(_e==null)return null;if(_e.nodeType===1)return _e;var et=_e._reactInternals;if(et===void 0)throw typeof _e.render=="function"?Error(p$3(188)):(_e=Object.keys(_e).join(","),Error(p$3(268,_e)));return _e=Zb(et),_e=_e===null?null:_e.stateNode,_e};reactDom_production_min.flushSync=function(_e){return Sk(_e)};reactDom_production_min.hydrate=function(_e,et,tt){if(!pl(et))throw Error(p$3(200));return sl(null,_e,et,!0,tt)};reactDom_production_min.hydrateRoot=function(_e,et,tt){if(!ol(_e))throw Error(p$3(405));var rt=tt!=null&&tt.hydratedSources||null,nt=!1,st="",ot=ll;if(tt!=null&&(tt.unstable_strictMode===!0&&(nt=!0),tt.identifierPrefix!==void 0&&(st=tt.identifierPrefix),tt.onRecoverableError!==void 0&&(ot=tt.onRecoverableError)),et=fl(et,null,_e,1,tt??null,nt,!1,st,ot),_e[uf]=et.current,sf(_e),rt)for(_e=0;_e<rt.length;_e++)tt=rt[_e],nt=tt._getVersion,nt=nt(tt._source),et.mutableSourceEagerHydrationData==null?et.mutableSourceEagerHydrationData=[tt,nt]:et.mutableSourceEagerHydrationData.push(tt,nt);return new nl(et)};reactDom_production_min.render=function(_e,et,tt){if(!pl(et))throw Error(p$3(200));return sl(null,_e,et,!1,tt)};reactDom_production_min.unmountComponentAtNode=function(_e){if(!pl(_e))throw Error(p$3(40));return _e._reactRootContainer?(Sk(function(){sl(null,null,_e,!1,function(){_e._reactRootContainer=null,_e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(_e,et,tt,rt){if(!pl(tt))throw Error(p$3(200));if(_e==null||_e._reactInternals===void 0)throw Error(p$3(38));return sl(_e,et,tt,!1,rt)};reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(_e){console.error(_e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,shim={exports:{}},useSyncExternalStoreShim_production_min={};/**
40
+ `+st.stack}return{value:_e,source:et,stack:nt,digest:null}}function Li(_e,et,tt){return{value:_e,source:null,stack:tt??null,digest:et??null}}function Mi(_e,et){try{console.error(et.value)}catch(tt){setTimeout(function(){throw tt})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(_e,et,tt){tt=ch(-1,tt),tt.tag=3,tt.payload={element:null};var rt=et.value;return tt.callback=function(){Pi||(Pi=!0,Qi=rt),Mi(_e,et)},tt}function Ri(_e,et,tt){tt=ch(-1,tt),tt.tag=3;var rt=_e.type.getDerivedStateFromError;if(typeof rt=="function"){var nt=et.value;tt.payload=function(){return rt(nt)},tt.callback=function(){Mi(_e,et)}}var st=_e.stateNode;return st!==null&&typeof st.componentDidCatch=="function"&&(tt.callback=function(){Mi(_e,et),typeof rt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var ot=et.stack;this.componentDidCatch(et.value,{componentStack:ot!==null?ot:""})}),tt}function Ti(_e,et,tt){var rt=_e.pingCache;if(rt===null){rt=_e.pingCache=new Ni;var nt=new Set;rt.set(et,nt)}else nt=rt.get(et),nt===void 0&&(nt=new Set,rt.set(et,nt));nt.has(tt)||(nt.add(tt),_e=Ui.bind(null,_e,et,tt),et.then(_e,_e))}function Vi(_e){do{var et;if((et=_e.tag===13)&&(et=_e.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return _e;_e=_e.return}while(_e!==null);return null}function Wi(_e,et,tt,rt,nt){return _e.mode&1?(_e.flags|=65536,_e.lanes=nt,_e):(_e===et?_e.flags|=65536:(_e.flags|=128,tt.flags|=131072,tt.flags&=-52805,tt.tag===1&&(tt.alternate===null?tt.tag=17:(et=ch(-1,1),et.tag=2,dh(tt,et,1))),tt.lanes|=1),_e)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(_e,et,tt,rt){et.child=_e===null?Ch(et,null,tt,rt):Bh(et,_e.child,tt,rt)}function Zi(_e,et,tt,rt,nt){tt=tt.render;var st=et.ref;return Tg(et,nt),rt=Xh(_e,et,tt,rt,st,nt),tt=bi(),_e!==null&&!Ug?(et.updateQueue=_e.updateQueue,et.flags&=-2053,_e.lanes&=~nt,$i(_e,et,nt)):(I$3&&tt&&vg(et),et.flags|=1,Yi(_e,et,rt,nt),et.child)}function aj(_e,et,tt,rt,nt){if(_e===null){var st=tt.type;return typeof st=="function"&&!bj(st)&&st.defaultProps===void 0&&tt.compare===null&&tt.defaultProps===void 0?(et.tag=15,et.type=st,cj(_e,et,st,rt,nt)):(_e=yh(tt.type,null,rt,et,et.mode,nt),_e.ref=et.ref,_e.return=et,et.child=_e)}if(st=_e.child,!(_e.lanes&nt)){var ot=st.memoizedProps;if(tt=tt.compare,tt=tt!==null?tt:Ie$1,tt(ot,rt)&&_e.ref===et.ref)return $i(_e,et,nt)}return et.flags|=1,_e=wh(st,rt),_e.ref=et.ref,_e.return=et,et.child=_e}function cj(_e,et,tt,rt,nt){if(_e!==null){var st=_e.memoizedProps;if(Ie$1(st,rt)&&_e.ref===et.ref)if(Ug=!1,et.pendingProps=rt=st,(_e.lanes&nt)!==0)_e.flags&131072&&(Ug=!0);else return et.lanes=_e.lanes,$i(_e,et,nt)}return dj(_e,et,tt,rt,nt)}function ej(_e,et,tt){var rt=et.pendingProps,nt=rt.children,st=_e!==null?_e.memoizedState:null;if(rt.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$2(fj,gj),gj|=tt;else{if(!(tt&1073741824))return _e=st!==null?st.baseLanes|tt:tt,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:_e,cachePool:null,transitions:null},et.updateQueue=null,G$2(fj,gj),gj|=_e,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt=st!==null?st.baseLanes:tt,G$2(fj,gj),gj|=rt}else st!==null?(rt=st.baseLanes|tt,et.memoizedState=null):rt=tt,G$2(fj,gj),gj|=rt;return Yi(_e,et,nt,tt),et.child}function hj(_e,et){var tt=et.ref;(_e===null&&tt!==null||_e!==null&&_e.ref!==tt)&&(et.flags|=512,et.flags|=2097152)}function dj(_e,et,tt,rt,nt){var st=Zf(tt)?Xf:H.current;return st=Yf(et,st),Tg(et,nt),tt=Xh(_e,et,tt,rt,st,nt),rt=bi(),_e!==null&&!Ug?(et.updateQueue=_e.updateQueue,et.flags&=-2053,_e.lanes&=~nt,$i(_e,et,nt)):(I$3&&rt&&vg(et),et.flags|=1,Yi(_e,et,tt,nt),et.child)}function ij(_e,et,tt,rt,nt){if(Zf(tt)){var st=!0;cg(et)}else st=!1;if(Tg(et,nt),et.stateNode===null)jj(_e,et),ph(et,tt,rt),rh(et,tt,rt,nt),rt=!0;else if(_e===null){var ot=et.stateNode,at=et.memoizedProps;ot.props=at;var ut=ot.context,lt=tt.contextType;typeof lt=="object"&&lt!==null?lt=Vg(lt):(lt=Zf(tt)?Xf:H.current,lt=Yf(et,lt));var dt=tt.getDerivedStateFromProps,ct=typeof dt=="function"||typeof ot.getSnapshotBeforeUpdate=="function";ct||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(at!==rt||ut!==lt)&&qh(et,ot,rt,lt),$g=!1;var ft=et.memoizedState;ot.state=ft,gh(et,rt,ot,nt),ut=et.memoizedState,at!==rt||ft!==ut||Wf.current||$g?(typeof dt=="function"&&(kh(et,tt,dt,rt),ut=et.memoizedState),(at=$g||oh(et,tt,at,rt,ft,ut,lt))?(ct||typeof ot.UNSAFE_componentWillMount!="function"&&typeof ot.componentWillMount!="function"||(typeof ot.componentWillMount=="function"&&ot.componentWillMount(),typeof ot.UNSAFE_componentWillMount=="function"&&ot.UNSAFE_componentWillMount()),typeof ot.componentDidMount=="function"&&(et.flags|=4194308)):(typeof ot.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=rt,et.memoizedState=ut),ot.props=rt,ot.state=ut,ot.context=lt,rt=at):(typeof ot.componentDidMount=="function"&&(et.flags|=4194308),rt=!1)}else{ot=et.stateNode,bh(_e,et),at=et.memoizedProps,lt=et.type===et.elementType?at:Lg(et.type,at),ot.props=lt,ct=et.pendingProps,ft=ot.context,ut=tt.contextType,typeof ut=="object"&&ut!==null?ut=Vg(ut):(ut=Zf(tt)?Xf:H.current,ut=Yf(et,ut));var ht=tt.getDerivedStateFromProps;(dt=typeof ht=="function"||typeof ot.getSnapshotBeforeUpdate=="function")||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(at!==ct||ft!==ut)&&qh(et,ot,rt,ut),$g=!1,ft=et.memoizedState,ot.state=ft,gh(et,rt,ot,nt);var mt=et.memoizedState;at!==ct||ft!==mt||Wf.current||$g?(typeof ht=="function"&&(kh(et,tt,ht,rt),mt=et.memoizedState),(lt=$g||oh(et,tt,lt,rt,ft,mt,ut)||!1)?(dt||typeof ot.UNSAFE_componentWillUpdate!="function"&&typeof ot.componentWillUpdate!="function"||(typeof ot.componentWillUpdate=="function"&&ot.componentWillUpdate(rt,mt,ut),typeof ot.UNSAFE_componentWillUpdate=="function"&&ot.UNSAFE_componentWillUpdate(rt,mt,ut)),typeof ot.componentDidUpdate=="function"&&(et.flags|=4),typeof ot.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof ot.componentDidUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=1024),et.memoizedProps=rt,et.memoizedState=mt),ot.props=rt,ot.state=mt,ot.context=ut,rt=lt):(typeof ot.componentDidUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||at===_e.memoizedProps&&ft===_e.memoizedState||(et.flags|=1024),rt=!1)}return kj(_e,et,tt,rt,st,nt)}function kj(_e,et,tt,rt,nt,st){hj(_e,et);var ot=(et.flags&128)!==0;if(!rt&&!ot)return nt&&dg(et,tt,!1),$i(_e,et,st);rt=et.stateNode,Xi.current=et;var at=ot&&typeof tt.getDerivedStateFromError!="function"?null:rt.render();return et.flags|=1,_e!==null&&ot?(et.child=Bh(et,_e.child,null,st),et.child=Bh(et,null,at,st)):Yi(_e,et,at,st),et.memoizedState=rt.state,nt&&dg(et,tt,!0),et.child}function lj(_e){var et=_e.stateNode;et.pendingContext?ag(_e,et.pendingContext,et.pendingContext!==et.context):et.context&&ag(_e,et.context,!1),Ih(_e,et.containerInfo)}function mj(_e,et,tt,rt,nt){return Ig(),Jg(nt),et.flags|=256,Yi(_e,et,tt,rt),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(_e){return{baseLanes:_e,cachePool:null,transitions:null}}function pj(_e,et,tt){var rt=et.pendingProps,nt=M$1.current,st=!1,ot=(et.flags&128)!==0,at;if((at=ot)||(at=_e!==null&&_e.memoizedState===null?!1:(nt&2)!==0),at?(st=!0,et.flags&=-129):(_e===null||_e.memoizedState!==null)&&(nt|=1),G$2(M$1,nt&1),_e===null)return Eg(et),_e=et.memoizedState,_e!==null&&(_e=_e.dehydrated,_e!==null)?(et.mode&1?_e.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(ot=rt.children,_e=rt.fallback,st?(rt=et.mode,st=et.child,ot={mode:"hidden",children:ot},!(rt&1)&&st!==null?(st.childLanes=0,st.pendingProps=ot):st=qj(ot,rt,0,null),_e=Ah(_e,rt,tt,null),st.return=et,_e.return=et,st.sibling=_e,et.child=st,et.child.memoizedState=oj(tt),et.memoizedState=nj,_e):rj(et,ot));if(nt=_e.memoizedState,nt!==null&&(at=nt.dehydrated,at!==null))return sj(_e,et,ot,rt,at,nt,tt);if(st){st=rt.fallback,ot=et.mode,nt=_e.child,at=nt.sibling;var ut={mode:"hidden",children:rt.children};return!(ot&1)&&et.child!==nt?(rt=et.child,rt.childLanes=0,rt.pendingProps=ut,et.deletions=null):(rt=wh(nt,ut),rt.subtreeFlags=nt.subtreeFlags&14680064),at!==null?st=wh(at,st):(st=Ah(st,ot,tt,null),st.flags|=2),st.return=et,rt.return=et,rt.sibling=st,et.child=rt,rt=st,st=et.child,ot=_e.child.memoizedState,ot=ot===null?oj(tt):{baseLanes:ot.baseLanes|tt,cachePool:null,transitions:ot.transitions},st.memoizedState=ot,st.childLanes=_e.childLanes&~tt,et.memoizedState=nj,rt}return st=_e.child,_e=st.sibling,rt=wh(st,{mode:"visible",children:rt.children}),!(et.mode&1)&&(rt.lanes=tt),rt.return=et,rt.sibling=null,_e!==null&&(tt=et.deletions,tt===null?(et.deletions=[_e],et.flags|=16):tt.push(_e)),et.child=rt,et.memoizedState=null,rt}function rj(_e,et){return et=qj({mode:"visible",children:et},_e.mode,0,null),et.return=_e,_e.child=et}function tj(_e,et,tt,rt){return rt!==null&&Jg(rt),Bh(et,_e.child,null,tt),_e=rj(et,et.pendingProps.children),_e.flags|=2,et.memoizedState=null,_e}function sj(_e,et,tt,rt,nt,st,ot){if(tt)return et.flags&256?(et.flags&=-257,rt=Li(Error(p$3(422))),tj(_e,et,ot,rt)):et.memoizedState!==null?(et.child=_e.child,et.flags|=128,null):(st=rt.fallback,nt=et.mode,rt=qj({mode:"visible",children:rt.children},nt,0,null),st=Ah(st,nt,ot,null),st.flags|=2,rt.return=et,st.return=et,rt.sibling=st,et.child=rt,et.mode&1&&Bh(et,_e.child,null,ot),et.child.memoizedState=oj(ot),et.memoizedState=nj,st);if(!(et.mode&1))return tj(_e,et,ot,null);if(nt.data==="$!"){if(rt=nt.nextSibling&&nt.nextSibling.dataset,rt)var at=rt.dgst;return rt=at,st=Error(p$3(419)),rt=Li(st,rt,void 0),tj(_e,et,ot,rt)}if(at=(ot&_e.childLanes)!==0,Ug||at){if(rt=R,rt!==null){switch(ot&-ot){case 4:nt=2;break;case 16:nt=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:nt=32;break;case 536870912:nt=268435456;break;default:nt=0}nt=nt&(rt.suspendedLanes|ot)?0:nt,nt!==0&&nt!==st.retryLane&&(st.retryLane=nt,Zg(_e,nt),mh(rt,_e,nt,-1))}return uj(),rt=Li(Error(p$3(421))),tj(_e,et,ot,rt)}return nt.data==="$?"?(et.flags|=128,et.child=_e.child,et=vj.bind(null,_e),nt._reactRetry=et,null):(_e=st.treeContext,yg=Lf(nt.nextSibling),xg=et,I$3=!0,zg=null,_e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=_e.id,sg=_e.overflow,qg=et),et=rj(et,rt.children),et.flags|=4096,et)}function wj(_e,et,tt){_e.lanes|=et;var rt=_e.alternate;rt!==null&&(rt.lanes|=et),Sg(_e.return,et,tt)}function xj(_e,et,tt,rt,nt){var st=_e.memoizedState;st===null?_e.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:rt,tail:tt,tailMode:nt}:(st.isBackwards=et,st.rendering=null,st.renderingStartTime=0,st.last=rt,st.tail=tt,st.tailMode=nt)}function yj(_e,et,tt){var rt=et.pendingProps,nt=rt.revealOrder,st=rt.tail;if(Yi(_e,et,rt.children,tt),rt=M$1.current,rt&2)rt=rt&1|2,et.flags|=128;else{if(_e!==null&&_e.flags&128)e:for(_e=et.child;_e!==null;){if(_e.tag===13)_e.memoizedState!==null&&wj(_e,tt,et);else if(_e.tag===19)wj(_e,tt,et);else if(_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===et)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===et)break e;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}rt&=1}if(G$2(M$1,rt),!(et.mode&1))et.memoizedState=null;else switch(nt){case"forwards":for(tt=et.child,nt=null;tt!==null;)_e=tt.alternate,_e!==null&&Mh(_e)===null&&(nt=tt),tt=tt.sibling;tt=nt,tt===null?(nt=et.child,et.child=null):(nt=tt.sibling,tt.sibling=null),xj(et,!1,nt,tt,st);break;case"backwards":for(tt=null,nt=et.child,et.child=null;nt!==null;){if(_e=nt.alternate,_e!==null&&Mh(_e)===null){et.child=nt;break}_e=nt.sibling,nt.sibling=tt,tt=nt,nt=_e}xj(et,!0,tt,null,st);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj(_e,et){!(et.mode&1)&&_e!==null&&(_e.alternate=null,et.alternate=null,et.flags|=2)}function $i(_e,et,tt){if(_e!==null&&(et.dependencies=_e.dependencies),hh|=et.lanes,!(tt&et.childLanes))return null;if(_e!==null&&et.child!==_e.child)throw Error(p$3(153));if(et.child!==null){for(_e=et.child,tt=wh(_e,_e.pendingProps),et.child=tt,tt.return=et;_e.sibling!==null;)_e=_e.sibling,tt=tt.sibling=wh(_e,_e.pendingProps),tt.return=et;tt.sibling=null}return et.child}function zj(_e,et,tt){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var rt=et.type._context,nt=et.memoizedProps.value;G$2(Mg,rt._currentValue),rt._currentValue=nt;break;case 13:if(rt=et.memoizedState,rt!==null)return rt.dehydrated!==null?(G$2(M$1,M$1.current&1),et.flags|=128,null):tt&et.child.childLanes?pj(_e,et,tt):(G$2(M$1,M$1.current&1),_e=$i(_e,et,tt),_e!==null?_e.sibling:null);G$2(M$1,M$1.current&1);break;case 19:if(rt=(tt&et.childLanes)!==0,_e.flags&128){if(rt)return yj(_e,et,tt);et.flags|=128}if(nt=et.memoizedState,nt!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),G$2(M$1,M$1.current),rt)break;return null;case 22:case 23:return et.lanes=0,ej(_e,et,tt)}return $i(_e,et,tt)}var Aj,Bj,Cj,Dj;Aj=function(_e,et){for(var tt=et.child;tt!==null;){if(tt.tag===5||tt.tag===6)_e.appendChild(tt.stateNode);else if(tt.tag!==4&&tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}};Bj=function(){};Cj=function(_e,et,tt,rt){var nt=_e.memoizedProps;if(nt!==rt){_e=et.stateNode,Hh(Eh.current);var st=null;switch(tt){case"input":nt=Ya(_e,nt),rt=Ya(_e,rt),st=[];break;case"select":nt=A$1({},nt,{value:void 0}),rt=A$1({},rt,{value:void 0}),st=[];break;case"textarea":nt=gb(_e,nt),rt=gb(_e,rt),st=[];break;default:typeof nt.onClick!="function"&&typeof rt.onClick=="function"&&(_e.onclick=Bf)}ub(tt,rt);var ot;tt=null;for(lt in nt)if(!rt.hasOwnProperty(lt)&&nt.hasOwnProperty(lt)&&nt[lt]!=null)if(lt==="style"){var at=nt[lt];for(ot in at)at.hasOwnProperty(ot)&&(tt||(tt={}),tt[ot]="")}else lt!=="dangerouslySetInnerHTML"&&lt!=="children"&&lt!=="suppressContentEditableWarning"&&lt!=="suppressHydrationWarning"&&lt!=="autoFocus"&&(ea.hasOwnProperty(lt)?st||(st=[]):(st=st||[]).push(lt,null));for(lt in rt){var ut=rt[lt];if(at=nt!=null?nt[lt]:void 0,rt.hasOwnProperty(lt)&&ut!==at&&(ut!=null||at!=null))if(lt==="style")if(at){for(ot in at)!at.hasOwnProperty(ot)||ut&&ut.hasOwnProperty(ot)||(tt||(tt={}),tt[ot]="");for(ot in ut)ut.hasOwnProperty(ot)&&at[ot]!==ut[ot]&&(tt||(tt={}),tt[ot]=ut[ot])}else tt||(st||(st=[]),st.push(lt,tt)),tt=ut;else lt==="dangerouslySetInnerHTML"?(ut=ut?ut.__html:void 0,at=at?at.__html:void 0,ut!=null&&at!==ut&&(st=st||[]).push(lt,ut)):lt==="children"?typeof ut!="string"&&typeof ut!="number"||(st=st||[]).push(lt,""+ut):lt!=="suppressContentEditableWarning"&&lt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(lt)?(ut!=null&&lt==="onScroll"&&D$1("scroll",_e),st||at===ut||(st=[])):(st=st||[]).push(lt,ut))}tt&&(st=st||[]).push("style",tt);var lt=st;(et.updateQueue=lt)&&(et.flags|=4)}};Dj=function(_e,et,tt,rt){tt!==rt&&(et.flags|=4)};function Ej(_e,et){if(!I$3)switch(_e.tailMode){case"hidden":et=_e.tail;for(var tt=null;et!==null;)et.alternate!==null&&(tt=et),et=et.sibling;tt===null?_e.tail=null:tt.sibling=null;break;case"collapsed":tt=_e.tail;for(var rt=null;tt!==null;)tt.alternate!==null&&(rt=tt),tt=tt.sibling;rt===null?et||_e.tail===null?_e.tail=null:_e.tail.sibling=null:rt.sibling=null}}function S$2(_e){var et=_e.alternate!==null&&_e.alternate.child===_e.child,tt=0,rt=0;if(et)for(var nt=_e.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags&14680064,rt|=nt.flags&14680064,nt.return=_e,nt=nt.sibling;else for(nt=_e.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags,rt|=nt.flags,nt.return=_e,nt=nt.sibling;return _e.subtreeFlags|=rt,_e.childLanes=tt,et}function Fj(_e,et,tt){var rt=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$2(et),null;case 1:return Zf(et.type)&&$f(),S$2(et),null;case 3:return rt=et.stateNode,Jh(),E(Wf),E(H),Oh(),rt.pendingContext&&(rt.context=rt.pendingContext,rt.pendingContext=null),(_e===null||_e.child===null)&&(Gg(et)?et.flags|=4:_e===null||_e.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(_e,et),S$2(et),null;case 5:Lh(et);var nt=Hh(Gh.current);if(tt=et.type,_e!==null&&et.stateNode!=null)Cj(_e,et,tt,rt,nt),_e.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!rt){if(et.stateNode===null)throw Error(p$3(166));return S$2(et),null}if(_e=Hh(Eh.current),Gg(et)){rt=et.stateNode,tt=et.type;var st=et.memoizedProps;switch(rt[Of]=et,rt[Pf]=st,_e=(et.mode&1)!==0,tt){case"dialog":D$1("cancel",rt),D$1("close",rt);break;case"iframe":case"object":case"embed":D$1("load",rt);break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D$1(lf[nt],rt);break;case"source":D$1("error",rt);break;case"img":case"image":case"link":D$1("error",rt),D$1("load",rt);break;case"details":D$1("toggle",rt);break;case"input":Za(rt,st),D$1("invalid",rt);break;case"select":rt._wrapperState={wasMultiple:!!st.multiple},D$1("invalid",rt);break;case"textarea":hb(rt,st),D$1("invalid",rt)}ub(tt,st),nt=null;for(var ot in st)if(st.hasOwnProperty(ot)){var at=st[ot];ot==="children"?typeof at=="string"?rt.textContent!==at&&(st.suppressHydrationWarning!==!0&&Af(rt.textContent,at,_e),nt=["children",at]):typeof at=="number"&&rt.textContent!==""+at&&(st.suppressHydrationWarning!==!0&&Af(rt.textContent,at,_e),nt=["children",""+at]):ea.hasOwnProperty(ot)&&at!=null&&ot==="onScroll"&&D$1("scroll",rt)}switch(tt){case"input":Va(rt),db(rt,st,!0);break;case"textarea":Va(rt),jb(rt);break;case"select":case"option":break;default:typeof st.onClick=="function"&&(rt.onclick=Bf)}rt=nt,et.updateQueue=rt,rt!==null&&(et.flags|=4)}else{ot=nt.nodeType===9?nt:nt.ownerDocument,_e==="http://www.w3.org/1999/xhtml"&&(_e=kb(tt)),_e==="http://www.w3.org/1999/xhtml"?tt==="script"?(_e=ot.createElement("div"),_e.innerHTML="<script><\/script>",_e=_e.removeChild(_e.firstChild)):typeof rt.is=="string"?_e=ot.createElement(tt,{is:rt.is}):(_e=ot.createElement(tt),tt==="select"&&(ot=_e,rt.multiple?ot.multiple=!0:rt.size&&(ot.size=rt.size))):_e=ot.createElementNS(_e,tt),_e[Of]=et,_e[Pf]=rt,Aj(_e,et,!1,!1),et.stateNode=_e;e:{switch(ot=vb(tt,rt),tt){case"dialog":D$1("cancel",_e),D$1("close",_e),nt=rt;break;case"iframe":case"object":case"embed":D$1("load",_e),nt=rt;break;case"video":case"audio":for(nt=0;nt<lf.length;nt++)D$1(lf[nt],_e);nt=rt;break;case"source":D$1("error",_e),nt=rt;break;case"img":case"image":case"link":D$1("error",_e),D$1("load",_e),nt=rt;break;case"details":D$1("toggle",_e),nt=rt;break;case"input":Za(_e,rt),nt=Ya(_e,rt),D$1("invalid",_e);break;case"option":nt=rt;break;case"select":_e._wrapperState={wasMultiple:!!rt.multiple},nt=A$1({},rt,{value:void 0}),D$1("invalid",_e);break;case"textarea":hb(_e,rt),nt=gb(_e,rt),D$1("invalid",_e);break;default:nt=rt}ub(tt,nt),at=nt;for(st in at)if(at.hasOwnProperty(st)){var ut=at[st];st==="style"?sb(_e,ut):st==="dangerouslySetInnerHTML"?(ut=ut?ut.__html:void 0,ut!=null&&nb(_e,ut)):st==="children"?typeof ut=="string"?(tt!=="textarea"||ut!=="")&&ob(_e,ut):typeof ut=="number"&&ob(_e,""+ut):st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&st!=="autoFocus"&&(ea.hasOwnProperty(st)?ut!=null&&st==="onScroll"&&D$1("scroll",_e):ut!=null&&ta(_e,st,ut,ot))}switch(tt){case"input":Va(_e),db(_e,rt,!1);break;case"textarea":Va(_e),jb(_e);break;case"option":rt.value!=null&&_e.setAttribute("value",""+Sa(rt.value));break;case"select":_e.multiple=!!rt.multiple,st=rt.value,st!=null?fb(_e,!!rt.multiple,st,!1):rt.defaultValue!=null&&fb(_e,!!rt.multiple,rt.defaultValue,!0);break;default:typeof nt.onClick=="function"&&(_e.onclick=Bf)}switch(tt){case"button":case"input":case"select":case"textarea":rt=!!rt.autoFocus;break e;case"img":rt=!0;break e;default:rt=!1}}rt&&(et.flags|=4)}et.ref!==null&&(et.flags|=512,et.flags|=2097152)}return S$2(et),null;case 6:if(_e&&et.stateNode!=null)Dj(_e,et,_e.memoizedProps,rt);else{if(typeof rt!="string"&&et.stateNode===null)throw Error(p$3(166));if(tt=Hh(Gh.current),Hh(Eh.current),Gg(et)){if(rt=et.stateNode,tt=et.memoizedProps,rt[Of]=et,(st=rt.nodeValue!==tt)&&(_e=xg,_e!==null))switch(_e.tag){case 3:Af(rt.nodeValue,tt,(_e.mode&1)!==0);break;case 5:_e.memoizedProps.suppressHydrationWarning!==!0&&Af(rt.nodeValue,tt,(_e.mode&1)!==0)}st&&(et.flags|=4)}else rt=(tt.nodeType===9?tt:tt.ownerDocument).createTextNode(rt),rt[Of]=et,et.stateNode=rt}return S$2(et),null;case 13:if(E(M$1),rt=et.memoizedState,_e===null||_e.memoizedState!==null&&_e.memoizedState.dehydrated!==null){if(I$3&&yg!==null&&et.mode&1&&!(et.flags&128))Hg(),Ig(),et.flags|=98560,st=!1;else if(st=Gg(et),rt!==null&&rt.dehydrated!==null){if(_e===null){if(!st)throw Error(p$3(318));if(st=et.memoizedState,st=st!==null?st.dehydrated:null,!st)throw Error(p$3(317));st[Of]=et}else Ig(),!(et.flags&128)&&(et.memoizedState=null),et.flags|=4;S$2(et),st=!1}else zg!==null&&(Gj(zg),zg=null),st=!0;if(!st)return et.flags&65536?et:null}return et.flags&128?(et.lanes=tt,et):(rt=rt!==null,rt!==(_e!==null&&_e.memoizedState!==null)&&rt&&(et.child.flags|=8192,et.mode&1&&(_e===null||M$1.current&1?T$2===0&&(T$2=3):uj())),et.updateQueue!==null&&(et.flags|=4),S$2(et),null);case 4:return Jh(),Bj(_e,et),_e===null&&sf(et.stateNode.containerInfo),S$2(et),null;case 10:return Rg(et.type._context),S$2(et),null;case 17:return Zf(et.type)&&$f(),S$2(et),null;case 19:if(E(M$1),st=et.memoizedState,st===null)return S$2(et),null;if(rt=(et.flags&128)!==0,ot=st.rendering,ot===null)if(rt)Ej(st,!1);else{if(T$2!==0||_e!==null&&_e.flags&128)for(_e=et.child;_e!==null;){if(ot=Mh(_e),ot!==null){for(et.flags|=128,Ej(st,!1),rt=ot.updateQueue,rt!==null&&(et.updateQueue=rt,et.flags|=4),et.subtreeFlags=0,rt=tt,tt=et.child;tt!==null;)st=tt,_e=rt,st.flags&=14680066,ot=st.alternate,ot===null?(st.childLanes=0,st.lanes=_e,st.child=null,st.subtreeFlags=0,st.memoizedProps=null,st.memoizedState=null,st.updateQueue=null,st.dependencies=null,st.stateNode=null):(st.childLanes=ot.childLanes,st.lanes=ot.lanes,st.child=ot.child,st.subtreeFlags=0,st.deletions=null,st.memoizedProps=ot.memoizedProps,st.memoizedState=ot.memoizedState,st.updateQueue=ot.updateQueue,st.type=ot.type,_e=ot.dependencies,st.dependencies=_e===null?null:{lanes:_e.lanes,firstContext:_e.firstContext}),tt=tt.sibling;return G$2(M$1,M$1.current&1|2),et.child}_e=_e.sibling}st.tail!==null&&B()>Hj&&(et.flags|=128,rt=!0,Ej(st,!1),et.lanes=4194304)}else{if(!rt)if(_e=Mh(ot),_e!==null){if(et.flags|=128,rt=!0,tt=_e.updateQueue,tt!==null&&(et.updateQueue=tt,et.flags|=4),Ej(st,!0),st.tail===null&&st.tailMode==="hidden"&&!ot.alternate&&!I$3)return S$2(et),null}else 2*B()-st.renderingStartTime>Hj&&tt!==1073741824&&(et.flags|=128,rt=!0,Ej(st,!1),et.lanes=4194304);st.isBackwards?(ot.sibling=et.child,et.child=ot):(tt=st.last,tt!==null?tt.sibling=ot:et.child=ot,st.last=ot)}return st.tail!==null?(et=st.tail,st.rendering=et,st.tail=et.sibling,st.renderingStartTime=B(),et.sibling=null,tt=M$1.current,G$2(M$1,rt?tt&1|2:tt&1),et):(S$2(et),null);case 22:case 23:return Ij(),rt=et.memoizedState!==null,_e!==null&&_e.memoizedState!==null!==rt&&(et.flags|=8192),rt&&et.mode&1?gj&1073741824&&(S$2(et),et.subtreeFlags&6&&(et.flags|=8192)):S$2(et),null;case 24:return null;case 25:return null}throw Error(p$3(156,et.tag))}function Jj(_e,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),_e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 3:return Jh(),E(Wf),E(H),Oh(),_e=et.flags,_e&65536&&!(_e&128)?(et.flags=_e&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E(M$1),_e=et.memoizedState,_e!==null&&_e.dehydrated!==null){if(et.alternate===null)throw Error(p$3(340));Ig()}return _e=et.flags,_e&65536?(et.flags=_e&-65537|128,et):null;case 19:return E(M$1),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(_e,et){var tt=_e.ref;if(tt!==null)if(typeof tt=="function")try{tt(null)}catch(rt){W$1(_e,et,rt)}else tt.current=null}function Nj(_e,et,tt){try{tt()}catch(rt){W$1(_e,et,rt)}}var Oj=!1;function Pj(_e,et){if(Cf=dd,_e=Me(),Ne(_e)){if("selectionStart"in _e)var tt={start:_e.selectionStart,end:_e.selectionEnd};else e:{tt=(tt=_e.ownerDocument)&&tt.defaultView||window;var rt=tt.getSelection&&tt.getSelection();if(rt&&rt.rangeCount!==0){tt=rt.anchorNode;var nt=rt.anchorOffset,st=rt.focusNode;rt=rt.focusOffset;try{tt.nodeType,st.nodeType}catch{tt=null;break e}var ot=0,at=-1,ut=-1,lt=0,dt=0,ct=_e,ft=null;t:for(;;){for(var ht;ct!==tt||nt!==0&&ct.nodeType!==3||(at=ot+nt),ct!==st||rt!==0&&ct.nodeType!==3||(ut=ot+rt),ct.nodeType===3&&(ot+=ct.nodeValue.length),(ht=ct.firstChild)!==null;)ft=ct,ct=ht;for(;;){if(ct===_e)break t;if(ft===tt&&++lt===nt&&(at=ot),ft===st&&++dt===rt&&(ut=ot),(ht=ct.nextSibling)!==null)break;ct=ft,ft=ct.parentNode}ct=ht}tt=at===-1||ut===-1?null:{start:at,end:ut}}else tt=null}tt=tt||{start:0,end:0}}else tt=null;for(Df={focusedElem:_e,selectionRange:tt},dd=!1,V$2=et;V$2!==null;)if(et=V$2,_e=et.child,(et.subtreeFlags&1028)!==0&&_e!==null)_e.return=et,V$2=_e;else for(;V$2!==null;){et=V$2;try{var mt=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(mt!==null){var vt=mt.memoizedProps,wt=mt.memoizedState,gt=et.stateNode,yt=gt.getSnapshotBeforeUpdate(et.elementType===et.type?vt:Lg(et.type,vt),wt);gt.__reactInternalSnapshotBeforeUpdate=yt}break;case 3:var xt=et.stateNode.containerInfo;xt.nodeType===1?xt.textContent="":xt.nodeType===9&&xt.documentElement&&xt.removeChild(xt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(St){W$1(et,et.return,St)}if(_e=et.sibling,_e!==null){_e.return=et.return,V$2=_e;break}V$2=et.return}return mt=Oj,Oj=!1,mt}function Qj(_e,et,tt){var rt=et.updateQueue;if(rt=rt!==null?rt.lastEffect:null,rt!==null){var nt=rt=rt.next;do{if((nt.tag&_e)===_e){var st=nt.destroy;nt.destroy=void 0,st!==void 0&&Nj(et,tt,st)}nt=nt.next}while(nt!==rt)}}function Rj(_e,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var tt=et=et.next;do{if((tt.tag&_e)===_e){var rt=tt.create;tt.destroy=rt()}tt=tt.next}while(tt!==et)}}function Sj(_e){var et=_e.ref;if(et!==null){var tt=_e.stateNode;switch(_e.tag){case 5:_e=tt;break;default:_e=tt}typeof et=="function"?et(_e):et.current=_e}}function Tj(_e){var et=_e.alternate;et!==null&&(_e.alternate=null,Tj(et)),_e.child=null,_e.deletions=null,_e.sibling=null,_e.tag===5&&(et=_e.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of$1],delete et[Qf],delete et[Rf])),_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 Uj(_e){return _e.tag===5||_e.tag===3||_e.tag===4}function Vj(_e){e:for(;;){for(;_e.sibling===null;){if(_e.return===null||Uj(_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 Wj(_e,et,tt){var rt=_e.tag;if(rt===5||rt===6)_e=_e.stateNode,et?tt.nodeType===8?tt.parentNode.insertBefore(_e,et):tt.insertBefore(_e,et):(tt.nodeType===8?(et=tt.parentNode,et.insertBefore(_e,tt)):(et=tt,et.appendChild(_e)),tt=tt._reactRootContainer,tt!=null||et.onclick!==null||(et.onclick=Bf));else if(rt!==4&&(_e=_e.child,_e!==null))for(Wj(_e,et,tt),_e=_e.sibling;_e!==null;)Wj(_e,et,tt),_e=_e.sibling}function Xj(_e,et,tt){var rt=_e.tag;if(rt===5||rt===6)_e=_e.stateNode,et?tt.insertBefore(_e,et):tt.appendChild(_e);else if(rt!==4&&(_e=_e.child,_e!==null))for(Xj(_e,et,tt),_e=_e.sibling;_e!==null;)Xj(_e,et,tt),_e=_e.sibling}var X$1=null,Yj=!1;function Zj(_e,et,tt){for(tt=tt.child;tt!==null;)ak(_e,et,tt),tt=tt.sibling}function ak(_e,et,tt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,tt)}catch{}switch(tt.tag){case 5:U$1||Mj(tt,et);case 6:var rt=X$1,nt=Yj;X$1=null,Zj(_e,et,tt),X$1=rt,Yj=nt,X$1!==null&&(Yj?(_e=X$1,tt=tt.stateNode,_e.nodeType===8?_e.parentNode.removeChild(tt):_e.removeChild(tt)):X$1.removeChild(tt.stateNode));break;case 18:X$1!==null&&(Yj?(_e=X$1,tt=tt.stateNode,_e.nodeType===8?Kf(_e.parentNode,tt):_e.nodeType===1&&Kf(_e,tt),bd(_e)):Kf(X$1,tt.stateNode));break;case 4:rt=X$1,nt=Yj,X$1=tt.stateNode.containerInfo,Yj=!0,Zj(_e,et,tt),X$1=rt,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U$1&&(rt=tt.updateQueue,rt!==null&&(rt=rt.lastEffect,rt!==null))){nt=rt=rt.next;do{var st=nt,ot=st.destroy;st=st.tag,ot!==void 0&&(st&2||st&4)&&Nj(tt,et,ot),nt=nt.next}while(nt!==rt)}Zj(_e,et,tt);break;case 1:if(!U$1&&(Mj(tt,et),rt=tt.stateNode,typeof rt.componentWillUnmount=="function"))try{rt.props=tt.memoizedProps,rt.state=tt.memoizedState,rt.componentWillUnmount()}catch(at){W$1(tt,et,at)}Zj(_e,et,tt);break;case 21:Zj(_e,et,tt);break;case 22:tt.mode&1?(U$1=(rt=U$1)||tt.memoizedState!==null,Zj(_e,et,tt),U$1=rt):Zj(_e,et,tt);break;default:Zj(_e,et,tt)}}function bk(_e){var et=_e.updateQueue;if(et!==null){_e.updateQueue=null;var tt=_e.stateNode;tt===null&&(tt=_e.stateNode=new Lj),et.forEach(function(rt){var nt=ck.bind(null,_e,rt);tt.has(rt)||(tt.add(rt),rt.then(nt,nt))})}}function dk(_e,et){var tt=et.deletions;if(tt!==null)for(var rt=0;rt<tt.length;rt++){var nt=tt[rt];try{var st=_e,ot=et,at=ot;e:for(;at!==null;){switch(at.tag){case 5:X$1=at.stateNode,Yj=!1;break e;case 3:X$1=at.stateNode.containerInfo,Yj=!0;break e;case 4:X$1=at.stateNode.containerInfo,Yj=!0;break e}at=at.return}if(X$1===null)throw Error(p$3(160));ak(st,ot,nt),X$1=null,Yj=!1;var ut=nt.alternate;ut!==null&&(ut.return=null),nt.return=null}catch(lt){W$1(nt,et,lt)}}if(et.subtreeFlags&12854)for(et=et.child;et!==null;)ek(et,_e),et=et.sibling}function ek(_e,et){var tt=_e.alternate,rt=_e.flags;switch(_e.tag){case 0:case 11:case 14:case 15:if(dk(et,_e),fk(_e),rt&4){try{Qj(3,_e,_e.return),Rj(3,_e)}catch(vt){W$1(_e,_e.return,vt)}try{Qj(5,_e,_e.return)}catch(vt){W$1(_e,_e.return,vt)}}break;case 1:dk(et,_e),fk(_e),rt&512&&tt!==null&&Mj(tt,tt.return);break;case 5:if(dk(et,_e),fk(_e),rt&512&&tt!==null&&Mj(tt,tt.return),_e.flags&32){var nt=_e.stateNode;try{ob(nt,"")}catch(vt){W$1(_e,_e.return,vt)}}if(rt&4&&(nt=_e.stateNode,nt!=null)){var st=_e.memoizedProps,ot=tt!==null?tt.memoizedProps:st,at=_e.type,ut=_e.updateQueue;if(_e.updateQueue=null,ut!==null)try{at==="input"&&st.type==="radio"&&st.name!=null&&ab(nt,st),vb(at,ot);var lt=vb(at,st);for(ot=0;ot<ut.length;ot+=2){var dt=ut[ot],ct=ut[ot+1];dt==="style"?sb(nt,ct):dt==="dangerouslySetInnerHTML"?nb(nt,ct):dt==="children"?ob(nt,ct):ta(nt,dt,ct,lt)}switch(at){case"input":bb(nt,st);break;case"textarea":ib(nt,st);break;case"select":var ft=nt._wrapperState.wasMultiple;nt._wrapperState.wasMultiple=!!st.multiple;var ht=st.value;ht!=null?fb(nt,!!st.multiple,ht,!1):ft!==!!st.multiple&&(st.defaultValue!=null?fb(nt,!!st.multiple,st.defaultValue,!0):fb(nt,!!st.multiple,st.multiple?[]:"",!1))}nt[Pf]=st}catch(vt){W$1(_e,_e.return,vt)}}break;case 6:if(dk(et,_e),fk(_e),rt&4){if(_e.stateNode===null)throw Error(p$3(162));nt=_e.stateNode,st=_e.memoizedProps;try{nt.nodeValue=st}catch(vt){W$1(_e,_e.return,vt)}}break;case 3:if(dk(et,_e),fk(_e),rt&4&&tt!==null&&tt.memoizedState.isDehydrated)try{bd(et.containerInfo)}catch(vt){W$1(_e,_e.return,vt)}break;case 4:dk(et,_e),fk(_e);break;case 13:dk(et,_e),fk(_e),nt=_e.child,nt.flags&8192&&(st=nt.memoizedState!==null,nt.stateNode.isHidden=st,!st||nt.alternate!==null&&nt.alternate.memoizedState!==null||(gk=B())),rt&4&&bk(_e);break;case 22:if(dt=tt!==null&&tt.memoizedState!==null,_e.mode&1?(U$1=(lt=U$1)||dt,dk(et,_e),U$1=lt):dk(et,_e),fk(_e),rt&8192){if(lt=_e.memoizedState!==null,(_e.stateNode.isHidden=lt)&&!dt&&_e.mode&1)for(V$2=_e,dt=_e.child;dt!==null;){for(ct=V$2=dt;V$2!==null;){switch(ft=V$2,ht=ft.child,ft.tag){case 0:case 11:case 14:case 15:Qj(4,ft,ft.return);break;case 1:Mj(ft,ft.return);var mt=ft.stateNode;if(typeof mt.componentWillUnmount=="function"){rt=ft,tt=ft.return;try{et=rt,mt.props=et.memoizedProps,mt.state=et.memoizedState,mt.componentWillUnmount()}catch(vt){W$1(rt,tt,vt)}}break;case 5:Mj(ft,ft.return);break;case 22:if(ft.memoizedState!==null){hk(ct);continue}}ht!==null?(ht.return=ft,V$2=ht):hk(ct)}dt=dt.sibling}e:for(dt=null,ct=_e;;){if(ct.tag===5){if(dt===null){dt=ct;try{nt=ct.stateNode,lt?(st=nt.style,typeof st.setProperty=="function"?st.setProperty("display","none","important"):st.display="none"):(at=ct.stateNode,ut=ct.memoizedProps.style,ot=ut!=null&&ut.hasOwnProperty("display")?ut.display:null,at.style.display=rb("display",ot))}catch(vt){W$1(_e,_e.return,vt)}}}else if(ct.tag===6){if(dt===null)try{ct.stateNode.nodeValue=lt?"":ct.memoizedProps}catch(vt){W$1(_e,_e.return,vt)}}else if((ct.tag!==22&&ct.tag!==23||ct.memoizedState===null||ct===_e)&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===_e)break e;for(;ct.sibling===null;){if(ct.return===null||ct.return===_e)break e;dt===ct&&(dt=null),ct=ct.return}dt===ct&&(dt=null),ct.sibling.return=ct.return,ct=ct.sibling}}break;case 19:dk(et,_e),fk(_e),rt&4&&bk(_e);break;case 21:break;default:dk(et,_e),fk(_e)}}function fk(_e){var et=_e.flags;if(et&2){try{e:{for(var tt=_e.return;tt!==null;){if(Uj(tt)){var rt=tt;break e}tt=tt.return}throw Error(p$3(160))}switch(rt.tag){case 5:var nt=rt.stateNode;rt.flags&32&&(ob(nt,""),rt.flags&=-33);var st=Vj(_e);Xj(_e,st,nt);break;case 3:case 4:var ot=rt.stateNode.containerInfo,at=Vj(_e);Wj(_e,at,ot);break;default:throw Error(p$3(161))}}catch(ut){W$1(_e,_e.return,ut)}_e.flags&=-3}et&4096&&(_e.flags&=-4097)}function ik(_e,et,tt){V$2=_e,jk(_e)}function jk(_e,et,tt){for(var rt=(_e.mode&1)!==0;V$2!==null;){var nt=V$2,st=nt.child;if(nt.tag===22&&rt){var ot=nt.memoizedState!==null||Kj;if(!ot){var at=nt.alternate,ut=at!==null&&at.memoizedState!==null||U$1;at=Kj;var lt=U$1;if(Kj=ot,(U$1=ut)&&!lt)for(V$2=nt;V$2!==null;)ot=V$2,ut=ot.child,ot.tag===22&&ot.memoizedState!==null?kk(nt):ut!==null?(ut.return=ot,V$2=ut):kk(nt);for(;st!==null;)V$2=st,jk(st),st=st.sibling;V$2=nt,Kj=at,U$1=lt}lk(_e)}else nt.subtreeFlags&8772&&st!==null?(st.return=nt,V$2=st):lk(_e)}}function lk(_e){for(;V$2!==null;){var et=V$2;if(et.flags&8772){var tt=et.alternate;try{if(et.flags&8772)switch(et.tag){case 0:case 11:case 15:U$1||Rj(5,et);break;case 1:var rt=et.stateNode;if(et.flags&4&&!U$1)if(tt===null)rt.componentDidMount();else{var nt=et.elementType===et.type?tt.memoizedProps:Lg(et.type,tt.memoizedProps);rt.componentDidUpdate(nt,tt.memoizedState,rt.__reactInternalSnapshotBeforeUpdate)}var st=et.updateQueue;st!==null&&ih(et,st,rt);break;case 3:var ot=et.updateQueue;if(ot!==null){if(tt=null,et.child!==null)switch(et.child.tag){case 5:tt=et.child.stateNode;break;case 1:tt=et.child.stateNode}ih(et,ot,tt)}break;case 5:var at=et.stateNode;if(tt===null&&et.flags&4){tt=at;var ut=et.memoizedProps;switch(et.type){case"button":case"input":case"select":case"textarea":ut.autoFocus&&tt.focus();break;case"img":ut.src&&(tt.src=ut.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(et.memoizedState===null){var lt=et.alternate;if(lt!==null){var dt=lt.memoizedState;if(dt!==null){var ct=dt.dehydrated;ct!==null&&bd(ct)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$3(163))}U$1||et.flags&512&&Sj(et)}catch(ft){W$1(et,et.return,ft)}}if(et===_e){V$2=null;break}if(tt=et.sibling,tt!==null){tt.return=et.return,V$2=tt;break}V$2=et.return}}function hk(_e){for(;V$2!==null;){var et=V$2;if(et===_e){V$2=null;break}var tt=et.sibling;if(tt!==null){tt.return=et.return,V$2=tt;break}V$2=et.return}}function kk(_e){for(;V$2!==null;){var et=V$2;try{switch(et.tag){case 0:case 11:case 15:var tt=et.return;try{Rj(4,et)}catch(ut){W$1(et,tt,ut)}break;case 1:var rt=et.stateNode;if(typeof rt.componentDidMount=="function"){var nt=et.return;try{rt.componentDidMount()}catch(ut){W$1(et,nt,ut)}}var st=et.return;try{Sj(et)}catch(ut){W$1(et,st,ut)}break;case 5:var ot=et.return;try{Sj(et)}catch(ut){W$1(et,ot,ut)}}}catch(ut){W$1(et,et.return,ut)}if(et===_e){V$2=null;break}var at=et.sibling;if(at!==null){at.return=et.return,V$2=at;break}V$2=et.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y$1=null,Z$1=0,gj=0,fj=Uf(0),T$2=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$1(){return K&6?B():Bk!==-1?Bk:Bk=B()}function lh(_e){return _e.mode&1?K&2&&Z$1!==0?Z$1&-Z$1:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(_e=C$1,_e!==0||(_e=window.event,_e=_e===void 0?16:jd(_e.type)),_e):1}function mh(_e,et,tt,rt){if(50<zk)throw zk=0,Ak=null,Error(p$3(185));Ac(_e,tt,rt),(!(K&2)||_e!==R)&&(_e===R&&(!(K&2)&&(rk|=tt),T$2===4&&Dk(_e,Z$1)),Ek(_e,rt),tt===1&&K===0&&!(et.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(_e,et){var tt=_e.callbackNode;wc(_e,et);var rt=uc(_e,_e===R?Z$1:0);if(rt===0)tt!==null&&bc(tt),_e.callbackNode=null,_e.callbackPriority=0;else if(et=rt&-rt,_e.callbackPriority!==et){if(tt!=null&&bc(tt),et===1)_e.tag===0?ig(Fk.bind(null,_e)):hg(Fk.bind(null,_e)),Jf(function(){!(K&6)&&jg()}),tt=null;else{switch(Dc(rt)){case 1:tt=fc;break;case 4:tt=gc;break;case 16:tt=hc;break;case 536870912:tt=jc;break;default:tt=hc}tt=Gk(tt,Hk.bind(null,_e))}_e.callbackPriority=et,_e.callbackNode=tt}}function Hk(_e,et){if(Bk=-1,Ck=0,K&6)throw Error(p$3(327));var tt=_e.callbackNode;if(Ik()&&_e.callbackNode!==tt)return null;var rt=uc(_e,_e===R?Z$1:0);if(rt===0)return null;if(rt&30||rt&_e.expiredLanes||et)et=Jk(_e,rt);else{et=rt;var nt=K;K|=2;var st=Kk();(R!==_e||Z$1!==et)&&(vk=null,Hj=B()+500,Lk(_e,et));do try{Mk();break}catch(at){Nk(_e,at)}while(1);Qg(),nk.current=st,K=nt,Y$1!==null?et=0:(R=null,Z$1=0,et=T$2)}if(et!==0){if(et===2&&(nt=xc(_e),nt!==0&&(rt=nt,et=Ok(_e,nt))),et===1)throw tt=qk,Lk(_e,0),Dk(_e,rt),Ek(_e,B()),tt;if(et===6)Dk(_e,rt);else{if(nt=_e.current.alternate,!(rt&30)&&!Pk(nt)&&(et=Jk(_e,rt),et===2&&(st=xc(_e),st!==0&&(rt=st,et=Ok(_e,st))),et===1))throw tt=qk,Lk(_e,0),Dk(_e,rt),Ek(_e,B()),tt;switch(_e.finishedWork=nt,_e.finishedLanes=rt,et){case 0:case 1:throw Error(p$3(345));case 2:Qk(_e,uk,vk);break;case 3:if(Dk(_e,rt),(rt&130023424)===rt&&(et=gk+500-B(),10<et)){if(uc(_e,0)!==0)break;if(nt=_e.suspendedLanes,(nt&rt)!==rt){L$1(),_e.pingedLanes|=_e.suspendedLanes&nt;break}_e.timeoutHandle=Ff(Qk.bind(null,_e,uk,vk),et);break}Qk(_e,uk,vk);break;case 4:if(Dk(_e,rt),(rt&4194240)===rt)break;for(et=_e.eventTimes,nt=-1;0<rt;){var ot=31-oc(rt);st=1<<ot,ot=et[ot],ot>nt&&(nt=ot),rt&=~st}if(rt=nt,rt=B()-rt,rt=(120>rt?120:480>rt?480:1080>rt?1080:1920>rt?1920:3e3>rt?3e3:4320>rt?4320:1960*mk(rt/1960))-rt,10<rt){_e.timeoutHandle=Ff(Qk.bind(null,_e,uk,vk),rt);break}Qk(_e,uk,vk);break;case 5:Qk(_e,uk,vk);break;default:throw Error(p$3(329))}}}return Ek(_e,B()),_e.callbackNode===tt?Hk.bind(null,_e):null}function Ok(_e,et){var tt=tk;return _e.current.memoizedState.isDehydrated&&(Lk(_e,et).flags|=256),_e=Jk(_e,et),_e!==2&&(et=uk,uk=tt,et!==null&&Gj(et)),_e}function Gj(_e){uk===null?uk=_e:uk.push.apply(uk,_e)}function Pk(_e){for(var et=_e;;){if(et.flags&16384){var tt=et.updateQueue;if(tt!==null&&(tt=tt.stores,tt!==null))for(var rt=0;rt<tt.length;rt++){var nt=tt[rt],st=nt.getSnapshot;nt=nt.value;try{if(!He(st(),nt))return!1}catch{return!1}}}if(tt=et.child,et.subtreeFlags&16384&&tt!==null)tt.return=et,et=tt;else{if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return!0;et=et.return}et.sibling.return=et.return,et=et.sibling}}return!0}function Dk(_e,et){for(et&=~sk,et&=~rk,_e.suspendedLanes|=et,_e.pingedLanes&=~et,_e=_e.expirationTimes;0<et;){var tt=31-oc(et),rt=1<<tt;_e[tt]=-1,et&=~rt}}function Fk(_e){if(K&6)throw Error(p$3(327));Ik();var et=uc(_e,0);if(!(et&1))return Ek(_e,B()),null;var tt=Jk(_e,et);if(_e.tag!==0&&tt===2){var rt=xc(_e);rt!==0&&(et=rt,tt=Ok(_e,rt))}if(tt===1)throw tt=qk,Lk(_e,0),Dk(_e,et),Ek(_e,B()),tt;if(tt===6)throw Error(p$3(345));return _e.finishedWork=_e.current.alternate,_e.finishedLanes=et,Qk(_e,uk,vk),Ek(_e,B()),null}function Rk(_e,et){var tt=K;K|=1;try{return _e(et)}finally{K=tt,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(_e){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var et=K;K|=1;var tt=pk.transition,rt=C$1;try{if(pk.transition=null,C$1=1,_e)return _e()}finally{C$1=rt,pk.transition=tt,K=et,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(_e,et){_e.finishedWork=null,_e.finishedLanes=0;var tt=_e.timeoutHandle;if(tt!==-1&&(_e.timeoutHandle=-1,Gf(tt)),Y$1!==null)for(tt=Y$1.return;tt!==null;){var rt=tt;switch(wg(rt),rt.tag){case 1:rt=rt.type.childContextTypes,rt!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(rt);break;case 4:Jh();break;case 13:E(M$1);break;case 19:E(M$1);break;case 10:Rg(rt.type._context);break;case 22:case 23:Ij()}tt=tt.return}if(R=_e,Y$1=_e=wh(_e.current,null),Z$1=gj=et,T$2=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(et=0;et<Wg.length;et++)if(tt=Wg[et],rt=tt.interleaved,rt!==null){tt.interleaved=null;var nt=rt.next,st=tt.pending;if(st!==null){var ot=st.next;st.next=nt,rt.next=ot}tt.pending=rt}Wg=null}return _e}function Nk(_e,et){do{var tt=Y$1;try{if(Qg(),Ph.current=ai,Sh){for(var rt=N.memoizedState;rt!==null;){var nt=rt.queue;nt!==null&&(nt.pending=null),rt=rt.next}Sh=!1}if(Rh=0,P$1=O$2=N=null,Th=!1,Uh=0,ok.current=null,tt===null||tt.return===null){T$2=1,qk=et,Y$1=null;break}e:{var st=_e,ot=tt.return,at=tt,ut=et;if(et=Z$1,at.flags|=32768,ut!==null&&typeof ut=="object"&&typeof ut.then=="function"){var lt=ut,dt=at,ct=dt.tag;if(!(dt.mode&1)&&(ct===0||ct===11||ct===15)){var ft=dt.alternate;ft?(dt.updateQueue=ft.updateQueue,dt.memoizedState=ft.memoizedState,dt.lanes=ft.lanes):(dt.updateQueue=null,dt.memoizedState=null)}var ht=Vi(ot);if(ht!==null){ht.flags&=-257,Wi(ht,ot,at,st,et),ht.mode&1&&Ti(st,lt,et),et=ht,ut=lt;var mt=et.updateQueue;if(mt===null){var vt=new Set;vt.add(ut),et.updateQueue=vt}else mt.add(ut);break e}else{if(!(et&1)){Ti(st,lt,et),uj();break e}ut=Error(p$3(426))}}else if(I$3&&at.mode&1){var wt=Vi(ot);if(wt!==null){!(wt.flags&65536)&&(wt.flags|=256),Wi(wt,ot,at,st,et),Jg(Ki(ut,at));break e}}st=ut=Ki(ut,at),T$2!==4&&(T$2=2),tk===null?tk=[st]:tk.push(st),st=ot;do{switch(st.tag){case 3:st.flags|=65536,et&=-et,st.lanes|=et;var gt=Oi(st,ut,et);fh(st,gt);break e;case 1:at=ut;var yt=st.type,xt=st.stateNode;if(!(st.flags&128)&&(typeof yt.getDerivedStateFromError=="function"||xt!==null&&typeof xt.componentDidCatch=="function"&&(Si===null||!Si.has(xt)))){st.flags|=65536,et&=-et,st.lanes|=et;var St=Ri(st,at,et);fh(st,St);break e}}st=st.return}while(st!==null)}Tk(tt)}catch(bt){et=bt,Y$1===tt&&tt!==null&&(Y$1=tt=tt.return);continue}break}while(1)}function Kk(){var _e=nk.current;return nk.current=ai,_e===null?ai:_e}function uj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),R===null||!(hh&268435455)&&!(rk&268435455)||Dk(R,Z$1)}function Jk(_e,et){var tt=K;K|=2;var rt=Kk();(R!==_e||Z$1!==et)&&(vk=null,Lk(_e,et));do try{Uk();break}catch(nt){Nk(_e,nt)}while(1);if(Qg(),K=tt,nk.current=rt,Y$1!==null)throw Error(p$3(261));return R=null,Z$1=0,T$2}function Uk(){for(;Y$1!==null;)Vk(Y$1)}function Mk(){for(;Y$1!==null&&!cc();)Vk(Y$1)}function Vk(_e){var et=Wk(_e.alternate,_e,gj);_e.memoizedProps=_e.pendingProps,et===null?Tk(_e):Y$1=et,ok.current=null}function Tk(_e){var et=_e;do{var tt=et.alternate;if(_e=et.return,et.flags&32768){if(tt=Jj(tt,et),tt!==null){tt.flags&=32767,Y$1=tt;return}if(_e!==null)_e.flags|=32768,_e.subtreeFlags=0,_e.deletions=null;else{T$2=6,Y$1=null;return}}else if(tt=Fj(tt,et,gj),tt!==null){Y$1=tt;return}if(et=et.sibling,et!==null){Y$1=et;return}Y$1=et=_e}while(et!==null);T$2===0&&(T$2=5)}function Qk(_e,et,tt){var rt=C$1,nt=pk.transition;try{pk.transition=null,C$1=1,Xk(_e,et,tt,rt)}finally{pk.transition=nt,C$1=rt}return null}function Xk(_e,et,tt,rt){do Ik();while(xk!==null);if(K&6)throw Error(p$3(327));tt=_e.finishedWork;var nt=_e.finishedLanes;if(tt===null)return null;if(_e.finishedWork=null,_e.finishedLanes=0,tt===_e.current)throw Error(p$3(177));_e.callbackNode=null,_e.callbackPriority=0;var st=tt.lanes|tt.childLanes;if(Bc(_e,st),_e===R&&(Y$1=R=null,Z$1=0),!(tt.subtreeFlags&2064)&&!(tt.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),st=(tt.flags&15990)!==0,tt.subtreeFlags&15990||st){st=pk.transition,pk.transition=null;var ot=C$1;C$1=1;var at=K;K|=4,ok.current=null,Pj(_e,tt),ek(tt,_e),Oe(Df),dd=!!Cf,Df=Cf=null,_e.current=tt,ik(tt),dc(),K=at,C$1=ot,pk.transition=st}else _e.current=tt;if(wk&&(wk=!1,xk=_e,yk=nt),st=_e.pendingLanes,st===0&&(Si=null),mc(tt.stateNode),Ek(_e,B()),et!==null)for(rt=_e.onRecoverableError,tt=0;tt<et.length;tt++)nt=et[tt],rt(nt.value,{componentStack:nt.stack,digest:nt.digest});if(Pi)throw Pi=!1,_e=Qi,Qi=null,_e;return yk&1&&_e.tag!==0&&Ik(),st=_e.pendingLanes,st&1?_e===Ak?zk++:(zk=0,Ak=_e):zk=0,jg(),null}function Ik(){if(xk!==null){var _e=Dc(yk),et=pk.transition,tt=C$1;try{if(pk.transition=null,C$1=16>_e?16:_e,xk===null)var rt=!1;else{if(_e=xk,xk=null,yk=0,K&6)throw Error(p$3(331));var nt=K;for(K|=4,V$2=_e.current;V$2!==null;){var st=V$2,ot=st.child;if(V$2.flags&16){var at=st.deletions;if(at!==null){for(var ut=0;ut<at.length;ut++){var lt=at[ut];for(V$2=lt;V$2!==null;){var dt=V$2;switch(dt.tag){case 0:case 11:case 15:Qj(8,dt,st)}var ct=dt.child;if(ct!==null)ct.return=dt,V$2=ct;else for(;V$2!==null;){dt=V$2;var ft=dt.sibling,ht=dt.return;if(Tj(dt),dt===lt){V$2=null;break}if(ft!==null){ft.return=ht,V$2=ft;break}V$2=ht}}}var mt=st.alternate;if(mt!==null){var vt=mt.child;if(vt!==null){mt.child=null;do{var wt=vt.sibling;vt.sibling=null,vt=wt}while(vt!==null)}}V$2=st}}if(st.subtreeFlags&2064&&ot!==null)ot.return=st,V$2=ot;else e:for(;V$2!==null;){if(st=V$2,st.flags&2048)switch(st.tag){case 0:case 11:case 15:Qj(9,st,st.return)}var gt=st.sibling;if(gt!==null){gt.return=st.return,V$2=gt;break e}V$2=st.return}}var yt=_e.current;for(V$2=yt;V$2!==null;){ot=V$2;var xt=ot.child;if(ot.subtreeFlags&2064&&xt!==null)xt.return=ot,V$2=xt;else e:for(ot=yt;V$2!==null;){if(at=V$2,at.flags&2048)try{switch(at.tag){case 0:case 11:case 15:Rj(9,at)}}catch(bt){W$1(at,at.return,bt)}if(at===ot){V$2=null;break e}var St=at.sibling;if(St!==null){St.return=at.return,V$2=St;break e}V$2=at.return}}if(K=nt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,_e)}catch{}rt=!0}return rt}finally{C$1=tt,pk.transition=et}}return!1}function Yk(_e,et,tt){et=Ki(tt,et),et=Oi(_e,et,1),_e=dh(_e,et,1),et=L$1(),_e!==null&&(Ac(_e,1,et),Ek(_e,et))}function W$1(_e,et,tt){if(_e.tag===3)Yk(_e,_e,tt);else for(;et!==null;){if(et.tag===3){Yk(et,_e,tt);break}else if(et.tag===1){var rt=et.stateNode;if(typeof et.type.getDerivedStateFromError=="function"||typeof rt.componentDidCatch=="function"&&(Si===null||!Si.has(rt))){_e=Ki(tt,_e),_e=Ri(et,_e,1),et=dh(et,_e,1),_e=L$1(),et!==null&&(Ac(et,1,_e),Ek(et,_e));break}}et=et.return}}function Ui(_e,et,tt){var rt=_e.pingCache;rt!==null&&rt.delete(et),et=L$1(),_e.pingedLanes|=_e.suspendedLanes&tt,R===_e&&(Z$1&tt)===tt&&(T$2===4||T$2===3&&(Z$1&130023424)===Z$1&&500>B()-gk?Lk(_e,0):sk|=tt),Ek(_e,et)}function Zk(_e,et){et===0&&(_e.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var tt=L$1();_e=Zg(_e,et),_e!==null&&(Ac(_e,et,tt),Ek(_e,tt))}function vj(_e){var et=_e.memoizedState,tt=0;et!==null&&(tt=et.retryLane),Zk(_e,tt)}function ck(_e,et){var tt=0;switch(_e.tag){case 13:var rt=_e.stateNode,nt=_e.memoizedState;nt!==null&&(tt=nt.retryLane);break;case 19:rt=_e.stateNode;break;default:throw Error(p$3(314))}rt!==null&&rt.delete(et),Zk(_e,tt)}var Wk;Wk=function(_e,et,tt){if(_e!==null)if(_e.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(_e.lanes&tt)&&!(et.flags&128))return Ug=!1,zj(_e,et,tt);Ug=!!(_e.flags&131072)}else Ug=!1,I$3&&et.flags&1048576&&ug(et,ng,et.index);switch(et.lanes=0,et.tag){case 2:var rt=et.type;jj(_e,et),_e=et.pendingProps;var nt=Yf(et,H.current);Tg(et,tt),nt=Xh(null,et,rt,_e,nt,tt);var st=bi();return et.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(rt)?(st=!0,cg(et)):st=!1,et.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(et),nt.updater=nh,et.stateNode=nt,nt._reactInternals=et,rh(et,rt,_e,tt),et=kj(null,et,rt,!0,st,tt)):(et.tag=0,I$3&&st&&vg(et),Yi(null,et,nt,tt),et=et.child),et;case 16:rt=et.elementType;e:{switch(jj(_e,et),_e=et.pendingProps,nt=rt._init,rt=nt(rt._payload),et.type=rt,nt=et.tag=$k(rt),_e=Lg(rt,_e),nt){case 0:et=dj(null,et,rt,_e,tt);break e;case 1:et=ij(null,et,rt,_e,tt);break e;case 11:et=Zi(null,et,rt,_e,tt);break e;case 14:et=aj(null,et,rt,Lg(rt.type,_e),tt);break e}throw Error(p$3(306,rt,""))}return et;case 0:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),dj(_e,et,rt,nt,tt);case 1:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),ij(_e,et,rt,nt,tt);case 3:e:{if(lj(et),_e===null)throw Error(p$3(387));rt=et.pendingProps,st=et.memoizedState,nt=st.element,bh(_e,et),gh(et,rt,null,tt);var ot=et.memoizedState;if(rt=ot.element,st.isDehydrated)if(st={element:rt,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},et.updateQueue.baseState=st,et.memoizedState=st,et.flags&256){nt=Ki(Error(p$3(423)),et),et=mj(_e,et,rt,tt,nt);break e}else if(rt!==nt){nt=Ki(Error(p$3(424)),et),et=mj(_e,et,rt,tt,nt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$3=!0,zg=null,tt=Ch(et,null,rt,tt),et.child=tt;tt;)tt.flags=tt.flags&-3|4096,tt=tt.sibling;else{if(Ig(),rt===nt){et=$i(_e,et,tt);break e}Yi(_e,et,rt,tt)}et=et.child}return et;case 5:return Kh(et),_e===null&&Eg(et),rt=et.type,nt=et.pendingProps,st=_e!==null?_e.memoizedProps:null,ot=nt.children,Ef(rt,nt)?ot=null:st!==null&&Ef(rt,st)&&(et.flags|=32),hj(_e,et),Yi(_e,et,ot,tt),et.child;case 6:return _e===null&&Eg(et),null;case 13:return pj(_e,et,tt);case 4:return Ih(et,et.stateNode.containerInfo),rt=et.pendingProps,_e===null?et.child=Bh(et,null,rt,tt):Yi(_e,et,rt,tt),et.child;case 11:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),Zi(_e,et,rt,nt,tt);case 7:return Yi(_e,et,et.pendingProps,tt),et.child;case 8:return Yi(_e,et,et.pendingProps.children,tt),et.child;case 12:return Yi(_e,et,et.pendingProps.children,tt),et.child;case 10:e:{if(rt=et.type._context,nt=et.pendingProps,st=et.memoizedProps,ot=nt.value,G$2(Mg,rt._currentValue),rt._currentValue=ot,st!==null)if(He(st.value,ot)){if(st.children===nt.children&&!Wf.current){et=$i(_e,et,tt);break e}}else for(st=et.child,st!==null&&(st.return=et);st!==null;){var at=st.dependencies;if(at!==null){ot=st.child;for(var ut=at.firstContext;ut!==null;){if(ut.context===rt){if(st.tag===1){ut=ch(-1,tt&-tt),ut.tag=2;var lt=st.updateQueue;if(lt!==null){lt=lt.shared;var dt=lt.pending;dt===null?ut.next=ut:(ut.next=dt.next,dt.next=ut),lt.pending=ut}}st.lanes|=tt,ut=st.alternate,ut!==null&&(ut.lanes|=tt),Sg(st.return,tt,et),at.lanes|=tt;break}ut=ut.next}}else if(st.tag===10)ot=st.type===et.type?null:st.child;else if(st.tag===18){if(ot=st.return,ot===null)throw Error(p$3(341));ot.lanes|=tt,at=ot.alternate,at!==null&&(at.lanes|=tt),Sg(ot,tt,et),ot=st.sibling}else ot=st.child;if(ot!==null)ot.return=st;else for(ot=st;ot!==null;){if(ot===et){ot=null;break}if(st=ot.sibling,st!==null){st.return=ot.return,ot=st;break}ot=ot.return}st=ot}Yi(_e,et,nt.children,tt),et=et.child}return et;case 9:return nt=et.type,rt=et.pendingProps.children,Tg(et,tt),nt=Vg(nt),rt=rt(nt),et.flags|=1,Yi(_e,et,rt,tt),et.child;case 14:return rt=et.type,nt=Lg(rt,et.pendingProps),nt=Lg(rt.type,nt),aj(_e,et,rt,nt,tt);case 15:return cj(_e,et,et.type,et.pendingProps,tt);case 17:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),jj(_e,et),et.tag=1,Zf(rt)?(_e=!0,cg(et)):_e=!1,Tg(et,tt),ph(et,rt,nt),rh(et,rt,nt,tt),kj(null,et,rt,!0,_e,tt);case 19:return yj(_e,et,tt);case 22:return ej(_e,et,tt)}throw Error(p$3(156,et.tag))};function Gk(_e,et){return ac(_e,et)}function al(_e,et,tt,rt){this.tag=_e,this.key=tt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=rt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(_e,et,tt,rt){return new al(_e,et,tt,rt)}function bj(_e){return _e=_e.prototype,!(!_e||!_e.isReactComponent)}function $k(_e){if(typeof _e=="function")return bj(_e)?1:0;if(_e!=null){if(_e=_e.$$typeof,_e===Da)return 11;if(_e===Ga)return 14}return 2}function wh(_e,et){var tt=_e.alternate;return tt===null?(tt=Bg(_e.tag,et,_e.key,_e.mode),tt.elementType=_e.elementType,tt.type=_e.type,tt.stateNode=_e.stateNode,tt.alternate=_e,_e.alternate=tt):(tt.pendingProps=et,tt.type=_e.type,tt.flags=0,tt.subtreeFlags=0,tt.deletions=null),tt.flags=_e.flags&14680064,tt.childLanes=_e.childLanes,tt.lanes=_e.lanes,tt.child=_e.child,tt.memoizedProps=_e.memoizedProps,tt.memoizedState=_e.memoizedState,tt.updateQueue=_e.updateQueue,et=_e.dependencies,tt.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},tt.sibling=_e.sibling,tt.index=_e.index,tt.ref=_e.ref,tt}function yh(_e,et,tt,rt,nt,st){var ot=2;if(rt=_e,typeof _e=="function")bj(_e)&&(ot=1);else if(typeof _e=="string")ot=5;else e:switch(_e){case ya:return Ah(tt.children,nt,st,et);case za:ot=8,nt|=8;break;case Aa:return _e=Bg(12,tt,et,nt|2),_e.elementType=Aa,_e.lanes=st,_e;case Ea:return _e=Bg(13,tt,et,nt),_e.elementType=Ea,_e.lanes=st,_e;case Fa:return _e=Bg(19,tt,et,nt),_e.elementType=Fa,_e.lanes=st,_e;case Ia:return qj(tt,nt,st,et);default:if(typeof _e=="object"&&_e!==null)switch(_e.$$typeof){case Ba:ot=10;break e;case Ca:ot=9;break e;case Da:ot=11;break e;case Ga:ot=14;break e;case Ha:ot=16,rt=null;break e}throw Error(p$3(130,_e==null?_e:typeof _e,""))}return et=Bg(ot,tt,et,nt),et.elementType=_e,et.type=rt,et.lanes=st,et}function Ah(_e,et,tt,rt){return _e=Bg(7,_e,rt,et),_e.lanes=tt,_e}function qj(_e,et,tt,rt){return _e=Bg(22,_e,rt,et),_e.elementType=Ia,_e.lanes=tt,_e.stateNode={isHidden:!1},_e}function xh(_e,et,tt){return _e=Bg(6,_e,null,et),_e.lanes=tt,_e}function zh(_e,et,tt){return et=Bg(4,_e.children!==null?_e.children:[],_e.key,et),et.lanes=tt,et.stateNode={containerInfo:_e.containerInfo,pendingChildren:null,implementation:_e.implementation},et}function bl(_e,et,tt,rt,nt){this.tag=et,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=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=rt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl(_e,et,tt,rt,nt,st,ot,at,ut){return _e=new bl(_e,et,tt,at,ut),et===1?(et=1,st===!0&&(et|=8)):et=0,st=Bg(3,null,null,et),_e.current=st,st.stateNode=_e,st.memoizedState={element:rt,isDehydrated:tt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(st),_e}function dl(_e,et,tt){var rt=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:rt==null?null:""+rt,children:_e,containerInfo:et,implementation:tt}}function el(_e){if(!_e)return Vf;_e=_e._reactInternals;e:{if(Vb(_e)!==_e||_e.tag!==1)throw Error(p$3(170));var et=_e;do{switch(et.tag){case 3:et=et.stateNode.context;break e;case 1:if(Zf(et.type)){et=et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}et=et.return}while(et!==null);throw Error(p$3(171))}if(_e.tag===1){var tt=_e.type;if(Zf(tt))return bg(_e,tt,et)}return et}function fl(_e,et,tt,rt,nt,st,ot,at,ut){return _e=cl(tt,rt,!0,_e,nt,st,ot,at,ut),_e.context=el(null),tt=_e.current,rt=L$1(),nt=lh(tt),st=ch(rt,nt),st.callback=et??null,dh(tt,st,nt),_e.current.lanes=nt,Ac(_e,nt,rt),Ek(_e,rt),_e}function gl(_e,et,tt,rt){var nt=et.current,st=L$1(),ot=lh(nt);return tt=el(tt),et.context===null?et.context=tt:et.pendingContext=tt,et=ch(st,ot),et.payload={element:_e},rt=rt===void 0?null:rt,rt!==null&&(et.callback=rt),_e=dh(nt,et,ot),_e!==null&&(mh(_e,nt,ot,st),eh(_e,nt,ot)),ot}function hl(_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 il(_e,et){if(_e=_e.memoizedState,_e!==null&&_e.dehydrated!==null){var tt=_e.retryLane;_e.retryLane=tt!==0&&tt<et?tt:et}}function jl(_e,et){il(_e,et),(_e=_e.alternate)&&il(_e,et)}function kl(){return null}var ll=typeof reportError=="function"?reportError:function(_e){console.error(_e)};function ml(_e){this._internalRoot=_e}nl.prototype.render=ml.prototype.render=function(_e){var et=this._internalRoot;if(et===null)throw Error(p$3(409));gl(_e,et,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var _e=this._internalRoot;if(_e!==null){this._internalRoot=null;var et=_e.containerInfo;Sk(function(){gl(null,_e,null,null)}),et[uf]=null}};function nl(_e){this._internalRoot=_e}nl.prototype.unstable_scheduleHydration=function(_e){if(_e){var et=Hc();_e={blockedOn:null,target:_e,priority:et};for(var tt=0;tt<Qc.length&&et!==0&&et<Qc[tt].priority;tt++);Qc.splice(tt,0,_e),tt===0&&Vc(_e)}};function ol(_e){return!(!_e||_e.nodeType!==1&&_e.nodeType!==9&&_e.nodeType!==11)}function pl(_e){return!(!_e||_e.nodeType!==1&&_e.nodeType!==9&&_e.nodeType!==11&&(_e.nodeType!==8||_e.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(_e,et,tt,rt,nt){if(nt){if(typeof rt=="function"){var st=rt;rt=function(){var lt=hl(ot);st.call(lt)}}var ot=fl(et,rt,_e,0,null,!1,!1,"",ql);return _e._reactRootContainer=ot,_e[uf]=ot.current,sf(_e.nodeType===8?_e.parentNode:_e),Sk(),ot}for(;nt=_e.lastChild;)_e.removeChild(nt);if(typeof rt=="function"){var at=rt;rt=function(){var lt=hl(ut);at.call(lt)}}var ut=cl(_e,0,!1,null,null,!1,!1,"",ql);return _e._reactRootContainer=ut,_e[uf]=ut.current,sf(_e.nodeType===8?_e.parentNode:_e),Sk(function(){gl(et,ut,tt,rt)}),ut}function sl(_e,et,tt,rt,nt){var st=tt._reactRootContainer;if(st){var ot=st;if(typeof nt=="function"){var at=nt;nt=function(){var ut=hl(ot);at.call(ut)}}gl(et,ot,_e,nt)}else ot=rl(tt,et,_e,nt,rt);return hl(ot)}Ec=function(_e){switch(_e.tag){case 3:var et=_e.stateNode;if(et.current.memoizedState.isDehydrated){var tt=tc(et.pendingLanes);tt!==0&&(Cc(et,tt|1),Ek(et,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var rt=Zg(_e,1);if(rt!==null){var nt=L$1();mh(rt,_e,1,nt)}}),jl(_e,1)}};Fc=function(_e){if(_e.tag===13){var et=Zg(_e,134217728);if(et!==null){var tt=L$1();mh(et,_e,134217728,tt)}jl(_e,134217728)}};Gc=function(_e){if(_e.tag===13){var et=lh(_e),tt=Zg(_e,et);if(tt!==null){var rt=L$1();mh(tt,_e,et,rt)}jl(_e,et)}};Hc=function(){return C$1};Ic=function(_e,et){var tt=C$1;try{return C$1=_e,et()}finally{C$1=tt}};yb=function(_e,et,tt){switch(et){case"input":if(bb(_e,tt),et=tt.name,tt.type==="radio"&&et!=null){for(tt=_e;tt.parentNode;)tt=tt.parentNode;for(tt=tt.querySelectorAll("input[name="+JSON.stringify(""+et)+'][type="radio"]'),et=0;et<tt.length;et++){var rt=tt[et];if(rt!==_e&&rt.form===_e.form){var nt=Db(rt);if(!nt)throw Error(p$3(90));Wa(rt),bb(rt,nt)}}}break;case"textarea":ib(_e,tt);break;case"select":et=tt.value,et!=null&&fb(_e,!!tt.multiple,et,!1)}};Gb=Rk;Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(_e){return _e=Zb(_e),_e===null?null:_e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,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 wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;reactDom_production_min.createPortal=function(_e,et){var tt=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(et))throw Error(p$3(200));return dl(_e,et,null,tt)};reactDom_production_min.createRoot=function(_e,et){if(!ol(_e))throw Error(p$3(299));var tt=!1,rt="",nt=ll;return et!=null&&(et.unstable_strictMode===!0&&(tt=!0),et.identifierPrefix!==void 0&&(rt=et.identifierPrefix),et.onRecoverableError!==void 0&&(nt=et.onRecoverableError)),et=cl(_e,1,!1,null,null,tt,!1,rt,nt),_e[uf]=et.current,sf(_e.nodeType===8?_e.parentNode:_e),new ml(et)};reactDom_production_min.findDOMNode=function(_e){if(_e==null)return null;if(_e.nodeType===1)return _e;var et=_e._reactInternals;if(et===void 0)throw typeof _e.render=="function"?Error(p$3(188)):(_e=Object.keys(_e).join(","),Error(p$3(268,_e)));return _e=Zb(et),_e=_e===null?null:_e.stateNode,_e};reactDom_production_min.flushSync=function(_e){return Sk(_e)};reactDom_production_min.hydrate=function(_e,et,tt){if(!pl(et))throw Error(p$3(200));return sl(null,_e,et,!0,tt)};reactDom_production_min.hydrateRoot=function(_e,et,tt){if(!ol(_e))throw Error(p$3(405));var rt=tt!=null&&tt.hydratedSources||null,nt=!1,st="",ot=ll;if(tt!=null&&(tt.unstable_strictMode===!0&&(nt=!0),tt.identifierPrefix!==void 0&&(st=tt.identifierPrefix),tt.onRecoverableError!==void 0&&(ot=tt.onRecoverableError)),et=fl(et,null,_e,1,tt??null,nt,!1,st,ot),_e[uf]=et.current,sf(_e),rt)for(_e=0;_e<rt.length;_e++)tt=rt[_e],nt=tt._getVersion,nt=nt(tt._source),et.mutableSourceEagerHydrationData==null?et.mutableSourceEagerHydrationData=[tt,nt]:et.mutableSourceEagerHydrationData.push(tt,nt);return new nl(et)};reactDom_production_min.render=function(_e,et,tt){if(!pl(et))throw Error(p$3(200));return sl(null,_e,et,!1,tt)};reactDom_production_min.unmountComponentAtNode=function(_e){if(!pl(_e))throw Error(p$3(40));return _e._reactRootContainer?(Sk(function(){sl(null,null,_e,!1,function(){_e._reactRootContainer=null,_e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(_e,et,tt,rt){if(!pl(tt))throw Error(p$3(200));if(_e==null||_e._reactInternals===void 0)throw Error(p$3(38));return sl(_e,et,tt,!1,rt)};reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(_e){console.error(_e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,shim={exports:{}},useSyncExternalStoreShim_production_min={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-shim.production.min.js
43
43
  *
@@ -45,7 +45,7 @@ Error generating stack: `+st.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 e$1=reactExports;function h$4(_e,et){return _e===et&&(_e!==0||1/_e===1/et)||_e!==_e&&et!==et}var k$1=typeof Object.is=="function"?Object.is:h$4,l$1=e$1.useState,m$3=e$1.useEffect,n$3=e$1.useLayoutEffect,p$2=e$1.useDebugValue;function q$2(_e,et){var tt=et(),rt=l$1({inst:{value:tt,getSnapshot:et}}),nt=rt[0].inst,st=rt[1];return n$3(function(){nt.value=tt,nt.getSnapshot=et,r$2(nt)&&st({inst:nt})},[_e,tt,et]),m$3(function(){return r$2(nt)&&st({inst:nt}),_e(function(){r$2(nt)&&st({inst:nt})})},[_e]),p$2(tt),tt}function r$2(_e){var et=_e.getSnapshot;_e=_e.value;try{var tt=et();return!k$1(_e,tt)}catch{return!0}}function t$2(_e,et){return et()}var u$3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$2:q$2;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$1.useSyncExternalStore!==void 0?e$1.useSyncExternalStore:u$3;shim.exports=useSyncExternalStoreShim_production_min;var shimExports=shim.exports;const useSyncExternalStore=shimExports.useSyncExternalStore,defaultContext=reactExports.createContext(void 0),QueryClientSharingContext=reactExports.createContext(!1);function getQueryClientContext(_e,et){return _e||(et&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext)}const useQueryClient=({context:_e}={})=>{const et=reactExports.useContext(getQueryClientContext(_e,reactExports.useContext(QueryClientSharingContext)));if(!et)throw new Error("No QueryClient set, use QueryClientProvider to set one");return et},QueryClientProvider=({client:_e,children:et,context:tt,contextSharing:rt=!1})=>{reactExports.useEffect(()=>(_e.mount(),()=>{_e.unmount()}),[_e]);const nt=getQueryClientContext(tt,rt);return reactExports.createElement(QueryClientSharingContext.Provider,{value:!tt&&rt},reactExports.createElement(nt.Provider,{value:_e},et))},IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let _e=!1;return{clearReset:()=>{_e=!1},reset:()=>{_e=!0},isReset:()=>_e}}const QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError(_e,et){return typeof _e=="function"?_e(...et):!!_e}const ensurePreventErrorBoundaryRetry=(_e,et)=>{(_e.suspense||_e.useErrorBoundary)&&(et.isReset()||(_e.retryOnMount=!1))},useClearResetErrorBoundary=_e=>{reactExports.useEffect(()=>{_e.clearReset()},[_e])},getHasError=({result:_e,errorResetBoundary:et,useErrorBoundary:tt,query:rt})=>_e.isError&&!et.isReset()&&!_e.isFetching&&shouldThrowError(tt,[_e.error,rt]),ensureStaleTime=_e=>{_e.suspense&&typeof _e.staleTime!="number"&&(_e.staleTime=1e3)},willFetch=(_e,et)=>_e.isLoading&&_e.isFetching&&!et,shouldSuspend=(_e,et,tt)=>(_e==null?void 0:_e.suspense)&&willFetch(et,tt),fetchOptimistic=(_e,et,tt)=>et.fetchOptimistic(_e).then(({data:rt})=>{_e.onSuccess==null||_e.onSuccess(rt),_e.onSettled==null||_e.onSettled(rt,null)}).catch(rt=>{tt.clearReset(),_e.onError==null||_e.onError(rt),_e.onSettled==null||_e.onSettled(void 0,rt)});function useBaseQuery(_e,et){const tt=useQueryClient({context:_e.context}),rt=useIsRestoring(),nt=useQueryErrorResetBoundary(),st=tt.defaultQueryOptions(_e);st._optimisticResults=rt?"isRestoring":"optimistic",st.onError&&(st.onError=notifyManager.batchCalls(st.onError)),st.onSuccess&&(st.onSuccess=notifyManager.batchCalls(st.onSuccess)),st.onSettled&&(st.onSettled=notifyManager.batchCalls(st.onSettled)),ensureStaleTime(st),ensurePreventErrorBoundaryRetry(st,nt),useClearResetErrorBoundary(nt);const[ot]=reactExports.useState(()=>new et(tt,st)),at=ot.getOptimisticResult(st);if(useSyncExternalStore(reactExports.useCallback(ut=>{const lt=rt?()=>{}:ot.subscribe(notifyManager.batchCalls(ut));return ot.updateResult(),lt},[ot,rt]),()=>ot.getCurrentResult(),()=>ot.getCurrentResult()),reactExports.useEffect(()=>{ot.setOptions(st,{listeners:!1})},[st,ot]),shouldSuspend(st,at,rt))throw fetchOptimistic(st,ot,nt);if(getHasError({result:at,errorResetBoundary:nt,useErrorBoundary:st.useErrorBoundary,query:ot.getCurrentQuery()}))throw at.error;return st.notifyOnChangeProps?at:ot.trackResult(at)}function useQuery(_e,et,tt){const rt=parseQueryArgs(_e,et,tt);return useBaseQuery(rt,QueryObserver)}function useMutation(_e,et,tt){const rt=parseMutationArgs(_e,et,tt),nt=useQueryClient({context:rt.context}),[st]=reactExports.useState(()=>new MutationObserver$1(nt,rt));reactExports.useEffect(()=>{st.setOptions(rt)},[st,rt]);const ot=useSyncExternalStore(reactExports.useCallback(ut=>st.subscribe(notifyManager.batchCalls(ut)),[st]),()=>st.getCurrentResult(),()=>st.getCurrentResult()),at=reactExports.useCallback((ut,lt)=>{st.mutate(ut,lt).catch(noop$2)},[st]);if(ot.error&&shouldThrowError(st.options.useErrorBoundary,[ot.error]))throw ot.error;return{...ot,mutate:at,mutateAsync:ot.mutate}}function noop$2(){}function useInfiniteQuery(_e,et,tt){const rt=parseQueryArgs(_e,et,tt);return useBaseQuery(rt,InfiniteQueryObserver)}var T$1=Object.defineProperty,_$2=(_e,et,tt)=>et in _e?T$1(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):_e[et]=tt,m$2=(_e,et,tt)=>(_$2(_e,typeof et!="symbol"?et+"":et,tt),tt);const ERROR_CODE={SUCCESS:"0000",UNKNOWN:"0010",NOT_INITIALIZED:"0020",NOT_SUPPORTED:"0030",APP_NOT_FOUND:"0040",AGENT_NOT_FOUND:"0050",TRANSPORT_ERROR:"0060",TIME_OUT:"0070",MALFORMED_DATA:"0080",NOT_LOGGED_IN:"0090"},APP={EXPLORER:"explorer",PORTAL:"portal",BLOG:"blog",EXERCIZER:"exercizer",TIMELINE:"timeline",CAS:"cas",VIDEO:"video",MINDMAP:"mindmap"};/*! *****************************************************************************
48
+ */var e$1=reactExports;function h$4(_e,et){return _e===et&&(_e!==0||1/_e===1/et)||_e!==_e&&et!==et}var k$1=typeof Object.is=="function"?Object.is:h$4,l$1=e$1.useState,m$3=e$1.useEffect,n$3=e$1.useLayoutEffect,p$2=e$1.useDebugValue;function q$2(_e,et){var tt=et(),rt=l$1({inst:{value:tt,getSnapshot:et}}),nt=rt[0].inst,st=rt[1];return n$3(function(){nt.value=tt,nt.getSnapshot=et,r$2(nt)&&st({inst:nt})},[_e,tt,et]),m$3(function(){return r$2(nt)&&st({inst:nt}),_e(function(){r$2(nt)&&st({inst:nt})})},[_e]),p$2(tt),tt}function r$2(_e){var et=_e.getSnapshot;_e=_e.value;try{var tt=et();return!k$1(_e,tt)}catch{return!0}}function t$2(_e,et){return et()}var u$3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$2:q$2;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$1.useSyncExternalStore!==void 0?e$1.useSyncExternalStore:u$3;shim.exports=useSyncExternalStoreShim_production_min;var shimExports=shim.exports;const useSyncExternalStore=shimExports.useSyncExternalStore,defaultContext=reactExports.createContext(void 0),QueryClientSharingContext=reactExports.createContext(!1);function getQueryClientContext(_e,et){return _e||(et&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=defaultContext),window.ReactQueryClientContext):defaultContext)}const useQueryClient=({context:_e}={})=>{const et=reactExports.useContext(getQueryClientContext(_e,reactExports.useContext(QueryClientSharingContext)));if(!et)throw new Error("No QueryClient set, use QueryClientProvider to set one");return et},QueryClientProvider=({client:_e,children:et,context:tt,contextSharing:rt=!1})=>{reactExports.useEffect(()=>(_e.mount(),()=>{_e.unmount()}),[_e]);const nt=getQueryClientContext(tt,rt);return reactExports.createElement(QueryClientSharingContext.Provider,{value:!tt&&rt},reactExports.createElement(nt.Provider,{value:_e},et))},IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let _e=!1;return{clearReset:()=>{_e=!1},reset:()=>{_e=!0},isReset:()=>_e}}const QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError(_e,et){return typeof _e=="function"?_e(...et):!!_e}const ensurePreventErrorBoundaryRetry=(_e,et)=>{(_e.suspense||_e.useErrorBoundary)&&(et.isReset()||(_e.retryOnMount=!1))},useClearResetErrorBoundary=_e=>{reactExports.useEffect(()=>{_e.clearReset()},[_e])},getHasError=({result:_e,errorResetBoundary:et,useErrorBoundary:tt,query:rt})=>_e.isError&&!et.isReset()&&!_e.isFetching&&shouldThrowError(tt,[_e.error,rt]),ensureStaleTime=_e=>{_e.suspense&&typeof _e.staleTime!="number"&&(_e.staleTime=1e3)},willFetch=(_e,et)=>_e.isLoading&&_e.isFetching&&!et,shouldSuspend=(_e,et,tt)=>(_e==null?void 0:_e.suspense)&&willFetch(et,tt),fetchOptimistic=(_e,et,tt)=>et.fetchOptimistic(_e).then(({data:rt})=>{_e.onSuccess==null||_e.onSuccess(rt),_e.onSettled==null||_e.onSettled(rt,null)}).catch(rt=>{tt.clearReset(),_e.onError==null||_e.onError(rt),_e.onSettled==null||_e.onSettled(void 0,rt)});function useBaseQuery(_e,et){const tt=useQueryClient({context:_e.context}),rt=useIsRestoring(),nt=useQueryErrorResetBoundary(),st=tt.defaultQueryOptions(_e);st._optimisticResults=rt?"isRestoring":"optimistic",st.onError&&(st.onError=notifyManager.batchCalls(st.onError)),st.onSuccess&&(st.onSuccess=notifyManager.batchCalls(st.onSuccess)),st.onSettled&&(st.onSettled=notifyManager.batchCalls(st.onSettled)),ensureStaleTime(st),ensurePreventErrorBoundaryRetry(st,nt),useClearResetErrorBoundary(nt);const[ot]=reactExports.useState(()=>new et(tt,st)),at=ot.getOptimisticResult(st);if(useSyncExternalStore(reactExports.useCallback(ut=>{const lt=rt?()=>{}:ot.subscribe(notifyManager.batchCalls(ut));return ot.updateResult(),lt},[ot,rt]),()=>ot.getCurrentResult(),()=>ot.getCurrentResult()),reactExports.useEffect(()=>{ot.setOptions(st,{listeners:!1})},[st,ot]),shouldSuspend(st,at,rt))throw fetchOptimistic(st,ot,nt);if(getHasError({result:at,errorResetBoundary:nt,useErrorBoundary:st.useErrorBoundary,query:ot.getCurrentQuery()}))throw at.error;return st.notifyOnChangeProps?at:ot.trackResult(at)}function useQuery(_e,et,tt){const rt=parseQueryArgs(_e,et,tt);return useBaseQuery(rt,QueryObserver)}function useMutation(_e,et,tt){const rt=parseMutationArgs(_e,et,tt),nt=useQueryClient({context:rt.context}),[st]=reactExports.useState(()=>new MutationObserver$1(nt,rt));reactExports.useEffect(()=>{st.setOptions(rt)},[st,rt]);const ot=useSyncExternalStore(reactExports.useCallback(ut=>st.subscribe(notifyManager.batchCalls(ut)),[st]),()=>st.getCurrentResult(),()=>st.getCurrentResult()),at=reactExports.useCallback((ut,lt)=>{st.mutate(ut,lt).catch(noop$2)},[st]);if(ot.error&&shouldThrowError(st.options.useErrorBoundary,[ot.error]))throw ot.error;return{...ot,mutate:at,mutateAsync:ot.mutate}}function noop$2(){}function useInfiniteQuery(_e,et,tt){const rt=parseQueryArgs(_e,et,tt);return useBaseQuery(rt,InfiniteQueryObserver)}var T$1=Object.defineProperty,I$2=(_e,et,tt)=>et in _e?T$1(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):_e[et]=tt,m$2=(_e,et,tt)=>(I$2(_e,typeof et!="symbol"?et+"":et,tt),tt);const ERROR_CODE={SUCCESS:"0000",UNKNOWN:"0010",NOT_INITIALIZED:"0020",NOT_SUPPORTED:"0030",APP_NOT_FOUND:"0040",AGENT_NOT_FOUND:"0050",TRANSPORT_ERROR:"0060",TIME_OUT:"0070",MALFORMED_DATA:"0080",NOT_LOGGED_IN:"0090"},APP={EXPLORER:"explorer",PORTAL:"portal",BLOG:"blog",EXERCIZER:"exercizer",TIMELINE:"timeline",CAS:"cas",VIDEO:"video",MINDMAP:"mindmap"};/*! *****************************************************************************
49
49
  Copyright (c) Microsoft Corporation.
50
50
 
51
51
  Permission to use, copy, modify, and/or distribute this software for any
@@ -60,8 +60,8 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60
60
  PERFORMANCE OF THIS SOFTWARE.
61
61
  ***************************************************************************** */var extendStatics=function(_e,et){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,rt){tt.__proto__=rt}||function(tt,rt){for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(tt[nt]=rt[nt])},extendStatics(_e,et)};function __extends$1(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics(_e,et);function tt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}function __values(_e){var et=typeof Symbol=="function"&&Symbol.iterator,tt=et&&_e[et],rt=0;if(tt)return tt.call(_e);if(_e&&typeof _e.length=="number")return{next:function(){return _e&&rt>=_e.length&&(_e=void 0),{value:_e&&_e[rt++],done:!_e}}};throw new TypeError(et?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(_e,et){var tt=typeof Symbol=="function"&&_e[Symbol.iterator];if(!tt)return _e;var rt=tt.call(_e),nt,st=[],ot;try{for(;(et===void 0||et-- >0)&&!(nt=rt.next()).done;)st.push(nt.value)}catch(at){ot={error:at}}finally{try{nt&&!nt.done&&(tt=rt.return)&&tt.call(rt)}finally{if(ot)throw ot.error}}return st}function __spreadArray(_e,et){for(var tt=0,rt=et.length,nt=_e.length;tt<rt;tt++,nt++)_e[nt]=et[tt];return _e}function isFunction$1(_e){return typeof _e=="function"}function createErrorClass(_e){var et=function(rt){Error.call(rt),rt.stack=new Error().stack},tt=_e(et);return tt.prototype=Object.create(Error.prototype),tt.prototype.constructor=tt,tt}var UnsubscriptionError=createErrorClass(function(_e){return function(et){_e(this),this.message=et?et.length+` errors occurred during unsubscription:
62
62
  `+et.map(function(tt,rt){return rt+1+") "+tt.toString()}).join(`
63
- `):"",this.name="UnsubscriptionError",this.errors=et}});function arrRemove(_e,et){if(_e){var tt=_e.indexOf(et);0<=tt&&_e.splice(tt,1)}}var Subscription=function(){function _e(et){this.initialTeardown=et,this.closed=!1,this._parentage=null,this._teardowns=null}return _e.prototype.unsubscribe=function(){var et,tt,rt,nt,st;if(!this.closed){this.closed=!0;var ot=this._parentage;if(ot)if(this._parentage=null,Array.isArray(ot))try{for(var at=__values(ot),ut=at.next();!ut.done;ut=at.next()){var lt=ut.value;lt.remove(this)}}catch(vt){et={error:vt}}finally{try{ut&&!ut.done&&(tt=at.return)&&tt.call(at)}finally{if(et)throw et.error}}else ot.remove(this);var dt=this.initialTeardown;if(isFunction$1(dt))try{dt()}catch(vt){st=vt instanceof UnsubscriptionError?vt.errors:[vt]}var ct=this._teardowns;if(ct){this._teardowns=null;try{for(var ft=__values(ct),ht=ft.next();!ht.done;ht=ft.next()){var mt=ht.value;try{execTeardown(mt)}catch(vt){st=st??[],vt instanceof UnsubscriptionError?st=__spreadArray(__spreadArray([],__read(st)),__read(vt.errors)):st.push(vt)}}}catch(vt){rt={error:vt}}finally{try{ht&&!ht.done&&(nt=ft.return)&&nt.call(ft)}finally{if(rt)throw rt.error}}}if(st)throw new UnsubscriptionError(st)}},_e.prototype.add=function(et){var tt;if(et&&et!==this)if(this.closed)execTeardown(et);else{if(et instanceof _e){if(et.closed||et._hasParent(this))return;et._addParent(this)}(this._teardowns=(tt=this._teardowns)!==null&&tt!==void 0?tt:[]).push(et)}},_e.prototype._hasParent=function(et){var tt=this._parentage;return tt===et||Array.isArray(tt)&&tt.includes(et)},_e.prototype._addParent=function(et){var tt=this._parentage;this._parentage=Array.isArray(tt)?(tt.push(et),tt):tt?[tt,et]:et},_e.prototype._removeParent=function(et){var tt=this._parentage;tt===et?this._parentage=null:Array.isArray(tt)&&arrRemove(tt,et)},_e.prototype.remove=function(et){var tt=this._teardowns;tt&&arrRemove(tt,et),et instanceof _e&&et._removeParent(this)},_e.EMPTY=function(){var et=new _e;return et.closed=!0,et}(),_e}(),EMPTY_SUBSCRIPTION=Subscription.EMPTY;function isSubscription(_e){return _e instanceof Subscription||_e&&"closed"in _e&&isFunction$1(_e.remove)&&isFunction$1(_e.add)&&isFunction$1(_e.unsubscribe)}function execTeardown(_e){isFunction$1(_e)?_e():_e.unsubscribe()}var config$1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];return setTimeout.apply(void 0,__spreadArray([],__read(_e)))},clearTimeout:function(_e){return clearTimeout(_e)},delegate:void 0};function reportUnhandledError(_e){timeoutProvider.setTimeout(function(){var et=config$1.onUnhandledError;if(et)et(_e);else throw _e})}function noop$1(){}var COMPLETE_NOTIFICATION=function(){return createNotification("C",void 0,void 0)}();function errorNotification(_e){return createNotification("E",void 0,_e)}function nextNotification(_e){return createNotification("N",_e,void 0)}function createNotification(_e,et,tt){return{kind:_e,value:et,error:tt}}var context=null;function errorContext(_e){if(config$1.useDeprecatedSynchronousErrorHandling){var et=!context;if(et&&(context={errorThrown:!1,error:null}),_e(),et){var tt=context,rt=tt.errorThrown,nt=tt.error;if(context=null,rt)throw nt}}else _e()}function captureError(_e){config$1.useDeprecatedSynchronousErrorHandling&&context&&(context.errorThrown=!0,context.error=_e)}var Subscriber=function(_e){__extends$1(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.isStopped=!1,tt?(rt.destination=tt,isSubscription(tt)&&tt.add(rt)):rt.destination=EMPTY_OBSERVER,rt}return et.create=function(tt,rt,nt){return new SafeSubscriber(tt,rt,nt)},et.prototype.next=function(tt){this.isStopped?handleStoppedNotification(nextNotification(tt),this):this._next(tt)},et.prototype.error=function(tt){this.isStopped?handleStoppedNotification(errorNotification(tt),this):(this.isStopped=!0,this._error(tt))},et.prototype.complete=function(){this.isStopped?handleStoppedNotification(COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_e.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(tt){this.destination.next(tt)},et.prototype._error=function(tt){try{this.destination.error(tt)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},et}(Subscription),SafeSubscriber=function(_e){__extends$1(et,_e);function et(tt,rt,nt){var st=_e.call(this)||this,ot;if(isFunction$1(tt))ot=tt;else if(tt){ot=tt.next,rt=tt.error,nt=tt.complete;var at;st&&config$1.useDeprecatedNextContext?(at=Object.create(tt),at.unsubscribe=function(){return st.unsubscribe()}):at=tt,ot=ot==null?void 0:ot.bind(at),rt=rt==null?void 0:rt.bind(at),nt=nt==null?void 0:nt.bind(at)}return st.destination={next:ot?wrapForErrorHandling(ot):noop$1,error:wrapForErrorHandling(rt??defaultErrorHandler),complete:nt?wrapForErrorHandling(nt):noop$1},st}return et}(Subscriber);function wrapForErrorHandling(_e,et){return function(){for(var tt=[],rt=0;rt<arguments.length;rt++)tt[rt]=arguments[rt];try{_e.apply(void 0,__spreadArray([],__read(tt)))}catch(nt){config$1.useDeprecatedSynchronousErrorHandling?captureError(nt):reportUnhandledError(nt)}}}function defaultErrorHandler(_e){throw _e}function handleStoppedNotification(_e,et){var tt=config$1.onStoppedNotification;tt&&timeoutProvider.setTimeout(function(){return tt(_e,et)})}var EMPTY_OBSERVER={closed:!0,next:noop$1,error:defaultErrorHandler,complete:noop$1},observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function identity(_e){return _e}function pipeFromArray(_e){return _e.length===0?identity:_e.length===1?_e[0]:function(et){return _e.reduce(function(tt,rt){return rt(tt)},et)}}var Observable=function(){function _e(et){et&&(this._subscribe=et)}return _e.prototype.lift=function(et){var tt=new _e;return tt.source=this,tt.operator=et,tt},_e.prototype.subscribe=function(et,tt,rt){var nt=this,st=isSubscriber(et)?et:new SafeSubscriber(et,tt,rt);return errorContext(function(){var ot=nt,at=ot.operator,ut=ot.source;st.add(at?at.call(st,ut):ut?nt._subscribe(st):nt._trySubscribe(st))}),st},_e.prototype._trySubscribe=function(et){try{return this._subscribe(et)}catch(tt){et.error(tt)}},_e.prototype.forEach=function(et,tt){var rt=this;return tt=getPromiseCtor(tt),new tt(function(nt,st){var ot;ot=rt.subscribe(function(at){try{et(at)}catch(ut){st(ut),ot==null||ot.unsubscribe()}},st,nt)})},_e.prototype._subscribe=function(et){var tt;return(tt=this.source)===null||tt===void 0?void 0:tt.subscribe(et)},_e.prototype[observable]=function(){return this},_e.prototype.pipe=function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return pipeFromArray(et)(this)},_e.prototype.toPromise=function(et){var tt=this;return et=getPromiseCtor(et),new et(function(rt,nt){var st;tt.subscribe(function(ot){return st=ot},function(ot){return nt(ot)},function(){return rt(st)})})},_e.create=function(et){return new _e(et)},_e}();function getPromiseCtor(_e){var et;return(et=_e??config$1.Promise)!==null&&et!==void 0?et:Promise}function isObserver(_e){return _e&&isFunction$1(_e.next)&&isFunction$1(_e.error)&&isFunction$1(_e.complete)}function isSubscriber(_e){return _e&&_e instanceof Subscriber||isObserver(_e)&&isSubscription(_e)}function hasLift(_e){return isFunction$1(_e==null?void 0:_e.lift)}function operate(_e){return function(et){if(hasLift(et))return et.lift(function(tt){try{return _e(tt,this)}catch(rt){this.error(rt)}});throw new TypeError("Unable to lift unknown Observable type")}}var OperatorSubscriber=function(_e){__extends$1(et,_e);function et(tt,rt,nt,st,ot){var at=_e.call(this,tt)||this;return at.onFinalize=ot,at._next=rt?function(ut){try{rt(ut)}catch(lt){tt.error(lt)}}:_e.prototype._next,at._error=st?function(ut){try{st(ut)}catch(lt){tt.error(lt)}finally{this.unsubscribe()}}:_e.prototype._error,at._complete=nt?function(){try{nt()}catch(ut){tt.error(ut)}finally{this.unsubscribe()}}:_e.prototype._complete,at}return et.prototype.unsubscribe=function(){var tt,rt=this.closed;_e.prototype.unsubscribe.call(this),!rt&&((tt=this.onFinalize)===null||tt===void 0||tt.call(this))},et}(Subscriber);function refCount(){return operate(function(_e,et){var tt=null;_e._refCount++;var rt=new OperatorSubscriber(et,void 0,void 0,void 0,function(){if(!_e||_e._refCount<=0||0<--_e._refCount){tt=null;return}var nt=_e._connection,st=tt;tt=null,nt&&(!st||nt===st)&&nt.unsubscribe(),et.unsubscribe()});_e.subscribe(rt),rt.closed||(tt=_e.connect())})}(function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this)||this;return nt.source=tt,nt.subjectFactory=rt,nt._subject=null,nt._refCount=0,nt._connection=null,hasLift(tt)&&(nt.lift=tt.lift),nt}return et.prototype._subscribe=function(tt){return this.getSubject().subscribe(tt)},et.prototype.getSubject=function(){var tt=this._subject;return(!tt||tt.isStopped)&&(this._subject=this.subjectFactory()),this._subject},et.prototype._teardown=function(){this._refCount=0;var tt=this._connection;this._subject=this._connection=null,tt==null||tt.unsubscribe()},et.prototype.connect=function(){var tt=this,rt=this._connection;if(!rt){rt=this._connection=new Subscription;var nt=this.getSubject();rt.add(this.source.subscribe(new OperatorSubscriber(nt,void 0,function(){tt._teardown(),nt.complete()},function(st){tt._teardown(),nt.error(st)},function(){return tt._teardown()}))),rt.closed&&(this._connection=null,rt=Subscription.EMPTY)}return rt},et.prototype.refCount=function(){return refCount()(this)},et})(Observable);var animationFrameProvider={schedule:function(_e){var et=requestAnimationFrame,tt=cancelAnimationFrame,rt=et(function(nt){tt=void 0,_e(nt)});return new Subscription(function(){return tt==null?void 0:tt(rt)})},requestAnimationFrame:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=animationFrameProvider.delegate;return((tt==null?void 0:tt.requestAnimationFrame)||requestAnimationFrame).apply(void 0,__spreadArray([],__read(_e)))},cancelAnimationFrame:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];return cancelAnimationFrame.apply(void 0,__spreadArray([],__read(_e)))},delegate:void 0},ObjectUnsubscribedError=createErrorClass(function(_e){return function(){_e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Subject=function(_e){__extends$1(et,_e);function et(){var tt=_e.call(this)||this;return tt.closed=!1,tt.observers=[],tt.isStopped=!1,tt.hasError=!1,tt.thrownError=null,tt}return et.prototype.lift=function(tt){var rt=new AnonymousSubject(this,this);return rt.operator=tt,rt},et.prototype._throwIfClosed=function(){if(this.closed)throw new ObjectUnsubscribedError},et.prototype.next=function(tt){var rt=this;errorContext(function(){var nt,st;if(rt._throwIfClosed(),!rt.isStopped){var ot=rt.observers.slice();try{for(var at=__values(ot),ut=at.next();!ut.done;ut=at.next()){var lt=ut.value;lt.next(tt)}}catch(dt){nt={error:dt}}finally{try{ut&&!ut.done&&(st=at.return)&&st.call(at)}finally{if(nt)throw nt.error}}}})},et.prototype.error=function(tt){var rt=this;errorContext(function(){if(rt._throwIfClosed(),!rt.isStopped){rt.hasError=rt.isStopped=!0,rt.thrownError=tt;for(var nt=rt.observers;nt.length;)nt.shift().error(tt)}})},et.prototype.complete=function(){var tt=this;errorContext(function(){if(tt._throwIfClosed(),!tt.isStopped){tt.isStopped=!0;for(var rt=tt.observers;rt.length;)rt.shift().complete()}})},et.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(et.prototype,"observed",{get:function(){var tt;return((tt=this.observers)===null||tt===void 0?void 0:tt.length)>0},enumerable:!1,configurable:!0}),et.prototype._trySubscribe=function(tt){return this._throwIfClosed(),_e.prototype._trySubscribe.call(this,tt)},et.prototype._subscribe=function(tt){return this._throwIfClosed(),this._checkFinalizedStatuses(tt),this._innerSubscribe(tt)},et.prototype._innerSubscribe=function(tt){var rt=this,nt=rt.hasError,st=rt.isStopped,ot=rt.observers;return nt||st?EMPTY_SUBSCRIPTION:(ot.push(tt),new Subscription(function(){return arrRemove(ot,tt)}))},et.prototype._checkFinalizedStatuses=function(tt){var rt=this,nt=rt.hasError,st=rt.thrownError,ot=rt.isStopped;nt?tt.error(st):ot&&tt.complete()},et.prototype.asObservable=function(){var tt=new Observable;return tt.source=this,tt},et.create=function(tt,rt){return new AnonymousSubject(tt,rt)},et}(Observable),AnonymousSubject=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this)||this;return nt.destination=tt,nt.source=rt,nt}return et.prototype.next=function(tt){var rt,nt;(nt=(rt=this.destination)===null||rt===void 0?void 0:rt.next)===null||nt===void 0||nt.call(rt,tt)},et.prototype.error=function(tt){var rt,nt;(nt=(rt=this.destination)===null||rt===void 0?void 0:rt.error)===null||nt===void 0||nt.call(rt,tt)},et.prototype.complete=function(){var tt,rt;(rt=(tt=this.destination)===null||tt===void 0?void 0:tt.complete)===null||rt===void 0||rt.call(tt)},et.prototype._subscribe=function(tt){var rt,nt;return(nt=(rt=this.source)===null||rt===void 0?void 0:rt.subscribe(tt))!==null&&nt!==void 0?nt:EMPTY_SUBSCRIPTION},et}(Subject);(function(_e){__extends$1(et,_e);function et(tt){var rt=_e.call(this)||this;return rt._value=tt,rt}return Object.defineProperty(et.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),et.prototype._subscribe=function(tt){var rt=_e.prototype._subscribe.call(this,tt);return!rt.closed&&tt.next(this._value),rt},et.prototype.getValue=function(){var tt=this,rt=tt.hasError,nt=tt.thrownError,st=tt._value;if(rt)throw nt;return this._throwIfClosed(),st},et.prototype.next=function(tt){_e.prototype.next.call(this,this._value=tt)},et})(Subject);var dateTimestampProvider={now:function(){return(dateTimestampProvider.delegate||Date).now()},delegate:void 0};(function(_e){__extends$1(et,_e);function et(tt,rt,nt){tt===void 0&&(tt=1/0),rt===void 0&&(rt=1/0),nt===void 0&&(nt=dateTimestampProvider);var st=_e.call(this)||this;return st._bufferSize=tt,st._windowTime=rt,st._timestampProvider=nt,st._buffer=[],st._infiniteTimeWindow=!0,st._infiniteTimeWindow=rt===1/0,st._bufferSize=Math.max(1,tt),st._windowTime=Math.max(1,rt),st}return et.prototype.next=function(tt){var rt=this,nt=rt.isStopped,st=rt._buffer,ot=rt._infiniteTimeWindow,at=rt._timestampProvider,ut=rt._windowTime;nt||(st.push(tt),!ot&&st.push(at.now()+ut)),this._trimBuffer(),_e.prototype.next.call(this,tt)},et.prototype._subscribe=function(tt){this._throwIfClosed(),this._trimBuffer();for(var rt=this._innerSubscribe(tt),nt=this,st=nt._infiniteTimeWindow,ot=nt._buffer,at=ot.slice(),ut=0;ut<at.length&&!tt.closed;ut+=st?1:2)tt.next(at[ut]);return this._checkFinalizedStatuses(tt),rt},et.prototype._trimBuffer=function(){var tt=this,rt=tt._bufferSize,nt=tt._timestampProvider,st=tt._buffer,ot=tt._infiniteTimeWindow,at=(ot?1:2)*rt;if(rt<1/0&&at<st.length&&st.splice(0,st.length-at),!ot){for(var ut=nt.now(),lt=0,dt=1;dt<st.length&&st[dt]<=ut;dt+=2)lt=dt;lt&&st.splice(0,lt+1)}},et})(Subject);(function(_e){__extends$1(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt._value=null,tt._hasValue=!1,tt._isComplete=!1,tt}return et.prototype._checkFinalizedStatuses=function(tt){var rt=this,nt=rt.hasError,st=rt._hasValue,ot=rt._value,at=rt.thrownError,ut=rt.isStopped,lt=rt._isComplete;nt?tt.error(at):(ut||lt)&&(st&&tt.next(ot),tt.complete())},et.prototype.next=function(tt){this.isStopped||(this._value=tt,this._hasValue=!0)},et.prototype.complete=function(){var tt=this,rt=tt._hasValue,nt=tt._value,st=tt._isComplete;st||(this._isComplete=!0,rt&&_e.prototype.next.call(this,nt),_e.prototype.complete.call(this))},et})(Subject);var Action=function(_e){__extends$1(et,_e);function et(tt,rt){return _e.call(this)||this}return et.prototype.schedule=function(tt,rt){return this},et}(Subscription),intervalProvider={setInterval:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=intervalProvider.delegate;return((tt==null?void 0:tt.setInterval)||setInterval).apply(void 0,__spreadArray([],__read(_e)))},clearInterval:function(_e){return clearInterval(_e)},delegate:void 0},AsyncAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt.pending=!1,nt}return et.prototype.schedule=function(tt,rt){if(rt===void 0&&(rt=0),this.closed)return this;this.state=tt;var nt=this.id,st=this.scheduler;return nt!=null&&(this.id=this.recycleAsyncId(st,nt,rt)),this.pending=!0,this.delay=rt,this.id=this.id||this.requestAsyncId(st,this.id,rt),this},et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),intervalProvider.setInterval(tt.flush.bind(tt,this),nt)},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&this.delay===nt&&this.pending===!1)return rt;intervalProvider.clearInterval(rt)},et.prototype.execute=function(tt,rt){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var nt=this._execute(tt,rt);if(nt)return nt;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},et.prototype._execute=function(tt,rt){var nt=!1,st;try{this.work(tt)}catch(ot){nt=!0,st=!!ot&&ot||new Error(ot)}if(nt)return this.unsubscribe(),st},et.prototype.unsubscribe=function(){if(!this.closed){var tt=this,rt=tt.id,nt=tt.scheduler,st=nt.actions;this.work=this.state=this.scheduler=null,this.pending=!1,arrRemove(st,this),rt!=null&&(this.id=this.recycleAsyncId(nt,rt,null)),this.delay=null,_e.prototype.unsubscribe.call(this)}},et}(Action),nextHandle=1,resolved,activeHandles={};function findAndClearHandle(_e){return _e in activeHandles?(delete activeHandles[_e],!0):!1}var Immediate={setImmediate:function(_e){var et=nextHandle++;return activeHandles[et]=!0,resolved||(resolved=Promise.resolve()),resolved.then(function(){return findAndClearHandle(et)&&_e()}),et},clearImmediate:function(_e){findAndClearHandle(_e)}},setImmediate$1=Immediate.setImmediate,clearImmediate=Immediate.clearImmediate,immediateProvider={setImmediate:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=immediateProvider.delegate;return((tt==null?void 0:tt.setImmediate)||setImmediate$1).apply(void 0,__spreadArray([],__read(_e)))},clearImmediate:function(_e){return clearImmediate(_e)},delegate:void 0},AsapAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!==null&&nt>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):(tt.actions.push(this),tt._scheduled||(tt._scheduled=immediateProvider.setImmediate(tt.flush.bind(tt,void 0))))},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0)return _e.prototype.recycleAsyncId.call(this,tt,rt,nt);tt.actions.length===0&&(immediateProvider.clearImmediate(rt),tt._scheduled=void 0)},et}(AsyncAction),Scheduler=function(){function _e(et,tt){tt===void 0&&(tt=_e.now),this.schedulerActionCtor=et,this.now=tt}return _e.prototype.schedule=function(et,tt,rt){return tt===void 0&&(tt=0),new this.schedulerActionCtor(this,et).schedule(rt,tt)},_e.now=dateTimestampProvider.now,_e}(),AsyncScheduler=function(_e){__extends$1(et,_e);function et(tt,rt){rt===void 0&&(rt=Scheduler.now);var nt=_e.call(this,tt,rt)||this;return nt.actions=[],nt._active=!1,nt._scheduled=void 0,nt}return et.prototype.flush=function(tt){var rt=this.actions;if(this._active){rt.push(tt);return}var nt;this._active=!0;do if(nt=tt.execute(tt.state,tt.delay))break;while(tt=rt.shift());if(this._active=!1,nt){for(;tt=rt.shift();)tt.unsubscribe();throw nt}},et}(Scheduler),AsapScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.flush=function(tt){this._active=!0,this._scheduled=void 0;var rt=this.actions,nt,st=-1;tt=tt||rt.shift();var ot=rt.length;do if(nt=tt.execute(tt.state,tt.delay))break;while(++st<ot&&(tt=rt.shift()));if(this._active=!1,nt){for(;++st<ot&&(tt=rt.shift());)tt.unsubscribe();throw nt}},et}(AsyncScheduler);new AsapScheduler(AsapAction);new AsyncScheduler(AsyncAction);var QueueAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.schedule=function(tt,rt){return rt===void 0&&(rt=0),rt>0?_e.prototype.schedule.call(this,tt,rt):(this.delay=rt,this.state=tt,this.scheduler.flush(this),this)},et.prototype.execute=function(tt,rt){return rt>0||this.closed?_e.prototype.execute.call(this,tt,rt):this._execute(tt,rt)},et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):tt.flush(this)},et}(AsyncAction),QueueScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et}(AsyncScheduler);new QueueScheduler(QueueAction);var AnimationFrameAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!==null&&nt>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):(tt.actions.push(this),tt._scheduled||(tt._scheduled=animationFrameProvider.requestAnimationFrame(function(){return tt.flush(void 0)})))},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0)return _e.prototype.recycleAsyncId.call(this,tt,rt,nt);tt.actions.length===0&&(animationFrameProvider.cancelAnimationFrame(rt),tt._scheduled=void 0)},et}(AsyncAction),AnimationFrameScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.flush=function(tt){this._active=!0,this._scheduled=void 0;var rt=this.actions,nt,st=-1;tt=tt||rt.shift();var ot=rt.length;do if(nt=tt.execute(tt.state,tt.delay))break;while(++st<ot&&(tt=rt.shift()));if(this._active=!1,nt){for(;++st<ot&&(tt=rt.shift());)tt.unsubscribe();throw nt}},et}(AsyncScheduler);new AnimationFrameScheduler(AnimationFrameAction);(function(_e){__extends$1(et,_e);function et(tt,rt){tt===void 0&&(tt=VirtualAction),rt===void 0&&(rt=1/0);var nt=_e.call(this,tt,function(){return nt.frame})||this;return nt.maxFrames=rt,nt.frame=0,nt.index=-1,nt}return et.prototype.flush=function(){for(var tt=this,rt=tt.actions,nt=tt.maxFrames,st,ot;(ot=rt[0])&&ot.delay<=nt&&(rt.shift(),this.frame=ot.delay,!(st=ot.execute(ot.state,ot.delay))););if(st){for(;ot=rt.shift();)ot.unsubscribe();throw st}},et.frameTimeFactor=10,et})(AsyncScheduler);var VirtualAction=function(_e){__extends$1(et,_e);function et(tt,rt,nt){nt===void 0&&(nt=tt.index+=1);var st=_e.call(this,tt,rt)||this;return st.scheduler=tt,st.work=rt,st.index=nt,st.active=!0,st.index=tt.index=nt,st}return et.prototype.schedule=function(tt,rt){if(rt===void 0&&(rt=0),Number.isFinite(rt)){if(!this.id)return _e.prototype.schedule.call(this,tt,rt);this.active=!1;var nt=new et(this.scheduler,this.work);return this.add(nt),nt.schedule(tt,rt)}else return Subscription.EMPTY},et.prototype.requestAsyncId=function(tt,rt,nt){nt===void 0&&(nt=0),this.delay=tt.frame+nt;var st=tt.actions;return st.push(this),st.sort(et.sortActions),!0},et.prototype.recycleAsyncId=function(tt,rt,nt){},et.prototype._execute=function(tt,rt){if(this.active===!0)return _e.prototype._execute.call(this,tt,rt)},et.sortActions=function(tt,rt){return tt.delay===rt.delay?tt.index===rt.index?0:tt.index>rt.index?1:-1:tt.delay>rt.delay?1:-1},et}(AsyncAction),EMPTY=new Observable(function(_e){return _e.complete()});function scheduleArray(_e,et){return new Observable(function(tt){var rt=0;return et.schedule(function(){rt===_e.length?tt.complete():(tt.next(_e[rt++]),tt.closed||this.schedule())})})}function fromArrayLike(_e){return new Observable(function(et){for(var tt=0;tt<_e.length&&!et.closed;tt++)et.next(_e[tt]);et.complete()})}function internalFromArray(_e,et){return et?scheduleArray(_e,et):fromArrayLike(_e)}function isScheduler(_e){return _e&&isFunction$1(_e.schedule)}function last$1(_e){return _e[_e.length-1]}function popScheduler(_e){return isScheduler(last$1(_e))?_e.pop():void 0}function of(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=popScheduler(_e);return tt?scheduleArray(_e,tt):internalFromArray(_e)}function throwError(_e,et){var tt=isFunction$1(_e)?_e:function(){return _e},rt=function(nt){return nt.error(tt())};return new Observable(et?function(nt){return et.schedule(rt,0,nt)}:rt)}var NotificationKind;(function(_e){_e.NEXT="N",_e.ERROR="E",_e.COMPLETE="C"})(NotificationKind||(NotificationKind={}));(function(){function _e(et,tt,rt){this.kind=et,this.value=tt,this.error=rt,this.hasValue=et==="N"}return _e.prototype.observe=function(et){return observeNotification(this,et)},_e.prototype.do=function(et,tt,rt){var nt=this,st=nt.kind,ot=nt.value,at=nt.error;return st==="N"?et==null?void 0:et(ot):st==="E"?tt==null?void 0:tt(at):rt==null?void 0:rt()},_e.prototype.accept=function(et,tt,rt){var nt;return isFunction$1((nt=et)===null||nt===void 0?void 0:nt.next)?this.observe(et):this.do(et,tt,rt)},_e.prototype.toObservable=function(){var et=this,tt=et.kind,rt=et.value,nt=et.error,st=tt==="N"?of(rt):tt==="E"?throwError(function(){return nt}):tt==="C"?EMPTY:0;if(!st)throw new TypeError("Unexpected notification kind "+tt);return st},_e.createNext=function(et){return new _e("N",et)},_e.createError=function(et){return new _e("E",void 0,et)},_e.createComplete=function(){return _e.completeNotification},_e.completeNotification=new _e("C"),_e})();function observeNotification(_e,et){var tt,rt,nt,st=_e,ot=st.kind,at=st.value,ut=st.error;if(typeof ot!="string")throw new TypeError('Invalid notification, missing "kind"');ot==="N"?(tt=et.next)===null||tt===void 0||tt.call(et,at):ot==="E"?(rt=et.error)===null||rt===void 0||rt.call(et,ut):(nt=et.complete)===null||nt===void 0||nt.call(et)}createErrorClass(function(_e){return function(){_e(this),this.name="EmptyError",this.message="no elements in sequence"}});createErrorClass(function(_e){return function(){_e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});createErrorClass(function(_e){return function(et){_e(this),this.name="NotFoundError",this.message=et}});createErrorClass(function(_e){return function(et){_e(this),this.name="SequenceError",this.message=et}});createErrorClass(function(_e){return function(et){et===void 0&&(et=null),_e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=et}});function filter(_e,et){return operate(function(tt,rt){var nt=0;tt.subscribe(new OperatorSubscriber(rt,function(st){return _e.call(et,st,nt++)&&rt.next(st)}))})}(function(_e){__extends$1(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.activeGroups=0,tt.teardownAttempted=!1,tt}return et.prototype.unsubscribe=function(){this.teardownAttempted=!0,this.activeGroups===0&&_e.prototype.unsubscribe.call(this)},et})(OperatorSubscriber);class Bus{constructor(){m$2(this,"agents",{}),m$2(this,"comm",new Subject)}setAgentFor(et,tt,rt){let nt=this.getActionMapping(et);nt[tt]=rt}getAgentFor(et,tt){return this.getActionMapping(et)[tt]}publish(et,tt,rt){return Promise.resolve().then(()=>{var nt;return(nt=this.getAgentFor(et,tt))!=null?nt:explorer.requestAgentFor(et,tt)}).then(nt=>{const st=nt.activate(et,tt,rt);return this.comm.next({res:et,action:tt,input:rt,output:st}),st})}subscribe(et,tt){return this.comm.asObservable().pipe(filter(rt=>rt.res===et&&rt.action===tt))}getActionMapping(et){let tt=this.agents[et];if(typeof tt>"u"){tt={};for(let rt of Object.values(ACTION))tt[rt]=null;this.agents[et]=tt}return tt}}class BusFactory{static get instance(){return this._instance=this._instance||new Bus}}m$2(BusFactory,"_instance");const y$1=class{constructor(et){m$2(this,"managedResource"),m$2(this,"handlerFor",{comment:y$1.defaultHandler,copy:y$1.defaultHandler,create:y$1.defaultHandler,delete:y$1.defaultHandler,export:y$1.defaultHandler,initialize:y$1.defaultHandler,manage:y$1.defaultHandler,properties:y$1.defaultHandler,move:y$1.defaultHandler,open:y$1.defaultHandler,print:y$1.defaultHandler,publish:y$1.defaultHandler,search:y$1.defaultHandler,share:y$1.defaultHandler,distribute:y$1.defaultHandler,pages_list:y$1.defaultHandler,register:y$1.defaultHandler,trash:y$1.defaultHandler,publish_moodle:y$1.defaultHandler,restore:y$1.defaultHandler}),this.managedResource=et,this.initialize()}initialize(){for(let et in Object.values(ACTION))this.handlerFor[et]=y$1.defaultHandler;this.registerHandlers()}setHandler(et,tt){BusFactory.instance.setAgentFor(this.managedResource,et,this),this.handlerFor[et]=tt}getHandler(et){return this.handlerFor[et]}activate(et,tt,rt){return Promise.resolve().then(()=>this.getHandler(tt).bind(this)(rt))}};let AbstractBusAgent=y$1;m$2(AbstractBusAgent,"defaultHandler",function(_e){throw new Error(ERROR_CODE.NOT_SUPPORTED)});console.log("Blog agent loading....");class BlogAgent extends AbstractBusAgent{constructor(){super(RESOURCE.BLOG),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance()),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers(),console.log("Blog agent initialized!")}registerHandlers(){this.setHandler(ACTION.OPEN,this.openBlog),this.setHandler(ACTION.CREATE,this.createBlog),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.onUpdateProps),this.setHandler(ACTION.PRINT,this.onPrint),this.setHandler(ACTION.PUBLISH,this.onPublish)}onPrint(et){window.open(`/blog/print/blog#/print/${et.resourceId}?comments=${et.withComments||!0}`,"_blank")}openBlog(et){window.open(`/blog#/view/${et.resourceId}`,"_self")}createBlog(et){window.open("/blog#/edit/new","_self")}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}onUpdateProps(et){const tt={resources:et.resources};return alert("TODO: update properties"),Promise.resolve().then(()=>tt)}async onPublish(et){const tt=new FormData;return tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(rt=>{tt.append("activityType[]",rt)}),et.subjectArea.forEach(rt=>{tt.append("subjectArea[]",rt)}),et.age.forEach(rt=>{tt.append("age[]",rt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(rt=>{tt.append("keyWords[]",rt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}/blog/print/blog#/print/${et.resourceId}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName),this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}}).then(this.checkHttpResponse)}}const factory$2=()=>new BlogAgent;class FolderAgent extends AbstractBusAgent{constructor(){super(RESOURCE.FOLDER),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance({paramsSerializer:function(et){return Object.entries(et).map(tt=>tt[1]instanceof Array?tt[1].map(rt=>`${tt[0]}=${encodeURIComponent(rt)}`).join("&"):["string","number","boolean"].indexOf(typeof tt[1])>=0?`${tt[0]}=${encodeURIComponent(tt[1])}`:"").join("&")}})),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers()}registerHandlers(){this.setHandler(ACTION.INITIALIZE,this.createContext),this.setHandler(ACTION.SEARCH,this.searchContext),this.setHandler(ACTION.CREATE,this.createFolder),this.setHandler(ACTION.OPEN,this.listSubfolders),this.setHandler(ACTION.MOVE,this.moveToFolder),this.setHandler(ACTION.DELETE,this.deleteFolders),this.setHandler(ACTION.TRASH,this.trashFolders),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.updateFolder)}createContext(et){return this.http.get("/explorer/context",{queryParams:this.toQueryParams(et)}).then(this.checkHttpResponse)}searchContext(et){return this.http.get("/explorer/resources",{queryParams:this.toQueryParams(et)}).then(this.checkHttpResponse)}createFolder(et){return this.http.post("/explorer/folders",this.createFolderToBodyParams(et)).then(this.checkHttpResponse)}updateFolder(et){return this.http.put(`/explorer/folders/${et.folderId}`,this.createFolderToBodyParams(et)).then(this.checkHttpResponse)}moveToFolder(et){return this.http.post(`/explorer/folders/${et.folderId}/move`,this.moveToBodyParams(et)).then(this.checkHttpResponse)}listSubfolders(et){return this.http.get(`/explorer/folders/${et}/move`).then(this.checkHttpResponse)}deleteFolders(et){return this.http.deleteJson("/explorer",et).then(this.checkHttpResponse)}trashFolders({trash:et,resourceType:tt,...rt}){return this.http.putJson(`/explorer/${et?"trash":"restore"}`,rt).then(this.checkHttpResponse)}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}toQueryParams(et){let tt={application:et.app,start_idx:et.pagination.startIdx,page_size:et.pagination.pageSize,resource_type:et.types};return et.orders&&(tt.order_by=Object.entries(et.orders).map(rt=>`${rt[0]}:${rt[1]}`)),et.filters&&Object.assign(tt,et.filters),typeof et.search=="string"&&(tt.search=et.search),tt}createFolderToBodyParams(et){return{application:et.app,resourceType:et.type,parentId:et.parentId,name:et.name}}moveToBodyParams(et){return{application:et.application,resourceType:this.managedResource,resourceIds:et.resourceIds,folderIds:et.folderIds}}}const factory$1=()=>new FolderAgent;console.log("Mindmap agent loading....");class MindmapAgent extends AbstractBusAgent{constructor(){super(RESOURCE.MINDMAP),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance()),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers(),console.log("Mindmap agent initialized!")}registerHandlers(){this.setHandler(ACTION.OPEN,this.openMindmap),this.setHandler(ACTION.CREATE,this.createMindmap),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.onUpdateProps),this.setHandler(ACTION.PRINT,this.onPrint),this.setHandler(ACTION.PUBLISH,this.onPublish)}onPrint(et){window.open(`/blog/print/blog#/print/${et.resourceId}?comments=${et.withComments||!0}`,"_blank")}openMindmap(et){window.open(`/blog#/view/${et.resourceId}`,"_self")}createMindmap(et){window.open("/blog#/edit/new","_self")}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}onUpdateProps(et){const tt={resources:et.resources};return alert("TODO: update properties"),Promise.resolve().then(()=>tt)}async onPublish(et){const tt=new FormData;return tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(rt=>{tt.append("activityType[]",rt)}),et.subjectArea.forEach(rt=>{tt.append("subjectArea[]",rt)}),et.age.forEach(rt=>{tt.append("age[]",rt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(rt=>{tt.append("keyWords[]",rt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}/blog/print/blog#/print/${et.resourceId}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName),this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}}).then(this.checkHttpResponse)}}const factory=()=>new MindmapAgent;class AgentLoader{load(et){let tt=appNameForResource[et];if(typeof tt!="string")throw new Error(`The resource type ${et} is not supported yet.`);switch(tt){case APP.EXPLORER:factory$1();break;case APP.BLOG:factory$2();break;case APP.MINDMAP:factory();break;default:throw new Error(`The resource type ${et} is not supported yet.`)}return Promise.resolve()}}class ExplorerContext{constructor(et,tt){m$2(this,"searchParameters"),m$2(this,"context"),m$2(this,"bus"),m$2(this,"latestResults",new Subject),this.context=null,this.bus=ExplorerFrameworkFactory.instance().getBus(),this.searchParameters={types:et,app:tt,filters:{},pagination:{startIdx:0,pageSize:20}}}clear(){this.searchParameters.filters={owner:!0,shared:!0,public:!0},this.searchParameters.pagination.startIdx=0,this.searchParameters.pagination.pageSize=20,this.context=null}isInitialized(){return this.context!==null}getContext(){if(this.context!==null)return this.context}getSearchParameters(){return this.searchParameters}duplicateSearchParameters(){return JSON.parse(JSON.stringify(this.searchParameters))}latestResources(){return this.latestResults.asObservable()}initialize(){const et=this.duplicateSearchParameters();return Promise.resolve().then(()=>this.bus.publish(RESOURCE.FOLDER,ACTION.INITIALIZE,et)).then(tt=>{if(this.context=tt,!this.context)throw new Error(ERROR_CODE.UNKNOWN);return this.latestResults.next({input:et,output:this.context}),this.context})}getResources(){const et=this.duplicateSearchParameters();return this.bus.publish(RESOURCE.FOLDER,ACTION.SEARCH,et).then(tt=>{let rt=tt;if(!rt)throw new Error(ERROR_CODE.UNKNOWN);return this.latestResults.next({input:et,output:rt}),rt})}getSubFolders(et){throw new Error("Method not implemented.")}createFolder(et,tt,rt){const nt={app:this.searchParameters.app,name:rt,parentId:tt,type:et};return this.bus.publish(RESOURCE.FOLDER,ACTION.CREATE,nt).then(st=>{let ot=st;if(!ot)throw new Error(ERROR_CODE.UNKNOWN);return ot})}updateFolder(et,tt,rt,nt){const st={folderId:et,app:this.searchParameters.app,name:nt,parentId:rt,type:tt};return this.bus.publish(RESOURCE.FOLDER,ACTION.UPD_PROPS,st).then(ot=>{let at=ot;if(!at)throw new Error(ERROR_CODE.UNKNOWN);return at})}copy(et,tt,rt){const nt={application:this.searchParameters.app,folderId:et,resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.COPY,nt).then(st=>{})}move(et,tt,rt){const nt={application:this.searchParameters.app,folderId:et,resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.MOVE,nt).then(st=>{})}delete(et,tt){const rt={application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:et,folderIds:tt};return this.bus.publish(RESOURCE.FOLDER,ACTION.DELETE,rt).then(nt=>{})}trash(et,tt,rt){const nt={trash:et,application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.TRASH,nt).then(st=>{})}manageProperties(et,tt){const rt={resources:tt};return this.bus.publish(et,ACTION.MANAGE,rt).then(nt=>{let st=nt;if(!st)throw new Error(ERROR_CODE.UNKNOWN);return st})}updateProperties(et,tt,rt){const nt={resources:tt,props:rt};return this.bus.publish(et,ACTION.UPD_PROPS,nt).then(st=>{let ot=st;if(!ot)throw new Error(ERROR_CODE.UNKNOWN);return ot})}publish(et,tt){return this.bus.publish(et,ACTION.PUBLISH,tt).then(rt=>{let nt=rt;if(!nt)throw new Error(ERROR_CODE.UNKNOWN);return nt})}}class ExplorerFramework{constructor(){m$2(this,"_agentLoader")}get agentLoader(){return this._agentLoader||(this._agentLoader=new AgentLoader),this._agentLoader}setAgentLoader(et){et&&(this._agentLoader=et)}requestAgentFor(et,tt){return this.agentLoader.load(et).then(()=>{let rt=this.getBus().getAgentFor(et,tt);if(!rt)throw new Error(ERROR_CODE.AGENT_NOT_FOUND);return rt})}createContext(et,tt){return new ExplorerContext(et,tt)}getBus(){return BusFactory.instance}}const explorer=new ExplorerFramework;class ExplorerFrameworkFactory{static instance(){return explorer}}const RESOURCE={FOLDER:"folder",BLOG:"blog",EXERCISE:"exercise",MINDMAP:"mindmap"},appNameForResource={folder:APP.EXPLORER,blog:APP.BLOG,exercise:APP.EXERCIZER,mindmap:APP.MINDMAP},ACTION={INITIALIZE:"initialize",SEARCH:"search",CREATE:"create",OPEN:"open",MANAGE:"manage",UPD_PROPS:"properties",COMMENT:"comment",DELETE:"delete",TRASH:"trash",RESTORE:"restore",MOVE:"move",COPY:"copy",EXPORT:"export",SHARE:"share",PRINT:"print",PAGES_LIST:"pages_list",DISTRIBUTE:"distribute",REGISTER:"register",PUBLISH:"publish",PUBLISH_MOODLE:"publish_moodle"},FOLDER={BIN:"bin",DEFAULT:"default"},PROP_KEY={TITLE:"title",IMAGE:"image",COLOR:"color",DESCRIPTION:"description",URL:"url"},ASYNC_DATA_NAME={SESSION_READY:"sessionReady",LANG_READY:"langReady",SKIN_READY:"skinReady",OVERRIDE_READY:"overrideReady"};class Promisified{constructor(){m$2(this,"_resolution"),m$2(this,"_rejection"),m$2(this,"_promise",new Promise((et,tt)=>{this._resolution=et,this._rejection=tt}))}get promise(){return this._promise}resolve(et){this._resolution&&this._resolution(et)}reject(et){this._rejection&&this._rejection(et)}}class NotifyFramework{constructor(){m$2(this,"promises",{}),m$2(this,"subject",new Subject)}asyncData(et){return typeof this.promises[et]>"u"&&(this.promises[et]=new Promisified),this.promises[et]}onSessionReady(){return this.asyncData(ASYNC_DATA_NAME.SESSION_READY)}onLangReady(){return this.asyncData(ASYNC_DATA_NAME.LANG_READY)}onSkinReady(){return this.asyncData(ASYNC_DATA_NAME.SKIN_READY)}onOverridesReady(){return this.asyncData(ASYNC_DATA_NAME.OVERRIDE_READY)}promisify(){return new Promisified}events(){return this.subject}}const notify=new NotifyFramework,LAYER_NAME={WIDGETS:"widgets",EXPLORER:"explorer"},EVENT_NAME={USERPREF_CHANGED:"userprefChanged",SEARCH_RESULTED:"searchResulted"};function getDefaultExportFromCjs(_e){return _e&&_e.__esModule&&Object.prototype.hasOwnProperty.call(_e,"default")?_e.default:_e}var axios$3={exports:{}},axios$2={exports:{}},bind$2=function(_e,et){return function(){for(var tt=new Array(arguments.length),rt=0;rt<tt.length;rt++)tt[rt]=arguments[rt];return _e.apply(et,tt)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray(_e){return toString.call(_e)==="[object Array]"}function isUndefined(_e){return typeof _e>"u"}function isBuffer(_e){return _e!==null&&!isUndefined(_e)&&_e.constructor!==null&&!isUndefined(_e.constructor)&&typeof _e.constructor.isBuffer=="function"&&_e.constructor.isBuffer(_e)}function isArrayBuffer(_e){return toString.call(_e)==="[object ArrayBuffer]"}function isFormData(_e){return typeof FormData<"u"&&_e instanceof FormData}function isArrayBufferView(_e){var et;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?et=ArrayBuffer.isView(_e):et=_e&&_e.buffer&&_e.buffer instanceof ArrayBuffer,et}function isString(_e){return typeof _e=="string"}function isNumber(_e){return typeof _e=="number"}function isObject(_e){return _e!==null&&typeof _e=="object"}function isPlainObject(_e){if(toString.call(_e)!=="[object Object]")return!1;var et=Object.getPrototypeOf(_e);return et===null||et===Object.prototype}function isDate(_e){return toString.call(_e)==="[object Date]"}function isFile(_e){return toString.call(_e)==="[object File]"}function isBlob(_e){return toString.call(_e)==="[object Blob]"}function isFunction(_e){return toString.call(_e)==="[object Function]"}function isStream(_e){return isObject(_e)&&isFunction(_e.pipe)}function isURLSearchParams(_e){return typeof URLSearchParams<"u"&&_e instanceof URLSearchParams}function trim$1(_e){return _e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(_e,et){if(!(_e===null||typeof _e>"u"))if(typeof _e!="object"&&(_e=[_e]),isArray(_e))for(var tt=0,rt=_e.length;tt<rt;tt++)et.call(null,_e[tt],tt,_e);else for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&et.call(null,_e[nt],nt,_e)}function merge(){var _e={};function et(nt,st){isPlainObject(_e[st])&&isPlainObject(nt)?_e[st]=merge(_e[st],nt):isPlainObject(nt)?_e[st]=merge({},nt):isArray(nt)?_e[st]=nt.slice():_e[st]=nt}for(var tt=0,rt=arguments.length;tt<rt;tt++)forEach(arguments[tt],et);return _e}function extend(_e,et,tt){return forEach(et,function(rt,nt){tt&&typeof rt=="function"?_e[nt]=bind$1(rt,tt):_e[nt]=rt}),_e}function stripBOM(_e){return _e.charCodeAt(0)===65279&&(_e=_e.slice(1)),_e}var utils$9={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim:trim$1,stripBOM},utils$8=utils$9;function encode(_e){return encodeURIComponent(_e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(_e,et,tt){if(!et)return _e;var rt;if(tt)rt=tt(et);else if(utils$8.isURLSearchParams(et))rt=et.toString();else{var nt=[];utils$8.forEach(et,function(ot,at){ot===null||typeof ot>"u"||(utils$8.isArray(ot)?at=at+"[]":ot=[ot],utils$8.forEach(ot,function(ut){utils$8.isDate(ut)?ut=ut.toISOString():utils$8.isObject(ut)&&(ut=JSON.stringify(ut)),nt.push(encode(at)+"="+encode(ut))}))}),rt=nt.join("&")}if(rt){var st=_e.indexOf("#");st!==-1&&(_e=_e.slice(0,st)),_e+=(_e.indexOf("?")===-1?"?":"&")+rt}return _e},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(_e,et){return this.handlers.push({fulfilled:_e,rejected:et}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(_e){this.handlers[_e]&&(this.handlers[_e]=null)};InterceptorManager$1.prototype.forEach=function(_e){utils$7.forEach(this.handlers,function(et){et!==null&&_e(et)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,transformData$1=function(_e,et,tt){return utils$6.forEach(tt,function(rt){_e=rt(_e,et)}),_e},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(_e){return!!(_e&&_e.__CANCEL__)}),isCancel$1}var utils$5=utils$9,normalizeHeaderName$1=function(_e,et){utils$5.forEach(_e,function(tt,rt){rt!==et&&rt.toUpperCase()===et.toUpperCase()&&(_e[et]=tt,delete _e[rt])})},enhanceError,hasRequiredEnhanceError;function requireEnhanceError(){return hasRequiredEnhanceError||(hasRequiredEnhanceError=1,enhanceError=function(_e,et,tt,rt,nt){return _e.config=et,tt&&(_e.code=tt),_e.request=rt,_e.response=nt,_e.isAxiosError=!0,_e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},_e}),enhanceError}var createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var _e=requireEnhanceError();return createError=function(et,tt,rt,nt,st){var ot=new Error(et);return _e(ot,tt,rt,nt,st)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var _e=requireCreateError();return settle=function(et,tt,rt){var nt=rt.config.validateStatus;!rt.status||!nt||nt(rt.status)?et(rt):tt(_e("Request failed with status code "+rt.status,rt.config,null,rt.request,rt))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var _e=utils$9;return cookies=_e.isStandardBrowserEnv()?function(){return{write:function(et,tt,rt,nt,st,ot){var at=[];at.push(et+"="+encodeURIComponent(tt)),_e.isNumber(rt)&&at.push("expires="+new Date(rt).toGMTString()),_e.isString(nt)&&at.push("path="+nt),_e.isString(st)&&at.push("domain="+st),ot===!0&&at.push("secure"),document.cookie=at.join("; ")},read:function(et){var tt=document.cookie.match(new RegExp("(^|;\\s*)("+et+")=([^;]*)"));return tt?decodeURIComponent(tt[3]):null},remove:function(et){this.write(et,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(_e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(_e)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(_e,et){return et?_e.replace(/\/+$/,"")+"/"+et.replace(/^\/+/,""):_e}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var _e=requireIsAbsoluteURL(),et=requireCombineURLs();return buildFullPath=function(tt,rt){return tt&&!_e(rt)?et(tt,rt):rt},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var _e=utils$9,et=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(tt){var rt={},nt,st,ot;return tt&&_e.forEach(tt.split(`
64
- `),function(at){if(ot=at.indexOf(":"),nt=_e.trim(at.substr(0,ot)).toLowerCase(),st=_e.trim(at.substr(ot+1)),nt){if(rt[nt]&&et.indexOf(nt)>=0)return;nt==="set-cookie"?rt[nt]=(rt[nt]?rt[nt]:[]).concat([st]):rt[nt]=rt[nt]?rt[nt]+", "+st:st}}),rt},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var _e=utils$9;return isURLSameOrigin=_e.isStandardBrowserEnv()?function(){var et=/(msie|trident)/i.test(navigator.userAgent),tt=document.createElement("a"),rt;function nt(st){var ot=st;return et&&(tt.setAttribute("href",ot),ot=tt.href),tt.setAttribute("href",ot),{href:tt.href,protocol:tt.protocol?tt.protocol.replace(/:$/,""):"",host:tt.host,search:tt.search?tt.search.replace(/^\?/,""):"",hash:tt.hash?tt.hash.replace(/^#/,""):"",hostname:tt.hostname,port:tt.port,pathname:tt.pathname.charAt(0)==="/"?tt.pathname:"/"+tt.pathname}}return rt=nt(window.location.href),function(st){var ot=_e.isString(st)?nt(st):st;return ot.protocol===rt.protocol&&ot.host===rt.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var _e=utils$9,et=requireSettle(),tt=requireCookies(),rt=buildURL$1,nt=requireBuildFullPath(),st=requireParseHeaders(),ot=requireIsURLSameOrigin(),at=requireCreateError();return xhr=function(ut){return new Promise(function(lt,dt){var ct=ut.data,ft=ut.headers;_e.isFormData(ct)&&delete ft["Content-Type"];var ht=new XMLHttpRequest;if(ut.auth){var mt=ut.auth.username||"",vt=ut.auth.password?unescape(encodeURIComponent(ut.auth.password)):"";ft.Authorization="Basic "+btoa(mt+":"+vt)}var wt=nt(ut.baseURL,ut.url);if(ht.open(ut.method.toUpperCase(),rt(wt,ut.params,ut.paramsSerializer),!0),ht.timeout=ut.timeout,ht.onreadystatechange=function(){if(!(!ht||ht.readyState!==4)&&!(ht.status===0&&!(ht.responseURL&&ht.responseURL.indexOf("file:")===0))){var yt="getAllResponseHeaders"in ht?st(ht.getAllResponseHeaders()):null,xt=!ut.responseType||ut.responseType==="text"?ht.responseText:ht.response,St={data:xt,status:ht.status,statusText:ht.statusText,headers:yt,config:ut,request:ht};et(lt,dt,St),ht=null}},ht.onabort=function(){!ht||(dt(at("Request aborted",ut,"ECONNABORTED",ht)),ht=null)},ht.onerror=function(){dt(at("Network Error",ut,null,ht)),ht=null},ht.ontimeout=function(){var yt="timeout of "+ut.timeout+"ms exceeded";ut.timeoutErrorMessage&&(yt=ut.timeoutErrorMessage),dt(at(yt,ut,"ECONNABORTED",ht)),ht=null},_e.isStandardBrowserEnv()){var gt=(ut.withCredentials||ot(wt))&&ut.xsrfCookieName?tt.read(ut.xsrfCookieName):void 0;gt&&(ft[ut.xsrfHeaderName]=gt)}if("setRequestHeader"in ht&&_e.forEach(ft,function(yt,xt){typeof ct>"u"&&xt.toLowerCase()==="content-type"?delete ft[xt]:ht.setRequestHeader(xt,yt)}),_e.isUndefined(ut.withCredentials)||(ht.withCredentials=!!ut.withCredentials),ut.responseType)try{ht.responseType=ut.responseType}catch(yt){if(ut.responseType!=="json")throw yt}typeof ut.onDownloadProgress=="function"&&ht.addEventListener("progress",ut.onDownloadProgress),typeof ut.onUploadProgress=="function"&&ht.upload&&ht.upload.addEventListener("progress",ut.onUploadProgress),ut.cancelToken&&ut.cancelToken.promise.then(function(yt){!ht||(ht.abort(),dt(yt),ht=null)}),ct||(ct=null),ht.send(ct)})},xhr}var utils$4=utils$9,normalizeHeaderName=normalizeHeaderName$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(_e,et){!utils$4.isUndefined(_e)&&utils$4.isUndefined(_e["Content-Type"])&&(_e["Content-Type"]=et)}function getDefaultAdapter(){var _e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(_e=requireXhr()),_e}var defaults$2={adapter:getDefaultAdapter(),transformRequest:[function(_e,et){return normalizeHeaderName(et,"Accept"),normalizeHeaderName(et,"Content-Type"),utils$4.isFormData(_e)||utils$4.isArrayBuffer(_e)||utils$4.isBuffer(_e)||utils$4.isStream(_e)||utils$4.isFile(_e)||utils$4.isBlob(_e)?_e:utils$4.isArrayBufferView(_e)?_e.buffer:utils$4.isURLSearchParams(_e)?(setContentTypeIfUnset(et,"application/x-www-form-urlencoded;charset=utf-8"),_e.toString()):utils$4.isObject(_e)?(setContentTypeIfUnset(et,"application/json;charset=utf-8"),JSON.stringify(_e)):_e}],transformResponse:[function(_e){if(typeof _e=="string")try{_e=JSON.parse(_e)}catch{}return _e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(_e){return _e>=200&&_e<300}};defaults$2.headers={common:{Accept:"application/json, text/plain, */*"}};utils$4.forEach(["delete","get","head"],function(_e){defaults$2.headers[_e]={}});utils$4.forEach(["post","put","patch"],function(_e){defaults$2.headers[_e]=utils$4.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$2,utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=defaults_1;function throwIfCancellationRequested(_e){_e.cancelToken&&_e.cancelToken.throwIfRequested()}var dispatchRequest$1=function(_e){throwIfCancellationRequested(_e),_e.headers=_e.headers||{},_e.data=transformData(_e.data,_e.headers,_e.transformRequest),_e.headers=utils$3.merge(_e.headers.common||{},_e.headers[_e.method]||{},_e.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(tt){delete _e.headers[tt]});var et=_e.adapter||defaults$1.adapter;return et(_e).then(function(tt){return throwIfCancellationRequested(_e),tt.data=transformData(tt.data,tt.headers,_e.transformResponse),tt},function(tt){return isCancel(tt)||(throwIfCancellationRequested(_e),tt&&tt.response&&(tt.response.data=transformData(tt.response.data,tt.response.headers,_e.transformResponse))),Promise.reject(tt)})},utils$2=utils$9,mergeConfig$2=function(_e,et){et=et||{};var tt={},rt=["url","method","data"],nt=["headers","auth","proxy","params"],st=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ot=["validateStatus"];function at(ct,ft){return utils$2.isPlainObject(ct)&&utils$2.isPlainObject(ft)?utils$2.merge(ct,ft):utils$2.isPlainObject(ft)?utils$2.merge({},ft):utils$2.isArray(ft)?ft.slice():ft}function ut(ct){utils$2.isUndefined(et[ct])?utils$2.isUndefined(_e[ct])||(tt[ct]=at(void 0,_e[ct])):tt[ct]=at(_e[ct],et[ct])}utils$2.forEach(rt,function(ct){utils$2.isUndefined(et[ct])||(tt[ct]=at(void 0,et[ct]))}),utils$2.forEach(nt,ut),utils$2.forEach(st,function(ct){utils$2.isUndefined(et[ct])?utils$2.isUndefined(_e[ct])||(tt[ct]=at(void 0,_e[ct])):tt[ct]=at(void 0,et[ct])}),utils$2.forEach(ot,function(ct){ct in et?tt[ct]=at(_e[ct],et[ct]):ct in _e&&(tt[ct]=at(void 0,_e[ct]))});var lt=rt.concat(nt).concat(st).concat(ot),dt=Object.keys(_e).concat(Object.keys(et)).filter(function(ct){return lt.indexOf(ct)===-1});return utils$2.forEach(dt,ut),tt},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2;function Axios$1(_e){this.defaults=_e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(_e){typeof _e=="string"?(_e=arguments[1]||{},_e.url=arguments[0]):_e=_e||{},_e=mergeConfig$1(this.defaults,_e),_e.method?_e.method=_e.method.toLowerCase():this.defaults.method?_e.method=this.defaults.method.toLowerCase():_e.method="get";var et=[dispatchRequest,void 0],tt=Promise.resolve(_e);for(this.interceptors.request.forEach(function(rt){et.unshift(rt.fulfilled,rt.rejected)}),this.interceptors.response.forEach(function(rt){et.push(rt.fulfilled,rt.rejected)});et.length;)tt=tt.then(et.shift(),et.shift());return tt};Axios$1.prototype.getUri=function(_e){return _e=mergeConfig$1(this.defaults,_e),buildURL(_e.url,_e.params,_e.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(_e){Axios$1.prototype[_e]=function(et,tt){return this.request(mergeConfig$1(tt||{},{method:_e,url:et,data:(tt||{}).data}))}});utils$1.forEach(["post","put","patch"],function(_e){Axios$1.prototype[_e]=function(et,tt,rt){return this.request(mergeConfig$1(rt||{},{method:_e,url:et,data:tt}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function _e(et){this.message=et}return _e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},_e.prototype.__CANCEL__=!0,Cancel_1=_e,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var _e=requireCancel();function et(tt){if(typeof tt!="function")throw new TypeError("executor must be a function.");var rt;this.promise=new Promise(function(st){rt=st});var nt=this;tt(function(st){nt.reason||(nt.reason=new _e(st),rt(nt.reason))})}return et.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},et.source=function(){var tt,rt=new et(function(nt){tt=nt});return{token:rt,cancel:tt}},CancelToken_1=et,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(_e){return function(et){return _e.apply(null,et)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(_e){return typeof _e=="object"&&_e.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig$3=mergeConfig$2,defaults$3=defaults_1;function createInstance(_e){var et=new Axios(_e),tt=bind(Axios.prototype.request,et);return utils.extend(tt,Axios.prototype,et),utils.extend(tt,et),tt}var axios$1=createInstance(defaults$3);axios$1.Axios=Axios;axios$1.create=function(_e){return createInstance(mergeConfig$3(axios$1.defaults,_e))};axios$1.Cancel=requireCancel();axios$1.CancelToken=requireCancelToken();axios$1.isCancel=requireIsCancel();axios$1.all=function(_e){return Promise.all(_e)};axios$1.spread=requireSpread();axios$1.isAxiosError=requireIsAxiosError();axios$2.exports=axios$1;axios$2.exports.default=axios$1;(function(_e){_e.exports=axios$2.exports})(axios$3);const axios=getDefaultExportFromCjs(axios$3.exports),loadedScripts$1={};class Http{constructor(et){m$2(this,"axios"),m$2(this,"_latestResponse"),this.axios=axios.create(et)}setCdn(et){et&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=et,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const tt=arguments[1];return tt.startsWith("/infra/public")&&(arguments[1]=et+tt),/^\/([^\/]*)\/public/.test(tt)&&(arguments[1]=et+tt),tt.startsWith("/assets")&&(arguments[1]=et+tt),tt=="/conf/public"&&(arguments[1]=tt),tt.startsWith("http")&&(arguments[1]=tt),this.baseOpen.apply(this,arguments)})}toAxiosConfig(et){if(et){const tt=Object.assign({},this.axios.defaults);return et.headers&&(tt.headers&&(tt.headers=Object.assign({},this.axios.defaults.headers)),Object.assign(tt.headers,et.headers)),et.responseType&&(tt.responseType=et.responseType),et.queryParams&&(tt.params=Object.assign({},et.queryParams)),tt}else return this.axios.defaults}toCdnUrl(et){const tt=ConfigurationFrameworkFactory.instance().Platform.cdnDomain;if((tt==null?void 0:tt.length)>0&&et!=="/conf/public"){const rt=""+et;(rt.startsWith("/infra/public")||rt.startsWith("/assets")||/^\/([^\/]*)\/public/.test(rt))&&(et=tt+rt)}return et}mapAxiosError(et,tt){return et.response?this._latestResponse=et.response:et.request?this._latestResponse={status:408,statusText:ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:ERROR_CODE.UNKNOWN},!tt||tt.disableNotifications,this._latestResponse}mapAxiosResponse(et,tt){return this._latestResponse=et,et.data}get latestResponse(){return this._latestResponse}get(et,tt){return this.axios.get(this.toCdnUrl(et),this.toAxiosConfig(tt)).then(rt=>this.mapAxiosResponse(rt,tt)).catch(rt=>this.mapAxiosError(rt,tt))}post(et,tt,rt){return this.axios.post(et,tt,this.toAxiosConfig(rt)).then(nt=>this.mapAxiosResponse(nt,rt)).catch(nt=>this.mapAxiosError(nt,rt))}postFile(et,tt,rt){const nt=this.toAxiosConfig(rt);return nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"],this.axios.post(et,tt,nt).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}postJson(et,tt,rt){const nt=this.toAxiosConfig();return nt.headers&&(nt.headers["Content-Type"]="application/json"),this.axios.post(et,tt,this.toAxiosConfig(rt)).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}put(et,tt,rt){return this.axios.put(et,tt,this.toAxiosConfig(rt)).then(nt=>this.mapAxiosResponse(nt,rt)).catch(nt=>this.mapAxiosError(nt,rt))}putJson(et,tt,rt){const nt=this.toAxiosConfig(rt);return nt.headers&&(nt.headers["Content-Type"]="application/json"),this.axios.put(et,tt,nt).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}delete(et,tt){return this.axios.delete(et,this.toAxiosConfig(tt)).then(rt=>this.mapAxiosResponse(rt,tt)).catch(rt=>this.mapAxiosError(rt,tt))}deleteJson(et,tt){return this.axios.delete(et,{data:tt}).then(rt=>this.mapAxiosResponse(rt)).catch(rt=>this.mapAxiosError(rt))}getScript(et,tt,rt){const nt=rt??"exports",st=this.toAxiosConfig(tt);return st.headers&&(st.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(et),st).then(ot=>this.mapAxiosResponse(ot,tt)).then(ot=>{try{const at=`"use strict";var ${nt.split(".")[0]}={};${ot};return ${nt};`;return Function(at)()}catch{return ot}}).catch(ot=>{throw this.mapAxiosError(ot,tt),ot})}loadScript(et,tt){return loadedScripts$1[et]?Promise.resolve():this.getScript(et,tt).then(rt=>{loadedScripts$1[et]=!0})}}class TransportFramework{constructor(){m$2(this,"_http",new Http)}get http(){return this._http}newHttpInstance(et){return new Http(et)}}const transport=new TransportFramework;class TransportFrameworkFactory{static instance(){return transport}}const http$2=transport.http;class Session{constructor(){m$2(this,"_me",null),m$2(this,"_currentLanguage",""),m$2(this,"_notLoggedIn",!0),m$2(this,"_description"),m$2(this,"_profile")}get currentLanguage(){return this._currentLanguage}get notLoggedIn(){return this._notLoggedIn}get description(){return this._description}get avatarUrl(){let et=this.description.photo;return(!et||et==="no-avatar.jpg"||et==="no-avatar.svg")&&(et=ConfigurationFrameworkFactory.instance().Platform.theme.basePath+"/img/illustrations/no-avatar.svg"),et}get user(){return this._me}get currentApp(){return configure.Platform.apps.currentApp}async initialize(){return http$2.get("/auth/oauth2/userinfo").then(et=>{if(http$2.latestResponse.status<200||http$2.latestResponse.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return this.setCurrentModel(et),this._notLoggedIn?this.loadDefaultLanguage():this.loadUserLanguage()}).then(et=>(this.setCurrentLanguage(et),this.loadDescription())).then(()=>this.getUserProfile()).then(()=>{notify.onSessionReady().resolve(this._me)}).catch(et=>{if(et===ERROR_CODE.NOT_LOGGED_IN)return Promise.resolve();notify.onSessionReady().reject(et)})}setCurrentModel(et){this._me=et,this._notLoggedIn=!(et&&et.sessionMetadata&&et.sessionMetadata.userId)}hasWorkflow(et){var tt;return et===void 0||((tt=this._me)==null?void 0:tt.authorizedActions.findIndex(rt=>rt.name===et))!==-1}hasRight(et,tt){if(tt==="owner")return et.owner&&et.owner.userId===this._me.userId;const rt=tt.right||tt,nt=et.shared.filter(ot=>(this._me.groupsIds||[]).indexOf(ot.groupId)!==-1||ot.userId===this._me.userId).find(ot=>ot[rt]||ot.manager)!==void 0,st=tt.workflow?this.hasWorkflow(tt.workflow):!0;return nt&&st}get latestQuotaAndUsage(){return http$2.get(`/workspace/quota/user/${this._me.userId}`).then(et=>(this._description&&(this._description.quota=et.quota,this._description.storage=et.storage),et)).catch(()=>({quota:0,storage:0}))}setCurrentLanguage(et){this._currentLanguage=et,notify.onLangReady().resolve(et)}loadDefaultLanguage(){return http$2.get("/locale").then(et=>et.locale).catch(()=>this._currentLanguage)}loadDescription(){return Promise.all([http$2.get("/userbook/api/person",{requestName:"refreshAvatar"}),http$2.get("/directory/userbook/"+this._me.userId)]).then(et=>(et[0].status==="ok"&&et[0].result&&et[0].result.length>0?this._description=et[0].result[0]:this._description={},this._description.type&&!this._description.profiles&&(this._description.profiles=this._description.type),Object.assign(this._description,et[1]),this._description))}get profile(){return this._profile}getUserProfile(){return http$2.get("/userbook/api/person").then(et=>et.result).then(et=>this._profile=et[0].type)}loadUserLanguage(){return http$2.get("/userbook/preference/language").then(et=>{try{return JSON.parse(et.preference)["default-domain"]}catch{return this.loadDefaultLanguage()}}).catch(()=>this.loadDefaultLanguage())}getEmailValidationInfos(){return http$2.get("/directory/user/mailstate")}checkEmail(et){return http$2.put("/directory/user/mailstate",{email:et})}tryEmailValidation(et){return http$2.post("/directory/user/mailstate",{key:et})}getMobileValidationInfos(){return http$2.get("/directory/user/mobilestate")}checkMobile(et){return http$2.put("/directory/user/mobilestate",{mobile:et})}tryMobileValidation(et){return http$2.post("/directory/user/mobilestate",{key:et})}getMfaInfos(){return http$2.get("/auth/user/mfa/code")}tryMfaCode(et){return http$2.post("/auth/user/mfa/code",{key:et})}}class SessionFramework{constructor(){m$2(this,"session",new Session)}initialize(){return this.session.initialize()}login(et,tt,rt,nt){const st=new FormData;return st.append("email",et),st.append("password",tt),typeof rt<"u"&&st.append("rememberMe",""+rt),typeof nt<"u"&&st.append("secureLocation",""+nt),transport.http.post("/auth/login",st,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(transport.http.latestResponse.status){case 200:throw ERROR_CODE.MALFORMED_DATA}})}logout(){return transport.http.get("/auth/logout").finally(()=>{})}}const session=new SessionFramework;class Theme{constructor(){m$2(this,"_conf"),m$2(this,"_loaded"),m$2(this,"skinName",""),m$2(this,"themeName",""),m$2(this,"skin","raw"),m$2(this,"themeUrl","/assets/themes/raw/default/"),m$2(this,"templateOverrides",{}),m$2(this,"portalTemplate","/assets/themes/raw/portal.html"),m$2(this,"basePath",""),m$2(this,"logoutCallback","/"),m$2(this,"skins",[]),m$2(this,"is1D",!1),m$2(this,"is2D",!1),m$2(this,"_onSkinReady",notify.onSkinReady()),m$2(this,"_onOverrideReady",notify.onOverridesReady())}initialize(et){return notify.onSessionReady().promise.then(()=>this.load(et))}get version(){return configure.Platform.deploymentTag}get cdnDomain(){return configure.Platform.cdnDomain}async onFullyReady(){return await this._loaded,this}onSkinReady(){return this._onSkinReady.promise}onOverrideReady(){return this._onOverrideReady.promise}async getConf(et){var tt;return this._conf=(tt=this._conf)!=null?tt:await transport.http.getScript("/assets/theme-conf.js",{queryParams:{v:et??this.version}},"exports.conf"),this._conf}load(et){return et=et??this.version,this._loaded||(this._loaded=(session.session.notLoggedIn?this.loadDisconnected(et):this.loadConnected(et)).then(async()=>{var tt,rt;const nt=await this.listSkins();this.is1D=((tt=nt.find(st=>st.child===this.skin))==null?void 0:tt.parent)==="panda",this.is2D=((rt=nt.find(st=>st.child===this.skin))==null?void 0:rt.parent)==="theme-open-ent"})),this._loaded}loadDisconnected(et){return new Promise((tt,rt)=>{transport.http.get("/skin",{queryParams:{v:this.version}}).then(nt=>{this.skin=nt.skin,this.themeUrl=`${this.cdnDomain}/assets/themes/${nt.skin}/skins/default/`,this.basePath=this.themeUrl+"../../",this._onSkinReady.resolve(this),transport.http.get(`/assets/themes/${nt.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:et}}).then(st=>{this.templateOverrides=st,this._onOverrideReady.resolve(st),tt()}).catch(st=>{if(transport.http.latestResponse.status===404)tt();else throw st})}).catch(nt=>{this._onSkinReady.reject(nt),this._onOverrideReady.reject(nt),rt()})})}loadConnected(et){return new Promise((tt,rt)=>{this.loadDefaultTheme(et).then(()=>{this._onSkinReady.resolve(this),transport.http.get(`/assets/themes/${this.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:et}}).then(nt=>{this.templateOverrides=nt,this._onOverrideReady.resolve(nt),tt()}).catch(nt=>{if(transport.http.latestResponse.status===404)tt(),this._onSkinReady.reject(nt),this._onOverrideReady.reject(nt);else throw nt})})})}async loadDefaultTheme(et){return session.session.notLoggedIn?Promise.reject():transport.http.get("/theme",{queryParams:{_:et}}).then(tt=>{this.skinName=tt.skinName,this.themeName=tt.themeName,this.themeUrl=tt.skin,this.basePath=`${this.cdnDomain}${this.themeUrl}../../`,this.skin=this.themeUrl.split("/assets/themes/")[1].split("/")[0],this.portalTemplate=`${this.cdnDomain}/assets/themes/${this.skin}/portal.html`,this.logoutCallback=tt.logoutCallback})}listThemes(){return transport.http.get("/themes")}async setDefaultTheme(et){await transport.http.get("/userbook/api/edit-userbook-info?prop=theme-"+this.skin+"&value="+et._id),await this.loadDefaultTheme(this.version)}listSkins(){return this.skins.length>0?Promise.resolve(this.skins):this.getConf().then(et=>{const tt=et.overriding.find(rt=>rt.child===this.skin);return tt!=null&&tt.group?this.skins=this.skins.concat(et.overriding.filter(rt=>rt.group===tt.group)):this.skins=this.skins.concat(et.overriding),this.skins})}async getHelpPath(){var et;const tt=(await this.listSkins()).find(rt=>rt.child===this.skin);return(et=tt==null?void 0:tt.help)!=null?et:"/help"}}const bundle$1={},promises$1={},defaultDiacriticsRemovalMap$1=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];class Idiom{translate(et,tt){et=et??"";let rt=bundle$1[et]===void 0?et:bundle$1[et];if(tt&&typeof tt=="object")for(let nt in tt)typeof tt[nt]<"u"&&(rt=rt.replace(new RegExp("\\${"+nt+"}","g"),""+tt[nt]));return rt}addBundlePromise(et){return this.loadBundlePromise(session.session.currentLanguage,et)}addBundle(et,tt){this.loadBundle(session.session.currentLanguage,et,tt)}loadBundlePromise(et,tt){return this.loadBundle(et,tt),promises$1[tt]}loadBundle(et,tt,rt){const nt=promises$1[tt];if(nt)rt&&nt.then(rt).catch(rt);else{const st=new Promisified;promises$1[tt]=st.promise;const ot={};et&&(ot["Accept-Language"]=et),transport.http.get(tt,{headers:ot}).then(at=>{Object.assign(bundle$1,at),typeof rt=="function"&&rt(),st.resolve()}).catch(at=>{typeof rt=="function"&&rt(),st.reject()})}}addTranslations(et,tt){notify.onLangReady().promise.then(rt=>{this.loadBundle(rt,et+"/"+rt+".json",tt)})}addAllTranslations(et){return et&&et.length>0?notify.onLangReady().promise.then(tt=>Promise.all(et.map(rt=>this.loadBundlePromise(tt,rt+"/"+tt+".json")))).then(()=>{}):Promise.reject()}addKeys(et){for(var tt in et)typeof bundle$1[tt]!="string"&&(bundle$1[tt]=et[tt])}removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap$1.length;tt++)et=et.replace(defaultDiacriticsRemovalMap$1[tt].letters,defaultDiacriticsRemovalMap$1[tt].base);return et}}class UserPreferences{constructor(){m$2(this,"data",{})}get(et){return this.data[et]}load(et,tt){return transport.http.get("/userbook/preference/"+et).then(rt=>{try{return JSON.parse(rt.preference)}catch{return tt??{}}}).then(rt=>(this.data[et]=rt??{},rt))}update(et,tt){return tt!==void 0&&(this.data[et]=tt),this}save(et){return transport.http.putJson("/userbook/preference/"+et,this.data[et])}}class User{constructor(){m$2(this,"_me",null),m$2(this,"_keepOpenOnLogout",!1),m$2(this,"_preferences",new UserPreferences),m$2(this,"_bookmarkedApps",[])}get keepOpenOnLogout(){return this._keepOpenOnLogout}get preferences(){return this._preferences}get bookmarkedApps(){return this._bookmarkedApps}initialize(et){return this.loadPublicConf(),notify.onSessionReady().promise.then(tt=>{tt&&this.setCurrentModel(tt)})}setCurrentModel(et){this._me=et,this._preferences=new UserPreferences,this.loadBookmarks()}loadPublicConf(){return transport.http.get("/conf/public").then(et=>(this._keepOpenOnLogout=(et==null?void 0:et.keepOpenOnLogout)||!1,et))}async loadBookmarks(){await transport.http.get("/userbook/preference/apps").then(et=>{et.preference||(et.preference=null);const tt=JSON.parse(et.preference);let rt;if(tt&&tt.length&&typeof tt.concat=="function"){this._bookmarkedApps=tt,rt={bookmarks:tt.map(ot=>ot.name),applications:[]},transport.http.putJson("/userbook/preference/apps",rt);return}else rt=tt;rt||(rt={bookmarks:[],applications:[]});let nt=!0;const st=[];rt.bookmarks.forEach((ot,at)=>{const ut=this._me.apps.find(lt=>lt.name===ot);if(ut){let lt=Object.assign({},ut);this._bookmarkedApps.push(lt)}else st.push(ot),nt=!1}),st.forEach(ot=>{let at=rt.bookmarks.indexOf(ot);at!==-1&&rt.bookmarks.splice(at,1)}),nt||transport.http.putJson("/userbook/preference/apps",rt)})}loadAppPrefs(et){return this.preferences.load(et,{})}saveAppPrefs(et){return this.preferences.save(et)}loadLanguage(){return this.preferences.load("language",{"default-domain":session.session.currentLanguage}).then(et=>et["default-domain"])}saveLanguage(et){return this.preferences.update("language",{"default-domain":et}).save("language")}}const http$1=transport==null?void 0:transport.http;class AppConf{constructor(){m$2(this,"_publicConf",{}),m$2(this,"_currentApp"),m$2(this,"_appConf",{})}get currentApp(){var et;return(et=this._currentApp)!=null?et:null}setCurrentApp(et){return this._currentApp=et,this}async initialize(et,tt=!1){tt||this.setCurrentApp(et),await Promise.all([this.getPublicConf(et),this.loadI18n(et)])}async getPublicConf(et){return this._publicConf[et]||(this._publicConf[et]=await http$1.get(`/${et}/conf/public`,{queryParams:{_:configure.Platform.deploymentTag}})),this._publicConf[et]}async getWebAppConf(et){var tt;let rt;return this._appConf[et]||(await http$1.get("/applications-list")).apps.forEach(nt=>{if(nt!=null&&nt.prefix){const st=nt.prefix.replace("/","");this._appConf[st]=nt}else nt!=null&&nt.name&&nt.name.toLowerCase()==et&&(rt=nt)}),(tt=this._appConf[et])!=null?tt:rt}async loadI18n(et){return await notify.onLangReady().promise,configure.Platform.idiom.addBundlePromise(`/${et}/i18n`)}}class Analytics{constructor(){m$2(this,"_status","void"),m$2(this,"_params")}get status(){return this._status}xiti(){return this.parametersWithCheck("xiti",!1)}parameters(et){return this.parametersWithCheck(et,!0)}async parametersWithCheck(et,tt){return this.initialize().promise.then(rt=>!tt||rt.type===et||rt.type==="multiple"?rt[et]:void 0)}initialize(){return this._params||(this._params=notify.promisify(),this._status="pending",Promise.all([transport.http.get("/analyticsConf"),transport.http.get("/xiti/config")]).then(async et=>{var tt;if(!et||!et[0]||!et[0].type)throw ERROR_CODE.MALFORMED_DATA;et[1]&&et[1].active&&(et[0].xiti=await this.initializeXiti(et[1])),(tt=this._params)==null||tt.resolve(et[0]),this._status="ready"}).catch(et=>{var tt;throw this._status="failed",(tt=this._params)==null||tt.reject(),et})),this._params}async initializeXiti(et){var tt;if(!et.structureMap||!configure.Platform.apps.currentApp)return;const rt=await notify.onSessionReady().promise,nt=session.session.description;let st;for(let dt of rt.structures){const ct=et.structureMap[dt];if(ct&&ct.collectiviteId&&ct.UAI){st=ct;break}}if(!st||!st.active)return;const ot=await configure.Platform.apps.getPublicConf(configure.Platform.apps.currentApp);if(!ot)return;const at=ot.xiti;if(!at||!at.LIBELLE_SERVICE||!st.UAI)return;function ut(dt){let ct="";for(let ft=0;ft<dt.length;ft++)ct+=dt.charCodeAt(ft);return ct}const lt={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"};return{LIBELLE_SERVICE:at.LIBELLE_SERVICE,TYPE:at.OUTIL?"TIERS":"NATIF",OUTIL:at.OUTIL?at.OUTIL:"",STRUCT_ID:st.collectiviteId,STRUCT_UAI:st.UAI,PROJET:st.projetId?st.projetId:et.ID_PROJET,EXPLOITANT:et.ID_EXPLOITANT,PLATFORME:st.plateformeId?st.plateformeId:et.ID_PLATEFORME,ID_PERSO:ut(rt.userId),PROFILE:nt.profiles&&nt.profiles.length>0&&(tt=lt[nt.profiles[0]])!=null?tt:""}}}class ConfigurationFramework{constructor(){m$2(this,"Platform",{deploymentTag:"",cdnDomain:"",apps:new AppConf,theme:new Theme,analytics:new Analytics,idiom:new Idiom,listLanguages:()=>transport.http.get("/languages")}),m$2(this,"School",{}),m$2(this,"User",new User)}async initialize(et,tt){if(!et){const nt=lt=>(lt<10?"0":"")+lt.toFixed(0),st=new Date,ot=st.getFullYear(),at=st.getMonth()+1,ut=st.getDate();et=`${ot}${nt(at)}${nt(ut)}`}const rt=et;this.Platform.deploymentTag=et,typeof tt=="string"&&tt.length>0&&(this.Platform.cdnDomain=tt),transport.http.setCdn(this.Platform.cdnDomain),await Promise.all([this.Platform.theme.initialize(rt),notify.onSessionReady().promise.then(nt=>this.Platform.idiom.addBundlePromise("/i18n")),this.User.initialize(rt)])}}const configure=new ConfigurationFramework;class ConfigurationFrameworkFactory{static instance(){return configure}}const WIDGET_POSITION={LEFT:"left",RIGHT:"right"},firstLevelWidgets=["birthday","mood","calendar-widget","notes"],secondLevelWidgets=["agenda-widget","carnet-de-bord","my-apps","rss-widget","bookmark-widget","cursus-widget","maxicours-widget","school-widget"],defaultWidgetPosition={"last-infos-widget":WIDGET_POSITION.LEFT,birthday:WIDGET_POSITION.LEFT,"calendar-widget":WIDGET_POSITION.RIGHT,"carnet-de-bord":WIDGET_POSITION.LEFT,"record-me":WIDGET_POSITION.RIGHT,mood:WIDGET_POSITION.LEFT,"my-apps":WIDGET_POSITION.RIGHT,notes:WIDGET_POSITION.RIGHT,"rss-widget":WIDGET_POSITION.LEFT,"bookmark-widget":WIDGET_POSITION.RIGHT,qwant:WIDGET_POSITION.RIGHT,"qwant-junior":WIDGET_POSITION.LEFT,"agenda-widget":WIDGET_POSITION.LEFT,"cursus-widget":WIDGET_POSITION.LEFT,"maxicours-widget":WIDGET_POSITION.RIGHT,"universalis-widget":WIDGET_POSITION.RIGHT,"briefme-widget":WIDGET_POSITION.LEFT,"school-widget":WIDGET_POSITION.LEFT},defaultWidgetOrder={"school-widget":0,"my-apps":10,"record-me":15,"last-infos-widget":20,qwant:30,"qwant-junior":30,"universalis-widget":35,"agenda-widget":40,"bookmark-widget":50,"carnet-de-bord":60,"maxicours-widget":70,"cursus-widget":80,"briefme-widget":90,"rss-widget":100,mood:110,birthday:120,"calendar-widget":130,notes:140};class WidgetFramework{constructor(){m$2(this,"_initialized"),m$2(this,"_widgets",[]),m$2(this,"_userPrefs",{})}initialize(et,tt){return this._initialized||(this._initialized=new Promisified,notify.onSessionReady().promise.then(rt=>{var nt;rt&&rt.widgets?(rt.widgets.forEach(st=>{this._widgets.push(new Widget(st))}),this.loadUserPrefs().then(()=>{var st;(st=this._initialized)==null||st.resolve()}).catch(st=>{var ot;(ot=this._initialized)==null||ot.reject()})):(nt=this._initialized)==null||nt.reject()})),this._initialized.promise}get list(){return this._widgets}lookup(et){return this._widgets.find(tt=>tt.platformConf.name===et)}lookupDefaultPosition(et){return defaultWidgetPosition[et]}get userPrefs(){return this._userPrefs}async loadUserPrefs(){await configure.User.preferences.load("widgets",{}).then(et=>this.applyUserPrefs(et))}saveUserPrefs(){return configure.User.preferences.update("widgets",this._userPrefs).save("widgets").then(()=>{notify.events().next({name:EVENT_NAME.USERPREF_CHANGED,layer:LAYER_NAME.WIDGETS})})}async applyUserPrefs(et){this._userPrefs=et??this._userPrefs;const tt=configure.Platform.theme,rt=[];tt.listSkins().then(nt=>{var st;const ot=((st=nt.find(ut=>ut.child===tt.skin))==null?void 0:st.parent)==="panda"?secondLevelWidgets:firstLevelWidgets;this._widgets=this._widgets.filter((ut,lt)=>{var dt,ct;const ft=ut.platformConf.name;return ot.indexOf(ft)!==-1?!1:(this._userPrefs[ft]||(this._userPrefs[ft]={index:(dt=defaultWidgetOrder[ft])!=null?dt:999,show:!0,position:ut.platformConf.position}),ut.platformConf.mandatory&&(this._userPrefs[ft].show=!0,this._userPrefs[ft].index=(ct=defaultWidgetOrder[ft])!=null?ct:999),ut.platformConf.i18n&&rt.push(ut.platformConf.i18n),ut.applyUserPref(this._userPrefs[ft]),!0)});const at=new Idiom;this._widgets=this._widgets.sort((ut,lt)=>{const dt=at.translate(`timeline.settings.${ut.platformConf.name}`).toLowerCase(),ct=at.translate(`timeline.settings.${lt.platformConf.name}`).toLowerCase();return dt<ct?-1:dt>ct?1:0})})}}class Widget{constructor(et){m$2(this,"_schoolConf",{}),m$2(this,"_userPref"),this._platformConf=et,this._userPref=null}get platformConf(){return this._platformConf}get schoolConf(){return this._schoolConf}get userPref(){return this._userPref}applyUserPref(et){var tt,rt;this._userPref=et,this._userPref.position=(rt=(tt=this._userPref.position)!=null?tt:widgets.lookupDefaultPosition(this._platformConf.name))!=null?rt:"left"}}const widgets=new WidgetFramework;transport==null||transport.http;var O$1;(O$1=session==null?void 0:session.session)==null||O$1.user;const x$1=class{constructor(et){m$2(this,"checkHttpResponse",tt=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return tt}),this.context=et}static register({application:et,resourceType:tt},rt){x$1.registry.set(`${et}:main`,rt),x$1.registry.set(`${et}:${tt}`,rt)}static findService({application:et,resourceType:tt},rt){const nt=x$1.registry.get(`${et}:${tt}`);if(nt===void 0)throw`Service not found: ${et}:${tt}`;return nt(rt)}static findMainService({application:et},tt){const rt=x$1.registry.get(`${et}:main`);if(rt===void 0)throw`Service not found: ${et}`;return rt(tt)}get http(){return this.context.http()}getShareReadUrl(et){return`/${this.getApplication()}/share/json/${et}?search=`}getSaveShareUrl(et){return`/${this.getApplication()}/share/resource/${et}`}gotoPrint(et,tt){window.open(this.getPrintUrl(et,tt),"_blank")}gotoView(et){window.open(this.getViewUrl(et),"_self")}gotoForm(et){window.open(this.getFormUrl(et),"_self")}async publish(et){const tt=new FormData;tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(nt=>{tt.append("activityType[]",nt)}),et.subjectArea.forEach(nt=>{tt.append("subjectArea[]",nt)}),et.age.forEach(nt=>{tt.append("age[]",nt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(nt=>{tt.append("keyWords[]",nt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}${this.getPrintUrl(et.resourceEntId)}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName);const rt=await this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}});return this.checkHttpResponse(rt)}async createContext(et){const tt=await this.http.get("/explorer/context",{queryParams:this.toQueryParams(et)});return this.checkHttpResponse(tt)}async searchContext(et){const tt=await this.http.get("/explorer/resources",{queryParams:this.toQueryParams(et)});return this.checkHttpResponse(tt)}async createFolder(et){const tt=await this.http.post("/explorer/folders",this.createFolderToBodyParams(et));return this.checkHttpResponse(tt)}async updateFolder(et){const tt=await this.http.put(`/explorer/folders/${et.folderId}`,this.createFolderToBodyParams(et));return this.checkHttpResponse(tt)}async moveToFolder(et){const tt=await this.http.post(`/explorer/folders/${et.folderId}/move`,this.moveToBodyParams(et));return this.checkHttpResponse(tt)}async listSubfolders(et){const tt=await this.http.get(`/explorer/folders/${et}`);return this.checkHttpResponse(tt)}async deleteAll(et){const tt=await this.http.deleteJson("/explorer",et);return this.checkHttpResponse(tt)}async trashAll({resourceType:et,...tt}){const rt=await this.http.putJson("/explorer/trash",tt);return this.checkHttpResponse(rt)}async restoreAll({resourceType:et,...tt}){const rt=await this.http.putJson("/explorer/restore",tt);return this.checkHttpResponse(rt)}async getThumbnailPath(et){if(typeof et>"u")return et;if(typeof et=="string")if(et.startsWith("blob:")){const tt=await fetch(et).then(rt=>rt.blob());return`/workspace/document/${(await this.context.workspace().saveFile(tt,{visibility:"protected",application:this.getApplication()}))._id}`}else return et;else return`/workspace/document/${(await this.context.workspace().saveFile(et,{visibility:"protected",application:this.getApplication()}))._id}`}toQueryParams(et){let tt={application:et.app,start_idx:et.pagination.startIdx,page_size:et.pagination.pageSize,resource_type:et.types[0],trashed:et.trashed};if(et.orders&&Object.entries(et.orders).length){const[[rt,nt]]=Object.entries(et.orders);tt.order_by=`${rt}:${nt}`}return et.filters&&Object.assign(tt,et.filters),typeof et.search=="string"&&(tt.search=et.search),tt}createFolderToBodyParams(et){return{application:et.app,resourceType:et.type,parentId:et.parentId,name:et.name}}moveToBodyParams(et){return{application:et.application,resourceType:this.getResourceType(),resourceIds:et.resourceIds,folderIds:et.folderIds}}};let ResourceService=x$1;m$2(ResourceService,"registry",new Map);class BlogResourceService extends ResourceService{async update(et){const tt=await this.getThumbnailPath(et.thumbnail),rt=await this.http.put(`/blog/${et.entId}`,{trashed:et.trashed,_id:et.entId,title:et.name,thumbnail:tt,description:et.description,visibility:et.public?"PUBLIC":"OWNER",slug:et.public?et.slug:"","publish-type":et["publish-type"]||"RESTRAINT","comment-type":"IMMEDIATE"});return this.checkHttpResponse(rt),{thumbnail:tt,entId:et.entId}}getResourceType(){return RESOURCE.BLOG}getApplication(){return APP.BLOG}getFormUrl(et){return et?`/blog?folderid=${et}#/edit/new`:"/blog#/edit/new"}getViewUrl(et){return`/blog#/view/${et}`}getPrintUrl(et,tt){return`/blog/print/blog#/print/${et}?comments=${tt||!0}`}}ResourceService.register({application:RESOURCE.BLOG,resourceType:RESOURCE.BLOG},_e=>new BlogResourceService(_e));const globalCache={},mutexPromise={};class CacheService{constructor(et){this.context=et}get http(){return this.context.http()}async fromCacheIfPossible(et,tt,rt){if(mutexPromise[et]&&await mutexPromise[et],globalCache[et])return globalCache[et];try{const nt=tt();mutexPromise[et]=nt;const st=await nt;return rt(st)&&(globalCache[et]=st),st}catch(nt){throw console.error(`Failed to retrieve value for: ${et}`,nt),nt}}clearCache(et){if(et)delete globalCache[et];else for(const tt in globalCache)globalCache.hasOwnProperty(tt)&&delete globalCache[tt]}async httpGet(et,tt){return this.fromCacheIfPossible(et,async()=>{const rt=await this.http.get(et,tt),nt={...this.http.latestResponse};return{value:rt,response:nt}},({response:rt})=>!(rt.status<200||rt.status>=300))}async httpGetJson(et,tt){const{response:rt,value:nt}=await this.httpGet(et,tt);if(rt.status<200||rt.status>=300)throw`Bad http status (${rt.status}) for url: ${et}`;return nt}}class ConfService{constructor(et){this.context=et}get http(){return this.context.http()}get cdnDomain(){return configure.Platform.cdnDomain}async getConf(et){const[tt,rt]=await Promise.all([this.getThemeConf(),this.getApplicationsList()]),[nt,st,ot]=await Promise.all([this.getTheme({conf:tt}),this.getWebAppConf({app:et,applications:rt}),this.getExtendedTheme()]);return{applications:rt,conf:tt,currentApp:st,theme:nt,extendedTheme:ot}}getCdnUrl(){console.warn("[getCdnUrl] Not implemented yet")}async savePreference(et,tt){this.http.putJson(`/userbook/preference/${et}`,tt)}async getPreference(et){const tt=await this.http.get(`/userbook/preference/${et}`);return JSON.parse(tt.preference)}async getThemeConf(et){return await this.http.getScript("/assets/theme-conf.js",{queryParams:{v:et}},"exports.conf")}async getExtendedTheme(){return await this.http.get("/assets/extended-theme.json")}async getApplicationsList(){return(await this.http.get("/applications-list")).apps}async getWebAppConf({app:et,applications:tt}){return tt.find(rt=>{if(rt!=null&&rt.prefix)return(rt==null?void 0:rt.prefix.replace("/",""))===et})}async getTheme({version:et,conf:tt}){const rt=await this.http.get("/theme",{queryParams:{_:et}}),nt=rt.themeName,st=tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).skins,ot="/assets/themes/ode-bootstrap",at=tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).bootstrapVersion,ut=`${this.cdnDomain}/assets/themes/${at}`,lt=`${ut}/skins/${rt.skinName}`,dt=(tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).parent)==="panda";return{basePath:`${this.cdnDomain}${rt.skin}../../`,bootstrap:ot,bootstrapPath:ut,bootstrapUrl:lt,bootstrapVersion:at,is1d:dt,logoutCallback:rt.logoutCallback,skin:rt.skin.split("/assets/themes/")[1].split("/")[0],skinName:rt.skinName,skins:st,themeName:rt.themeName,themeUrl:rt.skin}}}class DirectoryService{constructor(et){this.odeServices=et}get http(){return this.odeServices.http()}get cache(){return this.odeServices.cache()}getAvatarUrl(et,tt,rt="100x100"){return tt==="user"?`/userbook/avatar/${et}?thumbnail=${rt}`:"/assets/img/illustrations/group-avatar.svg"}getDirectoryUrl(et,tt){return tt==="user"?`/userbook/annuaire#/${et}`:`/userbook/annuaire#/group-view/${et}`}async getBookMarks(){return(await this.cache.httpGetJson("/directory/sharebookmark/all")).map(({id:et,name:tt})=>({id:et,displayName:tt,members:[]}))}async getBookMarkById(et){const{groups:tt,id:rt,name:nt,users:st}=await this.http.get(`/directory/sharebookmark/${et}`);return{id:rt,displayName:nt,groups:tt.map(({name:ot,id:at})=>({displayName:ot,id:at})),users:st.map(({displayName:ot,id:at,profile:ut})=>({profile:ut,displayName:ot,firstName:"",lastName:"",login:"",id:at}))}}async saveBookmarks(et,{bookmarks:tt,groups:rt,users:nt}){this.cache.clearCache("/directory/sharebookmark/all");const st=nt.map(ct=>typeof ct=="string"?ct:ct.id),ot=rt.map(ct=>typeof ct=="string"?ct:ct.id),at=tt.map(async ct=>{if(typeof ct=="string"){const{displayName:ft,groups:ht,id:mt,users:vt}=await this.getBookMarkById(ct),wt=vt.map(yt=>yt.id),gt=ht.map(yt=>yt.id);return{displayName:ft,id:mt,members:[...gt,...wt]}}else return Promise.resolve(ct)}),ut=(await Promise.all(at)).map(ct=>ct.members).reduce((ct,ft)=>[...ct,...ft],[]),lt={name:et,members:[...st,...ot,...ut]},{id:dt}=await this.http.postJson("/directory/sharebookmark",lt);return{id:dt,displayName:et,members:lt.members}}}const loadedScripts={};class HttpService{constructor(et,tt){m$2(this,"axios"),m$2(this,"_latestResponse"),this.context=et,this.axios=axios.create(tt)}setCdn(et){et&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=et,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const tt=arguments[1];return tt.startsWith("/infra/public")&&(arguments[1]=et+tt),/^\/([^\/]*)\/public/.test(tt)&&(arguments[1]=et+tt),tt.startsWith("/assets")&&(arguments[1]=et+tt),tt=="/conf/public"&&(arguments[1]=tt),tt.startsWith("http")&&(arguments[1]=tt),this.baseOpen.apply(this,arguments)})}toAxiosConfig(et){if(et){const tt=Object.assign({},this.axios.defaults);return et.headers&&(tt.headers=Object.assign({},this.axios.defaults.headers),Object.assign(tt.headers,et.headers)),et.responseType&&(tt.responseType=et.responseType),et.queryParams&&(tt.params=Object.assign({},et.queryParams)),tt}else return this.axios.defaults}toCdnUrl(et){const tt=this.context.conf().getCdnUrl()||"";if(tt.length>0&&et!=="/conf/public"){const rt=""+et;(rt.startsWith("/infra/public")||rt.startsWith("/assets")||/^\/([^\/]*)\/public/.test(rt))&&(et=tt+rt)}return et}mapAxiosError(et,tt){return console.error("[HttpService]",et),et.response?this._latestResponse=et.response:et.request?this._latestResponse={status:408,statusText:ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:ERROR_CODE.UNKNOWN},!tt||tt.disableNotifications,this._latestResponse}mapAxiosResponse(et,tt){return this._latestResponse=et,et.data}get latestResponse(){return this._latestResponse}async get(et,tt){try{const rt=await this.axios.get(this.toCdnUrl(et),this.toAxiosConfig(tt));return this.mapAxiosResponse(rt,tt)}catch(rt){return this.mapAxiosError(rt,tt)}}async post(et,tt,rt){try{const nt=await this.axios.post(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(nt,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async postFile(et,tt,rt){const nt=this.toAxiosConfig(rt);nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"];try{const st=await this.axios.post(et,tt,{...nt,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async postJson(et,tt,rt){const nt=this.toAxiosConfig();nt.headers&&(nt.headers["Content-Type"]="application/json");try{const st=await this.axios.post(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async put(et,tt,rt){try{const nt=await this.axios.put(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(nt,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async putFile(et,tt,rt){try{const nt=this.toAxiosConfig(rt);nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"];const st=await this.axios.put(et,tt,{...nt,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(st,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async putJson(et,tt,rt){const nt=this.toAxiosConfig(rt);nt.headers&&(nt.headers["Content-Type"]="application/json");try{const st=await this.axios.put(et,tt,nt);return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async delete(et,tt){try{const rt=await this.axios.delete(et,this.toAxiosConfig(tt));return this.mapAxiosResponse(rt,tt)}catch(rt){return this.mapAxiosError(rt,tt)}}async deleteJson(et,tt){try{const rt=await this.axios.delete(et,{data:tt});return this.mapAxiosResponse(rt)}catch(rt){return this.mapAxiosError(rt)}}getScript(et,tt,rt){const nt=rt??"exports",st=this.toAxiosConfig(tt);return st.headers&&(st.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(et),st).then(ot=>this.mapAxiosResponse(ot,tt)).then(ot=>{try{const at=`"use strict";var ${nt.split(".")[0]}={};${ot};return ${nt};`;return Function(at)()}catch{return ot}}).catch(ot=>{throw this.mapAxiosError(ot,tt),ot})}loadScript(et,tt){return loadedScripts[et]?Promise.resolve():this.getScript(et,tt).then(rt=>{loadedScripts[et]=!0})}}class RightService{constructor(et){this.context=et}get session(){return this.context.session()}parseResourceRight(et){const tt=et.split(":");if(tt.length===2){if(tt[0]==="creator")return{id:tt[1],right:"creator",type:"creator"}}else return tt.length===3?{id:tt[1],right:tt[2],type:tt[0]}:void 0}parseResourceRights(et){return et.map(tt=>this.parseResourceRight(tt)).filter(tt=>tt!==void 0)}hasResourceRight({id:et,groupIds:tt},rt,nt){const st=nt.map(ot=>typeof ot=="string"?this.parseResourceRight(ot):ot).filter(ot=>ot!==void 0);for(const ot of st)if(ot.id===et&&ot.type==="creator"||ot.id===et&&ot.type==="user"&&ot.right===rt||tt.includes(ot.id)&&ot.type==="group"&&ot.right===rt)return!0;return!1}async sessionHasResourceRight(et,tt){try{const rt=await this.session.getUser();return!!rt&&this.hasResourceRight({groupIds:rt.groupsIds,id:rt.userId},et,tt)}catch(rt){return console.error(rt),!1}}async sessionHasAtLeastOneResourceRight(et,tt){for(const rt of et)if(await this.sessionHasResourceRight(rt,tt))return!0;return!1}async sessionHasResourceRightForEachList(et,tt){let rt=0;for(const nt of tt)await this.sessionHasResourceRight(et,nt)&&rt++;return rt===tt.length}async sessionHasAtLeastOneResourceRightForEachList(et,tt){for(const rt of et){let nt=0;for(const st of tt)await this.sessionHasResourceRight(rt,st)&&nt++;if(nt===tt.length)return!0}return!1}hasWorkflowRight(et,tt){return tt.findIndex(rt=>rt===et)!==-1}async sessionHasWorkflowRight(et){try{const tt=await this.session.getUser();return!!tt&&this.hasWorkflowRight(et,tt.authorizedActions.map(rt=>rt.name))}catch(tt){return console.error(tt),!1}}async sessionHasWorkflowRights(et){const tt={};try{const rt=await this.session.getUser();for(const nt of et)tt[nt]=!!rt&&this.hasWorkflowRight(nt,rt.authorizedActions.map(st=>st.name))}catch(rt){console.error(rt);for(const nt of et)tt[nt]=!1}return tt}}class SessionService{constructor(et){this.context=et}get http(){return this.context.http()}get cache(){return this.context.cache()}onLogout(){this.cache.clearCache()}onRefreshSession(){this.cache.clearCache()}async getSession(){const et=await this.getUser(),[tt,rt,nt,st,ot]=await Promise.all([this.getCurrentLanguage(et),this.latestQuotaAndUsage(et),this.loadDescription(et),this.getUserProfile(),this.getBookmarks(et)]);return{user:et,quotaAndUsage:rt,currentLanguage:tt,userDescription:nt,userProfile:st,bookmarkedApps:ot}}login(et,tt,rt,nt){const st=new FormData;return st.append("email",et),st.append("password",tt),typeof rt<"u"&&st.append("rememberMe",""+rt),typeof nt<"u"&&st.append("secureLocation",""+nt),this.http.post("/auth/login",st,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(this.http.latestResponse.status){case 200:throw ERROR_CODE.MALFORMED_DATA}})}logout(){return this.http.get("/auth/logout").finally(()=>{})}async latestQuotaAndUsage(et){try{return await this.http.get(`/workspace/quota/user/${et==null?void 0:et.userId}`)}catch(tt){return console.error(tt),{quota:0,storage:0}}}async getCurrentLanguage(et){const tt=(et==null?void 0:et.sessionMetadata)&&(et==null?void 0:et.sessionMetadata.userId);try{let rt;return tt?rt=await this.loadUserLanguage():rt=await this.loadDefaultLanguage(),rt}catch(rt){console.error(rt)}}async loadUserLanguage(){try{const et=await this.http.get("/userbook/preference/language");return JSON.parse(et.preference)["default-domain"]}catch{return await this.loadDefaultLanguage()}}async loadDefaultLanguage(){return(await this.cache.httpGetJson("/locale")).locale}async getUser(){const{response:et,value:tt}=await this.cache.httpGet("/auth/oauth2/userinfo");if(et.status<200||et.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return tt}hasWorkflow({workflowName:et,user:tt}){return et===void 0||(tt==null?void 0:tt.authorizedActions.findIndex(rt=>rt.name===et))!==-1}async loadDescription(et){try{const[tt,rt]=await Promise.all([this.getUserProfile({requestName:"refreshAvatar"}),this.http.get("/directory/userbook/"+(et==null?void 0:et.userId))]);return{...tt,...rt}}catch(tt){return console.error(tt),{}}}async getBookmarks(et){const tt=await this.http.get("/userbook/preference/apps");tt.preference||(tt.preference=null);const rt=JSON.parse(tt.preference);let nt;nt=rt,nt||(nt={bookmarks:[],applications:[]});let st=[];return nt.bookmarks.forEach((ot,at)=>{const ut=et==null?void 0:et.apps.find(lt=>lt.name===ot);if(ut){let lt=Object.assign({},ut);st.push(lt)}}),st}async getUserProfile(et){const{response:tt,value:rt}=await this.cache.httpGet("/userbook/api/person",et);if(tt.status<200||tt.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return rt.result[0].type}async isAdml(){const et=await this.getUser();return(et==null?void 0:et.functions.ADMIN_LOCAL)!==void 0}}class StringUtils{static removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap$1.length;tt++)et=et.replace(defaultDiacriticsRemovalMap$1[tt].letters,defaultDiacriticsRemovalMap$1[tt].base);return et}}class ShareService{constructor(et){this.context=et}get directory(){return this.context.directory()}get http(){return this.context.http()}get cache(){return this.context.cache()}async searchShareSubjects(et,tt,rt){const nt=StringUtils.removeAccents(rt).toLowerCase(),st=await this.cache.httpGetJson(`/${et}/share/json/${tt}?search=${rt}`),ot=st.users.visibles.filter(({username:ut,firstName:lt,lastName:dt,login:ct})=>{const ft=StringUtils.removeAccents(dt||"").toLowerCase(),ht=StringUtils.removeAccents(lt||"").toLowerCase(),mt=StringUtils.removeAccents(ut||"").toLowerCase(),vt=StringUtils.removeAccents(ct||"").toLowerCase();return mt.includes(nt)||ht.includes(nt)||ft.includes(nt)||vt.includes(nt)}).map(ut=>({avatarUrl:this.directory.getAvatarUrl(ut.id,"user"),directoryUrl:this.directory.getDirectoryUrl(ut.id,"user"),displayName:ut.username,id:ut.id,profile:ut.profile,type:"user"})),at=st.groups.visibles.filter(({name:ut})=>StringUtils.removeAccents(ut||"").toLowerCase().includes(nt)).map(ut=>({avatarUrl:this.directory.getAvatarUrl(ut.id,"group"),directoryUrl:this.directory.getDirectoryUrl(ut.id,"group"),displayName:ut.name,id:ut.id,type:"group"}));return[...(await this.directory.getBookMarks()).filter(({displayName:ut})=>StringUtils.removeAccents(ut||"").toLowerCase().includes(nt)).map(ut=>({avatarUrl:"",directoryUrl:"",profile:"",displayName:ut.displayName,id:ut.id,type:"sharebookmark"})),...ot,...at]}async getShareMapping(et){const tt=await this.cache.httpGetJson(`/${et}/rights/sharing`);for(const rt of Object.keys(tt))if(rt.includes(".")){const nt=rt.split(".")[1],st=tt[rt];delete tt[rt],tt[nt]=st}return tt}getActionsAvailableFor({id:et,type:tt},rt,nt){const st=(tt==="user"?rt.users.checked[et]:rt.groups.checked[et])||[],ot=Object.keys(nt),at=[];for(const ut of ot)nt[ut].filter(lt=>st.includes(lt)).length>0&&at.push(ut);return at}async getRightsForResource(et,tt){const rt=await this.directory.getBookMarks(),nt=this.context.resource(et,et).getShareReadUrl(tt),st=await this.cache.httpGetJson(nt),ot=await this.getShareMapping(et),at=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),ut=Object.keys(st.users.checked).map(ht=>st.users.visibles.find(mt=>mt.id===ht)).filter(ht=>ht!==void 0).map(ht=>{const mt=this.getActionsAvailableFor({id:ht.id,type:"user"},st,ot);return{id:ht.id,type:"user",displayName:ht.username,profile:ht.profile,avatarUrl:this.directory.getAvatarUrl(ht.id,"user"),directoryUrl:this.directory.getDirectoryUrl(ht.id,"user"),actions:mt.map(vt=>{const wt=at[vt];return{displayName:vt,id:vt,priority:wt.priority}})}}).sort((ht,mt)=>(ht.displayName||"").localeCompare(mt.displayName)),lt=Object.keys(st.groups.checked).map(ht=>st.groups.visibles.find(mt=>mt.id===ht)).filter(ht=>ht!==void 0).map(ht=>{const mt=this.getActionsAvailableFor({id:ht.id,type:"group"},st,ot);return{id:ht.id,type:"group",displayName:ht.name,profile:void 0,avatarUrl:this.directory.getAvatarUrl(ht.id,"group"),directoryUrl:this.directory.getDirectoryUrl(ht.id,"group"),actions:mt.map(vt=>{const wt=at[vt];return{displayName:vt,id:vt,priority:wt.priority}})}}).sort((ht,mt)=>(ht.displayName||"").localeCompare(mt.displayName)),dt=[...ut,...lt],ct=st.groups.visibles.map(({groupDisplayName:ht,id:mt,name:vt})=>({displayName:ht||vt,id:mt})),ft=st.users.visibles.map(({id:ht,profile:mt,username:vt,firstName:wt,lastName:gt,login:yt})=>({displayName:vt,firstName:wt,lastName:gt,login:yt,profile:mt,id:ht}));return{rights:dt,visibleBookmarks:rt,visibleGroups:ct,visibleUsers:ft}}async saveRights(et,tt,rt){const nt=await this.getShareMapping(et),st={bookmarks:{},groups:{},users:{}};for(const ut of rt){const lt=ut.actions.map(ct=>nt[ct.id]).reduce((ct,ft)=>[...ct,...ft],[]),dt=[...new Set(lt)];dt.length>0&&(ut.type==="user"?st.users[ut.id]=dt:ut.type==="group"?st.groups[ut.id]=dt:st.bookmarks[ut.id]=dt)}const ot=this.context.resource(et,et),at=ot.getSaveShareUrl(tt);return this.cache.clearCache(ot.getShareReadUrl(tt)),await this.http.putJson(at,st)}async getActionsForApp(et){const tt=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),rt=await this.getShareMapping(et);return Object.keys(tt).map(nt=>{const st=tt[nt];return{displayName:nt,id:nt,priority:st.priority,requires:st.requires}}).filter(nt=>{var st;return((st=rt[nt.id])==null?void 0:st.length)>0}).sort((nt,st)=>nt.priority-st.priority)}}const S$1=class{constructor(){m$2(this,"wordExtensions",new Set),m$2(this,"excelExtensions",new Set),m$2(this,"pptExtensions",new Set),m$2(this,"fileExtensionMap",new Map),m$2(this,"csvContentType",new Set),m$2(this,"csvExtensions",new Set),m$2(this,"txtExtensions",new Set),m$2(this,"PDF","application/pdf"),m$2(this,"OCTET_STREAM","application/octet-stream"),this.txtExtensions.add("txt"),this.wordExtensions.add("doc"),this.wordExtensions.add("dot"),this.wordExtensions.add("docx"),this.wordExtensions.add("dotx"),this.wordExtensions.add("docm"),this.wordExtensions.add("dotm"),this.wordExtensions.add("odt"),this.wordExtensions.add("ott"),this.wordExtensions.add("oth"),this.wordExtensions.add("odm"),this.excelExtensions.add("xls"),this.excelExtensions.add("xlt"),this.excelExtensions.add("xla"),this.excelExtensions.add("xlsx"),this.excelExtensions.add("xltx"),this.excelExtensions.add("xlsm"),this.excelExtensions.add("xltm"),this.excelExtensions.add("xlam"),this.excelExtensions.add("xlsb"),this.excelExtensions.add("ods"),this.excelExtensions.add("ots"),this.pptExtensions.add("ppt"),this.pptExtensions.add("pot"),this.pptExtensions.add("pps"),this.pptExtensions.add("ppa"),this.pptExtensions.add("pptx"),this.pptExtensions.add("potx"),this.pptExtensions.add("ppsx"),this.pptExtensions.add("ppam"),this.pptExtensions.add("pptm"),this.pptExtensions.add("potm"),this.pptExtensions.add("ppsm"),this.pptExtensions.add("odp"),this.pptExtensions.add("otp"),this.csvExtensions.add("csv"),this.fileExtensionMap.set("doc","application/msword"),this.fileExtensionMap.set("dot","application/msword"),this.fileExtensionMap.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),this.fileExtensionMap.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),this.fileExtensionMap.set("docm","application/vnd.ms-word.document.macroEnabled.12"),this.fileExtensionMap.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),this.fileExtensionMap.set("xls","application/vnd.ms-excel"),this.fileExtensionMap.set("xlt","application/vnd.ms-excel"),this.fileExtensionMap.set("xla","application/vnd.ms-excel"),this.fileExtensionMap.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),this.fileExtensionMap.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),this.fileExtensionMap.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),this.fileExtensionMap.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),this.fileExtensionMap.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),this.fileExtensionMap.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),this.fileExtensionMap.set("ppt","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pot","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pps","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("ppa","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),this.fileExtensionMap.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),this.fileExtensionMap.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),this.fileExtensionMap.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),this.fileExtensionMap.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),this.fileExtensionMap.set("odt","application/vnd.oasis.opendocument.text"),this.fileExtensionMap.set("ott","application/vnd.oasis.opendocument.text-template"),this.fileExtensionMap.set("oth","application/vnd.oasis.opendocument.text-web"),this.fileExtensionMap.set("odm","application/vnd.oasis.opendocument.text-master"),this.fileExtensionMap.set("odg","application/vnd.oasis.opendocument.graphics"),this.fileExtensionMap.set("otg","application/vnd.oasis.opendocument.graphics-template"),this.fileExtensionMap.set("odp","application/vnd.oasis.opendocument.presentation"),this.fileExtensionMap.set("otp","application/vnd.oasis.opendocument.presentation-template"),this.fileExtensionMap.set("ods","application/vnd.oasis.opendocument.spreadsheet"),this.fileExtensionMap.set("ots","application/vnd.oasis.opendocument.spreadsheet-template"),this.fileExtensionMap.set("odc","application/vnd.oasis.opendocument.chart"),this.fileExtensionMap.set("odf","application/vnd.oasis.opendocument.formula"),this.fileExtensionMap.set("odb","application/vnd.oasis.opendocument.database"),this.fileExtensionMap.set("odi","application/vnd.oasis.opendocument.image"),this.fileExtensionMap.set("oxt","application/vnd.openofficeorg.extension"),this.fileExtensionMap.set("txt","text/plain"),this.csvContentType.add("text/comma-separated-values"),this.csvContentType.add("text/csv"),this.csvContentType.add("application/csv")}getContentTypeForExtension(et){if(this.fileExtensionMap.has(et))return this.fileExtensionMap.get(et)}getExtensionForContentType(et){for(const tt of Array.from(this.fileExtensionMap.keys()))if((this.fileExtensionMap.get(tt)||"").toLowerCase()==(et||"").toLowerCase())return tt;return null}isWordLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.wordExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.wordExtensions.has(tt):!1}isExcelLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.excelExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.excelExtensions.has(tt):!1}isCsvLike(et,tt){return this.csvContentType.has(et)?!0:et==this.OCTET_STREAM&&tt?this.csvExtensions.has(tt):!1}isPowerpointLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.pptExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.pptExtensions.has(tt):!1}isTxtLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.txtExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.txtExtensions.has(tt):!1}};let MimeTypeUtils=S$1;m$2(MimeTypeUtils,"INSTANCE",new S$1);class FileTypeUtils{static registerContentTypeToFileType(et){this.fileTypes.push(et)}static getFileType(et,tt=!1,rt){if(rt&&(rt=rt.trim()),!et)return"unknown";this.fileTypes||console.warn("[Element.role] should not have emptyRoles",this);for(let st of this.fileTypes||[]){const ot=st(et,tt);if(ot)return ot}const nt={csv:function(st){return!!MimeTypeUtils.INSTANCE.isCsvLike(st,rt)},doc:function(st){return MimeTypeUtils.INSTANCE.isWordLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("wordprocessing")!==-1},xls:function(st){return MimeTypeUtils.INSTANCE.isExcelLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("spreadsheet")!==-1||st.indexOf("ms-excel")!==-1},img:function(st){return st.indexOf("image")!==-1},pdf:function(st){return st.indexOf("pdf")!==-1||st==="application/x-download"},ppt:function(st){return MimeTypeUtils.INSTANCE.isPowerpointLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("presentation")!==-1||st.indexOf("powerpoint")!==-1},txt:function(st){return MimeTypeUtils.INSTANCE.isTxtLike(st,rt)},video:function(st){return st.indexOf("video")!==-1},audio:function(st){return st.indexOf("audio")!==-1},zip:function(st){return st.indexOf("zip")!==-1||st.indexOf("rar")!==-1||st.indexOf("tar")!==-1||st.indexOf("7z")!==-1}};for(let st in nt)if(nt[st](et))return st;return"unknown"}}m$2(FileTypeUtils,"fileTypes",[]);class WorkspaceService{constructor(et){this.context=et}get http(){return this.context.http()}async saveFile(et,tt){const rt=et.name||"",nt=rt.split("."),st=et.type||"application/octet-stream",ot=nt.length>1?nt[nt.length-1]:"",at={"content-type":st,filename:rt,size:et.size,extension:ot,role:FileTypeUtils.getFileType(st,!1,ot)},ut=rt.replace("."+at.extension,""),lt=at.extension?ut+"."+at.extension:ut,dt=new FormData;dt.append("file",et,lt);const ct=[];return((tt==null?void 0:tt.visibility)==="public"||(tt==null?void 0:tt.visibility)==="protected")&&ct.push(`${tt.visibility}=true`),tt!=null&&tt.application&&ct.push(`application=${tt.application}`),at.role==="img"&&ct.push("quality=1"),tt!=null&&tt.parentId&&ct.push(`parentId=${tt.parentId}`),await this.http.postFile(`/workspace/document?${ct.join("&")}`,dt)}}const bundle={},promises={},defaultDiacriticsRemovalMap=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];class IdiomService{constructor(et){this.context=et}get http(){return this.context.http()}async getIdiom(et,tt){await Promise.all([this.addBundlePromise(et,"/i18n"),this.addBundlePromise(et,`/${tt}/i18n`)])}translate(et,tt){et=et??"";let rt=bundle[et]===void 0?et:bundle[et];if(tt&&typeof tt=="object")for(let nt in tt)typeof tt[nt]<"u"&&(rt=rt.replace(new RegExp("\\${"+nt+"}","g"),""+tt[nt]));return rt}addBundlePromise(et,tt){return this.loadBundlePromise(et,tt)}addBundle(et,tt,rt){this.loadBundle(et,tt,rt)}loadBundlePromise(et,tt){return this.loadBundle(et,tt),promises[tt]}loadBundle(et,tt,rt){const nt=promises[tt];if(nt)rt&&nt.then(rt).catch(rt);else{const st=new Promisified;promises[tt]=st.promise;const ot={};et&&(ot["Accept-Language"]=et),this.http.get(tt,{headers:ot}).then(at=>{Object.assign(bundle,at),typeof rt=="function"&&rt(),st.resolve()}).catch(at=>{typeof rt=="function"&&rt(),st.reject()})}}addTranslations(et,tt){notify.onLangReady().promise.then(rt=>{this.loadBundle(rt,et+"/"+rt+".json",tt)})}addAllTranslations(et){return et&&et.length>0?notify.onLangReady().promise.then(tt=>Promise.all(et.map(rt=>this.loadBundlePromise(tt,rt+"/"+tt+".json")))).then(()=>{}):Promise.reject()}addKeys(et){for(var tt in et)typeof bundle[tt]!="string"&&(bundle[tt]=et[tt])}removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap.length;tt++)et=et.replace(defaultDiacriticsRemovalMap[tt].letters,defaultDiacriticsRemovalMap[tt].base);return et}}let ATTag;class AnalyticsService{constructor(_e){this.context=_e}get http(){return this.context.http()}get session(){return this.context.session()}async trackPageLoad(_e,et){const[tt]=await Promise.all([this.getXitiConfig(et.name.toLowerCase()),this.loadXitiScript()]);if(!tt||!ATInternet)return;let rt=tt.LIBELLE_SERVICE.default||null;for(let nt in tt.LIBELLE_SERVICE)if(nt!=="default"&&_e.indexOf(nt)>=0){rt=tt.LIBELLE_SERVICE[nt];break}ATTag=new ATInternet.Tracker.Tag({site:tt.STRUCT_ID}),ATTag.setProps({SERVICE:rt,TYPE:tt.TYPE,OUTIL:tt.OUTIL,UAI:tt.STRUCT_UAI,PROJET:tt.PROJET,EXPLOITANT:tt.EXPLOITANT,PLATEFORME:tt.PLATFORME,PROFIL:tt.PROFILE},!0),ATTag.identifiedVisitor.set({id:tt.ID_PERSO,category:tt.PROFILE}),ATTag.page.set({name:(et==null?void 0:et.prefix)==="userbook"?"directory":et==null?void 0:et.prefix,chapter1:"",chapter2:"",chapter3:"",level2:tt.STRUCT_UAI}),ATTag.dispatch()}async getXitiConfig(_e){const[et,tt]=await Promise.all([this.http.get("/analyticsConf"),this.http.get("/xiti/config")]);if(!(et!=null&&et.type))throw ERROR_CODE.MALFORMED_DATA;return tt!=null&&tt.active&&(et.xiti=await this.getXitiTrackingParams(tt,_e)),et.xiti}async loadXitiScript(){if(typeof ATInternet>"u"){const scriptPath="/xiti/public/js/lib/smarttag_ENT.js",response=await this.http.get(scriptPath,{headers:{Accept:"application/javascript"}});if(this.http.latestResponse.status!=200)throw"Error while loading XiTi script";eval(response)}}async getXitiTrackingParams(_e,et){var tt;if(!_e.structureMap||!et)return;const rt=await this.session.getUser(),nt=await this.session.getUserProfile();let st;if(!(rt!=null&&rt.structures))return;for(let dt of rt.structures){const ct=_e.structureMap[dt];if(ct&&ct.collectiviteId&&ct.UAI){st=ct;break}}if(!st||!st.active)return;const ot=await configure.Platform.apps.getPublicConf(et);if(!ot)return;const at=ot.xiti;if(!at||!at.LIBELLE_SERVICE||!st.UAI)return;function ut(dt){let ct="";for(let ft=0;ft<dt.length;ft++)ct+=dt.charCodeAt(ft);return ct}const lt={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"};return{LIBELLE_SERVICE:at.LIBELLE_SERVICE,TYPE:at.OUTIL?"TIERS":"NATIF",OUTIL:at.OUTIL?at.OUTIL:"",STRUCT_ID:st.collectiviteId,STRUCT_UAI:st.UAI,PROJET:st.projetId?st.projetId:_e.ID_PROJET,EXPLOITANT:_e.ID_EXPLOITANT,PLATFORME:st.plateformeId?st.plateformeId:_e.ID_PLATEFORME,ID_PERSO:ut(rt.userId),PROFILE:nt&&nt.length>0&&(tt=lt[nt[0]])!=null?tt:""}}}class OdeServices{constructor(){m$2(this,"_analytics"),m$2(this,"_cache"),m$2(this,"_conf"),m$2(this,"_directory"),m$2(this,"_http"),m$2(this,"_idiom"),m$2(this,"_rights"),m$2(this,"_session"),m$2(this,"_share"),m$2(this,"_workspace"),this._analytics=new AnalyticsService(this),this._cache=new CacheService(this),this._conf=new ConfService(this),this._directory=new DirectoryService(this),this._http=new HttpService(this),this._idiom=new IdiomService(this),this._rights=new RightService(this),this._session=new SessionService(this),this._share=new ShareService(this),this._workspace=new WorkspaceService(this)}analytics(){return this._analytics}cache(){return this._cache}conf(){return this._conf}directory(){return this._directory}http(){return this._http}idiom(){return this._idiom}resource(et,tt){return tt?ResourceService.findService({application:et,resourceType:tt},this):ResourceService.findMainService({application:et},this)}rights(){return this._rights}session(){return this._session}share(){return this._share}workspace(){return this._workspace}}const odeServices=new OdeServices;function useSession(){return useQuery({queryKey:["session"],queryFn:async()=>await odeServices.session().getSession(),suspense:!0})}function useConf({appCode:_e}){return useQuery({queryKey:["conf"],queryFn:async()=>await odeServices.conf().getConf(_e),suspense:!0})}const OdeClientContext=reactExports.createContext(null);function OdeClientProvider({children:_e,params:et}){const tt=et.app,rt=useSession(),nt=useConf({appCode:tt}),st=(nt==null?void 0:nt.isSuccess)&&(rt==null?void 0:rt.isSuccess);reactExports.useEffect(()=>{var lt,dt,ct,ft,ht,mt,vt,wt,gt,yt;const at=document.getElementById("theme"),ut=document.getElementById("favicon");at.href=`${(dt=(lt=nt==null?void 0:nt.data)==null?void 0:lt.theme)==null?void 0:dt.bootstrapUrl}/theme.css`,ut.href=`${(ft=(ct=nt==null?void 0:nt.data)==null?void 0:ct.theme)==null?void 0:ft.basePath}/img/illustrations/favicon.ico`,[{data:"data-skin",value:(mt=(ht=nt==null?void 0:nt.data)==null?void 0:ht.theme)==null?void 0:mt.skinName},{data:"data-theme",value:(wt=(vt=nt==null?void 0:nt.data)==null?void 0:vt.theme)==null?void 0:wt.themeName},{data:"data-bootstrap",value:(yt=(gt=nt==null?void 0:nt.data)==null?void 0:gt.theme)==null?void 0:yt.bootstrapVersion.split("-").at(-1)}].forEach(xt=>{var St;return(St=document.querySelector("html"))==null?void 0:St.setAttribute(xt.data,xt.value)})},[nt==null?void 0:nt.data]),reactExports.useEffect(()=>{var at,ut;(ut=document.querySelector("html"))==null||ut.setAttribute("lang",((at=rt==null?void 0:rt.data)==null?void 0:at.currentLanguage)||"fr")},[rt==null?void 0:rt.data]);const ot=reactExports.useMemo(()=>{var at,ut,lt,dt,ct,ft,ht;return{appCode:tt,applications:(at=nt==null?void 0:nt.data)==null?void 0:at.applications,confQuery:nt,currentApp:(ut=nt==null?void 0:nt.data)==null?void 0:ut.currentApp,currentLanguage:(lt=rt==null?void 0:rt.data)==null?void 0:lt.currentLanguage,init:st,sessionQuery:rt,theme:(dt=nt==null?void 0:nt.data)==null?void 0:dt.theme,user:(ct=rt==null?void 0:rt.data)==null?void 0:ct.user,userDescription:(ft=rt==null?void 0:rt.data)==null?void 0:ft.userDescription,userProfile:(ht=rt==null?void 0:rt.data)==null?void 0:ht.userProfile}},[tt,nt,st,rt]);return jsxRuntimeExports.jsx(OdeClientContext.Provider,{value:ot,children:_e})}function useOdeClient(){const _e=reactExports.useContext(OdeClientContext);if(!_e)throw new Error("Cannot be used outside of OdeClientProvider");return _e}function useBookmark(){var tt;const{sessionQuery:_e}=useOdeClient(),et=new Set;return(tt=_e==null?void 0:_e.data)==null?void 0:tt.bookmarkedApps.filter(rt=>{const nt=et.has(rt.displayName);return et.add(rt.displayName),!nt})}function useTheme(){const{theme:_e}=useOdeClient();return{theme:_e}}function useUser(){const{user:_e,userDescription:et,userProfile:tt}=useOdeClient(),{theme:rt}=useTheme();function nt(){let st=et==null?void 0:et.picture;return(!st||st==="no-avatar.jpg"||st==="no-avatar.svg")&&(st=`${rt==null?void 0:rt.basePath}/img/illustrations/no-avatar.svg`),st}return{user:{..._e,type:tt},avatar:nt(),userDescription:et}}function useHasWorkflow(){const{user:_e}=useUser();return{workflows:{conversation:{view:odeServices.session().hasWorkflow({workflowName:"org.entcore.conversation.controllers.ConversationController|view",user:_e})},community:{view:odeServices.session().hasWorkflow({workflowName:"net.atos.entng.community.controllers.CommunityController|view",user:_e})},search:{view:odeServices.session().hasWorkflow({workflowName:"fr.openent.searchengine.controllers.SearchEngineController|view",user:_e})},zimbra:{view:odeServices.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|view",user:_e}),preauth:odeServices.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|preauth",user:_e})}}}}const DEFAULT_EVENTS=["mousedown","touchstart"];function useClickOutside(_e,et,tt){const rt=reactExports.useRef();return reactExports.useEffect(()=>{const nt=st=>{const{target:ot}=st??{};if(Array.isArray(tt)){const at=(ot==null?void 0:ot.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(ot)&&ot.tagName!=="HTML";tt.every(ut=>!!ut&&!st.composedPath().includes(ut))&&!at&&_e()}else rt.current&&!rt.current.contains(ot)&&_e()};return(et||DEFAULT_EVENTS).forEach(st=>{document.addEventListener(st,nt)}),()=>{(et||DEFAULT_EVENTS).forEach(st=>{document.removeEventListener(st,nt)})}},[rt,_e,tt,et]),rt}let e={data:""},t$1=_e=>typeof window=="object"?((_e?_e.querySelector("#_goober"):window._goober)||Object.assign((_e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:_e||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n$2=/\n+/g,o=(_e,et)=>{let tt="",rt="",nt="";for(let st in _e){let ot=_e[st];st[0]=="@"?st[1]=="i"?tt=st+" "+ot+";":rt+=st[1]=="f"?o(ot,st):st+"{"+o(ot,st[1]=="k"?"":et)+"}":typeof ot=="object"?rt+=o(ot,et?et.replace(/([^,])+/g,at=>st.replace(/(^:.*)|([^,])+/g,ut=>/&/.test(ut)?ut.replace(/&/g,at):at?at+" "+ut:ut)):st):ot!=null&&(st=/^--/.test(st)?st:st.replace(/[A-Z]/g,"-$&").toLowerCase(),nt+=o.p?o.p(st,ot):st+":"+ot+";")}return tt+(et&&nt?et+"{"+nt+"}":nt)+rt},c$1={},s=_e=>{if(typeof _e=="object"){let et="";for(let tt in _e)et+=tt+s(_e[tt]);return et}return _e},i$1=(_e,et,tt,rt,nt)=>{let st=s(_e),ot=c$1[st]||(c$1[st]=(ut=>{let lt=0,dt=11;for(;lt<ut.length;)dt=101*dt+ut.charCodeAt(lt++)>>>0;return"go"+dt})(st));if(!c$1[ot]){let ut=st!==_e?_e:(lt=>{let dt,ct,ft=[{}];for(;dt=l.exec(lt.replace(a,""));)dt[4]?ft.shift():dt[3]?(ct=dt[3].replace(n$2," ").trim(),ft.unshift(ft[0][ct]=ft[0][ct]||{})):ft[0][dt[1]]=dt[2].replace(n$2," ").trim();return ft[0]})(_e);c$1[ot]=o(nt?{["@keyframes "+ot]:ut}:ut,tt?"":"."+ot)}let at=tt&&c$1.g?c$1.g:null;return tt&&(c$1.g=c$1[ot]),((ut,lt,dt,ct)=>{ct?lt.data=lt.data.replace(ct,ut):lt.data.indexOf(ut)===-1&&(lt.data=dt?ut+lt.data:lt.data+ut)})(c$1[ot],et,rt,at),ot},p$1=(_e,et,tt)=>_e.reduce((rt,nt,st)=>{let ot=et[st];if(ot&&ot.call){let at=ot(tt),ut=at&&at.props&&at.props.className||/^go/.test(at)&&at;ot=ut?"."+ut:at&&typeof at=="object"?at.props?"":o(at,""):at===!1?"":at}return rt+nt+(ot??"")},"");function u$2(_e){let et=this||{},tt=_e.call?_e(et.p):_e;return i$1(tt.unshift?tt.raw?p$1(tt,[].slice.call(arguments,1),et.p):tt.reduce((rt,nt)=>Object.assign(rt,nt&&nt.call?nt(et.p):nt),{}):tt,t$1(et.target),et.g,et.o,et.k)}let d,f,g$1;u$2.bind({g:1});let h$3=u$2.bind({k:1});function m$1(_e,et,tt,rt){o.p=et,d=_e,f=tt,g$1=rt}function j(_e,et){let tt=this||{};return function(){let rt=arguments;function nt(st,ot){let at=Object.assign({},st),ut=at.className||nt.className;tt.p=Object.assign({theme:f&&f()},at),tt.o=/ *go\d+/.test(ut),at.className=u$2.apply(tt,rt)+(ut?" "+ut:""),et&&(at.ref=ot);let lt=_e;return _e[0]&&(lt=at.as||_e,delete at.as),g$1&&lt[0]&&g$1(at),d(lt,at)}return et?et(nt):nt}}var W=_e=>typeof _e=="function",T=(_e,et)=>W(_e)?_e(et):_e,U=(()=>{let _e=0;return()=>(++_e).toString()})(),b=(()=>{let _e;return()=>{if(_e===void 0&&typeof window<"u"){let et=matchMedia("(prefers-reduced-motion: reduce)");_e=!et||et.matches}return _e}})(),Q=20,S=new Map,X=1e3,$$1=_e=>{if(S.has(_e))return;let et=setTimeout(()=>{S.delete(_e),u$1({type:4,toastId:_e})},X);S.set(_e,et)},J=_e=>{let et=S.get(_e);et&&clearTimeout(et)},v$2=(_e,et)=>{switch(et.type){case 0:return{..._e,toasts:[et.toast,..._e.toasts].slice(0,Q)};case 1:return et.toast.id&&J(et.toast.id),{..._e,toasts:_e.toasts.map(st=>st.id===et.toast.id?{...st,...et.toast}:st)};case 2:let{toast:tt}=et;return _e.toasts.find(st=>st.id===tt.id)?v$2(_e,{type:1,toast:tt}):v$2(_e,{type:0,toast:tt});case 3:let{toastId:rt}=et;return rt?$$1(rt):_e.toasts.forEach(st=>{$$1(st.id)}),{..._e,toasts:_e.toasts.map(st=>st.id===rt||rt===void 0?{...st,visible:!1}:st)};case 4:return et.toastId===void 0?{..._e,toasts:[]}:{..._e,toasts:_e.toasts.filter(st=>st.id!==et.toastId)};case 5:return{..._e,pausedAt:et.time};case 6:let nt=et.time-(_e.pausedAt||0);return{..._e,pausedAt:void 0,toasts:_e.toasts.map(st=>({...st,pauseDuration:st.pauseDuration+nt}))}}},A=[],P={toasts:[],pausedAt:void 0},u$1=_e=>{P=v$2(P,_e),A.forEach(et=>{et(P)})},Y={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},I$1=(_e={})=>{let[et,tt]=reactExports.useState(P);reactExports.useEffect(()=>(A.push(tt),()=>{let nt=A.indexOf(tt);nt>-1&&A.splice(nt,1)}),[et]);let rt=et.toasts.map(nt=>{var st,ot;return{..._e,..._e[nt.type],...nt,duration:nt.duration||((st=_e[nt.type])==null?void 0:st.duration)||(_e==null?void 0:_e.duration)||Y[nt.type],style:{..._e.style,...(ot=_e[nt.type])==null?void 0:ot.style,...nt.style}}});return{...et,toasts:rt}},G$1=(_e,et="blank",tt)=>({createdAt:Date.now(),visible:!0,type:et,ariaProps:{role:"status","aria-live":"polite"},message:_e,pauseDuration:0,...tt,id:(tt==null?void 0:tt.id)||U()}),h$2=_e=>(et,tt)=>{let rt=G$1(et,_e,tt);return u$1({type:2,toast:rt}),rt.id},n$1=(_e,et)=>h$2("blank")(_e,et);n$1.error=h$2("error");n$1.success=h$2("success");n$1.loading=h$2("loading");n$1.custom=h$2("custom");n$1.dismiss=_e=>{u$1({type:3,toastId:_e})};n$1.remove=_e=>u$1({type:4,toastId:_e});n$1.promise=(_e,et,tt)=>{let rt=n$1.loading(et.loading,{...tt,...tt==null?void 0:tt.loading});return _e.then(nt=>(n$1.success(T(et.success,nt),{id:rt,...tt,...tt==null?void 0:tt.success}),nt)).catch(nt=>{n$1.error(T(et.error,nt),{id:rt,...tt,...tt==null?void 0:tt.error})}),_e};var Z=(_e,et)=>{u$1({type:1,toast:{id:_e,height:et}})},ee=()=>{u$1({type:5,time:Date.now()})},D=_e=>{let{toasts:et,pausedAt:tt}=I$1(_e);reactExports.useEffect(()=>{if(tt)return;let st=Date.now(),ot=et.map(at=>{if(at.duration===1/0)return;let ut=(at.duration||0)+at.pauseDuration-(st-at.createdAt);if(ut<0){at.visible&&n$1.dismiss(at.id);return}return setTimeout(()=>n$1.dismiss(at.id),ut)});return()=>{ot.forEach(at=>at&&clearTimeout(at))}},[et,tt]);let rt=reactExports.useCallback(()=>{tt&&u$1({type:6,time:Date.now()})},[tt]),nt=reactExports.useCallback((st,ot)=>{let{reverseOrder:at=!1,gutter:ut=8,defaultPosition:lt}=ot||{},dt=et.filter(ht=>(ht.position||lt)===(st.position||lt)&&ht.height),ct=dt.findIndex(ht=>ht.id===st.id),ft=dt.filter((ht,mt)=>mt<ct&&ht.visible).length;return dt.filter(ht=>ht.visible).slice(...at?[ft+1]:[0,ft]).reduce((ht,mt)=>ht+(mt.height||0)+ut,0)},[et]);return{toasts:et,handlers:{updateHeight:Z,startPause:ee,endPause:rt,calculateOffset:nt}}},oe=h$3`
63
+ `):"",this.name="UnsubscriptionError",this.errors=et}});function arrRemove(_e,et){if(_e){var tt=_e.indexOf(et);0<=tt&&_e.splice(tt,1)}}var Subscription=function(){function _e(et){this.initialTeardown=et,this.closed=!1,this._parentage=null,this._teardowns=null}return _e.prototype.unsubscribe=function(){var et,tt,rt,nt,st;if(!this.closed){this.closed=!0;var ot=this._parentage;if(ot)if(this._parentage=null,Array.isArray(ot))try{for(var at=__values(ot),ut=at.next();!ut.done;ut=at.next()){var lt=ut.value;lt.remove(this)}}catch(vt){et={error:vt}}finally{try{ut&&!ut.done&&(tt=at.return)&&tt.call(at)}finally{if(et)throw et.error}}else ot.remove(this);var dt=this.initialTeardown;if(isFunction$1(dt))try{dt()}catch(vt){st=vt instanceof UnsubscriptionError?vt.errors:[vt]}var ct=this._teardowns;if(ct){this._teardowns=null;try{for(var ft=__values(ct),ht=ft.next();!ht.done;ht=ft.next()){var mt=ht.value;try{execTeardown(mt)}catch(vt){st=st??[],vt instanceof UnsubscriptionError?st=__spreadArray(__spreadArray([],__read(st)),__read(vt.errors)):st.push(vt)}}}catch(vt){rt={error:vt}}finally{try{ht&&!ht.done&&(nt=ft.return)&&nt.call(ft)}finally{if(rt)throw rt.error}}}if(st)throw new UnsubscriptionError(st)}},_e.prototype.add=function(et){var tt;if(et&&et!==this)if(this.closed)execTeardown(et);else{if(et instanceof _e){if(et.closed||et._hasParent(this))return;et._addParent(this)}(this._teardowns=(tt=this._teardowns)!==null&&tt!==void 0?tt:[]).push(et)}},_e.prototype._hasParent=function(et){var tt=this._parentage;return tt===et||Array.isArray(tt)&&tt.includes(et)},_e.prototype._addParent=function(et){var tt=this._parentage;this._parentage=Array.isArray(tt)?(tt.push(et),tt):tt?[tt,et]:et},_e.prototype._removeParent=function(et){var tt=this._parentage;tt===et?this._parentage=null:Array.isArray(tt)&&arrRemove(tt,et)},_e.prototype.remove=function(et){var tt=this._teardowns;tt&&arrRemove(tt,et),et instanceof _e&&et._removeParent(this)},_e.EMPTY=function(){var et=new _e;return et.closed=!0,et}(),_e}(),EMPTY_SUBSCRIPTION=Subscription.EMPTY;function isSubscription(_e){return _e instanceof Subscription||_e&&"closed"in _e&&isFunction$1(_e.remove)&&isFunction$1(_e.add)&&isFunction$1(_e.unsubscribe)}function execTeardown(_e){isFunction$1(_e)?_e():_e.unsubscribe()}var config$1={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];return setTimeout.apply(void 0,__spreadArray([],__read(_e)))},clearTimeout:function(_e){return clearTimeout(_e)},delegate:void 0};function reportUnhandledError(_e){timeoutProvider.setTimeout(function(){var et=config$1.onUnhandledError;if(et)et(_e);else throw _e})}function noop$1(){}var COMPLETE_NOTIFICATION=function(){return createNotification("C",void 0,void 0)}();function errorNotification(_e){return createNotification("E",void 0,_e)}function nextNotification(_e){return createNotification("N",_e,void 0)}function createNotification(_e,et,tt){return{kind:_e,value:et,error:tt}}var context=null;function errorContext(_e){if(config$1.useDeprecatedSynchronousErrorHandling){var et=!context;if(et&&(context={errorThrown:!1,error:null}),_e(),et){var tt=context,rt=tt.errorThrown,nt=tt.error;if(context=null,rt)throw nt}}else _e()}function captureError(_e){config$1.useDeprecatedSynchronousErrorHandling&&context&&(context.errorThrown=!0,context.error=_e)}var Subscriber=function(_e){__extends$1(et,_e);function et(tt){var rt=_e.call(this)||this;return rt.isStopped=!1,tt?(rt.destination=tt,isSubscription(tt)&&tt.add(rt)):rt.destination=EMPTY_OBSERVER,rt}return et.create=function(tt,rt,nt){return new SafeSubscriber(tt,rt,nt)},et.prototype.next=function(tt){this.isStopped?handleStoppedNotification(nextNotification(tt),this):this._next(tt)},et.prototype.error=function(tt){this.isStopped?handleStoppedNotification(errorNotification(tt),this):(this.isStopped=!0,this._error(tt))},et.prototype.complete=function(){this.isStopped?handleStoppedNotification(COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},et.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_e.prototype.unsubscribe.call(this),this.destination=null)},et.prototype._next=function(tt){this.destination.next(tt)},et.prototype._error=function(tt){try{this.destination.error(tt)}finally{this.unsubscribe()}},et.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},et}(Subscription),SafeSubscriber=function(_e){__extends$1(et,_e);function et(tt,rt,nt){var st=_e.call(this)||this,ot;if(isFunction$1(tt))ot=tt;else if(tt){ot=tt.next,rt=tt.error,nt=tt.complete;var at;st&&config$1.useDeprecatedNextContext?(at=Object.create(tt),at.unsubscribe=function(){return st.unsubscribe()}):at=tt,ot=ot==null?void 0:ot.bind(at),rt=rt==null?void 0:rt.bind(at),nt=nt==null?void 0:nt.bind(at)}return st.destination={next:ot?wrapForErrorHandling(ot):noop$1,error:wrapForErrorHandling(rt??defaultErrorHandler),complete:nt?wrapForErrorHandling(nt):noop$1},st}return et}(Subscriber);function wrapForErrorHandling(_e,et){return function(){for(var tt=[],rt=0;rt<arguments.length;rt++)tt[rt]=arguments[rt];try{_e.apply(void 0,__spreadArray([],__read(tt)))}catch(nt){config$1.useDeprecatedSynchronousErrorHandling?captureError(nt):reportUnhandledError(nt)}}}function defaultErrorHandler(_e){throw _e}function handleStoppedNotification(_e,et){var tt=config$1.onStoppedNotification;tt&&timeoutProvider.setTimeout(function(){return tt(_e,et)})}var EMPTY_OBSERVER={closed:!0,next:noop$1,error:defaultErrorHandler,complete:noop$1},observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function identity(_e){return _e}function pipeFromArray(_e){return _e.length===0?identity:_e.length===1?_e[0]:function(et){return _e.reduce(function(tt,rt){return rt(tt)},et)}}var Observable=function(){function _e(et){et&&(this._subscribe=et)}return _e.prototype.lift=function(et){var tt=new _e;return tt.source=this,tt.operator=et,tt},_e.prototype.subscribe=function(et,tt,rt){var nt=this,st=isSubscriber(et)?et:new SafeSubscriber(et,tt,rt);return errorContext(function(){var ot=nt,at=ot.operator,ut=ot.source;st.add(at?at.call(st,ut):ut?nt._subscribe(st):nt._trySubscribe(st))}),st},_e.prototype._trySubscribe=function(et){try{return this._subscribe(et)}catch(tt){et.error(tt)}},_e.prototype.forEach=function(et,tt){var rt=this;return tt=getPromiseCtor(tt),new tt(function(nt,st){var ot;ot=rt.subscribe(function(at){try{et(at)}catch(ut){st(ut),ot==null||ot.unsubscribe()}},st,nt)})},_e.prototype._subscribe=function(et){var tt;return(tt=this.source)===null||tt===void 0?void 0:tt.subscribe(et)},_e.prototype[observable]=function(){return this},_e.prototype.pipe=function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return pipeFromArray(et)(this)},_e.prototype.toPromise=function(et){var tt=this;return et=getPromiseCtor(et),new et(function(rt,nt){var st;tt.subscribe(function(ot){return st=ot},function(ot){return nt(ot)},function(){return rt(st)})})},_e.create=function(et){return new _e(et)},_e}();function getPromiseCtor(_e){var et;return(et=_e??config$1.Promise)!==null&&et!==void 0?et:Promise}function isObserver(_e){return _e&&isFunction$1(_e.next)&&isFunction$1(_e.error)&&isFunction$1(_e.complete)}function isSubscriber(_e){return _e&&_e instanceof Subscriber||isObserver(_e)&&isSubscription(_e)}function hasLift(_e){return isFunction$1(_e==null?void 0:_e.lift)}function operate(_e){return function(et){if(hasLift(et))return et.lift(function(tt){try{return _e(tt,this)}catch(rt){this.error(rt)}});throw new TypeError("Unable to lift unknown Observable type")}}var OperatorSubscriber=function(_e){__extends$1(et,_e);function et(tt,rt,nt,st,ot){var at=_e.call(this,tt)||this;return at.onFinalize=ot,at._next=rt?function(ut){try{rt(ut)}catch(lt){tt.error(lt)}}:_e.prototype._next,at._error=st?function(ut){try{st(ut)}catch(lt){tt.error(lt)}finally{this.unsubscribe()}}:_e.prototype._error,at._complete=nt?function(){try{nt()}catch(ut){tt.error(ut)}finally{this.unsubscribe()}}:_e.prototype._complete,at}return et.prototype.unsubscribe=function(){var tt,rt=this.closed;_e.prototype.unsubscribe.call(this),!rt&&((tt=this.onFinalize)===null||tt===void 0||tt.call(this))},et}(Subscriber);function refCount(){return operate(function(_e,et){var tt=null;_e._refCount++;var rt=new OperatorSubscriber(et,void 0,void 0,void 0,function(){if(!_e||_e._refCount<=0||0<--_e._refCount){tt=null;return}var nt=_e._connection,st=tt;tt=null,nt&&(!st||nt===st)&&nt.unsubscribe(),et.unsubscribe()});_e.subscribe(rt),rt.closed||(tt=_e.connect())})}(function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this)||this;return nt.source=tt,nt.subjectFactory=rt,nt._subject=null,nt._refCount=0,nt._connection=null,hasLift(tt)&&(nt.lift=tt.lift),nt}return et.prototype._subscribe=function(tt){return this.getSubject().subscribe(tt)},et.prototype.getSubject=function(){var tt=this._subject;return(!tt||tt.isStopped)&&(this._subject=this.subjectFactory()),this._subject},et.prototype._teardown=function(){this._refCount=0;var tt=this._connection;this._subject=this._connection=null,tt==null||tt.unsubscribe()},et.prototype.connect=function(){var tt=this,rt=this._connection;if(!rt){rt=this._connection=new Subscription;var nt=this.getSubject();rt.add(this.source.subscribe(new OperatorSubscriber(nt,void 0,function(){tt._teardown(),nt.complete()},function(st){tt._teardown(),nt.error(st)},function(){return tt._teardown()}))),rt.closed&&(this._connection=null,rt=Subscription.EMPTY)}return rt},et.prototype.refCount=function(){return refCount()(this)},et})(Observable);var animationFrameProvider={schedule:function(_e){var et=requestAnimationFrame,tt=cancelAnimationFrame,rt=et(function(nt){tt=void 0,_e(nt)});return new Subscription(function(){return tt==null?void 0:tt(rt)})},requestAnimationFrame:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=animationFrameProvider.delegate;return((tt==null?void 0:tt.requestAnimationFrame)||requestAnimationFrame).apply(void 0,__spreadArray([],__read(_e)))},cancelAnimationFrame:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];return cancelAnimationFrame.apply(void 0,__spreadArray([],__read(_e)))},delegate:void 0},ObjectUnsubscribedError=createErrorClass(function(_e){return function(){_e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Subject=function(_e){__extends$1(et,_e);function et(){var tt=_e.call(this)||this;return tt.closed=!1,tt.observers=[],tt.isStopped=!1,tt.hasError=!1,tt.thrownError=null,tt}return et.prototype.lift=function(tt){var rt=new AnonymousSubject(this,this);return rt.operator=tt,rt},et.prototype._throwIfClosed=function(){if(this.closed)throw new ObjectUnsubscribedError},et.prototype.next=function(tt){var rt=this;errorContext(function(){var nt,st;if(rt._throwIfClosed(),!rt.isStopped){var ot=rt.observers.slice();try{for(var at=__values(ot),ut=at.next();!ut.done;ut=at.next()){var lt=ut.value;lt.next(tt)}}catch(dt){nt={error:dt}}finally{try{ut&&!ut.done&&(st=at.return)&&st.call(at)}finally{if(nt)throw nt.error}}}})},et.prototype.error=function(tt){var rt=this;errorContext(function(){if(rt._throwIfClosed(),!rt.isStopped){rt.hasError=rt.isStopped=!0,rt.thrownError=tt;for(var nt=rt.observers;nt.length;)nt.shift().error(tt)}})},et.prototype.complete=function(){var tt=this;errorContext(function(){if(tt._throwIfClosed(),!tt.isStopped){tt.isStopped=!0;for(var rt=tt.observers;rt.length;)rt.shift().complete()}})},et.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(et.prototype,"observed",{get:function(){var tt;return((tt=this.observers)===null||tt===void 0?void 0:tt.length)>0},enumerable:!1,configurable:!0}),et.prototype._trySubscribe=function(tt){return this._throwIfClosed(),_e.prototype._trySubscribe.call(this,tt)},et.prototype._subscribe=function(tt){return this._throwIfClosed(),this._checkFinalizedStatuses(tt),this._innerSubscribe(tt)},et.prototype._innerSubscribe=function(tt){var rt=this,nt=rt.hasError,st=rt.isStopped,ot=rt.observers;return nt||st?EMPTY_SUBSCRIPTION:(ot.push(tt),new Subscription(function(){return arrRemove(ot,tt)}))},et.prototype._checkFinalizedStatuses=function(tt){var rt=this,nt=rt.hasError,st=rt.thrownError,ot=rt.isStopped;nt?tt.error(st):ot&&tt.complete()},et.prototype.asObservable=function(){var tt=new Observable;return tt.source=this,tt},et.create=function(tt,rt){return new AnonymousSubject(tt,rt)},et}(Observable),AnonymousSubject=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this)||this;return nt.destination=tt,nt.source=rt,nt}return et.prototype.next=function(tt){var rt,nt;(nt=(rt=this.destination)===null||rt===void 0?void 0:rt.next)===null||nt===void 0||nt.call(rt,tt)},et.prototype.error=function(tt){var rt,nt;(nt=(rt=this.destination)===null||rt===void 0?void 0:rt.error)===null||nt===void 0||nt.call(rt,tt)},et.prototype.complete=function(){var tt,rt;(rt=(tt=this.destination)===null||tt===void 0?void 0:tt.complete)===null||rt===void 0||rt.call(tt)},et.prototype._subscribe=function(tt){var rt,nt;return(nt=(rt=this.source)===null||rt===void 0?void 0:rt.subscribe(tt))!==null&&nt!==void 0?nt:EMPTY_SUBSCRIPTION},et}(Subject);(function(_e){__extends$1(et,_e);function et(tt){var rt=_e.call(this)||this;return rt._value=tt,rt}return Object.defineProperty(et.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),et.prototype._subscribe=function(tt){var rt=_e.prototype._subscribe.call(this,tt);return!rt.closed&&tt.next(this._value),rt},et.prototype.getValue=function(){var tt=this,rt=tt.hasError,nt=tt.thrownError,st=tt._value;if(rt)throw nt;return this._throwIfClosed(),st},et.prototype.next=function(tt){_e.prototype.next.call(this,this._value=tt)},et})(Subject);var dateTimestampProvider={now:function(){return(dateTimestampProvider.delegate||Date).now()},delegate:void 0};(function(_e){__extends$1(et,_e);function et(tt,rt,nt){tt===void 0&&(tt=1/0),rt===void 0&&(rt=1/0),nt===void 0&&(nt=dateTimestampProvider);var st=_e.call(this)||this;return st._bufferSize=tt,st._windowTime=rt,st._timestampProvider=nt,st._buffer=[],st._infiniteTimeWindow=!0,st._infiniteTimeWindow=rt===1/0,st._bufferSize=Math.max(1,tt),st._windowTime=Math.max(1,rt),st}return et.prototype.next=function(tt){var rt=this,nt=rt.isStopped,st=rt._buffer,ot=rt._infiniteTimeWindow,at=rt._timestampProvider,ut=rt._windowTime;nt||(st.push(tt),!ot&&st.push(at.now()+ut)),this._trimBuffer(),_e.prototype.next.call(this,tt)},et.prototype._subscribe=function(tt){this._throwIfClosed(),this._trimBuffer();for(var rt=this._innerSubscribe(tt),nt=this,st=nt._infiniteTimeWindow,ot=nt._buffer,at=ot.slice(),ut=0;ut<at.length&&!tt.closed;ut+=st?1:2)tt.next(at[ut]);return this._checkFinalizedStatuses(tt),rt},et.prototype._trimBuffer=function(){var tt=this,rt=tt._bufferSize,nt=tt._timestampProvider,st=tt._buffer,ot=tt._infiniteTimeWindow,at=(ot?1:2)*rt;if(rt<1/0&&at<st.length&&st.splice(0,st.length-at),!ot){for(var ut=nt.now(),lt=0,dt=1;dt<st.length&&st[dt]<=ut;dt+=2)lt=dt;lt&&st.splice(0,lt+1)}},et})(Subject);(function(_e){__extends$1(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt._value=null,tt._hasValue=!1,tt._isComplete=!1,tt}return et.prototype._checkFinalizedStatuses=function(tt){var rt=this,nt=rt.hasError,st=rt._hasValue,ot=rt._value,at=rt.thrownError,ut=rt.isStopped,lt=rt._isComplete;nt?tt.error(at):(ut||lt)&&(st&&tt.next(ot),tt.complete())},et.prototype.next=function(tt){this.isStopped||(this._value=tt,this._hasValue=!0)},et.prototype.complete=function(){var tt=this,rt=tt._hasValue,nt=tt._value,st=tt._isComplete;st||(this._isComplete=!0,rt&&_e.prototype.next.call(this,nt),_e.prototype.complete.call(this))},et})(Subject);var Action=function(_e){__extends$1(et,_e);function et(tt,rt){return _e.call(this)||this}return et.prototype.schedule=function(tt,rt){return this},et}(Subscription),intervalProvider={setInterval:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=intervalProvider.delegate;return((tt==null?void 0:tt.setInterval)||setInterval).apply(void 0,__spreadArray([],__read(_e)))},clearInterval:function(_e){return clearInterval(_e)},delegate:void 0},AsyncAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt.pending=!1,nt}return et.prototype.schedule=function(tt,rt){if(rt===void 0&&(rt=0),this.closed)return this;this.state=tt;var nt=this.id,st=this.scheduler;return nt!=null&&(this.id=this.recycleAsyncId(st,nt,rt)),this.pending=!0,this.delay=rt,this.id=this.id||this.requestAsyncId(st,this.id,rt),this},et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),intervalProvider.setInterval(tt.flush.bind(tt,this),nt)},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&this.delay===nt&&this.pending===!1)return rt;intervalProvider.clearInterval(rt)},et.prototype.execute=function(tt,rt){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var nt=this._execute(tt,rt);if(nt)return nt;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},et.prototype._execute=function(tt,rt){var nt=!1,st;try{this.work(tt)}catch(ot){nt=!0,st=!!ot&&ot||new Error(ot)}if(nt)return this.unsubscribe(),st},et.prototype.unsubscribe=function(){if(!this.closed){var tt=this,rt=tt.id,nt=tt.scheduler,st=nt.actions;this.work=this.state=this.scheduler=null,this.pending=!1,arrRemove(st,this),rt!=null&&(this.id=this.recycleAsyncId(nt,rt,null)),this.delay=null,_e.prototype.unsubscribe.call(this)}},et}(Action),nextHandle=1,resolved,activeHandles={};function findAndClearHandle(_e){return _e in activeHandles?(delete activeHandles[_e],!0):!1}var Immediate={setImmediate:function(_e){var et=nextHandle++;return activeHandles[et]=!0,resolved||(resolved=Promise.resolve()),resolved.then(function(){return findAndClearHandle(et)&&_e()}),et},clearImmediate:function(_e){findAndClearHandle(_e)}},setImmediate$1=Immediate.setImmediate,clearImmediate=Immediate.clearImmediate,immediateProvider={setImmediate:function(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=immediateProvider.delegate;return((tt==null?void 0:tt.setImmediate)||setImmediate$1).apply(void 0,__spreadArray([],__read(_e)))},clearImmediate:function(_e){return clearImmediate(_e)},delegate:void 0},AsapAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!==null&&nt>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):(tt.actions.push(this),tt._scheduled||(tt._scheduled=immediateProvider.setImmediate(tt.flush.bind(tt,void 0))))},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0)return _e.prototype.recycleAsyncId.call(this,tt,rt,nt);tt.actions.length===0&&(immediateProvider.clearImmediate(rt),tt._scheduled=void 0)},et}(AsyncAction),Scheduler=function(){function _e(et,tt){tt===void 0&&(tt=_e.now),this.schedulerActionCtor=et,this.now=tt}return _e.prototype.schedule=function(et,tt,rt){return tt===void 0&&(tt=0),new this.schedulerActionCtor(this,et).schedule(rt,tt)},_e.now=dateTimestampProvider.now,_e}(),AsyncScheduler=function(_e){__extends$1(et,_e);function et(tt,rt){rt===void 0&&(rt=Scheduler.now);var nt=_e.call(this,tt,rt)||this;return nt.actions=[],nt._active=!1,nt._scheduled=void 0,nt}return et.prototype.flush=function(tt){var rt=this.actions;if(this._active){rt.push(tt);return}var nt;this._active=!0;do if(nt=tt.execute(tt.state,tt.delay))break;while(tt=rt.shift());if(this._active=!1,nt){for(;tt=rt.shift();)tt.unsubscribe();throw nt}},et}(Scheduler),AsapScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.flush=function(tt){this._active=!0,this._scheduled=void 0;var rt=this.actions,nt,st=-1;tt=tt||rt.shift();var ot=rt.length;do if(nt=tt.execute(tt.state,tt.delay))break;while(++st<ot&&(tt=rt.shift()));if(this._active=!1,nt){for(;++st<ot&&(tt=rt.shift());)tt.unsubscribe();throw nt}},et}(AsyncScheduler);new AsapScheduler(AsapAction);new AsyncScheduler(AsyncAction);var QueueAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.schedule=function(tt,rt){return rt===void 0&&(rt=0),rt>0?_e.prototype.schedule.call(this,tt,rt):(this.delay=rt,this.state=tt,this.scheduler.flush(this),this)},et.prototype.execute=function(tt,rt){return rt>0||this.closed?_e.prototype.execute.call(this,tt,rt):this._execute(tt,rt)},et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):tt.flush(this)},et}(AsyncAction),QueueScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et}(AsyncScheduler);new QueueScheduler(QueueAction);var AnimationFrameAction=function(_e){__extends$1(et,_e);function et(tt,rt){var nt=_e.call(this,tt,rt)||this;return nt.scheduler=tt,nt.work=rt,nt}return et.prototype.requestAsyncId=function(tt,rt,nt){return nt===void 0&&(nt=0),nt!==null&&nt>0?_e.prototype.requestAsyncId.call(this,tt,rt,nt):(tt.actions.push(this),tt._scheduled||(tt._scheduled=animationFrameProvider.requestAnimationFrame(function(){return tt.flush(void 0)})))},et.prototype.recycleAsyncId=function(tt,rt,nt){if(nt===void 0&&(nt=0),nt!=null&&nt>0||nt==null&&this.delay>0)return _e.prototype.recycleAsyncId.call(this,tt,rt,nt);tt.actions.length===0&&(animationFrameProvider.cancelAnimationFrame(rt),tt._scheduled=void 0)},et}(AsyncAction),AnimationFrameScheduler=function(_e){__extends$1(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.flush=function(tt){this._active=!0,this._scheduled=void 0;var rt=this.actions,nt,st=-1;tt=tt||rt.shift();var ot=rt.length;do if(nt=tt.execute(tt.state,tt.delay))break;while(++st<ot&&(tt=rt.shift()));if(this._active=!1,nt){for(;++st<ot&&(tt=rt.shift());)tt.unsubscribe();throw nt}},et}(AsyncScheduler);new AnimationFrameScheduler(AnimationFrameAction);(function(_e){__extends$1(et,_e);function et(tt,rt){tt===void 0&&(tt=VirtualAction),rt===void 0&&(rt=1/0);var nt=_e.call(this,tt,function(){return nt.frame})||this;return nt.maxFrames=rt,nt.frame=0,nt.index=-1,nt}return et.prototype.flush=function(){for(var tt=this,rt=tt.actions,nt=tt.maxFrames,st,ot;(ot=rt[0])&&ot.delay<=nt&&(rt.shift(),this.frame=ot.delay,!(st=ot.execute(ot.state,ot.delay))););if(st){for(;ot=rt.shift();)ot.unsubscribe();throw st}},et.frameTimeFactor=10,et})(AsyncScheduler);var VirtualAction=function(_e){__extends$1(et,_e);function et(tt,rt,nt){nt===void 0&&(nt=tt.index+=1);var st=_e.call(this,tt,rt)||this;return st.scheduler=tt,st.work=rt,st.index=nt,st.active=!0,st.index=tt.index=nt,st}return et.prototype.schedule=function(tt,rt){if(rt===void 0&&(rt=0),Number.isFinite(rt)){if(!this.id)return _e.prototype.schedule.call(this,tt,rt);this.active=!1;var nt=new et(this.scheduler,this.work);return this.add(nt),nt.schedule(tt,rt)}else return Subscription.EMPTY},et.prototype.requestAsyncId=function(tt,rt,nt){nt===void 0&&(nt=0),this.delay=tt.frame+nt;var st=tt.actions;return st.push(this),st.sort(et.sortActions),!0},et.prototype.recycleAsyncId=function(tt,rt,nt){},et.prototype._execute=function(tt,rt){if(this.active===!0)return _e.prototype._execute.call(this,tt,rt)},et.sortActions=function(tt,rt){return tt.delay===rt.delay?tt.index===rt.index?0:tt.index>rt.index?1:-1:tt.delay>rt.delay?1:-1},et}(AsyncAction),EMPTY=new Observable(function(_e){return _e.complete()});function scheduleArray(_e,et){return new Observable(function(tt){var rt=0;return et.schedule(function(){rt===_e.length?tt.complete():(tt.next(_e[rt++]),tt.closed||this.schedule())})})}function fromArrayLike(_e){return new Observable(function(et){for(var tt=0;tt<_e.length&&!et.closed;tt++)et.next(_e[tt]);et.complete()})}function internalFromArray(_e,et){return et?scheduleArray(_e,et):fromArrayLike(_e)}function isScheduler(_e){return _e&&isFunction$1(_e.schedule)}function last$1(_e){return _e[_e.length-1]}function popScheduler(_e){return isScheduler(last$1(_e))?_e.pop():void 0}function of(){for(var _e=[],et=0;et<arguments.length;et++)_e[et]=arguments[et];var tt=popScheduler(_e);return tt?scheduleArray(_e,tt):internalFromArray(_e)}function throwError(_e,et){var tt=isFunction$1(_e)?_e:function(){return _e},rt=function(nt){return nt.error(tt())};return new Observable(et?function(nt){return et.schedule(rt,0,nt)}:rt)}var NotificationKind;(function(_e){_e.NEXT="N",_e.ERROR="E",_e.COMPLETE="C"})(NotificationKind||(NotificationKind={}));(function(){function _e(et,tt,rt){this.kind=et,this.value=tt,this.error=rt,this.hasValue=et==="N"}return _e.prototype.observe=function(et){return observeNotification(this,et)},_e.prototype.do=function(et,tt,rt){var nt=this,st=nt.kind,ot=nt.value,at=nt.error;return st==="N"?et==null?void 0:et(ot):st==="E"?tt==null?void 0:tt(at):rt==null?void 0:rt()},_e.prototype.accept=function(et,tt,rt){var nt;return isFunction$1((nt=et)===null||nt===void 0?void 0:nt.next)?this.observe(et):this.do(et,tt,rt)},_e.prototype.toObservable=function(){var et=this,tt=et.kind,rt=et.value,nt=et.error,st=tt==="N"?of(rt):tt==="E"?throwError(function(){return nt}):tt==="C"?EMPTY:0;if(!st)throw new TypeError("Unexpected notification kind "+tt);return st},_e.createNext=function(et){return new _e("N",et)},_e.createError=function(et){return new _e("E",void 0,et)},_e.createComplete=function(){return _e.completeNotification},_e.completeNotification=new _e("C"),_e})();function observeNotification(_e,et){var tt,rt,nt,st=_e,ot=st.kind,at=st.value,ut=st.error;if(typeof ot!="string")throw new TypeError('Invalid notification, missing "kind"');ot==="N"?(tt=et.next)===null||tt===void 0||tt.call(et,at):ot==="E"?(rt=et.error)===null||rt===void 0||rt.call(et,ut):(nt=et.complete)===null||nt===void 0||nt.call(et)}createErrorClass(function(_e){return function(){_e(this),this.name="EmptyError",this.message="no elements in sequence"}});createErrorClass(function(_e){return function(){_e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}});createErrorClass(function(_e){return function(et){_e(this),this.name="NotFoundError",this.message=et}});createErrorClass(function(_e){return function(et){_e(this),this.name="SequenceError",this.message=et}});createErrorClass(function(_e){return function(et){et===void 0&&(et=null),_e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=et}});function filter(_e,et){return operate(function(tt,rt){var nt=0;tt.subscribe(new OperatorSubscriber(rt,function(st){return _e.call(et,st,nt++)&&rt.next(st)}))})}(function(_e){__extends$1(et,_e);function et(){var tt=_e!==null&&_e.apply(this,arguments)||this;return tt.activeGroups=0,tt.teardownAttempted=!1,tt}return et.prototype.unsubscribe=function(){this.teardownAttempted=!0,this.activeGroups===0&&_e.prototype.unsubscribe.call(this)},et})(OperatorSubscriber);class Bus{constructor(){m$2(this,"agents",{}),m$2(this,"comm",new Subject)}setAgentFor(et,tt,rt){let nt=this.getActionMapping(et);nt[tt]=rt}getAgentFor(et,tt){return this.getActionMapping(et)[tt]}publish(et,tt,rt){return Promise.resolve().then(()=>{var nt;return(nt=this.getAgentFor(et,tt))!=null?nt:explorer.requestAgentFor(et,tt)}).then(nt=>{const st=nt.activate(et,tt,rt);return this.comm.next({res:et,action:tt,input:rt,output:st}),st})}subscribe(et,tt){return this.comm.asObservable().pipe(filter(rt=>rt.res===et&&rt.action===tt))}getActionMapping(et){let tt=this.agents[et];if(typeof tt>"u"){tt={};for(let rt of Object.values(ACTION))tt[rt]=null;this.agents[et]=tt}return tt}}class BusFactory{static get instance(){return this._instance=this._instance||new Bus}}m$2(BusFactory,"_instance");const y$1=class{constructor(et){m$2(this,"managedResource"),m$2(this,"handlerFor",{comment:y$1.defaultHandler,copy:y$1.defaultHandler,create:y$1.defaultHandler,delete:y$1.defaultHandler,export:y$1.defaultHandler,initialize:y$1.defaultHandler,manage:y$1.defaultHandler,properties:y$1.defaultHandler,move:y$1.defaultHandler,open:y$1.defaultHandler,print:y$1.defaultHandler,publish:y$1.defaultHandler,search:y$1.defaultHandler,share:y$1.defaultHandler,distribute:y$1.defaultHandler,pages_list:y$1.defaultHandler,register:y$1.defaultHandler,trash:y$1.defaultHandler,publish_moodle:y$1.defaultHandler,restore:y$1.defaultHandler}),this.managedResource=et,this.initialize()}initialize(){for(let et in Object.values(ACTION))this.handlerFor[et]=y$1.defaultHandler;this.registerHandlers()}setHandler(et,tt){BusFactory.instance.setAgentFor(this.managedResource,et,this),this.handlerFor[et]=tt}getHandler(et){return this.handlerFor[et]}activate(et,tt,rt){return Promise.resolve().then(()=>this.getHandler(tt).bind(this)(rt))}};let AbstractBusAgent=y$1;m$2(AbstractBusAgent,"defaultHandler",function(_e){throw new Error(ERROR_CODE.NOT_SUPPORTED)});console.log("Blog agent loading....");class BlogAgent extends AbstractBusAgent{constructor(){super(RESOURCE.BLOG),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance()),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers(),console.log("Blog agent initialized!")}registerHandlers(){this.setHandler(ACTION.OPEN,this.openBlog),this.setHandler(ACTION.CREATE,this.createBlog),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.onUpdateProps),this.setHandler(ACTION.PRINT,this.onPrint),this.setHandler(ACTION.PUBLISH,this.onPublish)}onPrint(et){window.open(`/blog/print/blog#/print/${et.resourceId}?comments=${et.withComments||!0}`,"_blank")}openBlog(et){window.open(`/blog#/view/${et.resourceId}`,"_self")}createBlog(et){window.open("/blog#/edit/new","_self")}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}onUpdateProps(et){const tt={resources:et.resources};return alert("TODO: update properties"),Promise.resolve().then(()=>tt)}async onPublish(et){const tt=new FormData;return tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(rt=>{tt.append("activityType[]",rt)}),et.subjectArea.forEach(rt=>{tt.append("subjectArea[]",rt)}),et.age.forEach(rt=>{tt.append("age[]",rt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(rt=>{tt.append("keyWords[]",rt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}/blog/print/blog#/print/${et.resourceId}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName),this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}}).then(this.checkHttpResponse)}}const factory$2=()=>new BlogAgent;class FolderAgent extends AbstractBusAgent{constructor(){super(RESOURCE.FOLDER),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance({paramsSerializer:function(et){return Object.entries(et).map(tt=>tt[1]instanceof Array?tt[1].map(rt=>`${tt[0]}=${encodeURIComponent(rt)}`).join("&"):["string","number","boolean"].indexOf(typeof tt[1])>=0?`${tt[0]}=${encodeURIComponent(tt[1])}`:"").join("&")}})),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers()}registerHandlers(){this.setHandler(ACTION.INITIALIZE,this.createContext),this.setHandler(ACTION.SEARCH,this.searchContext),this.setHandler(ACTION.CREATE,this.createFolder),this.setHandler(ACTION.OPEN,this.listSubfolders),this.setHandler(ACTION.MOVE,this.moveToFolder),this.setHandler(ACTION.DELETE,this.deleteFolders),this.setHandler(ACTION.TRASH,this.trashFolders),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.updateFolder)}createContext(et){return this.http.get("/explorer/context",{queryParams:this.toQueryParams(et)}).then(this.checkHttpResponse)}searchContext(et){return this.http.get("/explorer/resources",{queryParams:this.toQueryParams(et)}).then(this.checkHttpResponse)}createFolder(et){return this.http.post("/explorer/folders",this.createFolderToBodyParams(et)).then(this.checkHttpResponse)}updateFolder(et){return this.http.put(`/explorer/folders/${et.folderId}`,this.createFolderToBodyParams(et)).then(this.checkHttpResponse)}moveToFolder(et){return this.http.post(`/explorer/folders/${et.folderId}/move`,this.moveToBodyParams(et)).then(this.checkHttpResponse)}listSubfolders(et){return this.http.get(`/explorer/folders/${et}/move`).then(this.checkHttpResponse)}deleteFolders(et){return this.http.deleteJson("/explorer",et).then(this.checkHttpResponse)}trashFolders({trash:et,resourceType:tt,...rt}){return this.http.putJson(`/explorer/${et?"trash":"restore"}`,rt).then(this.checkHttpResponse)}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}toQueryParams(et){let tt={application:et.app,start_idx:et.pagination.startIdx,page_size:et.pagination.pageSize,resource_type:et.types};return et.orders&&(tt.order_by=Object.entries(et.orders).map(rt=>`${rt[0]}:${rt[1]}`)),et.filters&&Object.assign(tt,et.filters),typeof et.search=="string"&&(tt.search=et.search),tt}createFolderToBodyParams(et){return{application:et.app,resourceType:et.type,parentId:et.parentId,name:et.name}}moveToBodyParams(et){return{application:et.application,resourceType:this.managedResource,resourceIds:et.resourceIds,folderIds:et.folderIds}}}const factory$1=()=>new FolderAgent;console.log("Mindmap agent loading....");class MindmapAgent extends AbstractBusAgent{constructor(){super(RESOURCE.MINDMAP),m$2(this,"ctx",null),m$2(this,"http",TransportFrameworkFactory.instance().newHttpInstance()),m$2(this,"checkHttpResponse",et=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return et}),this.registerHandlers(),console.log("Mindmap agent initialized!")}registerHandlers(){this.setHandler(ACTION.OPEN,this.openMindmap),this.setHandler(ACTION.CREATE,this.createMindmap),this.setHandler(ACTION.MANAGE,this.onManage),this.setHandler(ACTION.UPD_PROPS,this.onUpdateProps),this.setHandler(ACTION.PRINT,this.onPrint),this.setHandler(ACTION.PUBLISH,this.onPublish)}onPrint(et){window.open(`/blog/print/blog#/print/${et.resourceId}?comments=${et.withComments||!0}`,"_blank")}openMindmap(et){window.open(`/mindmap/id/${et.resourceId}`,"_self")}createMindmap(et){window.open("/blog#/edit/new","_self")}onManage(et){const tt={genericProps:[{key:PROP_KEY.TITLE},{key:PROP_KEY.IMAGE},{key:PROP_KEY.URL}]};return Promise.resolve().then(()=>tt)}onUpdateProps(et){const tt={resources:et.resources};return alert("TODO: update properties"),Promise.resolve().then(()=>tt)}async onPublish(et){const tt=new FormData;return tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(rt=>{tt.append("activityType[]",rt)}),et.subjectArea.forEach(rt=>{tt.append("subjectArea[]",rt)}),et.age.forEach(rt=>{tt.append("age[]",rt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(rt=>{tt.append("keyWords[]",rt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}/blog/print/blog#/print/${et.resourceId}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName),this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}}).then(this.checkHttpResponse)}}const factory=()=>new MindmapAgent;class AgentLoader{load(et){let tt=appNameForResource[et];if(typeof tt!="string")throw new Error(`The resource type ${et} is not supported yet.`);switch(tt){case APP.EXPLORER:factory$1();break;case APP.BLOG:factory$2();break;case APP.MINDMAP:factory();break;default:throw new Error(`The resource type ${et} is not supported yet.`)}return Promise.resolve()}}class ExplorerContext{constructor(et,tt){m$2(this,"searchParameters"),m$2(this,"context"),m$2(this,"bus"),m$2(this,"latestResults",new Subject),this.context=null,this.bus=ExplorerFrameworkFactory.instance().getBus(),this.searchParameters={types:et,app:tt,filters:{},pagination:{startIdx:0,pageSize:20}}}clear(){this.searchParameters.filters={owner:!0,shared:!0,public:!0},this.searchParameters.pagination.startIdx=0,this.searchParameters.pagination.pageSize=20,this.context=null}isInitialized(){return this.context!==null}getContext(){if(this.context!==null)return this.context}getSearchParameters(){return this.searchParameters}duplicateSearchParameters(){return JSON.parse(JSON.stringify(this.searchParameters))}latestResources(){return this.latestResults.asObservable()}initialize(){const et=this.duplicateSearchParameters();return Promise.resolve().then(()=>this.bus.publish(RESOURCE.FOLDER,ACTION.INITIALIZE,et)).then(tt=>{if(this.context=tt,!this.context)throw new Error(ERROR_CODE.UNKNOWN);return this.latestResults.next({input:et,output:this.context}),this.context})}getResources(){const et=this.duplicateSearchParameters();return this.bus.publish(RESOURCE.FOLDER,ACTION.SEARCH,et).then(tt=>{let rt=tt;if(!rt)throw new Error(ERROR_CODE.UNKNOWN);return this.latestResults.next({input:et,output:rt}),rt})}getSubFolders(et){throw new Error("Method not implemented.")}createFolder(et,tt,rt){const nt={app:this.searchParameters.app,name:rt,parentId:tt,type:et};return this.bus.publish(RESOURCE.FOLDER,ACTION.CREATE,nt).then(st=>{let ot=st;if(!ot)throw new Error(ERROR_CODE.UNKNOWN);return ot})}updateFolder(et,tt,rt,nt){const st={folderId:et,app:this.searchParameters.app,name:nt,parentId:rt,type:tt};return this.bus.publish(RESOURCE.FOLDER,ACTION.UPD_PROPS,st).then(ot=>{let at=ot;if(!at)throw new Error(ERROR_CODE.UNKNOWN);return at})}copy(et,tt,rt){const nt={application:this.searchParameters.app,folderId:et,resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.COPY,nt).then(st=>{})}move(et,tt,rt){const nt={application:this.searchParameters.app,folderId:et,resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.MOVE,nt).then(st=>{})}delete(et,tt){const rt={application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:et,folderIds:tt};return this.bus.publish(RESOURCE.FOLDER,ACTION.DELETE,rt).then(nt=>{})}trash(et,tt,rt){const nt={trash:et,application:this.searchParameters.app,resourceType:this.searchParameters.types[0],resourceIds:tt,folderIds:rt};return this.bus.publish(RESOURCE.FOLDER,ACTION.TRASH,nt).then(st=>{})}manageProperties(et,tt){const rt={resources:tt};return this.bus.publish(et,ACTION.MANAGE,rt).then(nt=>{let st=nt;if(!st)throw new Error(ERROR_CODE.UNKNOWN);return st})}updateProperties(et,tt,rt){const nt={resources:tt,props:rt};return this.bus.publish(et,ACTION.UPD_PROPS,nt).then(st=>{let ot=st;if(!ot)throw new Error(ERROR_CODE.UNKNOWN);return ot})}publish(et,tt){return this.bus.publish(et,ACTION.PUBLISH,tt).then(rt=>{let nt=rt;if(!nt)throw new Error(ERROR_CODE.UNKNOWN);return nt})}}class ExplorerFramework{constructor(){m$2(this,"_agentLoader")}get agentLoader(){return this._agentLoader||(this._agentLoader=new AgentLoader),this._agentLoader}setAgentLoader(et){et&&(this._agentLoader=et)}requestAgentFor(et,tt){return this.agentLoader.load(et).then(()=>{let rt=this.getBus().getAgentFor(et,tt);if(!rt)throw new Error(ERROR_CODE.AGENT_NOT_FOUND);return rt})}createContext(et,tt){return new ExplorerContext(et,tt)}getBus(){return BusFactory.instance}}const explorer=new ExplorerFramework;class ExplorerFrameworkFactory{static instance(){return explorer}}const RESOURCE={FOLDER:"folder",BLOG:"blog",EXERCISE:"exercise",MINDMAP:"mindmap"},appNameForResource={folder:APP.EXPLORER,blog:APP.BLOG,exercise:APP.EXERCIZER,mindmap:APP.MINDMAP},ACTION={INITIALIZE:"initialize",SEARCH:"search",CREATE:"create",OPEN:"open",MANAGE:"manage",UPD_PROPS:"properties",COMMENT:"comment",DELETE:"delete",TRASH:"trash",RESTORE:"restore",MOVE:"move",COPY:"copy",EXPORT:"export",SHARE:"share",PRINT:"print",PAGES_LIST:"pages_list",DISTRIBUTE:"distribute",REGISTER:"register",PUBLISH:"publish",PUBLISH_MOODLE:"publish_moodle"},FOLDER={BIN:"bin",DEFAULT:"default"},PROP_KEY={TITLE:"title",IMAGE:"image",COLOR:"color",DESCRIPTION:"description",URL:"url"},ASYNC_DATA_NAME={SESSION_READY:"sessionReady",LANG_READY:"langReady",SKIN_READY:"skinReady",OVERRIDE_READY:"overrideReady"};class Promisified{constructor(){m$2(this,"_resolution"),m$2(this,"_rejection"),m$2(this,"_promise",new Promise((et,tt)=>{this._resolution=et,this._rejection=tt}))}get promise(){return this._promise}resolve(et){this._resolution&&this._resolution(et)}reject(et){this._rejection&&this._rejection(et)}}class NotifyFramework{constructor(){m$2(this,"promises",{}),m$2(this,"subject",new Subject)}asyncData(et){return typeof this.promises[et]>"u"&&(this.promises[et]=new Promisified),this.promises[et]}onSessionReady(){return this.asyncData(ASYNC_DATA_NAME.SESSION_READY)}onLangReady(){return this.asyncData(ASYNC_DATA_NAME.LANG_READY)}onSkinReady(){return this.asyncData(ASYNC_DATA_NAME.SKIN_READY)}onOverridesReady(){return this.asyncData(ASYNC_DATA_NAME.OVERRIDE_READY)}promisify(){return new Promisified}events(){return this.subject}}const notify=new NotifyFramework,LAYER_NAME={WIDGETS:"widgets",EXPLORER:"explorer"},EVENT_NAME={USERPREF_CHANGED:"userprefChanged",SEARCH_RESULTED:"searchResulted"};function getDefaultExportFromCjs(_e){return _e&&_e.__esModule&&Object.prototype.hasOwnProperty.call(_e,"default")?_e.default:_e}var axios$3={exports:{}},axios$2={exports:{}},bind$2=function(_e,et){return function(){for(var tt=new Array(arguments.length),rt=0;rt<tt.length;rt++)tt[rt]=arguments[rt];return _e.apply(et,tt)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray(_e){return toString.call(_e)==="[object Array]"}function isUndefined(_e){return typeof _e>"u"}function isBuffer(_e){return _e!==null&&!isUndefined(_e)&&_e.constructor!==null&&!isUndefined(_e.constructor)&&typeof _e.constructor.isBuffer=="function"&&_e.constructor.isBuffer(_e)}function isArrayBuffer(_e){return toString.call(_e)==="[object ArrayBuffer]"}function isFormData(_e){return typeof FormData<"u"&&_e instanceof FormData}function isArrayBufferView(_e){var et;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?et=ArrayBuffer.isView(_e):et=_e&&_e.buffer&&_e.buffer instanceof ArrayBuffer,et}function isString(_e){return typeof _e=="string"}function isNumber(_e){return typeof _e=="number"}function isObject(_e){return _e!==null&&typeof _e=="object"}function isPlainObject(_e){if(toString.call(_e)!=="[object Object]")return!1;var et=Object.getPrototypeOf(_e);return et===null||et===Object.prototype}function isDate(_e){return toString.call(_e)==="[object Date]"}function isFile(_e){return toString.call(_e)==="[object File]"}function isBlob(_e){return toString.call(_e)==="[object Blob]"}function isFunction(_e){return toString.call(_e)==="[object Function]"}function isStream(_e){return isObject(_e)&&isFunction(_e.pipe)}function isURLSearchParams(_e){return typeof URLSearchParams<"u"&&_e instanceof URLSearchParams}function trim$1(_e){return _e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(_e,et){if(!(_e===null||typeof _e>"u"))if(typeof _e!="object"&&(_e=[_e]),isArray(_e))for(var tt=0,rt=_e.length;tt<rt;tt++)et.call(null,_e[tt],tt,_e);else for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&et.call(null,_e[nt],nt,_e)}function merge(){var _e={};function et(nt,st){isPlainObject(_e[st])&&isPlainObject(nt)?_e[st]=merge(_e[st],nt):isPlainObject(nt)?_e[st]=merge({},nt):isArray(nt)?_e[st]=nt.slice():_e[st]=nt}for(var tt=0,rt=arguments.length;tt<rt;tt++)forEach(arguments[tt],et);return _e}function extend(_e,et,tt){return forEach(et,function(rt,nt){tt&&typeof rt=="function"?_e[nt]=bind$1(rt,tt):_e[nt]=rt}),_e}function stripBOM(_e){return _e.charCodeAt(0)===65279&&(_e=_e.slice(1)),_e}var utils$9={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim:trim$1,stripBOM},utils$8=utils$9;function encode(_e){return encodeURIComponent(_e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(_e,et,tt){if(!et)return _e;var rt;if(tt)rt=tt(et);else if(utils$8.isURLSearchParams(et))rt=et.toString();else{var nt=[];utils$8.forEach(et,function(ot,at){ot===null||typeof ot>"u"||(utils$8.isArray(ot)?at=at+"[]":ot=[ot],utils$8.forEach(ot,function(ut){utils$8.isDate(ut)?ut=ut.toISOString():utils$8.isObject(ut)&&(ut=JSON.stringify(ut)),nt.push(encode(at)+"="+encode(ut))}))}),rt=nt.join("&")}if(rt){var st=_e.indexOf("#");st!==-1&&(_e=_e.slice(0,st)),_e+=(_e.indexOf("?")===-1?"?":"&")+rt}return _e},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(_e,et){return this.handlers.push({fulfilled:_e,rejected:et}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(_e){this.handlers[_e]&&(this.handlers[_e]=null)};InterceptorManager$1.prototype.forEach=function(_e){utils$7.forEach(this.handlers,function(et){et!==null&&_e(et)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,transformData$1=function(_e,et,tt){return utils$6.forEach(tt,function(rt){_e=rt(_e,et)}),_e},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(_e){return!!(_e&&_e.__CANCEL__)}),isCancel$1}var utils$5=utils$9,normalizeHeaderName$1=function(_e,et){utils$5.forEach(_e,function(tt,rt){rt!==et&&rt.toUpperCase()===et.toUpperCase()&&(_e[et]=tt,delete _e[rt])})},enhanceError,hasRequiredEnhanceError;function requireEnhanceError(){return hasRequiredEnhanceError||(hasRequiredEnhanceError=1,enhanceError=function(_e,et,tt,rt,nt){return _e.config=et,tt&&(_e.code=tt),_e.request=rt,_e.response=nt,_e.isAxiosError=!0,_e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},_e}),enhanceError}var createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var _e=requireEnhanceError();return createError=function(et,tt,rt,nt,st){var ot=new Error(et);return _e(ot,tt,rt,nt,st)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var _e=requireCreateError();return settle=function(et,tt,rt){var nt=rt.config.validateStatus;!rt.status||!nt||nt(rt.status)?et(rt):tt(_e("Request failed with status code "+rt.status,rt.config,null,rt.request,rt))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var _e=utils$9;return cookies=_e.isStandardBrowserEnv()?function(){return{write:function(et,tt,rt,nt,st,ot){var at=[];at.push(et+"="+encodeURIComponent(tt)),_e.isNumber(rt)&&at.push("expires="+new Date(rt).toGMTString()),_e.isString(nt)&&at.push("path="+nt),_e.isString(st)&&at.push("domain="+st),ot===!0&&at.push("secure"),document.cookie=at.join("; ")},read:function(et){var tt=document.cookie.match(new RegExp("(^|;\\s*)("+et+")=([^;]*)"));return tt?decodeURIComponent(tt[3]):null},remove:function(et){this.write(et,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(_e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(_e)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(_e,et){return et?_e.replace(/\/+$/,"")+"/"+et.replace(/^\/+/,""):_e}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var _e=requireIsAbsoluteURL(),et=requireCombineURLs();return buildFullPath=function(tt,rt){return tt&&!_e(rt)?et(tt,rt):rt},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var _e=utils$9,et=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(tt){var rt={},nt,st,ot;return tt&&_e.forEach(tt.split(`
64
+ `),function(at){if(ot=at.indexOf(":"),nt=_e.trim(at.substr(0,ot)).toLowerCase(),st=_e.trim(at.substr(ot+1)),nt){if(rt[nt]&&et.indexOf(nt)>=0)return;nt==="set-cookie"?rt[nt]=(rt[nt]?rt[nt]:[]).concat([st]):rt[nt]=rt[nt]?rt[nt]+", "+st:st}}),rt},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var _e=utils$9;return isURLSameOrigin=_e.isStandardBrowserEnv()?function(){var et=/(msie|trident)/i.test(navigator.userAgent),tt=document.createElement("a"),rt;function nt(st){var ot=st;return et&&(tt.setAttribute("href",ot),ot=tt.href),tt.setAttribute("href",ot),{href:tt.href,protocol:tt.protocol?tt.protocol.replace(/:$/,""):"",host:tt.host,search:tt.search?tt.search.replace(/^\?/,""):"",hash:tt.hash?tt.hash.replace(/^#/,""):"",hostname:tt.hostname,port:tt.port,pathname:tt.pathname.charAt(0)==="/"?tt.pathname:"/"+tt.pathname}}return rt=nt(window.location.href),function(st){var ot=_e.isString(st)?nt(st):st;return ot.protocol===rt.protocol&&ot.host===rt.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var _e=utils$9,et=requireSettle(),tt=requireCookies(),rt=buildURL$1,nt=requireBuildFullPath(),st=requireParseHeaders(),ot=requireIsURLSameOrigin(),at=requireCreateError();return xhr=function(ut){return new Promise(function(lt,dt){var ct=ut.data,ft=ut.headers;_e.isFormData(ct)&&delete ft["Content-Type"];var ht=new XMLHttpRequest;if(ut.auth){var mt=ut.auth.username||"",vt=ut.auth.password?unescape(encodeURIComponent(ut.auth.password)):"";ft.Authorization="Basic "+btoa(mt+":"+vt)}var wt=nt(ut.baseURL,ut.url);if(ht.open(ut.method.toUpperCase(),rt(wt,ut.params,ut.paramsSerializer),!0),ht.timeout=ut.timeout,ht.onreadystatechange=function(){if(!(!ht||ht.readyState!==4)&&!(ht.status===0&&!(ht.responseURL&&ht.responseURL.indexOf("file:")===0))){var yt="getAllResponseHeaders"in ht?st(ht.getAllResponseHeaders()):null,xt=!ut.responseType||ut.responseType==="text"?ht.responseText:ht.response,St={data:xt,status:ht.status,statusText:ht.statusText,headers:yt,config:ut,request:ht};et(lt,dt,St),ht=null}},ht.onabort=function(){!ht||(dt(at("Request aborted",ut,"ECONNABORTED",ht)),ht=null)},ht.onerror=function(){dt(at("Network Error",ut,null,ht)),ht=null},ht.ontimeout=function(){var yt="timeout of "+ut.timeout+"ms exceeded";ut.timeoutErrorMessage&&(yt=ut.timeoutErrorMessage),dt(at(yt,ut,"ECONNABORTED",ht)),ht=null},_e.isStandardBrowserEnv()){var gt=(ut.withCredentials||ot(wt))&&ut.xsrfCookieName?tt.read(ut.xsrfCookieName):void 0;gt&&(ft[ut.xsrfHeaderName]=gt)}if("setRequestHeader"in ht&&_e.forEach(ft,function(yt,xt){typeof ct>"u"&&xt.toLowerCase()==="content-type"?delete ft[xt]:ht.setRequestHeader(xt,yt)}),_e.isUndefined(ut.withCredentials)||(ht.withCredentials=!!ut.withCredentials),ut.responseType)try{ht.responseType=ut.responseType}catch(yt){if(ut.responseType!=="json")throw yt}typeof ut.onDownloadProgress=="function"&&ht.addEventListener("progress",ut.onDownloadProgress),typeof ut.onUploadProgress=="function"&&ht.upload&&ht.upload.addEventListener("progress",ut.onUploadProgress),ut.cancelToken&&ut.cancelToken.promise.then(function(yt){!ht||(ht.abort(),dt(yt),ht=null)}),ct||(ct=null),ht.send(ct)})},xhr}var utils$4=utils$9,normalizeHeaderName=normalizeHeaderName$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(_e,et){!utils$4.isUndefined(_e)&&utils$4.isUndefined(_e["Content-Type"])&&(_e["Content-Type"]=et)}function getDefaultAdapter(){var _e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(_e=requireXhr()),_e}var defaults$2={adapter:getDefaultAdapter(),transformRequest:[function(_e,et){return normalizeHeaderName(et,"Accept"),normalizeHeaderName(et,"Content-Type"),utils$4.isFormData(_e)||utils$4.isArrayBuffer(_e)||utils$4.isBuffer(_e)||utils$4.isStream(_e)||utils$4.isFile(_e)||utils$4.isBlob(_e)?_e:utils$4.isArrayBufferView(_e)?_e.buffer:utils$4.isURLSearchParams(_e)?(setContentTypeIfUnset(et,"application/x-www-form-urlencoded;charset=utf-8"),_e.toString()):utils$4.isObject(_e)?(setContentTypeIfUnset(et,"application/json;charset=utf-8"),JSON.stringify(_e)):_e}],transformResponse:[function(_e){if(typeof _e=="string")try{_e=JSON.parse(_e)}catch{}return _e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(_e){return _e>=200&&_e<300}};defaults$2.headers={common:{Accept:"application/json, text/plain, */*"}};utils$4.forEach(["delete","get","head"],function(_e){defaults$2.headers[_e]={}});utils$4.forEach(["post","put","patch"],function(_e){defaults$2.headers[_e]=utils$4.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$2,utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=defaults_1;function throwIfCancellationRequested(_e){_e.cancelToken&&_e.cancelToken.throwIfRequested()}var dispatchRequest$1=function(_e){throwIfCancellationRequested(_e),_e.headers=_e.headers||{},_e.data=transformData(_e.data,_e.headers,_e.transformRequest),_e.headers=utils$3.merge(_e.headers.common||{},_e.headers[_e.method]||{},_e.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(tt){delete _e.headers[tt]});var et=_e.adapter||defaults$1.adapter;return et(_e).then(function(tt){return throwIfCancellationRequested(_e),tt.data=transformData(tt.data,tt.headers,_e.transformResponse),tt},function(tt){return isCancel(tt)||(throwIfCancellationRequested(_e),tt&&tt.response&&(tt.response.data=transformData(tt.response.data,tt.response.headers,_e.transformResponse))),Promise.reject(tt)})},utils$2=utils$9,mergeConfig$2=function(_e,et){et=et||{};var tt={},rt=["url","method","data"],nt=["headers","auth","proxy","params"],st=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ot=["validateStatus"];function at(ct,ft){return utils$2.isPlainObject(ct)&&utils$2.isPlainObject(ft)?utils$2.merge(ct,ft):utils$2.isPlainObject(ft)?utils$2.merge({},ft):utils$2.isArray(ft)?ft.slice():ft}function ut(ct){utils$2.isUndefined(et[ct])?utils$2.isUndefined(_e[ct])||(tt[ct]=at(void 0,_e[ct])):tt[ct]=at(_e[ct],et[ct])}utils$2.forEach(rt,function(ct){utils$2.isUndefined(et[ct])||(tt[ct]=at(void 0,et[ct]))}),utils$2.forEach(nt,ut),utils$2.forEach(st,function(ct){utils$2.isUndefined(et[ct])?utils$2.isUndefined(_e[ct])||(tt[ct]=at(void 0,_e[ct])):tt[ct]=at(void 0,et[ct])}),utils$2.forEach(ot,function(ct){ct in et?tt[ct]=at(_e[ct],et[ct]):ct in _e&&(tt[ct]=at(void 0,_e[ct]))});var lt=rt.concat(nt).concat(st).concat(ot),dt=Object.keys(_e).concat(Object.keys(et)).filter(function(ct){return lt.indexOf(ct)===-1});return utils$2.forEach(dt,ut),tt},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2;function Axios$1(_e){this.defaults=_e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(_e){typeof _e=="string"?(_e=arguments[1]||{},_e.url=arguments[0]):_e=_e||{},_e=mergeConfig$1(this.defaults,_e),_e.method?_e.method=_e.method.toLowerCase():this.defaults.method?_e.method=this.defaults.method.toLowerCase():_e.method="get";var et=[dispatchRequest,void 0],tt=Promise.resolve(_e);for(this.interceptors.request.forEach(function(rt){et.unshift(rt.fulfilled,rt.rejected)}),this.interceptors.response.forEach(function(rt){et.push(rt.fulfilled,rt.rejected)});et.length;)tt=tt.then(et.shift(),et.shift());return tt};Axios$1.prototype.getUri=function(_e){return _e=mergeConfig$1(this.defaults,_e),buildURL(_e.url,_e.params,_e.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(_e){Axios$1.prototype[_e]=function(et,tt){return this.request(mergeConfig$1(tt||{},{method:_e,url:et,data:(tt||{}).data}))}});utils$1.forEach(["post","put","patch"],function(_e){Axios$1.prototype[_e]=function(et,tt,rt){return this.request(mergeConfig$1(rt||{},{method:_e,url:et,data:tt}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function _e(et){this.message=et}return _e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},_e.prototype.__CANCEL__=!0,Cancel_1=_e,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var _e=requireCancel();function et(tt){if(typeof tt!="function")throw new TypeError("executor must be a function.");var rt;this.promise=new Promise(function(st){rt=st});var nt=this;tt(function(st){nt.reason||(nt.reason=new _e(st),rt(nt.reason))})}return et.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},et.source=function(){var tt,rt=new et(function(nt){tt=nt});return{token:rt,cancel:tt}},CancelToken_1=et,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(_e){return function(et){return _e.apply(null,et)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(_e){return typeof _e=="object"&&_e.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig$3=mergeConfig$2,defaults$3=defaults_1;function createInstance(_e){var et=new Axios(_e),tt=bind(Axios.prototype.request,et);return utils.extend(tt,Axios.prototype,et),utils.extend(tt,et),tt}var axios$1=createInstance(defaults$3);axios$1.Axios=Axios;axios$1.create=function(_e){return createInstance(mergeConfig$3(axios$1.defaults,_e))};axios$1.Cancel=requireCancel();axios$1.CancelToken=requireCancelToken();axios$1.isCancel=requireIsCancel();axios$1.all=function(_e){return Promise.all(_e)};axios$1.spread=requireSpread();axios$1.isAxiosError=requireIsAxiosError();axios$2.exports=axios$1;axios$2.exports.default=axios$1;(function(_e){_e.exports=axios$2.exports})(axios$3);const axios=getDefaultExportFromCjs(axios$3.exports),loadedScripts$1={};class Http{constructor(et){m$2(this,"axios"),m$2(this,"_latestResponse"),this.axios=axios.create(et)}setCdn(et){et&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=et,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const tt=arguments[1];return tt.startsWith("/infra/public")&&(arguments[1]=et+tt),/^\/([^\/]*)\/public/.test(tt)&&(arguments[1]=et+tt),tt.startsWith("/assets")&&(arguments[1]=et+tt),tt=="/conf/public"&&(arguments[1]=tt),tt.startsWith("http")&&(arguments[1]=tt),this.baseOpen.apply(this,arguments)})}toAxiosConfig(et){if(et){const tt=Object.assign({},this.axios.defaults);return et.headers&&(tt.headers&&(tt.headers=Object.assign({},this.axios.defaults.headers)),Object.assign(tt.headers,et.headers)),et.responseType&&(tt.responseType=et.responseType),et.queryParams&&(tt.params=Object.assign({},et.queryParams)),tt}else return this.axios.defaults}toCdnUrl(et){const tt=ConfigurationFrameworkFactory.instance().Platform.cdnDomain;if((tt==null?void 0:tt.length)>0&&et!=="/conf/public"){const rt=""+et;(rt.startsWith("/infra/public")||rt.startsWith("/assets")||/^\/([^\/]*)\/public/.test(rt))&&(et=tt+rt)}return et}mapAxiosError(et,tt){return et.response?this._latestResponse=et.response:et.request?this._latestResponse={status:408,statusText:ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:ERROR_CODE.UNKNOWN},!tt||tt.disableNotifications,this._latestResponse}mapAxiosResponse(et,tt){return this._latestResponse=et,et.data}get latestResponse(){return this._latestResponse}get(et,tt){return this.axios.get(this.toCdnUrl(et),this.toAxiosConfig(tt)).then(rt=>this.mapAxiosResponse(rt,tt)).catch(rt=>this.mapAxiosError(rt,tt))}post(et,tt,rt){return this.axios.post(et,tt,this.toAxiosConfig(rt)).then(nt=>this.mapAxiosResponse(nt,rt)).catch(nt=>this.mapAxiosError(nt,rt))}postFile(et,tt,rt){const nt=this.toAxiosConfig(rt);return nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"],this.axios.post(et,tt,nt).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}postJson(et,tt,rt){const nt=this.toAxiosConfig();return nt.headers&&(nt.headers["Content-Type"]="application/json"),this.axios.post(et,tt,this.toAxiosConfig(rt)).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}put(et,tt,rt){return this.axios.put(et,tt,this.toAxiosConfig(rt)).then(nt=>this.mapAxiosResponse(nt,rt)).catch(nt=>this.mapAxiosError(nt,rt))}putJson(et,tt,rt){const nt=this.toAxiosConfig(rt);return nt.headers&&(nt.headers["Content-Type"]="application/json"),this.axios.put(et,tt,nt).then(st=>this.mapAxiosResponse(st,rt)).catch(st=>this.mapAxiosError(st,rt))}delete(et,tt){return this.axios.delete(et,this.toAxiosConfig(tt)).then(rt=>this.mapAxiosResponse(rt,tt)).catch(rt=>this.mapAxiosError(rt,tt))}deleteJson(et,tt){return this.axios.delete(et,{data:tt}).then(rt=>this.mapAxiosResponse(rt)).catch(rt=>this.mapAxiosError(rt))}getScript(et,tt,rt){const nt=rt??"exports",st=this.toAxiosConfig(tt);return st.headers&&(st.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(et),st).then(ot=>this.mapAxiosResponse(ot,tt)).then(ot=>{try{const at=`"use strict";var ${nt.split(".")[0]}={};${ot};return ${nt};`;return Function(at)()}catch{return ot}}).catch(ot=>{throw this.mapAxiosError(ot,tt),ot})}loadScript(et,tt){return loadedScripts$1[et]?Promise.resolve():this.getScript(et,tt).then(rt=>{loadedScripts$1[et]=!0})}}class TransportFramework{constructor(){m$2(this,"_http",new Http)}get http(){return this._http}newHttpInstance(et){return new Http(et)}}const transport=new TransportFramework;class TransportFrameworkFactory{static instance(){return transport}}const http$2=transport.http;class Session{constructor(){m$2(this,"_me",null),m$2(this,"_currentLanguage",""),m$2(this,"_notLoggedIn",!0),m$2(this,"_description"),m$2(this,"_profile")}get currentLanguage(){return this._currentLanguage}get notLoggedIn(){return this._notLoggedIn}get description(){return this._description}get avatarUrl(){let et=this.description.photo;return(!et||et==="no-avatar.jpg"||et==="no-avatar.svg")&&(et=ConfigurationFrameworkFactory.instance().Platform.theme.basePath+"/img/illustrations/no-avatar.svg"),et}get user(){return this._me}get currentApp(){return configure.Platform.apps.currentApp}async initialize(){return http$2.get("/auth/oauth2/userinfo").then(et=>{if(http$2.latestResponse.status<200||http$2.latestResponse.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return this.setCurrentModel(et),this._notLoggedIn?this.loadDefaultLanguage():this.loadUserLanguage()}).then(et=>(this.setCurrentLanguage(et),this.loadDescription())).then(()=>this.getUserProfile()).then(()=>{notify.onSessionReady().resolve(this._me)}).catch(et=>{if(et===ERROR_CODE.NOT_LOGGED_IN)return Promise.resolve();notify.onSessionReady().reject(et)})}setCurrentModel(et){this._me=et,this._notLoggedIn=!(et&&et.sessionMetadata&&et.sessionMetadata.userId)}hasWorkflow(et){var tt;return et===void 0||((tt=this._me)==null?void 0:tt.authorizedActions.findIndex(rt=>rt.name===et))!==-1}hasRight(et,tt){if(tt==="owner")return et.owner&&et.owner.userId===this._me.userId;const rt=tt.right||tt,nt=et.shared.filter(ot=>(this._me.groupsIds||[]).indexOf(ot.groupId)!==-1||ot.userId===this._me.userId).find(ot=>ot[rt]||ot.manager)!==void 0,st=tt.workflow?this.hasWorkflow(tt.workflow):!0;return nt&&st}get latestQuotaAndUsage(){return http$2.get(`/workspace/quota/user/${this._me.userId}`).then(et=>(this._description&&(this._description.quota=et.quota,this._description.storage=et.storage),et)).catch(()=>({quota:0,storage:0}))}setCurrentLanguage(et){this._currentLanguage=et,notify.onLangReady().resolve(et)}loadDefaultLanguage(){return http$2.get("/locale").then(et=>et.locale).catch(()=>this._currentLanguage)}loadDescription(){return Promise.all([http$2.get("/userbook/api/person",{requestName:"refreshAvatar"}),http$2.get("/directory/userbook/"+this._me.userId)]).then(et=>(et[0].status==="ok"&&et[0].result&&et[0].result.length>0?this._description=et[0].result[0]:this._description={},this._description.type&&!this._description.profiles&&(this._description.profiles=this._description.type),Object.assign(this._description,et[1]),this._description))}get profile(){return this._profile}getUserProfile(){return http$2.get("/userbook/api/person").then(et=>et.result).then(et=>this._profile=et[0].type)}loadUserLanguage(){return http$2.get("/userbook/preference/language").then(et=>{try{return JSON.parse(et.preference)["default-domain"]}catch{return this.loadDefaultLanguage()}}).catch(()=>this.loadDefaultLanguage())}getEmailValidationInfos(){return http$2.get("/directory/user/mailstate")}checkEmail(et){return http$2.put("/directory/user/mailstate",{email:et})}tryEmailValidation(et){return http$2.post("/directory/user/mailstate",{key:et})}getMobileValidationInfos(){return http$2.get("/directory/user/mobilestate")}checkMobile(et){return http$2.put("/directory/user/mobilestate",{mobile:et})}tryMobileValidation(et){return http$2.post("/directory/user/mobilestate",{key:et})}getMfaInfos(){return http$2.get("/auth/user/mfa/code")}tryMfaCode(et){return http$2.post("/auth/user/mfa/code",{key:et})}}class SessionFramework{constructor(){m$2(this,"session",new Session)}initialize(){return this.session.initialize()}login(et,tt,rt,nt){const st=new FormData;return st.append("email",et),st.append("password",tt),typeof rt<"u"&&st.append("rememberMe",""+rt),typeof nt<"u"&&st.append("secureLocation",""+nt),transport.http.post("/auth/login",st,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(transport.http.latestResponse.status){case 200:throw ERROR_CODE.MALFORMED_DATA}})}logout(){return transport.http.get("/auth/logout").finally(()=>{})}}const session=new SessionFramework;class Theme{constructor(){m$2(this,"_conf"),m$2(this,"_loaded"),m$2(this,"skinName",""),m$2(this,"themeName",""),m$2(this,"skin","raw"),m$2(this,"themeUrl","/assets/themes/raw/default/"),m$2(this,"templateOverrides",{}),m$2(this,"portalTemplate","/assets/themes/raw/portal.html"),m$2(this,"basePath",""),m$2(this,"logoutCallback","/"),m$2(this,"skins",[]),m$2(this,"is1D",!1),m$2(this,"is2D",!1),m$2(this,"_onSkinReady",notify.onSkinReady()),m$2(this,"_onOverrideReady",notify.onOverridesReady())}initialize(et){return notify.onSessionReady().promise.then(()=>this.load(et))}get version(){return configure.Platform.deploymentTag}get cdnDomain(){return configure.Platform.cdnDomain}async onFullyReady(){return await this._loaded,this}onSkinReady(){return this._onSkinReady.promise}onOverrideReady(){return this._onOverrideReady.promise}async getConf(et){var tt;return this._conf=(tt=this._conf)!=null?tt:await transport.http.getScript("/assets/theme-conf.js",{queryParams:{v:et??this.version}},"exports.conf"),this._conf}load(et){return et=et??this.version,this._loaded||(this._loaded=(session.session.notLoggedIn?this.loadDisconnected(et):this.loadConnected(et)).then(async()=>{var tt,rt;const nt=await this.listSkins();this.is1D=((tt=nt.find(st=>st.child===this.skin))==null?void 0:tt.parent)==="panda",this.is2D=((rt=nt.find(st=>st.child===this.skin))==null?void 0:rt.parent)==="theme-open-ent"})),this._loaded}loadDisconnected(et){return new Promise((tt,rt)=>{transport.http.get("/skin",{queryParams:{v:this.version}}).then(nt=>{this.skin=nt.skin,this.themeUrl=`${this.cdnDomain}/assets/themes/${nt.skin}/skins/default/`,this.basePath=this.themeUrl+"../../",this._onSkinReady.resolve(this),transport.http.get(`/assets/themes/${nt.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:et}}).then(st=>{this.templateOverrides=st,this._onOverrideReady.resolve(st),tt()}).catch(st=>{if(transport.http.latestResponse.status===404)tt();else throw st})}).catch(nt=>{this._onSkinReady.reject(nt),this._onOverrideReady.reject(nt),rt()})})}loadConnected(et){return new Promise((tt,rt)=>{this.loadDefaultTheme(et).then(()=>{this._onSkinReady.resolve(this),transport.http.get(`/assets/themes/${this.skin}/template/override.json`,{disableNotifications:!0,queryParams:{v:et}}).then(nt=>{this.templateOverrides=nt,this._onOverrideReady.resolve(nt),tt()}).catch(nt=>{if(transport.http.latestResponse.status===404)tt(),this._onSkinReady.reject(nt),this._onOverrideReady.reject(nt);else throw nt})})})}async loadDefaultTheme(et){return session.session.notLoggedIn?Promise.reject():transport.http.get("/theme",{queryParams:{_:et}}).then(tt=>{this.skinName=tt.skinName,this.themeName=tt.themeName,this.themeUrl=tt.skin,this.basePath=`${this.cdnDomain}${this.themeUrl}../../`,this.skin=this.themeUrl.split("/assets/themes/")[1].split("/")[0],this.portalTemplate=`${this.cdnDomain}/assets/themes/${this.skin}/portal.html`,this.logoutCallback=tt.logoutCallback})}listThemes(){return transport.http.get("/themes")}async setDefaultTheme(et){await transport.http.get("/userbook/api/edit-userbook-info?prop=theme-"+this.skin+"&value="+et._id),await this.loadDefaultTheme(this.version)}listSkins(){return this.skins.length>0?Promise.resolve(this.skins):this.getConf().then(et=>{const tt=et.overriding.find(rt=>rt.child===this.skin);return tt!=null&&tt.group?this.skins=this.skins.concat(et.overriding.filter(rt=>rt.group===tt.group)):this.skins=this.skins.concat(et.overriding),this.skins})}async getHelpPath(){var et;const tt=(await this.listSkins()).find(rt=>rt.child===this.skin);return(et=tt==null?void 0:tt.help)!=null?et:"/help"}}const bundle$1={},promises$1={},defaultDiacriticsRemovalMap$1=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];class Idiom{translate(et,tt){et=et??"";let rt=bundle$1[et]===void 0?et:bundle$1[et];if(tt&&typeof tt=="object")for(let nt in tt)typeof tt[nt]<"u"&&(rt=rt.replace(new RegExp("\\${"+nt+"}","g"),""+tt[nt]));return rt}addBundlePromise(et){return this.loadBundlePromise(session.session.currentLanguage,et)}addBundle(et,tt){this.loadBundle(session.session.currentLanguage,et,tt)}loadBundlePromise(et,tt){return this.loadBundle(et,tt),promises$1[tt]}loadBundle(et,tt,rt){const nt=promises$1[tt];if(nt)rt&&nt.then(rt).catch(rt);else{const st=new Promisified;promises$1[tt]=st.promise;const ot={};et&&(ot["Accept-Language"]=et),transport.http.get(tt,{headers:ot}).then(at=>{Object.assign(bundle$1,at),typeof rt=="function"&&rt(),st.resolve()}).catch(at=>{typeof rt=="function"&&rt(),st.reject()})}}addTranslations(et,tt){notify.onLangReady().promise.then(rt=>{this.loadBundle(rt,et+"/"+rt+".json",tt)})}addAllTranslations(et){return et&&et.length>0?notify.onLangReady().promise.then(tt=>Promise.all(et.map(rt=>this.loadBundlePromise(tt,rt+"/"+tt+".json")))).then(()=>{}):Promise.reject()}addKeys(et){for(var tt in et)typeof bundle$1[tt]!="string"&&(bundle$1[tt]=et[tt])}removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap$1.length;tt++)et=et.replace(defaultDiacriticsRemovalMap$1[tt].letters,defaultDiacriticsRemovalMap$1[tt].base);return et}}class UserPreferences{constructor(){m$2(this,"data",{})}get(et){return this.data[et]}load(et,tt){return transport.http.get("/userbook/preference/"+et).then(rt=>{try{return JSON.parse(rt.preference)}catch{return tt??{}}}).then(rt=>(this.data[et]=rt??{},rt))}update(et,tt){return tt!==void 0&&(this.data[et]=tt),this}save(et){return transport.http.putJson("/userbook/preference/"+et,this.data[et])}}class User{constructor(){m$2(this,"_me",null),m$2(this,"_keepOpenOnLogout",!1),m$2(this,"_preferences",new UserPreferences),m$2(this,"_bookmarkedApps",[])}get keepOpenOnLogout(){return this._keepOpenOnLogout}get preferences(){return this._preferences}get bookmarkedApps(){return this._bookmarkedApps}initialize(et){return this.loadPublicConf(),notify.onSessionReady().promise.then(tt=>{tt&&this.setCurrentModel(tt)})}setCurrentModel(et){this._me=et,this._preferences=new UserPreferences,this.loadBookmarks()}loadPublicConf(){return transport.http.get("/conf/public").then(et=>(this._keepOpenOnLogout=(et==null?void 0:et.keepOpenOnLogout)||!1,et))}async loadBookmarks(){await transport.http.get("/userbook/preference/apps").then(et=>{et.preference||(et.preference=null);const tt=JSON.parse(et.preference);let rt;if(tt&&tt.length&&typeof tt.concat=="function"){this._bookmarkedApps=tt,rt={bookmarks:tt.map(ot=>ot.name),applications:[]},transport.http.putJson("/userbook/preference/apps",rt);return}else rt=tt;rt||(rt={bookmarks:[],applications:[]});let nt=!0;const st=[];rt.bookmarks.forEach((ot,at)=>{const ut=this._me.apps.find(lt=>lt.name===ot);if(ut){let lt=Object.assign({},ut);this._bookmarkedApps.push(lt)}else st.push(ot),nt=!1}),st.forEach(ot=>{let at=rt.bookmarks.indexOf(ot);at!==-1&&rt.bookmarks.splice(at,1)}),nt||transport.http.putJson("/userbook/preference/apps",rt)})}loadAppPrefs(et){return this.preferences.load(et,{})}saveAppPrefs(et){return this.preferences.save(et)}loadLanguage(){return this.preferences.load("language",{"default-domain":session.session.currentLanguage}).then(et=>et["default-domain"])}saveLanguage(et){return this.preferences.update("language",{"default-domain":et}).save("language")}}const http$1=transport==null?void 0:transport.http;class AppConf{constructor(){m$2(this,"_publicConf",{}),m$2(this,"_currentApp"),m$2(this,"_appConf",{})}get currentApp(){var et;return(et=this._currentApp)!=null?et:null}setCurrentApp(et){return this._currentApp=et,this}async initialize(et,tt=!1){tt||this.setCurrentApp(et),await Promise.all([this.getPublicConf(et),this.loadI18n(et)])}async getPublicConf(et){return this._publicConf[et]||(this._publicConf[et]=await http$1.get(`/${et}/conf/public`,{queryParams:{_:configure.Platform.deploymentTag}})),this._publicConf[et]}async getWebAppConf(et){var tt;let rt;return this._appConf[et]||(await http$1.get("/applications-list")).apps.forEach(nt=>{if(nt!=null&&nt.prefix){const st=nt.prefix.replace("/","");this._appConf[st]=nt}else nt!=null&&nt.name&&nt.name.toLowerCase()==et&&(rt=nt)}),(tt=this._appConf[et])!=null?tt:rt}async loadI18n(et){return await notify.onLangReady().promise,configure.Platform.idiom.addBundlePromise(`/${et}/i18n`)}}class Analytics{constructor(){m$2(this,"_status","void"),m$2(this,"_params")}get status(){return this._status}xiti(){return this.parametersWithCheck("xiti",!1)}parameters(et){return this.parametersWithCheck(et,!0)}async parametersWithCheck(et,tt){return this.initialize().promise.then(rt=>!tt||rt.type===et||rt.type==="multiple"?rt[et]:void 0)}initialize(){return this._params||(this._params=notify.promisify(),this._status="pending",Promise.all([transport.http.get("/analyticsConf"),transport.http.get("/xiti/config")]).then(async et=>{var tt;if(!et||!et[0]||!et[0].type)throw ERROR_CODE.MALFORMED_DATA;et[1]&&et[1].active&&(et[0].xiti=await this.initializeXiti(et[1])),(tt=this._params)==null||tt.resolve(et[0]),this._status="ready"}).catch(et=>{var tt;throw this._status="failed",(tt=this._params)==null||tt.reject(),et})),this._params}async initializeXiti(et){var tt;if(!et.structureMap||!configure.Platform.apps.currentApp)return;const rt=await notify.onSessionReady().promise,nt=session.session.description;let st;for(let dt of rt.structures){const ct=et.structureMap[dt];if(ct&&ct.collectiviteId&&ct.UAI){st=ct;break}}if(!st||!st.active)return;const ot=await configure.Platform.apps.getPublicConf(configure.Platform.apps.currentApp);if(!ot)return;const at=ot.xiti;if(!at||!at.LIBELLE_SERVICE||!st.UAI)return;function ut(dt){let ct="";for(let ft=0;ft<dt.length;ft++)ct+=dt.charCodeAt(ft);return ct}const lt={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"};return{LIBELLE_SERVICE:at.LIBELLE_SERVICE,TYPE:at.OUTIL?"TIERS":"NATIF",OUTIL:at.OUTIL?at.OUTIL:"",STRUCT_ID:st.collectiviteId,STRUCT_UAI:st.UAI,PROJET:st.projetId?st.projetId:et.ID_PROJET,EXPLOITANT:et.ID_EXPLOITANT,PLATFORME:st.plateformeId?st.plateformeId:et.ID_PLATEFORME,ID_PERSO:ut(rt.userId),PROFILE:nt.profiles&&nt.profiles.length>0&&(tt=lt[nt.profiles[0]])!=null?tt:""}}}class ConfigurationFramework{constructor(){m$2(this,"Platform",{deploymentTag:"",cdnDomain:"",apps:new AppConf,theme:new Theme,analytics:new Analytics,idiom:new Idiom,listLanguages:()=>transport.http.get("/languages")}),m$2(this,"School",{}),m$2(this,"User",new User)}async initialize(et,tt){if(!et){const nt=lt=>(lt<10?"0":"")+lt.toFixed(0),st=new Date,ot=st.getFullYear(),at=st.getMonth()+1,ut=st.getDate();et=`${ot}${nt(at)}${nt(ut)}`}const rt=et;this.Platform.deploymentTag=et,typeof tt=="string"&&tt.length>0&&(this.Platform.cdnDomain=tt),transport.http.setCdn(this.Platform.cdnDomain),await Promise.all([this.Platform.theme.initialize(rt),notify.onSessionReady().promise.then(nt=>this.Platform.idiom.addBundlePromise("/i18n")),this.User.initialize(rt)])}}const configure=new ConfigurationFramework;class ConfigurationFrameworkFactory{static instance(){return configure}}const WIDGET_POSITION={LEFT:"left",RIGHT:"right"},firstLevelWidgets=["birthday","mood","calendar-widget","notes"],secondLevelWidgets=["agenda-widget","carnet-de-bord","my-apps","rss-widget","bookmark-widget","cursus-widget","maxicours-widget","school-widget"],defaultWidgetPosition={"last-infos-widget":WIDGET_POSITION.LEFT,birthday:WIDGET_POSITION.LEFT,"calendar-widget":WIDGET_POSITION.RIGHT,"carnet-de-bord":WIDGET_POSITION.LEFT,"record-me":WIDGET_POSITION.RIGHT,mood:WIDGET_POSITION.LEFT,"my-apps":WIDGET_POSITION.RIGHT,notes:WIDGET_POSITION.RIGHT,"rss-widget":WIDGET_POSITION.LEFT,"bookmark-widget":WIDGET_POSITION.RIGHT,qwant:WIDGET_POSITION.RIGHT,"qwant-junior":WIDGET_POSITION.LEFT,"agenda-widget":WIDGET_POSITION.LEFT,"cursus-widget":WIDGET_POSITION.LEFT,"maxicours-widget":WIDGET_POSITION.RIGHT,"universalis-widget":WIDGET_POSITION.RIGHT,"briefme-widget":WIDGET_POSITION.LEFT,"school-widget":WIDGET_POSITION.LEFT},defaultWidgetOrder={"school-widget":0,"my-apps":10,"record-me":15,"last-infos-widget":20,qwant:30,"qwant-junior":30,"universalis-widget":35,"agenda-widget":40,"bookmark-widget":50,"carnet-de-bord":60,"maxicours-widget":70,"cursus-widget":80,"briefme-widget":90,"rss-widget":100,mood:110,birthday:120,"calendar-widget":130,notes:140};class WidgetFramework{constructor(){m$2(this,"_initialized"),m$2(this,"_widgets",[]),m$2(this,"_userPrefs",{})}initialize(et,tt){return this._initialized||(this._initialized=new Promisified,notify.onSessionReady().promise.then(rt=>{var nt;rt&&rt.widgets?(rt.widgets.forEach(st=>{this._widgets.push(new Widget(st))}),this.loadUserPrefs().then(()=>{var st;(st=this._initialized)==null||st.resolve()}).catch(st=>{var ot;(ot=this._initialized)==null||ot.reject()})):(nt=this._initialized)==null||nt.reject()})),this._initialized.promise}get list(){return this._widgets}lookup(et){return this._widgets.find(tt=>tt.platformConf.name===et)}lookupDefaultPosition(et){return defaultWidgetPosition[et]}get userPrefs(){return this._userPrefs}async loadUserPrefs(){await configure.User.preferences.load("widgets",{}).then(et=>this.applyUserPrefs(et))}saveUserPrefs(){return configure.User.preferences.update("widgets",this._userPrefs).save("widgets").then(()=>{notify.events().next({name:EVENT_NAME.USERPREF_CHANGED,layer:LAYER_NAME.WIDGETS})})}async applyUserPrefs(et){this._userPrefs=et??this._userPrefs;const tt=configure.Platform.theme,rt=[];tt.listSkins().then(nt=>{var st;const ot=((st=nt.find(ut=>ut.child===tt.skin))==null?void 0:st.parent)==="panda"?secondLevelWidgets:firstLevelWidgets;this._widgets=this._widgets.filter((ut,lt)=>{var dt,ct;const ft=ut.platformConf.name;return ot.indexOf(ft)!==-1?!1:(this._userPrefs[ft]||(this._userPrefs[ft]={index:(dt=defaultWidgetOrder[ft])!=null?dt:999,show:!0,position:ut.platformConf.position}),ut.platformConf.mandatory&&(this._userPrefs[ft].show=!0,this._userPrefs[ft].index=(ct=defaultWidgetOrder[ft])!=null?ct:999),ut.platformConf.i18n&&rt.push(ut.platformConf.i18n),ut.applyUserPref(this._userPrefs[ft]),!0)});const at=new Idiom;this._widgets=this._widgets.sort((ut,lt)=>{const dt=at.translate(`timeline.settings.${ut.platformConf.name}`).toLowerCase(),ct=at.translate(`timeline.settings.${lt.platformConf.name}`).toLowerCase();return dt<ct?-1:dt>ct?1:0})})}}class Widget{constructor(et){m$2(this,"_schoolConf",{}),m$2(this,"_userPref"),this._platformConf=et,this._userPref=null}get platformConf(){return this._platformConf}get schoolConf(){return this._schoolConf}get userPref(){return this._userPref}applyUserPref(et){var tt,rt;this._userPref=et,this._userPref.position=(rt=(tt=this._userPref.position)!=null?tt:widgets.lookupDefaultPosition(this._platformConf.name))!=null?rt:"left"}}const widgets=new WidgetFramework;transport==null||transport.http;var O$1;(O$1=session==null?void 0:session.session)==null||O$1.user;const x$1=class{constructor(et){m$2(this,"checkHttpResponse",tt=>{if(this.http.latestResponse.status>=300)throw this.http.latestResponse.statusText;return tt}),this.context=et}static register({application:et,resourceType:tt},rt){x$1.registry.set(`${et}:main`,rt),x$1.registry.set(`${et}:${tt}`,rt)}static findService({application:et,resourceType:tt},rt){const nt=x$1.registry.get(`${et}:${tt}`);if(nt===void 0)throw`Service not found: ${et}:${tt}`;return nt(rt)}static findMainService({application:et},tt){const rt=x$1.registry.get(`${et}:main`);if(rt===void 0)throw`Service not found: ${et}`;return rt(tt)}get http(){return this.context.http()}getShareReadUrl(et){return`/${this.getApplication()}/share/json/${et}?search=`}getSaveShareUrl(et){return`/${this.getApplication()}/share/resource/${et}`}gotoPrint(et,tt){window.open(this.getPrintUrl(et,tt),"_blank")}gotoView(et){window.open(this.getViewUrl(et),"_self")}gotoForm(et){window.open(this.getFormUrl(et),"_self")}async publish(et){const tt=new FormData;tt.append("title",et.title),tt.append("cover",et.cover),tt.append("coverName",et.cover.name),tt.append("coverType",et.cover.type),tt.append("teacherAvatar",et.teacherAvatar),tt.append("teacherAvatarName",et.teacherAvatar.name||`teacherAvatar_${et.userId}`),tt.append("teacherAvatarType",et.teacherAvatar.type),tt.append("language",et.language),et.activityType.forEach(nt=>{tt.append("activityType[]",nt)}),et.subjectArea.forEach(nt=>{tt.append("subjectArea[]",nt)}),et.age.forEach(nt=>{tt.append("age[]",nt.toString())}),tt.append("description",et.description),et.keyWords.split(",").forEach(nt=>{tt.append("keyWords[]",nt.trim())}),tt.append("licence",et.licence),tt.append("pdfUri",`${window.location.origin}${this.getPrintUrl(et.resourceEntId)}`),tt.append("application",et.application?et.application:""),tt.append("resourceId",et.resourceId),tt.append("teacherSchool",et.userStructureName);const rt=await this.http.post("/appregistry/library/resource",tt,{headers:{"Content-Type":"multipart/form-data"}});return this.checkHttpResponse(rt)}async createContext(et){const tt=await this.http.get("/explorer/context",{queryParams:this.toQueryParams(et)});return this.checkHttpResponse(tt)}async searchContext(et){const tt=await this.http.get("/explorer/resources",{queryParams:this.toQueryParams(et)});return this.checkHttpResponse(tt)}async createFolder(et){const tt=await this.http.post("/explorer/folders",this.createFolderToBodyParams(et));return this.checkHttpResponse(tt)}async updateFolder(et){const tt=await this.http.put(`/explorer/folders/${et.folderId}`,this.createFolderToBodyParams(et));return this.checkHttpResponse(tt)}async moveToFolder(et){const tt=await this.http.post(`/explorer/folders/${et.folderId}/move`,this.moveToBodyParams(et));return this.checkHttpResponse(tt)}async listSubfolders(et){const tt=await this.http.get(`/explorer/folders/${et}`);return this.checkHttpResponse(tt)}async deleteAll(et){const tt=await this.http.deleteJson("/explorer",et);return this.checkHttpResponse(tt)}async trashAll({resourceType:et,...tt}){const rt=await this.http.putJson("/explorer/trash",tt);return this.checkHttpResponse(rt)}async restoreAll({resourceType:et,...tt}){const rt=await this.http.putJson("/explorer/restore",tt);return this.checkHttpResponse(rt)}async getThumbnailPath(et){if(typeof et>"u")return et;if(typeof et=="string")if(et.startsWith("blob:")){const tt=await fetch(et).then(rt=>rt.blob());return`/workspace/document/${(await this.context.workspace().saveFile(tt,{visibility:"protected",application:this.getApplication()}))._id}`}else return et;else return`/workspace/document/${(await this.context.workspace().saveFile(et,{visibility:"protected",application:this.getApplication()}))._id}`}toQueryParams(et){let tt={application:et.app,start_idx:et.pagination.startIdx,page_size:et.pagination.pageSize,resource_type:et.types[0],trashed:et.trashed};if(et.orders&&Object.entries(et.orders).length){const[[rt,nt]]=Object.entries(et.orders);tt.order_by=`${rt}:${nt}`}return et.filters&&Object.assign(tt,et.filters),typeof et.search=="string"&&(tt.search=et.search),tt}createFolderToBodyParams(et){return{application:et.app,resourceType:et.type,parentId:et.parentId,name:et.name}}moveToBodyParams(et){return{application:et.application,resourceType:this.getResourceType(),resourceIds:et.resourceIds,folderIds:et.folderIds}}};let ResourceService=x$1;m$2(ResourceService,"registry",new Map);class BlogResourceService extends ResourceService{async update(et){const tt=await this.getThumbnailPath(et.thumbnail),rt=await this.http.put(`/blog/${et.entId}`,{trashed:et.trashed,_id:et.entId,title:et.name,thumbnail:tt,description:et.description,visibility:et.public?"PUBLIC":"OWNER",slug:et.public?et.slug:"","publish-type":et["publish-type"]||"RESTRAINT","comment-type":"IMMEDIATE"});return this.checkHttpResponse(rt),{thumbnail:tt,entId:et.entId}}getResourceType(){return RESOURCE.BLOG}getApplication(){return APP.BLOG}getFormUrl(et){return et?`/blog?folderid=${et}#/edit/new`:"/blog#/edit/new"}getViewUrl(et){return`/blog#/view/${et}`}getPrintUrl(et,tt){return`/blog/print/blog#/print/${et}?comments=${tt||!0}`}}ResourceService.register({application:RESOURCE.BLOG,resourceType:RESOURCE.BLOG},_e=>new BlogResourceService(_e));class MindmapResourceService extends ResourceService{async update(et){const tt=et.thumbnail?await this.getThumbnailPath(et.thumbnail):"",rt=await this.http.put(`/mindmap/${et.entId}`,{trashed:et.trashed,_id:et.entId,name:et.name,thumbnail:tt,description:et.description,visibility:et.public?"PUBLIC":"OWNER"});return this.checkHttpResponse(rt),{thumbnail:tt,entId:et.entId}}getResourceType(){return RESOURCE.MINDMAP}getApplication(){return APP.MINDMAP}getFormUrl(et){return et?`/mindmap?folderid=${et}/new`:"/mindmap/new"}getViewUrl(et){return`/mindmap/id/${et}`}getPrintUrl(et,tt){return`/mindmap/print/mindmap#/print/${et}?comments=${tt||!0}`}}ResourceService.register({application:RESOURCE.MINDMAP,resourceType:RESOURCE.MINDMAP},_e=>new MindmapResourceService(_e));const globalCache={},mutexPromise={};class CacheService{constructor(et){this.context=et}get http(){return this.context.http()}async fromCacheIfPossible(et,tt,rt){if(mutexPromise[et]&&await mutexPromise[et],globalCache[et])return globalCache[et];try{const nt=tt();mutexPromise[et]=nt;const st=await nt;return rt(st)&&(globalCache[et]=st),st}catch(nt){throw console.error(`Failed to retrieve value for: ${et}`,nt),nt}}clearCache(et){if(et)delete globalCache[et];else for(const tt in globalCache)globalCache.hasOwnProperty(tt)&&delete globalCache[tt]}async httpGet(et,tt){return this.fromCacheIfPossible(et,async()=>{const rt=await this.http.get(et,tt),nt={...this.http.latestResponse};return{value:rt,response:nt}},({response:rt})=>!(rt.status<200||rt.status>=300))}async httpGetJson(et,tt){const{response:rt,value:nt}=await this.httpGet(et,tt);if(rt.status<200||rt.status>=300)throw`Bad http status (${rt.status}) for url: ${et}`;return nt}}class ConfService{constructor(et){this.context=et}get http(){return this.context.http()}get cdnDomain(){return configure.Platform.cdnDomain}async getConf(et){const[tt,rt]=await Promise.all([this.getThemeConf(),this.getApplicationsList()]),[nt,st,ot]=await Promise.all([this.getTheme({conf:tt}),this.getWebAppConf({app:et,applications:rt}),this.getExtendedTheme()]);return{applications:rt,conf:tt,currentApp:st,theme:nt,extendedTheme:ot}}getCdnUrl(){console.warn("[getCdnUrl] Not implemented yet")}async savePreference(et,tt){this.http.putJson(`/userbook/preference/${et}`,tt)}async getPreference(et){const tt=await this.http.get(`/userbook/preference/${et}`);return JSON.parse(tt.preference)}async getThemeConf(et){return await this.http.getScript("/assets/theme-conf.js",{queryParams:{v:et}},"exports.conf")}async getExtendedTheme(){return await this.http.get("/assets/extended-theme.json")}async getApplicationsList(){return(await this.http.get("/applications-list")).apps}async getWebAppConf({app:et,applications:tt}){return tt.find(rt=>{if(rt!=null&&rt.prefix)return(rt==null?void 0:rt.prefix.replace("/",""))===et})}async getTheme({version:et,conf:tt}){const rt=await this.http.get("/theme",{queryParams:{_:et}}),nt=rt.themeName,st=tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).skins,ot="/assets/themes/ode-bootstrap",at=tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).bootstrapVersion,ut=`${this.cdnDomain}/assets/themes/${at}`,lt=`${ut}/skins/${rt.skinName}`,dt=(tt==null?void 0:tt.overriding.find(ct=>ct.child===nt).parent)==="panda";return{basePath:`${this.cdnDomain}${rt.skin}../../`,bootstrap:ot,bootstrapPath:ut,bootstrapUrl:lt,bootstrapVersion:at,is1d:dt,logoutCallback:rt.logoutCallback,skin:rt.skin.split("/assets/themes/")[1].split("/")[0],skinName:rt.skinName,skins:st,themeName:rt.themeName,themeUrl:rt.skin}}}class DirectoryService{constructor(et){this.odeServices=et}get http(){return this.odeServices.http()}get cache(){return this.odeServices.cache()}getAvatarUrl(et,tt,rt="100x100"){return tt==="user"?`/userbook/avatar/${et}?thumbnail=${rt}`:"/assets/img/illustrations/group-avatar.svg"}getDirectoryUrl(et,tt){return tt==="user"?`/userbook/annuaire#/${et}`:`/userbook/annuaire#/group-view/${et}`}async getBookMarks(){return(await this.cache.httpGetJson("/directory/sharebookmark/all")).map(({id:et,name:tt})=>({id:et,displayName:tt,members:[]}))}async getBookMarkById(et){const{groups:tt,id:rt,name:nt,users:st}=await this.http.get(`/directory/sharebookmark/${et}`);return{id:rt,displayName:nt,groups:tt.map(({name:ot,id:at})=>({displayName:ot,id:at})),users:st.map(({displayName:ot,id:at,profile:ut})=>({profile:ut,displayName:ot,firstName:"",lastName:"",login:"",id:at}))}}async saveBookmarks(et,{bookmarks:tt,groups:rt,users:nt}){this.cache.clearCache("/directory/sharebookmark/all");const st=nt.map(ct=>typeof ct=="string"?ct:ct.id),ot=rt.map(ct=>typeof ct=="string"?ct:ct.id),at=tt.map(async ct=>{if(typeof ct=="string"){const{displayName:ft,groups:ht,id:mt,users:vt}=await this.getBookMarkById(ct),wt=vt.map(yt=>yt.id),gt=ht.map(yt=>yt.id);return{displayName:ft,id:mt,members:[...gt,...wt]}}else return Promise.resolve(ct)}),ut=(await Promise.all(at)).map(ct=>ct.members).reduce((ct,ft)=>[...ct,...ft],[]),lt={name:et,members:[...st,...ot,...ut]},{id:dt}=await this.http.postJson("/directory/sharebookmark",lt);return{id:dt,displayName:et,members:lt.members}}}const loadedScripts={};class HttpService{constructor(et,tt){m$2(this,"axios"),m$2(this,"_latestResponse"),this.context=et,this.axios=axios.create(tt)}setCdn(et){et&&XMLHttpRequest&&!XMLHttpRequest.prototype.cdnUrl&&(XMLHttpRequest.prototype.cdnUrl=et,XMLHttpRequest.prototype.baseOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(){const tt=arguments[1];return tt.startsWith("/infra/public")&&(arguments[1]=et+tt),/^\/([^\/]*)\/public/.test(tt)&&(arguments[1]=et+tt),tt.startsWith("/assets")&&(arguments[1]=et+tt),tt=="/conf/public"&&(arguments[1]=tt),tt.startsWith("http")&&(arguments[1]=tt),this.baseOpen.apply(this,arguments)})}toAxiosConfig(et){if(et){const tt=Object.assign({},this.axios.defaults);return et.headers&&(tt.headers=Object.assign({},this.axios.defaults.headers),Object.assign(tt.headers,et.headers)),et.responseType&&(tt.responseType=et.responseType),et.queryParams&&(tt.params=Object.assign({},et.queryParams)),tt}else return this.axios.defaults}toCdnUrl(et){const tt=this.context.conf().getCdnUrl()||"";if(tt.length>0&&et!=="/conf/public"){const rt=""+et;(rt.startsWith("/infra/public")||rt.startsWith("/assets")||/^\/([^\/]*)\/public/.test(rt))&&(et=tt+rt)}return et}mapAxiosError(et,tt){return console.error("[HttpService]",et),et.response?this._latestResponse=et.response:et.request?this._latestResponse={status:408,statusText:ERROR_CODE.TIME_OUT}:this._latestResponse={status:500,statusText:ERROR_CODE.UNKNOWN},!tt||tt.disableNotifications,this._latestResponse}mapAxiosResponse(et,tt){return this._latestResponse=et,et.data}get latestResponse(){return this._latestResponse}async get(et,tt){try{const rt=await this.axios.get(this.toCdnUrl(et),this.toAxiosConfig(tt));return this.mapAxiosResponse(rt,tt)}catch(rt){return this.mapAxiosError(rt,tt)}}async post(et,tt,rt){try{const nt=await this.axios.post(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(nt,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async postFile(et,tt,rt){const nt=this.toAxiosConfig(rt);nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"];try{const st=await this.axios.post(et,tt,{...nt,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async postJson(et,tt,rt){const nt=this.toAxiosConfig();nt.headers&&(nt.headers["Content-Type"]="application/json");try{const st=await this.axios.post(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async put(et,tt,rt){try{const nt=await this.axios.put(et,tt,this.toAxiosConfig(rt));return this.mapAxiosResponse(nt,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async putFile(et,tt,rt){try{const nt=this.toAxiosConfig(rt);nt.headers&&nt.headers["Content-Type"]&&delete nt.headers["Content-Type"];const st=await this.axios.put(et,tt,{...nt,headers:{"Content-Type":"multipart/form-data"}});return this.mapAxiosResponse(st,rt)}catch(nt){return this.mapAxiosError(nt,rt)}}async putJson(et,tt,rt){const nt=this.toAxiosConfig(rt);nt.headers&&(nt.headers["Content-Type"]="application/json");try{const st=await this.axios.put(et,tt,nt);return this.mapAxiosResponse(st,rt)}catch(st){return this.mapAxiosError(st,rt)}}async delete(et,tt){try{const rt=await this.axios.delete(et,this.toAxiosConfig(tt));return this.mapAxiosResponse(rt,tt)}catch(rt){return this.mapAxiosError(rt,tt)}}async deleteJson(et,tt){try{const rt=await this.axios.delete(et,{data:tt});return this.mapAxiosResponse(rt)}catch(rt){return this.mapAxiosError(rt)}}getScript(et,tt,rt){const nt=rt??"exports",st=this.toAxiosConfig(tt);return st.headers&&(st.headers.Accept="application/javascript"),this.axios.get(this.toCdnUrl(et),st).then(ot=>this.mapAxiosResponse(ot,tt)).then(ot=>{try{const at=`"use strict";var ${nt.split(".")[0]}={};${ot};return ${nt};`;return Function(at)()}catch{return ot}}).catch(ot=>{throw this.mapAxiosError(ot,tt),ot})}loadScript(et,tt){return loadedScripts[et]?Promise.resolve():this.getScript(et,tt).then(rt=>{loadedScripts[et]=!0})}}class RightService{constructor(et){this.context=et}get session(){return this.context.session()}parseResourceRight(et){const tt=et.split(":");if(tt.length===2){if(tt[0]==="creator")return{id:tt[1],right:"creator",type:"creator"}}else return tt.length===3?{id:tt[1],right:tt[2],type:tt[0]}:void 0}parseResourceRights(et){return et.map(tt=>this.parseResourceRight(tt)).filter(tt=>tt!==void 0)}hasResourceRight({id:et,groupIds:tt},rt,nt){const st=nt.map(ot=>typeof ot=="string"?this.parseResourceRight(ot):ot).filter(ot=>ot!==void 0);for(const ot of st)if(ot.id===et&&ot.type==="creator"||ot.id===et&&ot.type==="user"&&ot.right===rt||tt.includes(ot.id)&&ot.type==="group"&&ot.right===rt)return!0;return!1}async sessionHasResourceRight(et,tt){try{const rt=await this.session.getUser();return!!rt&&this.hasResourceRight({groupIds:rt.groupsIds,id:rt.userId},et,tt)}catch(rt){return console.error(rt),!1}}async sessionHasAtLeastOneResourceRight(et,tt){for(const rt of et)if(await this.sessionHasResourceRight(rt,tt))return!0;return!1}async sessionHasResourceRightForEachList(et,tt){let rt=0;for(const nt of tt)await this.sessionHasResourceRight(et,nt)&&rt++;return rt===tt.length}async sessionHasAtLeastOneResourceRightForEachList(et,tt){for(const rt of et){let nt=0;for(const st of tt)await this.sessionHasResourceRight(rt,st)&&nt++;if(nt===tt.length)return!0}return!1}hasWorkflowRight(et,tt){return tt.findIndex(rt=>rt===et)!==-1}async sessionHasWorkflowRight(et){try{const tt=await this.session.getUser();return!!tt&&this.hasWorkflowRight(et,tt.authorizedActions.map(rt=>rt.name))}catch(tt){return console.error(tt),!1}}async sessionHasWorkflowRights(et){const tt={};try{const rt=await this.session.getUser();for(const nt of et)tt[nt]=!!rt&&this.hasWorkflowRight(nt,rt.authorizedActions.map(st=>st.name))}catch(rt){console.error(rt);for(const nt of et)tt[nt]=!1}return tt}}class SessionService{constructor(et){this.context=et}get http(){return this.context.http()}get cache(){return this.context.cache()}onLogout(){this.cache.clearCache()}onRefreshSession(){this.cache.clearCache()}async getSession(){const et=await this.getUser(),[tt,rt,nt,st,ot]=await Promise.all([this.getCurrentLanguage(et),this.latestQuotaAndUsage(et),this.loadDescription(et),this.getUserProfile(),this.getBookmarks(et)]);return{user:et,quotaAndUsage:rt,currentLanguage:tt,userDescription:nt,userProfile:st,bookmarkedApps:ot}}login(et,tt,rt,nt){const st=new FormData;return st.append("email",et),st.append("password",tt),typeof rt<"u"&&st.append("rememberMe",""+rt),typeof nt<"u"&&st.append("secureLocation",""+nt),this.http.post("/auth/login",st,{headers:{"content-type":"application/x-www-form-urlencoded"}}).finally(()=>{switch(this.http.latestResponse.status){case 200:throw ERROR_CODE.MALFORMED_DATA}})}logout(){return this.http.get("/auth/logout").finally(()=>{})}async latestQuotaAndUsage(et){try{return await this.http.get(`/workspace/quota/user/${et==null?void 0:et.userId}`)}catch(tt){return console.error(tt),{quota:0,storage:0}}}async getCurrentLanguage(et){const tt=(et==null?void 0:et.sessionMetadata)&&(et==null?void 0:et.sessionMetadata.userId);try{let rt;return tt?rt=await this.loadUserLanguage():rt=await this.loadDefaultLanguage(),rt}catch(rt){console.error(rt)}}async loadUserLanguage(){try{const et=await this.http.get("/userbook/preference/language");return JSON.parse(et.preference)["default-domain"]}catch{return await this.loadDefaultLanguage()}}async loadDefaultLanguage(){return(await this.cache.httpGetJson("/locale")).locale}async getUser(){const{response:et,value:tt}=await this.cache.httpGet("/auth/oauth2/userinfo");if(et.status<200||et.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return tt}hasWorkflow({workflowName:et,user:tt}){return et===void 0||(tt==null?void 0:tt.authorizedActions.findIndex(rt=>rt.name===et))!==-1}async loadDescription(et){try{const[tt,rt]=await Promise.all([this.getUserProfile({requestName:"refreshAvatar"}),this.http.get("/directory/userbook/"+(et==null?void 0:et.userId))]);return{...tt,...rt}}catch(tt){return console.error(tt),{}}}async getBookmarks(et){const tt=await this.http.get("/userbook/preference/apps");tt.preference||(tt.preference=null);const rt=JSON.parse(tt.preference);let nt;nt=rt,nt||(nt={bookmarks:[],applications:[]});let st=[];return nt.bookmarks.forEach((ot,at)=>{const ut=et==null?void 0:et.apps.find(lt=>lt.name===ot);if(ut){let lt=Object.assign({},ut);st.push(lt)}}),st}async getUserProfile(et){const{response:tt,value:rt}=await this.cache.httpGet("/userbook/api/person",et);if(tt.status<200||tt.status>=300)throw ERROR_CODE.NOT_LOGGED_IN;return rt.result[0].type}async isAdml(){const et=await this.getUser();return(et==null?void 0:et.functions.ADMIN_LOCAL)!==void 0}}class StringUtils{static removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap$1.length;tt++)et=et.replace(defaultDiacriticsRemovalMap$1[tt].letters,defaultDiacriticsRemovalMap$1[tt].base);return et}}class ShareService{constructor(et){this.context=et}get directory(){return this.context.directory()}get http(){return this.context.http()}get cache(){return this.context.cache()}async searchShareSubjects(et,tt,rt){const nt=StringUtils.removeAccents(rt).toLowerCase(),st=await this.cache.httpGetJson(`/${et}/share/json/${tt}?search=${rt}`),ot=st.users.visibles.filter(({username:ut,firstName:lt,lastName:dt,login:ct})=>{const ft=StringUtils.removeAccents(dt||"").toLowerCase(),ht=StringUtils.removeAccents(lt||"").toLowerCase(),mt=StringUtils.removeAccents(ut||"").toLowerCase(),vt=StringUtils.removeAccents(ct||"").toLowerCase();return mt.includes(nt)||ht.includes(nt)||ft.includes(nt)||vt.includes(nt)}).map(ut=>({avatarUrl:this.directory.getAvatarUrl(ut.id,"user"),directoryUrl:this.directory.getDirectoryUrl(ut.id,"user"),displayName:ut.username,id:ut.id,profile:ut.profile,type:"user"})),at=st.groups.visibles.filter(({name:ut})=>StringUtils.removeAccents(ut||"").toLowerCase().includes(nt)).map(ut=>({avatarUrl:this.directory.getAvatarUrl(ut.id,"group"),directoryUrl:this.directory.getDirectoryUrl(ut.id,"group"),displayName:ut.name,id:ut.id,type:"group"}));return[...(await this.directory.getBookMarks()).filter(({displayName:ut})=>StringUtils.removeAccents(ut||"").toLowerCase().includes(nt)).map(ut=>({avatarUrl:"",directoryUrl:"",profile:"",displayName:ut.displayName,id:ut.id,type:"sharebookmark"})),...ot,...at]}async getShareMapping(et){const tt=await this.cache.httpGetJson(`/${et}/rights/sharing`);for(const rt of Object.keys(tt))if(rt.includes(".")){const nt=rt.split(".")[1],st=tt[rt];delete tt[rt],tt[nt]=st}return tt}getActionsAvailableFor({id:et,type:tt},rt,nt){const st=(tt==="user"?rt.users.checked[et]:rt.groups.checked[et])||[],ot=Object.keys(nt),at=[];for(const ut of ot)nt[ut].filter(lt=>st.includes(lt)).length>0&&at.push(ut);return at}async getRightsForResource(et,tt){const rt=await this.directory.getBookMarks(),nt=this.context.resource(et,et).getShareReadUrl(tt),st=await this.cache.httpGetJson(nt),ot=await this.getShareMapping(et),at=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),ut=Object.keys(st.users.checked).map(ht=>st.users.visibles.find(mt=>mt.id===ht)).filter(ht=>ht!==void 0).map(ht=>{const mt=this.getActionsAvailableFor({id:ht.id,type:"user"},st,ot);return{id:ht.id,type:"user",displayName:ht.username,profile:ht.profile,avatarUrl:this.directory.getAvatarUrl(ht.id,"user"),directoryUrl:this.directory.getDirectoryUrl(ht.id,"user"),actions:mt.map(vt=>{const wt=at[vt];return{displayName:vt,id:vt,priority:wt.priority}})}}).sort((ht,mt)=>(ht.displayName||"").localeCompare(mt.displayName)),lt=Object.keys(st.groups.checked).map(ht=>st.groups.visibles.find(mt=>mt.id===ht)).filter(ht=>ht!==void 0).map(ht=>{const mt=this.getActionsAvailableFor({id:ht.id,type:"group"},st,ot);return{id:ht.id,type:"group",displayName:ht.name,profile:void 0,avatarUrl:this.directory.getAvatarUrl(ht.id,"group"),directoryUrl:this.directory.getDirectoryUrl(ht.id,"group"),actions:mt.map(vt=>{const wt=at[vt];return{displayName:vt,id:vt,priority:wt.priority}})}}).sort((ht,mt)=>(ht.displayName||"").localeCompare(mt.displayName)),dt=[...ut,...lt],ct=st.groups.visibles.map(({groupDisplayName:ht,id:mt,name:vt})=>({displayName:ht||vt,id:mt})),ft=st.users.visibles.map(({id:ht,profile:mt,username:vt,firstName:wt,lastName:gt,login:yt})=>({displayName:vt,firstName:wt,lastName:gt,login:yt,profile:mt,id:ht}));return{rights:dt,visibleBookmarks:rt,visibleGroups:ct,visibleUsers:ft}}async saveRights(et,tt,rt){const nt=await this.getShareMapping(et),st={bookmarks:{},groups:{},users:{}};for(const ut of rt){const lt=ut.actions.map(ct=>nt[ct.id]).reduce((ct,ft)=>[...ct,...ft],[]),dt=[...new Set(lt)];dt.length>0&&(ut.type==="user"?st.users[ut.id]=dt:ut.type==="group"?st.groups[ut.id]=dt:st.bookmarks[ut.id]=dt)}const ot=this.context.resource(et,et),at=ot.getSaveShareUrl(tt);return this.cache.clearCache(ot.getShareReadUrl(tt)),await this.http.putJson(at,st)}async getActionsForApp(et){const tt=await this.cache.httpGetJson("/infra/public/json/sharing-rights.json"),rt=await this.getShareMapping(et);return Object.keys(tt).map(nt=>{const st=tt[nt];return{displayName:nt,id:nt,priority:st.priority,requires:st.requires}}).filter(nt=>{var st;return((st=rt[nt.id])==null?void 0:st.length)>0}).sort((nt,st)=>nt.priority-st.priority)}}const S$1=class{constructor(){m$2(this,"wordExtensions",new Set),m$2(this,"excelExtensions",new Set),m$2(this,"pptExtensions",new Set),m$2(this,"fileExtensionMap",new Map),m$2(this,"csvContentType",new Set),m$2(this,"csvExtensions",new Set),m$2(this,"txtExtensions",new Set),m$2(this,"PDF","application/pdf"),m$2(this,"OCTET_STREAM","application/octet-stream"),this.txtExtensions.add("txt"),this.wordExtensions.add("doc"),this.wordExtensions.add("dot"),this.wordExtensions.add("docx"),this.wordExtensions.add("dotx"),this.wordExtensions.add("docm"),this.wordExtensions.add("dotm"),this.wordExtensions.add("odt"),this.wordExtensions.add("ott"),this.wordExtensions.add("oth"),this.wordExtensions.add("odm"),this.excelExtensions.add("xls"),this.excelExtensions.add("xlt"),this.excelExtensions.add("xla"),this.excelExtensions.add("xlsx"),this.excelExtensions.add("xltx"),this.excelExtensions.add("xlsm"),this.excelExtensions.add("xltm"),this.excelExtensions.add("xlam"),this.excelExtensions.add("xlsb"),this.excelExtensions.add("ods"),this.excelExtensions.add("ots"),this.pptExtensions.add("ppt"),this.pptExtensions.add("pot"),this.pptExtensions.add("pps"),this.pptExtensions.add("ppa"),this.pptExtensions.add("pptx"),this.pptExtensions.add("potx"),this.pptExtensions.add("ppsx"),this.pptExtensions.add("ppam"),this.pptExtensions.add("pptm"),this.pptExtensions.add("potm"),this.pptExtensions.add("ppsm"),this.pptExtensions.add("odp"),this.pptExtensions.add("otp"),this.csvExtensions.add("csv"),this.fileExtensionMap.set("doc","application/msword"),this.fileExtensionMap.set("dot","application/msword"),this.fileExtensionMap.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),this.fileExtensionMap.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),this.fileExtensionMap.set("docm","application/vnd.ms-word.document.macroEnabled.12"),this.fileExtensionMap.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),this.fileExtensionMap.set("xls","application/vnd.ms-excel"),this.fileExtensionMap.set("xlt","application/vnd.ms-excel"),this.fileExtensionMap.set("xla","application/vnd.ms-excel"),this.fileExtensionMap.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),this.fileExtensionMap.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),this.fileExtensionMap.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),this.fileExtensionMap.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),this.fileExtensionMap.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),this.fileExtensionMap.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),this.fileExtensionMap.set("ppt","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pot","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pps","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("ppa","application/vnd.ms-powerpoint"),this.fileExtensionMap.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),this.fileExtensionMap.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),this.fileExtensionMap.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),this.fileExtensionMap.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),this.fileExtensionMap.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),this.fileExtensionMap.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),this.fileExtensionMap.set("odt","application/vnd.oasis.opendocument.text"),this.fileExtensionMap.set("ott","application/vnd.oasis.opendocument.text-template"),this.fileExtensionMap.set("oth","application/vnd.oasis.opendocument.text-web"),this.fileExtensionMap.set("odm","application/vnd.oasis.opendocument.text-master"),this.fileExtensionMap.set("odg","application/vnd.oasis.opendocument.graphics"),this.fileExtensionMap.set("otg","application/vnd.oasis.opendocument.graphics-template"),this.fileExtensionMap.set("odp","application/vnd.oasis.opendocument.presentation"),this.fileExtensionMap.set("otp","application/vnd.oasis.opendocument.presentation-template"),this.fileExtensionMap.set("ods","application/vnd.oasis.opendocument.spreadsheet"),this.fileExtensionMap.set("ots","application/vnd.oasis.opendocument.spreadsheet-template"),this.fileExtensionMap.set("odc","application/vnd.oasis.opendocument.chart"),this.fileExtensionMap.set("odf","application/vnd.oasis.opendocument.formula"),this.fileExtensionMap.set("odb","application/vnd.oasis.opendocument.database"),this.fileExtensionMap.set("odi","application/vnd.oasis.opendocument.image"),this.fileExtensionMap.set("oxt","application/vnd.openofficeorg.extension"),this.fileExtensionMap.set("txt","text/plain"),this.csvContentType.add("text/comma-separated-values"),this.csvContentType.add("text/csv"),this.csvContentType.add("application/csv")}getContentTypeForExtension(et){if(this.fileExtensionMap.has(et))return this.fileExtensionMap.get(et)}getExtensionForContentType(et){for(const tt of Array.from(this.fileExtensionMap.keys()))if((this.fileExtensionMap.get(tt)||"").toLowerCase()==(et||"").toLowerCase())return tt;return null}isWordLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.wordExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.wordExtensions.has(tt):!1}isExcelLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.excelExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.excelExtensions.has(tt):!1}isCsvLike(et,tt){return this.csvContentType.has(et)?!0:et==this.OCTET_STREAM&&tt?this.csvExtensions.has(tt):!1}isPowerpointLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.pptExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.pptExtensions.has(tt):!1}isTxtLike(et,tt){const rt=this.getExtensionForContentType(et);return rt?this.txtExtensions.has(rt):et==this.OCTET_STREAM&&tt?this.txtExtensions.has(tt):!1}};let MimeTypeUtils=S$1;m$2(MimeTypeUtils,"INSTANCE",new S$1);class FileTypeUtils{static registerContentTypeToFileType(et){this.fileTypes.push(et)}static getFileType(et,tt=!1,rt){if(rt&&(rt=rt.trim()),!et)return"unknown";this.fileTypes||console.warn("[Element.role] should not have emptyRoles",this);for(let st of this.fileTypes||[]){const ot=st(et,tt);if(ot)return ot}const nt={csv:function(st){return!!MimeTypeUtils.INSTANCE.isCsvLike(st,rt)},doc:function(st){return MimeTypeUtils.INSTANCE.isWordLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("wordprocessing")!==-1},xls:function(st){return MimeTypeUtils.INSTANCE.isExcelLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("spreadsheet")!==-1||st.indexOf("ms-excel")!==-1},img:function(st){return st.indexOf("image")!==-1},pdf:function(st){return st.indexOf("pdf")!==-1||st==="application/x-download"},ppt:function(st){return MimeTypeUtils.INSTANCE.isPowerpointLike(st,rt)?!0:st.indexOf("document")!==-1&&st.indexOf("presentation")!==-1||st.indexOf("powerpoint")!==-1},txt:function(st){return MimeTypeUtils.INSTANCE.isTxtLike(st,rt)},video:function(st){return st.indexOf("video")!==-1},audio:function(st){return st.indexOf("audio")!==-1},zip:function(st){return st.indexOf("zip")!==-1||st.indexOf("rar")!==-1||st.indexOf("tar")!==-1||st.indexOf("7z")!==-1}};for(let st in nt)if(nt[st](et))return st;return"unknown"}}m$2(FileTypeUtils,"fileTypes",[]);class WorkspaceService{constructor(et){this.context=et}get http(){return this.context.http()}async saveFile(et,tt){const rt=et.name||"",nt=rt.split("."),st=et.type||"application/octet-stream",ot=nt.length>1?nt[nt.length-1]:"",at={"content-type":st,filename:rt,size:et.size,extension:ot,role:FileTypeUtils.getFileType(st,!1,ot)},ut=rt.replace("."+at.extension,""),lt=at.extension?ut+"."+at.extension:ut,dt=new FormData;dt.append("file",et,lt);const ct=[];return((tt==null?void 0:tt.visibility)==="public"||(tt==null?void 0:tt.visibility)==="protected")&&ct.push(`${tt.visibility}=true`),tt!=null&&tt.application&&ct.push(`application=${tt.application}`),at.role==="img"&&ct.push("quality=1"),tt!=null&&tt.parentId&&ct.push(`parentId=${tt.parentId}`),await this.http.postFile(`/workspace/document?${ct.join("&")}`,dt)}}const bundle={},promises={},defaultDiacriticsRemovalMap=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];class IdiomService{constructor(et){this.context=et}get http(){return this.context.http()}async getIdiom(et,tt){await Promise.all([this.addBundlePromise(et,"/i18n"),this.addBundlePromise(et,`/${tt}/i18n`)])}translate(et,tt){et=et??"";let rt=bundle[et]===void 0?et:bundle[et];if(tt&&typeof tt=="object")for(let nt in tt)typeof tt[nt]<"u"&&(rt=rt.replace(new RegExp("\\${"+nt+"}","g"),""+tt[nt]));return rt}addBundlePromise(et,tt){return this.loadBundlePromise(et,tt)}addBundle(et,tt,rt){this.loadBundle(et,tt,rt)}loadBundlePromise(et,tt){return this.loadBundle(et,tt),promises[tt]}loadBundle(et,tt,rt){const nt=promises[tt];if(nt)rt&&nt.then(rt).catch(rt);else{const st=new Promisified;promises[tt]=st.promise;const ot={};et&&(ot["Accept-Language"]=et),this.http.get(tt,{headers:ot}).then(at=>{Object.assign(bundle,at),typeof rt=="function"&&rt(),st.resolve()}).catch(at=>{typeof rt=="function"&&rt(),st.reject()})}}addTranslations(et,tt){notify.onLangReady().promise.then(rt=>{this.loadBundle(rt,et+"/"+rt+".json",tt)})}addAllTranslations(et){return et&&et.length>0?notify.onLangReady().promise.then(tt=>Promise.all(et.map(rt=>this.loadBundlePromise(tt,rt+"/"+tt+".json")))).then(()=>{}):Promise.reject()}addKeys(et){for(var tt in et)typeof bundle[tt]!="string"&&(bundle[tt]=et[tt])}removeAccents(et){for(var tt=0;tt<defaultDiacriticsRemovalMap.length;tt++)et=et.replace(defaultDiacriticsRemovalMap[tt].letters,defaultDiacriticsRemovalMap[tt].base);return et}}let ATTag;class AnalyticsService{constructor(_e){this.context=_e}get http(){return this.context.http()}get session(){return this.context.session()}async trackPageLoad(_e,et){const[tt]=await Promise.all([this.getXitiConfig(et.name.toLowerCase()),this.loadXitiScript()]);if(!tt||!ATInternet)return;let rt=tt.LIBELLE_SERVICE.default||null;for(let nt in tt.LIBELLE_SERVICE)if(nt!=="default"&&_e.indexOf(nt)>=0){rt=tt.LIBELLE_SERVICE[nt];break}ATTag=new ATInternet.Tracker.Tag({site:tt.STRUCT_ID}),ATTag.setProps({SERVICE:rt,TYPE:tt.TYPE,OUTIL:tt.OUTIL,UAI:tt.STRUCT_UAI,PROJET:tt.PROJET,EXPLOITANT:tt.EXPLOITANT,PLATEFORME:tt.PLATFORME,PROFIL:tt.PROFILE},!0),ATTag.identifiedVisitor.set({id:tt.ID_PERSO,category:tt.PROFILE}),ATTag.page.set({name:(et==null?void 0:et.prefix)==="userbook"?"directory":et==null?void 0:et.prefix,chapter1:"",chapter2:"",chapter3:"",level2:tt.STRUCT_UAI}),ATTag.dispatch()}async getXitiConfig(_e){const[et,tt]=await Promise.all([this.http.get("/analyticsConf"),this.http.get("/xiti/config")]);if(!(et!=null&&et.type))throw ERROR_CODE.MALFORMED_DATA;return tt!=null&&tt.active&&(et.xiti=await this.getXitiTrackingParams(tt,_e)),et.xiti}async loadXitiScript(){if(typeof ATInternet>"u"){const scriptPath="/xiti/public/js/lib/smarttag_ENT.js",response=await this.http.get(scriptPath,{headers:{Accept:"application/javascript"}});if(this.http.latestResponse.status!=200)throw"Error while loading XiTi script";eval(response)}}async getXitiTrackingParams(_e,et){var tt;if(!_e.structureMap||!et)return;const rt=await this.session.getUser(),nt=await this.session.getUserProfile();let st;if(!(rt!=null&&rt.structures))return;for(let dt of rt.structures){const ct=_e.structureMap[dt];if(ct&&ct.collectiviteId&&ct.UAI){st=ct;break}}if(!st||!st.active)return;const ot=await configure.Platform.apps.getPublicConf(et);if(!ot)return;const at=ot.xiti;if(!at||!at.LIBELLE_SERVICE||!st.UAI)return;function ut(dt){let ct="";for(let ft=0;ft<dt.length;ft++)ct+=dt.charCodeAt(ft);return ct}const lt={Student:"ELEVE",Teacher:"ENSEIGNANT",Relative:"PARENT",Personnel:"ADMIN_VIE_SCOL_TECH",Guest:"AUTRE"};return{LIBELLE_SERVICE:at.LIBELLE_SERVICE,TYPE:at.OUTIL?"TIERS":"NATIF",OUTIL:at.OUTIL?at.OUTIL:"",STRUCT_ID:st.collectiviteId,STRUCT_UAI:st.UAI,PROJET:st.projetId?st.projetId:_e.ID_PROJET,EXPLOITANT:_e.ID_EXPLOITANT,PLATFORME:st.plateformeId?st.plateformeId:_e.ID_PLATEFORME,ID_PERSO:ut(rt.userId),PROFILE:nt&&nt.length>0&&(tt=lt[nt[0]])!=null?tt:""}}}class OdeServices{constructor(){m$2(this,"_analytics"),m$2(this,"_cache"),m$2(this,"_conf"),m$2(this,"_directory"),m$2(this,"_http"),m$2(this,"_idiom"),m$2(this,"_rights"),m$2(this,"_session"),m$2(this,"_share"),m$2(this,"_workspace"),this._analytics=new AnalyticsService(this),this._cache=new CacheService(this),this._conf=new ConfService(this),this._directory=new DirectoryService(this),this._http=new HttpService(this),this._idiom=new IdiomService(this),this._rights=new RightService(this),this._session=new SessionService(this),this._share=new ShareService(this),this._workspace=new WorkspaceService(this)}analytics(){return this._analytics}cache(){return this._cache}conf(){return this._conf}directory(){return this._directory}http(){return this._http}idiom(){return this._idiom}resource(et,tt){return tt?ResourceService.findService({application:et,resourceType:tt},this):ResourceService.findMainService({application:et},this)}rights(){return this._rights}session(){return this._session}share(){return this._share}workspace(){return this._workspace}}const odeServices=new OdeServices;function useSession(){return useQuery({queryKey:["session"],queryFn:async()=>await odeServices.session().getSession(),suspense:!0})}function useConf({appCode:_e}){return useQuery({queryKey:["conf"],queryFn:async()=>await odeServices.conf().getConf(_e),suspense:!0})}const OdeClientContext=reactExports.createContext(null);function OdeClientProvider({children:_e,params:et}){const tt=et.app,rt=useSession(),nt=useConf({appCode:tt}),st=(nt==null?void 0:nt.isSuccess)&&(rt==null?void 0:rt.isSuccess);reactExports.useEffect(()=>{var lt,dt,ct,ft,ht,mt,vt,wt,gt,yt;const at=document.getElementById("theme"),ut=document.getElementById("favicon");at.href=`${(dt=(lt=nt==null?void 0:nt.data)==null?void 0:lt.theme)==null?void 0:dt.bootstrapUrl}/theme.css`,ut.href=`${(ft=(ct=nt==null?void 0:nt.data)==null?void 0:ct.theme)==null?void 0:ft.basePath}/img/illustrations/favicon.ico`,[{data:"data-skin",value:(mt=(ht=nt==null?void 0:nt.data)==null?void 0:ht.theme)==null?void 0:mt.skinName},{data:"data-theme",value:(wt=(vt=nt==null?void 0:nt.data)==null?void 0:vt.theme)==null?void 0:wt.themeName},{data:"data-bootstrap",value:(yt=(gt=nt==null?void 0:nt.data)==null?void 0:gt.theme)==null?void 0:yt.bootstrapVersion.split("-").at(-1)}].forEach(xt=>{var St;return(St=document.querySelector("html"))==null?void 0:St.setAttribute(xt.data,xt.value)})},[nt==null?void 0:nt.data]),reactExports.useEffect(()=>{var at,ut;(ut=document.querySelector("html"))==null||ut.setAttribute("lang",((at=rt==null?void 0:rt.data)==null?void 0:at.currentLanguage)||"fr")},[rt==null?void 0:rt.data]);const ot=reactExports.useMemo(()=>{var at,ut,lt,dt,ct,ft,ht;return{appCode:tt,applications:(at=nt==null?void 0:nt.data)==null?void 0:at.applications,confQuery:nt,currentApp:(ut=nt==null?void 0:nt.data)==null?void 0:ut.currentApp,currentLanguage:(lt=rt==null?void 0:rt.data)==null?void 0:lt.currentLanguage,init:st,sessionQuery:rt,theme:(dt=nt==null?void 0:nt.data)==null?void 0:dt.theme,user:(ct=rt==null?void 0:rt.data)==null?void 0:ct.user,userDescription:(ft=rt==null?void 0:rt.data)==null?void 0:ft.userDescription,userProfile:(ht=rt==null?void 0:rt.data)==null?void 0:ht.userProfile}},[tt,nt,st,rt]);return jsxRuntimeExports.jsx(OdeClientContext.Provider,{value:ot,children:_e})}function useOdeClient(){const _e=reactExports.useContext(OdeClientContext);if(!_e)throw new Error("Cannot be used outside of OdeClientProvider");return _e}function useBookmark(){var tt;const{sessionQuery:_e}=useOdeClient(),et=new Set;return(tt=_e==null?void 0:_e.data)==null?void 0:tt.bookmarkedApps.filter(rt=>{const nt=et.has(rt.displayName);return et.add(rt.displayName),!nt})}function useTheme(){const{theme:_e}=useOdeClient();return{theme:_e}}function useUser(){const{user:_e,userDescription:et,userProfile:tt}=useOdeClient(),{theme:rt}=useTheme();function nt(){let st=et==null?void 0:et.picture;return(!st||st==="no-avatar.jpg"||st==="no-avatar.svg")&&(st=`${rt==null?void 0:rt.basePath}/img/illustrations/no-avatar.svg`),st}return{user:{..._e,type:tt},avatar:nt(),userDescription:et}}function useHasWorkflow(){const{user:_e}=useUser();return{workflows:{conversation:{view:odeServices.session().hasWorkflow({workflowName:"org.entcore.conversation.controllers.ConversationController|view",user:_e})},community:{view:odeServices.session().hasWorkflow({workflowName:"net.atos.entng.community.controllers.CommunityController|view",user:_e})},search:{view:odeServices.session().hasWorkflow({workflowName:"fr.openent.searchengine.controllers.SearchEngineController|view",user:_e})},zimbra:{view:odeServices.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|view",user:_e}),preauth:odeServices.session().hasWorkflow({workflowName:"fr.openent.zimbra.controllers.ZimbraController|preauth",user:_e})}}}}const DEFAULT_EVENTS=["mousedown","touchstart"];function useClickOutside(_e,et,tt){const rt=reactExports.useRef();return reactExports.useEffect(()=>{const nt=st=>{const{target:ot}=st??{};if(Array.isArray(tt)){const at=(ot==null?void 0:ot.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(ot)&&ot.tagName!=="HTML";tt.every(ut=>!!ut&&!st.composedPath().includes(ut))&&!at&&_e()}else rt.current&&!rt.current.contains(ot)&&_e()};return(et||DEFAULT_EVENTS).forEach(st=>{document.addEventListener(st,nt)}),()=>{(et||DEFAULT_EVENTS).forEach(st=>{document.removeEventListener(st,nt)})}},[rt,_e,tt,et]),rt}let e={data:""},t$1=_e=>typeof window=="object"?((_e?_e.querySelector("#_goober"):window._goober)||Object.assign((_e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:_e||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n$2=/\n+/g,o=(_e,et)=>{let tt="",rt="",nt="";for(let st in _e){let ot=_e[st];st[0]=="@"?st[1]=="i"?tt=st+" "+ot+";":rt+=st[1]=="f"?o(ot,st):st+"{"+o(ot,st[1]=="k"?"":et)+"}":typeof ot=="object"?rt+=o(ot,et?et.replace(/([^,])+/g,at=>st.replace(/(^:.*)|([^,])+/g,ut=>/&/.test(ut)?ut.replace(/&/g,at):at?at+" "+ut:ut)):st):ot!=null&&(st=/^--/.test(st)?st:st.replace(/[A-Z]/g,"-$&").toLowerCase(),nt+=o.p?o.p(st,ot):st+":"+ot+";")}return tt+(et&&nt?et+"{"+nt+"}":nt)+rt},c$1={},s=_e=>{if(typeof _e=="object"){let et="";for(let tt in _e)et+=tt+s(_e[tt]);return et}return _e},i$1=(_e,et,tt,rt,nt)=>{let st=s(_e),ot=c$1[st]||(c$1[st]=(ut=>{let lt=0,dt=11;for(;lt<ut.length;)dt=101*dt+ut.charCodeAt(lt++)>>>0;return"go"+dt})(st));if(!c$1[ot]){let ut=st!==_e?_e:(lt=>{let dt,ct,ft=[{}];for(;dt=l.exec(lt.replace(a,""));)dt[4]?ft.shift():dt[3]?(ct=dt[3].replace(n$2," ").trim(),ft.unshift(ft[0][ct]=ft[0][ct]||{})):ft[0][dt[1]]=dt[2].replace(n$2," ").trim();return ft[0]})(_e);c$1[ot]=o(nt?{["@keyframes "+ot]:ut}:ut,tt?"":"."+ot)}let at=tt&&c$1.g?c$1.g:null;return tt&&(c$1.g=c$1[ot]),((ut,lt,dt,ct)=>{ct?lt.data=lt.data.replace(ct,ut):lt.data.indexOf(ut)===-1&&(lt.data=dt?ut+lt.data:lt.data+ut)})(c$1[ot],et,rt,at),ot},p$1=(_e,et,tt)=>_e.reduce((rt,nt,st)=>{let ot=et[st];if(ot&&ot.call){let at=ot(tt),ut=at&&at.props&&at.props.className||/^go/.test(at)&&at;ot=ut?"."+ut:at&&typeof at=="object"?at.props?"":o(at,""):at===!1?"":at}return rt+nt+(ot??"")},"");function u$2(_e){let et=this||{},tt=_e.call?_e(et.p):_e;return i$1(tt.unshift?tt.raw?p$1(tt,[].slice.call(arguments,1),et.p):tt.reduce((rt,nt)=>Object.assign(rt,nt&&nt.call?nt(et.p):nt),{}):tt,t$1(et.target),et.g,et.o,et.k)}let d,f,g$1;u$2.bind({g:1});let h$3=u$2.bind({k:1});function m$1(_e,et,tt,rt){o.p=et,d=_e,f=tt,g$1=rt}function j(_e,et){let tt=this||{};return function(){let rt=arguments;function nt(st,ot){let at=Object.assign({},st),ut=at.className||nt.className;tt.p=Object.assign({theme:f&&f()},at),tt.o=/ *go\d+/.test(ut),at.className=u$2.apply(tt,rt)+(ut?" "+ut:""),et&&(at.ref=ot);let lt=_e;return _e[0]&&(lt=at.as||_e,delete at.as),g$1&&lt[0]&&g$1(at),d(lt,at)}return et?et(nt):nt}}var W=_e=>typeof _e=="function",T=(_e,et)=>W(_e)?_e(et):_e,U=(()=>{let _e=0;return()=>(++_e).toString()})(),b=(()=>{let _e;return()=>{if(_e===void 0&&typeof window<"u"){let et=matchMedia("(prefers-reduced-motion: reduce)");_e=!et||et.matches}return _e}})(),Q=20,S=new Map,X=1e3,$$1=_e=>{if(S.has(_e))return;let et=setTimeout(()=>{S.delete(_e),u$1({type:4,toastId:_e})},X);S.set(_e,et)},J=_e=>{let et=S.get(_e);et&&clearTimeout(et)},v$2=(_e,et)=>{switch(et.type){case 0:return{..._e,toasts:[et.toast,..._e.toasts].slice(0,Q)};case 1:return et.toast.id&&J(et.toast.id),{..._e,toasts:_e.toasts.map(st=>st.id===et.toast.id?{...st,...et.toast}:st)};case 2:let{toast:tt}=et;return _e.toasts.find(st=>st.id===tt.id)?v$2(_e,{type:1,toast:tt}):v$2(_e,{type:0,toast:tt});case 3:let{toastId:rt}=et;return rt?$$1(rt):_e.toasts.forEach(st=>{$$1(st.id)}),{..._e,toasts:_e.toasts.map(st=>st.id===rt||rt===void 0?{...st,visible:!1}:st)};case 4:return et.toastId===void 0?{..._e,toasts:[]}:{..._e,toasts:_e.toasts.filter(st=>st.id!==et.toastId)};case 5:return{..._e,pausedAt:et.time};case 6:let nt=et.time-(_e.pausedAt||0);return{..._e,pausedAt:void 0,toasts:_e.toasts.map(st=>({...st,pauseDuration:st.pauseDuration+nt}))}}},A=[],P={toasts:[],pausedAt:void 0},u$1=_e=>{P=v$2(P,_e),A.forEach(et=>{et(P)})},Y={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},I$1=(_e={})=>{let[et,tt]=reactExports.useState(P);reactExports.useEffect(()=>(A.push(tt),()=>{let nt=A.indexOf(tt);nt>-1&&A.splice(nt,1)}),[et]);let rt=et.toasts.map(nt=>{var st,ot;return{..._e,..._e[nt.type],...nt,duration:nt.duration||((st=_e[nt.type])==null?void 0:st.duration)||(_e==null?void 0:_e.duration)||Y[nt.type],style:{..._e.style,...(ot=_e[nt.type])==null?void 0:ot.style,...nt.style}}});return{...et,toasts:rt}},G$1=(_e,et="blank",tt)=>({createdAt:Date.now(),visible:!0,type:et,ariaProps:{role:"status","aria-live":"polite"},message:_e,pauseDuration:0,...tt,id:(tt==null?void 0:tt.id)||U()}),h$2=_e=>(et,tt)=>{let rt=G$1(et,_e,tt);return u$1({type:2,toast:rt}),rt.id},n$1=(_e,et)=>h$2("blank")(_e,et);n$1.error=h$2("error");n$1.success=h$2("success");n$1.loading=h$2("loading");n$1.custom=h$2("custom");n$1.dismiss=_e=>{u$1({type:3,toastId:_e})};n$1.remove=_e=>u$1({type:4,toastId:_e});n$1.promise=(_e,et,tt)=>{let rt=n$1.loading(et.loading,{...tt,...tt==null?void 0:tt.loading});return _e.then(nt=>(n$1.success(T(et.success,nt),{id:rt,...tt,...tt==null?void 0:tt.success}),nt)).catch(nt=>{n$1.error(T(et.error,nt),{id:rt,...tt,...tt==null?void 0:tt.error})}),_e};var Z=(_e,et)=>{u$1({type:1,toast:{id:_e,height:et}})},ee=()=>{u$1({type:5,time:Date.now()})},D=_e=>{let{toasts:et,pausedAt:tt}=I$1(_e);reactExports.useEffect(()=>{if(tt)return;let st=Date.now(),ot=et.map(at=>{if(at.duration===1/0)return;let ut=(at.duration||0)+at.pauseDuration-(st-at.createdAt);if(ut<0){at.visible&&n$1.dismiss(at.id);return}return setTimeout(()=>n$1.dismiss(at.id),ut)});return()=>{ot.forEach(at=>at&&clearTimeout(at))}},[et,tt]);let rt=reactExports.useCallback(()=>{tt&&u$1({type:6,time:Date.now()})},[tt]),nt=reactExports.useCallback((st,ot)=>{let{reverseOrder:at=!1,gutter:ut=8,defaultPosition:lt}=ot||{},dt=et.filter(ht=>(ht.position||lt)===(st.position||lt)&&ht.height),ct=dt.findIndex(ht=>ht.id===st.id),ft=dt.filter((ht,mt)=>mt<ct&&ht.visible).length;return dt.filter(ht=>ht.visible).slice(...at?[ft+1]:[0,ft]).reduce((ht,mt)=>ht+(mt.height||0)+ut,0)},[et]);return{toasts:et,handlers:{updateHeight:Z,startPause:ee,endPause:rt,calculateOffset:nt}}},oe=h$3`
65
65
  from {
66
66
  transform: scale(0) rotate(45deg);
67
67
  opacity: 0;