ode-explorer 1.3.2-dev.202401091744 → 1.3.2-dev.202401151654
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/ActionBarContainer.js +1 -1
- package/dist/AppAction.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/DisableModal.js +1 -1
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/EmptyScreenError.js +1 -1
- package/dist/EmptyScreenNoContentInFolder.js +1 -1
- package/dist/EmptyScreenSearch.js +1 -1
- package/dist/EmptyScreenTrash.js +1 -1
- package/dist/FolderModal.js +1 -1
- package/dist/FoldersList.js +1 -1
- package/dist/Library.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/OnboardingModal.js +1 -0
- package/dist/PublishModal.js +1 -0
- package/dist/ResourceModal.js +1 -0
- package/dist/ResourcesList.js +1 -1
- package/dist/ShareModal.js +1 -0
- package/dist/TrashModal.js +1 -1
- package/dist/edifice-icons.js +1 -0
- package/dist/edifice-react.js +1347 -0
- package/dist/index.html +3 -1
- package/dist/index.js +4 -223
- package/dist/react.js +32 -0
- package/dist/version.txt +1 -1
- package/lib/ActionBarContainer.js +213 -313
- package/lib/AppAction.js +24 -39
- package/lib/DeleteModal.js +31 -39
- package/lib/DisableModal.js +14 -14
- package/lib/EmptyScreenApp.js +27 -43
- package/lib/EmptyScreenError.js +9 -10
- package/lib/EmptyScreenNoContentInFolder.js +12 -14
- package/lib/EmptyScreenSearch.js +11 -13
- package/lib/EmptyScreenTrash.js +11 -13
- package/lib/FolderModal.js +86 -105
- package/lib/FoldersList.js +42 -55
- package/lib/Library.js +17 -15
- package/lib/MoveModal.js +53 -69
- package/lib/OnboardingModal.js +5 -0
- package/lib/PublishModal.js +5 -0
- package/lib/ResourceModal.js +5 -0
- package/lib/ResourcesList.js +190 -202
- package/lib/ShareModal.js +5 -0
- package/lib/TrashModal.js +14 -14
- package/lib/components/OnboardingModal.d.ts +2 -0
- package/lib/features/ActionBar/Disable/DisableModal.d.ts +1 -1
- package/lib/features/ActionBar/Publish/PublishModal.d.ts +2 -0
- package/lib/features/ActionBar/Resource/ResourceModal.d.ts +2 -0
- package/lib/features/ActionBar/Share/ShareModal.d.ts +2 -0
- package/lib/features/ActionBar/Trash/TrashModal.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/index2.js +1014 -1503
- package/lib/services/api/index.d.ts +21 -17
- package/lib/store/index.d.ts +5 -5
- package/package.json +3 -7
- package/dist/style.css +0 -1
- package/lib/style.css +0 -410
package/dist/index.js
CHANGED
|
@@ -1,224 +1,5 @@
|
|
|
1
|
-
var tC=Object.defineProperty;var nC=(e,t,n)=>t in e?tC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ei=(e,t,n)=>(nC(e,typeof t!="symbol"?t+"":t,n),n),$d=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var P=(e,t,n)=>($d(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},G=(e,t,n,r)=>($d(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Tl=(e,t,n,r)=>({set _(s){G(e,t,s,n)},get _(){return P(e,t,r)}}),se=(e,t,n)=>($d(e,t,"access private method"),n);import{odeServices as ae,APP as Ho,FOLDER as Mt}from"/assets/js/edifice-ts-client/index.js";function sy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const rC="modulepreload",sC=function(e){return"/"+e},Mg={},Ot=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=sC(i),i in Mg)return;Mg[i]=!0;const o=i.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const f=s[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":rC,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iy={exports:{}},_c={},oy={exports:{}},le={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ol=Symbol.for("react.element"),iC=Symbol.for("react.portal"),oC=Symbol.for("react.fragment"),aC=Symbol.for("react.strict_mode"),lC=Symbol.for("react.profiler"),uC=Symbol.for("react.provider"),cC=Symbol.for("react.context"),dC=Symbol.for("react.forward_ref"),fC=Symbol.for("react.suspense"),pC=Symbol.for("react.memo"),hC=Symbol.for("react.lazy"),Lg=Symbol.iterator;function mC(e){return e===null||typeof e!="object"?null:(e=Lg&&e[Lg]||e["@@iterator"],typeof e=="function"?e:null)}var ay={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ly=Object.assign,uy={};function lo(e,t,n){this.props=e,this.context=t,this.refs=uy,this.updater=n||ay}lo.prototype.isReactComponent={};lo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};lo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cy(){}cy.prototype=lo.prototype;function Th(e,t,n){this.props=e,this.context=t,this.refs=uy,this.updater=n||ay}var jh=Th.prototype=new cy;jh.constructor=Th;ly(jh,lo.prototype);jh.isPureReactComponent=!0;var Dg=Array.isArray,dy=Object.prototype.hasOwnProperty,Ph={current:null},fy={key:!0,ref:!0,__self:!0,__source:!0};function py(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)dy.call(t,r)&&!fy.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:ol,type:e,key:i,ref:o,props:s,_owner:Ph.current}}function gC(e,t){return{$$typeof:ol,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oh(e){return typeof e=="object"&&e!==null&&e.$$typeof===ol}function vC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fg=/\/+/g;function zd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vC(""+e.key):t.toString(36)}function iu(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ol:case iC:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+zd(o,0):r,Dg(s)?(n="",e!=null&&(n=e.replace(Fg,"$&/")+"/"),iu(s,t,n,"",function(u){return u})):s!=null&&(Oh(s)&&(s=gC(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Fg,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Dg(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+zd(i,l);o+=iu(i,t,n,a,s)}else if(a=mC(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+zd(i,l++),o+=iu(i,t,n,a,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function jl(e,t,n){if(e==null)return e;var r=[],s=0;return iu(e,r,"","",function(i){return t.call(n,i,s++)}),r}function yC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dt={current:null},ou={transition:null},wC={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:ou,ReactCurrentOwner:Ph};le.Children={map:jl,forEach:function(e,t,n){jl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jl(e,function(){t++}),t},toArray:function(e){return jl(e,function(t){return t})||[]},only:function(e){if(!Oh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=lo;le.Fragment=oC;le.Profiler=lC;le.PureComponent=Th;le.StrictMode=aC;le.Suspense=fC;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wC;le.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ly({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Ph.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)dy.call(t,a)&&!fy.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:ol,type:e.type,key:s,ref:i,props:r,_owner:o}};le.createContext=function(e){return e={$$typeof:cC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:uC,_context:e},e.Consumer=e};le.createElement=py;le.createFactory=function(e){var t=py.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:dC,render:e}};le.isValidElement=Oh;le.lazy=function(e){return{$$typeof:hC,_payload:{_status:-1,_result:e},_init:yC}};le.memo=function(e,t){return{$$typeof:pC,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=ou.transition;ou.transition={};try{e()}finally{ou.transition=t}};le.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};le.useCallback=function(e,t){return dt.current.useCallback(e,t)};le.useContext=function(e){return dt.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};le.useEffect=function(e,t){return dt.current.useEffect(e,t)};le.useId=function(){return dt.current.useId()};le.useImperativeHandle=function(e,t,n){return dt.current.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return dt.current.useMemo(e,t)};le.useReducer=function(e,t,n){return dt.current.useReducer(e,t,n)};le.useRef=function(e){return dt.current.useRef(e)};le.useState=function(e){return dt.current.useState(e)};le.useSyncExternalStore=function(e,t,n){return dt.current.useSyncExternalStore(e,t,n)};le.useTransition=function(){return dt.current.useTransition()};le.version="18.2.0";oy.exports=le;var S=oy.exports;const ee=il(S),hy=sy({__proto__:null,default:ee},[S]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var xC=S,bC=Symbol.for("react.element"),SC=Symbol.for("react.fragment"),EC=Object.prototype.hasOwnProperty,CC=xC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kC={key:!0,ref:!0,__self:!0,__source:!0};function my(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)EC.call(t,r)&&!kC.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:bC,type:e,key:i,ref:o,props:s,_owner:CC.current}}_c.Fragment=SC;_c.jsx=my;_c.jsxs=my;iy.exports=_c;var d=iy.exports;const TC={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ru{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||TC,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ru(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ru(this.logger,t)}}var Dn=new Ru;class Mc{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function wo(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function $g(e){return e==null?"":""+e}function jC(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Rh(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function zg(e,t,n){const{obj:r,k:s}=Rh(e,t,Object);r[s]=n}function PC(e,t,n,r){const{obj:s,k:i}=Rh(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Nu(e,t){const{obj:n,k:r}=Rh(e,t);if(n)return n[r]}function OC(e,t,n){const r=Nu(e,n);return r!==void 0?r:Nu(t,n)}function gy(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):gy(e[r],t[r],n):e[r]=t[r]);return e}function ti(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var RC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function NC(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>RC[t]):e}const AC=[" ",",","?","!",";"];function IC(e,t,n){t=t||"",n=n||"";const r=AC.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function Au(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,l=r.slice(i,i+o).join(n),a=s[l];for(;a===void 0&&r.length>i+o;)o++,l=r.slice(i,i+o).join(n),a=s[l];if(a===void 0)return;if(a===null)return null;if(t.endsWith(l)){if(typeof a=="string")return a;if(l&&typeof a[l]=="string")return a[l]}const u=r.slice(i+o).join(n);return u?Au(a,u,n):void 0}s=s[r[i]]}return s}function Iu(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Bg extends Mc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l=[t,n];r&&typeof r!="string"&&(l=l.concat(r)),r&&typeof r=="string"&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."));const a=Nu(this.data,l);return a||!o||typeof r!="string"?a:Au(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),zg(this.data,l,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=Nu(this.data,l)||{};s?gy(a,r,i):a={...a,...r},zg(this.data,l,a),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var vy={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Vg={};class _u extends Mc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),jC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!IC(t,r,s);if(o&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${b}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${b}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let p=f&&f.res;const h=f&&f.usedKey||o,y=f&&f.exactUsedKey||o,w=Object.prototype.toString.apply(p),x=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&x.indexOf(w)<0&&!(typeof g=="string"&&w==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(f.res=b,f.usedParams=this.getUsedParamsDetails(n),f):b}if(i){const b=w==="[object Array]",E=b?[]:{},T=b?y:h;for(const C in p)if(Object.prototype.hasOwnProperty.call(p,C)){const R=`${T}${i}${C}`;E[C]=this.translate(R,{...n,joinArrays:!1,ns:l}),E[C]===R&&(E[C]=p[C])}p=E}}else if(m&&typeof g=="string"&&w==="[object Array]")p=p.join(g),p&&(p=this.extendTranslation(p,t,n,r));else{let b=!1,E=!1;const T=n.count!==void 0&&typeof n.count!="string",C=_u.hasDefaultValue(n),R=T?this.pluralResolver.getSuffix(u,n.count,n):"",j=n.ordinal&&T?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",L=n[`defaultValue${R}`]||n[`defaultValue${j}`]||n.defaultValue;!this.isValidLookup(p)&&C&&(b=!0,p=L),this.isValidLookup(p)||(E=!0,p=o);const N=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,M=C&&L!==p&&this.options.updateMissing;if(E||b||M){if(this.logger.log(M?"updateKey":"missingKey",u,a,o,M?L:p),i){const z=this.resolve(o,{...n,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let D=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let z=0;z<k.length;z++)D.push(k[z]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);const I=(z,_,$)=>{const V=C&&$!==p?$:N;this.options.missingKeyHandler?this.options.missingKeyHandler(z,a,_,V,M,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(z,a,_,V,M,n),this.emit("missingKey",z,a,_,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?D.forEach(z=>{this.pluralResolver.getSuffixes(z,n).forEach(_=>{I([z],o+_,n[`defaultValue${_}`]||L)})}):I(D,o,L))}p=this.extendTranslation(p,t,n,f,r),E&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${a}:${o}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,b?p:void 0):p=this.options.parseMissingKeyHandler(p))}return s?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const p=t.match(this.interpolator.nestingRegexp);c=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const p=t.match(this.interpolator.nestingRegexp),h=p&&p.length;c<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,h=new Array(p),y=0;y<p;y++)h[y]=arguments[y];return i&&i[0]===h[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):o.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=typeof l=="string"?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=vy.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,l;return typeof t=="string"&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),c=u.key;s=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",h=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!Vg[`${w[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Vg[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(g=>{if(this.isValidLookup(r))return;o=g;const m=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(m,c,g,x,n);else{let b;p&&(b=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(m.push(c+b),n.ordinal&&b.indexOf(T)===0&&m.push(c+b.replace(T,this.options.pluralSeparator)),h&&m.push(c+E)),y){const C=`${c}${this.options.contextSeparator}${n.context}`;m.push(C),p&&(m.push(C+b),n.ordinal&&b.indexOf(T)===0&&m.push(C+b.replace(T,this.options.pluralSeparator)),h&&m.push(C+E))}}let v;for(;v=m.pop();)this.isValidLookup(r)||(i=v,r=this.getResource(g,x,v,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Bd(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Ug{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dn.create("languageUtils")}getScriptPartFromCode(t){if(t=Iu(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Iu(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Bd(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Bd(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Bd(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let _C=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],MC={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const LC=["v1","v2","v3"],DC=["v4"],Hg={zero:0,one:1,two:2,few:3,many:4,other:5};function FC(){const e={};return _C.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:MC[t.fc]}})}),e}class $C{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Dn.create("pluralResolver"),(!this.options.compatibilityJSON||DC.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=FC()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Iu(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,i)=>Hg[s]-Hg[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!LC.includes(this.options.compatibilityJSON)}}function qg(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=OC(e,t,n);return!i&&s&&typeof n=="string"&&(i=Au(e,n,r),i===void 0&&(i=Au(t,n,r))),i}class zC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:NC,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ti(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ti(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ti(n.nestingPrefix):n.nestingPrefixEscaped||ti("$t("),this.nestingSuffix=n.nestingSuffix?ti(n.nestingSuffix):n.nestingSuffixEscaped||ti(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,s){let i,o,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(y){return y.replace(/\$/g,"$$$$")}const c=y=>{if(y.indexOf(this.formatSeparator)<0){const m=qg(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...s,...n,interpolationkey:y}):m}const w=y.split(this.formatSeparator),x=w.shift().trim(),g=w.join(this.formatSeparator).trim();return this.format(qg(n,a,x,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...s,...n,interpolationkey:x})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>u(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?u(this.escape(y)):u(y)}].forEach(y=>{for(l=0;i=y.regex.exec(t);){const w=i[1].trim();if(o=c(w),o===void 0)if(typeof f=="function"){const g=f(t,i,s);o=typeof g=="string"?g:""}else if(s&&Object.prototype.hasOwnProperty.call(s,w))o="";else if(p){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=$g(o));const x=y.safeValue(o);if(t=t.replace(i[0],x),p?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function l(a,u){const c=this.nestingOptionsSeparator;if(a.indexOf(c)<0)return a;const f=a.split(new RegExp(`${c}[ ]*{`));let p=`{${f[1]}`;a=f[0],p=this.interpolate(p,o);const h=p.match(/'/g),y=p.match(/"/g);(h&&h.length%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),u&&(o={...u,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${c}${p}`}return delete o.defaultValue,a}for(;s=this.nestingRegexp.exec(t);){let a=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=c.shift(),a=c,u=!0}if(i=n(l.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=$g(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=a.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function BC(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[l,...a]=o.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=u),u==="false"&&(n[l.trim()]=!1),u==="true"&&(n[l.trim()]=!0),isNaN(u)||(n[l.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function ni(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let l=t[o];return l||(l=e(Iu(s),i),t[o]=l),l(r)}}class VC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dn.create("formatter"),this.options=t,this.formats={number:ni((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:ni((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:ni((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:ni((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:ni((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ni(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,a)=>{const{formatName:u,formatOptions:c}=BC(a);if(this.formats[u]){let f=l;try{const p=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},h=p.locale||p.lng||s.locale||s.lng||r;f=this.formats[u](l,h,{...c,...s,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function UC(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class HC extends Mc{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Dn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},l={},a={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,c=!1,o[p]===void 0&&(o[p]=!0),i[p]===void 0&&(i[p]=!0),a[f]===void 0&&(a[f]=!0)))}),c||(l[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const l={};this.queue.forEach(a=>{PC(a.loaded,[i],o),UC(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const c=a.loaded[u];c.length&&c.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:i,callback:o});return}this.readingCalls++;const l=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(c=>l(null,c)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,a):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Wg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Gg(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Pl(){}function qC(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class ua extends Mc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Gg(t),this.services={},this.logger=Dn,this.modules={external:[]},qC(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Wg();this.options={...s,...this.options,...Gg(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Dn.init(i(this.modules.logger),this.options):Dn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=VC);const f=new Ug(this.options);this.store=new Bg(this.options.resources,this.options);const p=this.services;p.logger=Dn,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new $C(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(p.formatter=i(c),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new zC(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new HC(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(h){for(var y=arguments.length,w=new Array(y>1?y-1:0),x=1;x<y;x++)w[x-1]=arguments[x];t.emit(h,...w)}),this.modules.languageDetector&&(p.languageDetector=i(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=i(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new _u(this.services,this.options),this.translator.on("*",function(h){for(var y=arguments.length,w=new Array(y>1?y-1:0),x=1;x<y;x++)w[x-1]=arguments[x];t.emit(h,...w)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Pl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const a=wo(),u=()=>{const c=(f,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pl;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>o(a)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(i,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=wo();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Pl),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&vy.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=wo();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=typeof a=="string"?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const i=function(o,l){let a;if(typeof l!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f<u;f++)c[f-2]=arguments[f];a=s.options.overloadTranslationOptionHandler([o,l].concat(c))}else a={...l};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix=a.keyPrefix||r||i.keyPrefix;const p=s.options.keySeparator||".";let h;return a.keyPrefix&&Array.isArray(o)?h=o.map(y=>`${a.keyPrefix}${p}${y}`):h=a.keyPrefix?`${a.keyPrefix}${p}${o}`:o,s.t(h,a)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=wo();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=wo();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ug(Wg());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ua(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pl;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new ua(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Bg(this.store.data,s),i.services.resourceStore=i.store),i.translator=new _u(i.services,s),i.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];i.emit(l,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const st=ua.createInstance();st.createInstance=ua.createInstance;st.createInstance;st.dir;st.init;st.loadResources;st.reloadResources;st.use;st.changeLanguage;st.getFixedT;const Pt=st.t;st.exists;st.setDefaultNamespace;st.hasLoadedNamespace;st.loadNamespaces;st.loadLanguages;function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}var yy=[],WC=yy.forEach,GC=yy.slice;function Uf(e){return WC.call(GC.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function wy(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Vf(XMLHttpRequest))==="object"}function QC(e){return!!e&&typeof e.then=="function"}function KC(e){return QC(e)?e:Promise.resolve(e)}function XC(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Hf={exports:{}},Ol={exports:{}},Qg;function YC(){return Qg||(Qg=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof lt<"u"&<,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var l=typeof i<"u"&&i||typeof self<"u"&&self||typeof l<"u"&&l,a={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function u(k){return k&&DataView.prototype.isPrototypeOf(k)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(k){return k&&c.indexOf(Object.prototype.toString.call(k))>-1};function p(k){if(typeof k!="string"&&(k=String(k)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(k)||k==="")throw new TypeError('Invalid character in header field name: "'+k+'"');return k.toLowerCase()}function h(k){return typeof k!="string"&&(k=String(k)),k}function y(k){var I={next:function(){var z=k.shift();return{done:z===void 0,value:z}}};return a.iterable&&(I[Symbol.iterator]=function(){return I}),I}function w(k){this.map={},k instanceof w?k.forEach(function(I,z){this.append(z,I)},this):Array.isArray(k)?k.forEach(function(I){this.append(I[0],I[1])},this):k&&Object.getOwnPropertyNames(k).forEach(function(I){this.append(I,k[I])},this)}w.prototype.append=function(k,I){k=p(k),I=h(I);var z=this.map[k];this.map[k]=z?z+", "+I:I},w.prototype.delete=function(k){delete this.map[p(k)]},w.prototype.get=function(k){return k=p(k),this.has(k)?this.map[k]:null},w.prototype.has=function(k){return this.map.hasOwnProperty(p(k))},w.prototype.set=function(k,I){this.map[p(k)]=h(I)},w.prototype.forEach=function(k,I){for(var z in this.map)this.map.hasOwnProperty(z)&&k.call(I,this.map[z],z,this)},w.prototype.keys=function(){var k=[];return this.forEach(function(I,z){k.push(z)}),y(k)},w.prototype.values=function(){var k=[];return this.forEach(function(I){k.push(I)}),y(k)},w.prototype.entries=function(){var k=[];return this.forEach(function(I,z){k.push([z,I])}),y(k)},a.iterable&&(w.prototype[Symbol.iterator]=w.prototype.entries);function x(k){if(k.bodyUsed)return Promise.reject(new TypeError("Already read"));k.bodyUsed=!0}function g(k){return new Promise(function(I,z){k.onload=function(){I(k.result)},k.onerror=function(){z(k.error)}})}function m(k){var I=new FileReader,z=g(I);return I.readAsArrayBuffer(k),z}function v(k){var I=new FileReader,z=g(I);return I.readAsText(k),z}function b(k){for(var I=new Uint8Array(k),z=new Array(I.length),_=0;_<I.length;_++)z[_]=String.fromCharCode(I[_]);return z.join("")}function E(k){if(k.slice)return k.slice(0);var I=new Uint8Array(k.byteLength);return I.set(new Uint8Array(k)),I.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(k){this.bodyUsed=this.bodyUsed,this._bodyInit=k,k?typeof k=="string"?this._bodyText=k:a.blob&&Blob.prototype.isPrototypeOf(k)?this._bodyBlob=k:a.formData&&FormData.prototype.isPrototypeOf(k)?this._bodyFormData=k:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(k)?this._bodyText=k.toString():a.arrayBuffer&&a.blob&&u(k)?(this._bodyArrayBuffer=E(k.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(k)||f(k))?this._bodyArrayBuffer=E(k):this._bodyText=k=Object.prototype.toString.call(k):this._bodyText="",this.headers.get("content-type")||(typeof k=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(k)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var k=x(this);if(k)return k;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var k=x(this);return k||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(m)}),this.text=function(){var k=x(this);if(k)return k;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(L)}),this.json=function(){return this.text().then(JSON.parse)},this}var C=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function R(k){var I=k.toUpperCase();return C.indexOf(I)>-1?I:k}function j(k,I){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');I=I||{};var z=I.body;if(k instanceof j){if(k.bodyUsed)throw new TypeError("Already read");this.url=k.url,this.credentials=k.credentials,I.headers||(this.headers=new w(k.headers)),this.method=k.method,this.mode=k.mode,this.signal=k.signal,!z&&k._bodyInit!=null&&(z=k._bodyInit,k.bodyUsed=!0)}else this.url=String(k);if(this.credentials=I.credentials||this.credentials||"same-origin",(I.headers||!this.headers)&&(this.headers=new w(I.headers)),this.method=R(I.method||this.method||"GET"),this.mode=I.mode||this.mode||null,this.signal=I.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&z)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(z),(this.method==="GET"||this.method==="HEAD")&&(I.cache==="no-store"||I.cache==="no-cache")){var _=/([?&])_=[^&]*/;if(_.test(this.url))this.url=this.url.replace(_,"$1_="+new Date().getTime());else{var $=/\?/;this.url+=($.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})};function L(k){var I=new FormData;return k.trim().split("&").forEach(function(z){if(z){var _=z.split("="),$=_.shift().replace(/\+/g," "),V=_.join("=").replace(/\+/g," ");I.append(decodeURIComponent($),decodeURIComponent(V))}}),I}function A(k){var I=new w,z=k.replace(/\r?\n[\t ]+/g," ");return z.split("\r").map(function(_){return _.indexOf(`
|
|
18
|
-
`)===0?_.substr(1,_.length):_}).forEach(function(_){var $=_.split(":"),V=$.shift().trim();if(V){var ne=$.join(":").trim();I.append(V,ne)}}),I}T.call(j.prototype);function N(k,I){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');I||(I={}),this.type="default",this.status=I.status===void 0?200:I.status,this.ok=this.status>=200&&this.status<300,this.statusText=I.statusText===void 0?"":""+I.statusText,this.headers=new w(I.headers),this.url=I.url||"",this._initBody(k)}T.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new w(this.headers),url:this.url})},N.error=function(){var k=new N(null,{status:0,statusText:""});return k.type="error",k};var M=[301,302,303,307,308];N.redirect=function(k,I){if(M.indexOf(I)===-1)throw new RangeError("Invalid status code");return new N(null,{status:I,headers:{location:k}})},o.DOMException=l.DOMException;try{new o.DOMException}catch{o.DOMException=function(I,z){this.message=I,this.name=z;var _=Error(I);this.stack=_.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function D(k,I){return new Promise(function(z,_){var $=new j(k,I);if($.signal&&$.signal.aborted)return _(new o.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function ne(){V.abort()}V.onload=function(){var de={status:V.status,statusText:V.statusText,headers:A(V.getAllResponseHeaders()||"")};de.url="responseURL"in V?V.responseURL:de.headers.get("X-Request-URL");var ye="response"in V?V.response:V.responseText;setTimeout(function(){z(new N(ye,de))},0)},V.onerror=function(){setTimeout(function(){_(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){_(new TypeError("Network request failed"))},0)},V.onabort=function(){setTimeout(function(){_(new o.DOMException("Aborted","AbortError"))},0)};function re(de){try{return de===""&&l.location.href?l.location.href:de}catch{return de}}V.open($.method,re($.url),!0),$.credentials==="include"?V.withCredentials=!0:$.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(a.blob?V.responseType="blob":a.arrayBuffer&&$.headers.get("Content-Type")&&$.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(V.responseType="arraybuffer")),I&&typeof I.headers=="object"&&!(I.headers instanceof w)?Object.getOwnPropertyNames(I.headers).forEach(function(de){V.setRequestHeader(de,h(I.headers[de]))}):$.headers.forEach(function(de,ye){V.setRequestHeader(ye,de)}),$.signal&&($.signal.addEventListener("abort",ne),V.onreadystatechange=function(){V.readyState===4&&$.signal.removeEventListener("abort",ne)}),V.send(typeof $._bodyInit>"u"?null:$._bodyInit)})}return D.polyfill=!0,l.fetch||(l.fetch=D,l.Headers=w,l.Request=j,l.Response=N),o.Headers=w,o.Request=j,o.Response=N,o.fetch=D,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(Ol,Ol.exports)),Ol.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof lt<"u"&<.fetch?n=lt.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof XC<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||YC();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Hf,Hf.exports);var xy=Hf.exports;const by=il(xy),Kg=sy({__proto__:null,default:by},[xy]);function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}var ir;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?ir=global.fetch:typeof window<"u"&&window.fetch?ir=window.fetch:ir=fetch);var ca;wy()&&(typeof global<"u"&&global.XMLHttpRequest?ca=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ca=window.XMLHttpRequest));var Lu;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Lu=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Lu=window.ActiveXObject));!ir&&Kg&&!ca&&!Lu&&(ir=by||Kg);typeof ir!="function"&&(ir=void 0);var qf=function(t,n){if(n&&Mu(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Xg=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(l){r(null,{status:o.status,data:l})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):ir(t,n).then(s).catch(r)},Yg=!1,JC=function(t,n,r,s){t.queryStringParams&&(n=qf(n,t.queryStringParams));var i=Uf({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=Uf({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},Yg?{}:o);try{Xg(n,l,s)}catch(a){if(!o||Object.keys(o).length===0||!a.message||a.message.indexOf("not implemented")<0)return s(a);try{Object.keys(o).forEach(function(u){delete l[u]}),Xg(n,l,s),Yg=!0}catch(u){s(u)}}},ZC=function(t,n,r,s){r&&Mu(r)==="object"&&(r=qf("",r).slice(1)),t.queryStringParams&&(n=qf(n,t.queryStringParams));try{var i;ca?i=new ca:i=new Lu("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var l in o)i.setRequestHeader(l,o[l]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(a){console&&console.log(a)}},e4=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},ir&&n.indexOf("file:")!==0)return JC(t,n,r,s);if(wy()||typeof ActiveXObject=="function")return ZC(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function da(e){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function t4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sy(r.key),r)}}function n4(e,t,n){return t&&Jg(e.prototype,t),n&&Jg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r4(e,t,n){return t=Sy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(e){var t=s4(e,"string");return da(t)==="symbol"?t:String(t)}function s4(e,t){if(da(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(da(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i4=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return r4({},r,s||"")},parseLoadPayload:function(n,r){},request:e4,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Ey=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};t4(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return n4(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Uf(s,this.options||{},i4()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var l=this,a=this.options.loadPath;typeof this.options.loadPath=="function"&&(a=this.options.loadPath(n,s)),a=KC(a),a.then(function(u){if(!u)return o(null,{});var c=l.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});l.loadUrl(c,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,l=typeof s=="string"?[s]:s,a=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(l,a);this.options.request(this.options,n,u,function(c,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var p,h;try{typeof f.data=="string"?p=o.options.parse(f.data,s,i):p=f.data}catch{h="failed parsing "+n+" to json"}if(h)return r(h,!1);r(null,p)})}},{key:"create",value:function(n,r,s,i,o){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var a=this.options.parsePayload(r,s,i),u=0,c=[],f=[];n.forEach(function(p){var h=l.options.addPath;typeof l.options.addPath=="function"&&(h=l.options.addPath(p,r));var y=l.services.interpolator.interpolate(h,{lng:p,ns:r});l.options.request(l.options,y,a,function(w,x){u+=1,c.push(w),f.push(x),u===n.length&&typeof o=="function"&&o(c,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,l=s.language;if(!(l&&l.toLowerCase()==="cimode")){var a=[],u=function(f){var p=i.toResolveHierarchy(f);p.forEach(function(h){a.indexOf(h)<0&&a.push(h)})};u(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),a.forEach(function(c){n.allOptions.ns.forEach(function(f){s.read(c,f,"read",null,null,function(p,h){p&&o.warn("loading namespace ".concat(f," for language ").concat(c," failed"),p),!p&&h&&o.log("loaded namespace ".concat(f," for language ").concat(c),h),s.loaded("".concat(c,"|").concat(f),p,h)})})})}}}]),e}();Ey.type="backend";function o4(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Zg={};function Wf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Zg[t[0]]||(typeof t[0]=="string"&&(Zg[t[0]]=new Date),o4(...t))}const Cy=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function ev(e,t,n){e.loadNamespaces(t,Cy(e,n))}function tv(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Cy(e,r))}function a4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=t.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!s||o(i,e)))}function l4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Wf("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):a4(e,t,n)}const u4=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,c4={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},d4=e=>c4[e],f4=e=>e.replace(u4,d4);let Gf={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:f4};function p4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gf={...Gf,...e}}function h4(){return Gf}let ky;function m4(e){ky=e}function g4(){return ky}const v4={type:"3rdParty",init(e){p4(e.options.react),m4(e)}},y4=S.createContext();class w4{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const x4=(e,t)=>{const n=S.useRef();return S.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=S.useContext(y4)||{},i=n||r||g4();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new w4),!i){Wf("You will need to pass in an i18next instance by using initReactI18next");const v=(E,T)=>typeof T=="string"?T:T&&typeof T=="object"&&typeof T.defaultValue=="string"?T.defaultValue:Array.isArray(E)?E[E.length-1]:E,b=[v,{},!1];return b.t=v,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&Wf("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...h4(),...i.options.react,...t},{useSuspense:l,keyPrefix:a}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(v=>l4(v,i,o));function f(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],a)}const[p,h]=S.useState(f);let y=u.join();t.lng&&(y=`${t.lng}${y}`);const w=x4(y),x=S.useRef(!0);S.useEffect(()=>{const{bindI18n:v,bindI18nStore:b}=o;x.current=!0,!c&&!l&&(t.lng?tv(i,t.lng,u,()=>{x.current&&h(f)}):ev(i,u,()=>{x.current&&h(f)})),c&&w&&w!==y&&x.current&&h(f);function E(){x.current&&h(f)}return v&&i&&i.on(v,E),b&&i&&i.store.on(b,E),()=>{x.current=!1,v&&i&&v.split(" ").forEach(T=>i.off(T,E)),b&&i&&b.split(" ").forEach(T=>i.store.off(T,E))}},[i,y]);const g=S.useRef(!0);S.useEffect(()=>{x.current&&!g.current&&h(f),g.current=!1},[i,a]);const m=[p,i,c];if(m.t=p,m.i18n=i,m.ready=c,c||!c&&!l)return m;throw new Promise(v=>{t.lng?tv(i,t.lng,u,()=>v()):ev(i,u,()=>v())})}st.use(Ey).use(v4).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});var uo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Gi=typeof window>"u"||"Deno"in window;function Kt(){}function b4(e,t){return typeof e=="function"?e(t):e}function Qf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ty(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Nh(o,t.options))return!1}else if(!pa(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function rv(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(fa(t.options.mutationKey)!==fa(i))return!1}else if(!pa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Nh(e,t){return((t==null?void 0:t.queryKeyHashFn)||fa)(e)}function fa(e){return JSON.stringify(e,(t,n)=>Kf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function pa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!pa(e[n],t[n])):!1}function jy(e,t){if(e===t)return e;const n=sv(e)&&sv(t);if(n||Kf(e)&&Kf(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let l=0;for(let a=0;a<i;a++){const u=n?a:s[a];o[u]=jy(e[u],t[u]),o[u]===e[u]&&l++}return r===i&&l===r?e:o}return t}function Du(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function sv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kf(e){if(!iv(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!iv(n)||!n.hasOwnProperty("isPrototypeOf"))}function iv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Py(e){return new Promise(t=>{setTimeout(t,e)})}function ov(e){Py(0).then(e)}function Xf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jy(e,t):t}function S4(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function E4(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ss,jr,Ni,Q0,C4=(Q0=class extends uo{constructor(){super();Y(this,Ss,void 0);Y(this,jr,void 0);Y(this,Ni,void 0);G(this,Ni,t=>{if(!Gi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,jr)||this.setEventListener(P(this,Ni))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,jr))==null||t.call(this),G(this,jr,void 0))}setEventListener(t){var n;G(this,Ni,t),(n=P(this,jr))==null||n.call(this),G(this,jr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Ss)!==t&&(G(this,Ss,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof P(this,Ss)=="boolean"?P(this,Ss):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ss=new WeakMap,jr=new WeakMap,Ni=new WeakMap,Q0),Fu=new C4,Ai,Pr,Ii,K0,k4=(K0=class extends uo{constructor(){super();Y(this,Ai,!0);Y(this,Pr,void 0);Y(this,Ii,void 0);G(this,Ii,t=>{if(!Gi&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,Pr)||this.setEventListener(P(this,Ii))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Pr))==null||t.call(this),G(this,Pr,void 0))}setEventListener(t){var n;G(this,Ii,t),(n=P(this,Pr))==null||n.call(this),G(this,Pr,t(this.setOnline.bind(this)))}setOnline(t){P(this,Ai)!==t&&(G(this,Ai,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Ai)}},Ai=new WeakMap,Pr=new WeakMap,Ii=new WeakMap,K0),$u=new k4;function T4(e){return Math.min(1e3*2**e,3e4)}function Lc(e){return(e??"online")==="online"?$u.isOnline():!0}var Oy=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vd(e){return e instanceof Oy}function Ry(e){let t=!1,n=0,r=!1,s,i,o;const l=new Promise((x,g)=>{i=x,o=g}),a=x=>{var g;r||(h(new Oy(x)),(g=e.abort)==null||g.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>!Fu.isFocused()||e.networkMode!=="always"&&!$u.isOnline(),p=x=>{var g;r||(r=!0,(g=e.onSuccess)==null||g.call(e,x),s==null||s(),i(x))},h=x=>{var g;r||(r=!0,(g=e.onError)==null||g.call(e,x),s==null||s(),o(x))},y=()=>new Promise(x=>{var g;s=m=>{const v=r||!f();return v&&x(m),v},(g=e.onPause)==null||g.call(e)}).then(()=>{var x;s=void 0,r||(x=e.onContinue)==null||x.call(e)}),w=()=>{if(r)return;let x;try{x=e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(p).catch(g=>{var T;if(r)return;const m=e.retry??(Gi?0:3),v=e.retryDelay??T4,b=typeof v=="function"?v(n,g):v,E=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!E){h(g);return}n++,(T=e.onFail)==null||T.call(e,n,g),Py(b).then(()=>{if(f())return y()}).then(()=>{t?h(g):w()})})};return Lc(e.networkMode)?w():y().then(w),{promise:l,cancel:a,continue:()=>(s==null?void 0:s())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}function j4(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},i=c=>{t?e.push(c):ov(()=>{n(c)})},o=c=>(...f)=>{i(()=>{c(...f)})},l=()=>{const c=e;e=[],c.length&&ov(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}var Fe=j4(),Es,X0,Ny=(X0=class{constructor(){Y(this,Es,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qf(this.gcTime)&&G(this,Es,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Gi?1/0:5*60*1e3))}clearGcTimeout(){P(this,Es)&&(clearTimeout(P(this,Es)),G(this,Es,void 0))}},Es=new WeakMap,X0),_i,Mi,qt,Or,Wt,Ve,Ga,Cs,Li,au,yn,Xn,Y0,P4=(Y0=class extends Ny{constructor(t){super();Y(this,Li);Y(this,yn);Y(this,_i,void 0);Y(this,Mi,void 0);Y(this,qt,void 0);Y(this,Or,void 0);Y(this,Wt,void 0);Y(this,Ve,void 0);Y(this,Ga,void 0);Y(this,Cs,void 0);G(this,Cs,!1),G(this,Ga,t.defaultOptions),se(this,Li,au).call(this,t.options),G(this,Ve,[]),G(this,qt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,_i,t.state||O4(this.options)),this.state=P(this,_i),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!P(this,Ve).length&&this.state.fetchStatus==="idle"&&P(this,qt).remove(this)}setData(t,n){const r=Xf(this.state.data,t,this.options);return se(this,yn,Xn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){se(this,yn,Xn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=P(this,Or);return(r=P(this,Wt))==null||r.cancel(t),n?n.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,_i))}isActive(){return P(this,Ve).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||P(this,Ve).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Ty(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=P(this,Ve).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Wt))==null||n.continue()}onOnline(){var n;const t=P(this,Ve).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,Wt))==null||n.continue()}addObserver(t){P(this,Ve).includes(t)||(P(this,Ve).push(t),this.clearGcTimeout(),P(this,qt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){P(this,Ve).includes(t)&&(G(this,Ve,P(this,Ve).filter(n=>n!==t)),P(this,Ve).length||(P(this,Wt)&&(P(this,Cs)?P(this,Wt).cancel({revert:!0}):P(this,Wt).cancelRetry()),this.scheduleGc()),P(this,qt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return P(this,Ve).length}invalidate(){this.state.isInvalidated||se(this,yn,Xn).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,Or))return(u=P(this,Wt))==null||u.continueRetry(),P(this,Or)}if(t&&se(this,Li,au).call(this,t),!this.options.queryFn){const h=P(this,Ve).find(y=>y.options.queryFn);h&&se(this,Li,au).call(this,h.options)}const r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(G(this,Cs,!0),r.signal)})};i(s);const o=()=>this.options.queryFn?(G(this,Cs,!1),this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(c=this.options.behavior)==null||c.onFetch(l,this),G(this,Mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&se(this,yn,Xn).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta});const a=h=>{var y,w,x,g;Vd(h)&&h.silent||se(this,yn,Xn).call(this,{type:"error",error:h}),Vd(h)||((w=(y=P(this,qt).config).onError)==null||w.call(y,h,this),(g=(x=P(this,qt).config).onSettled)==null||g.call(x,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return G(this,Wt,Ry({fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var y,w,x,g;if(typeof h>"u"){a(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(w=(y=P(this,qt).config).onSuccess)==null||w.call(y,h,this),(g=(x=P(this,qt).config).onSettled)==null||g.call(x,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(h,y)=>{se(this,yn,Xn).call(this,{type:"failed",failureCount:h,error:y})},onPause:()=>{se(this,yn,Xn).call(this,{type:"pause"})},onContinue:()=>{se(this,yn,Xn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode})),G(this,Or,P(this,Wt).promise),P(this,Or)}},_i=new WeakMap,Mi=new WeakMap,qt=new WeakMap,Or=new WeakMap,Wt=new WeakMap,Ve=new WeakMap,Ga=new WeakMap,Cs=new WeakMap,Li=new WeakSet,au=function(t){this.options={...P(this,Ga),...t},this.updateGcTime(this.options.gcTime)},yn=new WeakSet,Xn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Lc(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Vd(s)&&s.revert&&P(this,Mi)?{...P(this,Mi),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fe.batch(()=>{P(this,Ve).forEach(r=>{r.onQueryUpdate()}),P(this,qt).notify({query:this,type:"updated",action:t})})},Y0);function O4(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var An,J0,Ay=(J0=class extends uo{constructor(t={}){super();Y(this,An,void 0);this.config=t,G(this,An,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Nh(s,n);let o=this.get(i);return o||(o=new P4({cache:this,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){P(this,An).has(t.queryHash)||(P(this,An).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,An).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,An).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,An).get(t)}getAll(){return[...P(this,An).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>nv(t,r)):n}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},An=new WeakMap,J0),In,Qa,Nt,Di,_n,br,Z0,R4=(Z0=class extends Ny{constructor(t){super();Y(this,_n);Y(this,In,void 0);Y(this,Qa,void 0);Y(this,Nt,void 0);Y(this,Di,void 0);this.mutationId=t.mutationId,G(this,Qa,t.defaultOptions),G(this,Nt,t.mutationCache),G(this,In,[]),this.state=t.state||Iy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...P(this,Qa),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,In).includes(t)||(P(this,In).push(t),this.clearGcTimeout(),P(this,Nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,In,P(this,In).filter(n=>n!==t)),this.scheduleGc(),P(this,Nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,In).length||(this.state.status==="pending"?this.scheduleGc():P(this,Nt).remove(this))}continue(){var t;return((t=P(this,Di))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,o,l,a,u,c,f,p,h,y,w,x,g,m,v,b,E,T,C;const n=()=>(G(this,Di,Ry({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,j)=>{se(this,_n,br).call(this,{type:"failed",failureCount:R,error:j})},onPause:()=>{se(this,_n,br).call(this,{type:"pause"})},onContinue:()=>{se(this,_n,br).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),P(this,Di).promise),r=this.state.status==="pending";try{if(!r){se(this,_n,br).call(this,{type:"pending",variables:t}),await((i=(s=P(this,Nt).config).onMutate)==null?void 0:i.call(s,t,this));const j=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));j!==this.state.context&&se(this,_n,br).call(this,{type:"pending",context:j,variables:t})}const R=await n();return await((u=(a=P(this,Nt).config).onSuccess)==null?void 0:u.call(a,R,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,R,t,this.state.context)),await((h=(p=P(this,Nt).config).onSettled)==null?void 0:h.call(p,R,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,R,null,t,this.state.context)),se(this,_n,br).call(this,{type:"success",data:R}),R}catch(R){try{throw await((g=(x=P(this,Nt).config).onError)==null?void 0:g.call(x,R,t,this.state.context,this)),await((v=(m=this.options).onError)==null?void 0:v.call(m,R,t,this.state.context)),await((E=(b=P(this,Nt).config).onSettled)==null?void 0:E.call(b,void 0,R,this.state.variables,this.state.context,this)),await((C=(T=this.options).onSettled)==null?void 0:C.call(T,void 0,R,t,this.state.context)),R}finally{se(this,_n,br).call(this,{type:"error",error:R})}}}},In=new WeakMap,Qa=new WeakMap,Nt=new WeakMap,Di=new WeakMap,_n=new WeakSet,br=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Lc(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Fe.batch(()=>{P(this,In).forEach(r=>{r.onMutationUpdate(t)}),P(this,Nt).notify({mutation:this,type:"updated",action:t})})},Z0);function Iy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gt,Ka,ks,ey,N4=(ey=class extends uo{constructor(t={}){super();Y(this,Gt,void 0);Y(this,Ka,void 0);Y(this,ks,void 0);this.config=t,G(this,Gt,[]),G(this,Ka,0)}build(t,n,r){const s=new R4({mutationCache:this,mutationId:++Tl(this,Ka)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){P(this,Gt).push(t),this.notify({type:"added",mutation:t})}remove(t){G(this,Gt,P(this,Gt).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Fe.batch(()=>{P(this,Gt).forEach(t=>{this.remove(t)})})}getAll(){return P(this,Gt)}find(t){const n={exact:!0,...t};return P(this,Gt).find(r=>rv(n,r))}findAll(t={}){return P(this,Gt).filter(n=>rv(t,n))}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return G(this,ks,(P(this,ks)??Promise.resolve()).then(()=>{const t=P(this,Gt).filter(n=>n.state.isPaused);return Fe.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Kt)),Promise.resolve()))}).then(()=>{G(this,ks,void 0)})),P(this,ks)}},Gt=new WeakMap,Ka=new WeakMap,ks=new WeakMap,ey);function Yf(e){return{onFetch:(t,n)=>{const r=async()=>{var y,w,x,g,m;const s=t.options,i=(x=(w=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:w.fetchMore)==null?void 0:x.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],l=((m=t.state.data)==null?void 0:m.pageParams)||[],a={pages:[],pageParams:[]};let u=!1;const c=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(v,b,E)=>{if(u)return Promise.reject();if(b==null&&v.pages.length)return Promise.resolve(v);const T={queryKey:t.queryKey,pageParam:b,direction:E?"backward":"forward",meta:t.options.meta};c(T);const C=await f(T),{maxPages:R}=t.options,j=E?E4:S4;return{pages:j(v.pages,C,R),pageParams:j(v.pageParams,b,R)}};let h;if(i&&o.length){const v=i==="backward",b=v?_y:Jf,E={pages:o,pageParams:l},T=b(s,E);h=await p(E,T,v)}else{h=await p(a,l[0]??s.initialPageParam);const v=e??o.length;for(let b=1;b<v;b++){const E=Jf(s,h);h=await p(h,E)}}return h};t.options.persister?t.fetchFn=()=>{var s,i;return(i=(s=t.options).persister)==null?void 0:i.call(s,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Jf(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function _y(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function A4(e,t){return t?Jf(e,t)!=null:!1}function I4(e,t){return!t||!e.getPreviousPageParam?!1:_y(e,t)!=null}var Le,Rr,Nr,Fi,$i,Ar,zi,Bi,ty,_4=(ty=class{constructor(e={}){Y(this,Le,void 0);Y(this,Rr,void 0);Y(this,Nr,void 0);Y(this,Fi,void 0);Y(this,$i,void 0);Y(this,Ar,void 0);Y(this,zi,void 0);Y(this,Bi,void 0);G(this,Le,e.queryCache||new Ay),G(this,Rr,e.mutationCache||new N4),G(this,Nr,e.defaultOptions||{}),G(this,Fi,new Map),G(this,$i,new Map),G(this,Ar,0)}mount(){Tl(this,Ar)._++,P(this,Ar)===1&&(G(this,zi,Fu.subscribe(()=>{Fu.isFocused()&&(this.resumePausedMutations(),P(this,Le).onFocus())})),G(this,Bi,$u.subscribe(()=>{$u.isOnline()&&(this.resumePausedMutations(),P(this,Le).onOnline())})))}unmount(){var e,t;Tl(this,Ar)._--,P(this,Ar)===0&&((e=P(this,zi))==null||e.call(this),G(this,zi,void 0),(t=P(this,Bi))==null||t.call(this),G(this,Bi,void 0))}isFetching(e){return P(this,Le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Rr).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=P(this,Le).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=P(this,Le).find({queryKey:e}),s=r==null?void 0:r.state.data,i=b4(t,s);if(typeof i>"u")return;const o=this.defaultQueryOptions({queryKey:e});return P(this,Le).build(this,o).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Fe.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=P(this,Le).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=P(this,Le);Fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,Le),r={type:"active",...e};return Fe.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Fe.batch(()=>P(this,Le).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Kt).catch(Kt)}invalidateQueries(e={},t={}){return Fe.batch(()=>{if(P(this,Le).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Fe.batch(()=>P(this,Le).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Kt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=P(this,Le).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Kt).catch(Kt)}fetchInfiniteQuery(e){return e.behavior=Yf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kt).catch(Kt)}resumePausedMutations(){return P(this,Rr).resumePausedMutations()}getQueryCache(){return P(this,Le)}getMutationCache(){return P(this,Rr)}getDefaultOptions(){return P(this,Nr)}setDefaultOptions(e){G(this,Nr,e)}setQueryDefaults(e,t){P(this,Fi).set(fa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Fi).values()];let n={};return t.forEach(r=>{pa(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){P(this,$i).set(fa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,$i).values()];let n={};return t.forEach(r=>{pa(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...P(this,Nr).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Nh(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,Nr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,Le).clear(),P(this,Rr).clear()}},Le=new WeakMap,Rr=new WeakMap,Nr=new WeakMap,Fi=new WeakMap,$i=new WeakMap,Ar=new WeakMap,zi=new WeakMap,Bi=new WeakMap,ty),vt,me,Vi,tt,Ts,Ui,Mn,Xa,Hi,qi,js,Ps,Ir,Os,Rs,Lo,Ya,Zf,Ja,ep,Za,tp,el,np,tl,rp,nl,sp,rl,ip,Ic,Ly,ny,My=(ny=class extends uo{constructor(t,n){super();Y(this,Rs);Y(this,Ya);Y(this,Ja);Y(this,Za);Y(this,el);Y(this,tl);Y(this,nl);Y(this,rl);Y(this,Ic);Y(this,vt,void 0);Y(this,me,void 0);Y(this,Vi,void 0);Y(this,tt,void 0);Y(this,Ts,void 0);Y(this,Ui,void 0);Y(this,Mn,void 0);Y(this,Xa,void 0);Y(this,Hi,void 0);Y(this,qi,void 0);Y(this,js,void 0);Y(this,Ps,void 0);Y(this,Ir,void 0);Y(this,Os,void 0);G(this,me,void 0),G(this,Vi,void 0),G(this,tt,void 0),G(this,Os,new Set),G(this,vt,t),this.options=n,G(this,Mn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,me).addObserver(this),av(P(this,me),this.options)?se(this,Rs,Lo).call(this):this.updateResult(),se(this,el,np).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return op(P(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return op(P(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,se(this,tl,rp).call(this),se(this,nl,sp).call(this),P(this,me).removeObserver(this)}setOptions(t,n){const r=this.options,s=P(this,me);if(this.options=P(this,vt).defaultQueryOptions(t),Du(r,this.options)||P(this,vt).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,me),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),se(this,rl,ip).call(this);const i=this.hasListeners();i&&lv(P(this,me),s,this.options,r)&&se(this,Rs,Lo).call(this),this.updateResult(n),i&&(P(this,me)!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&se(this,Ya,Zf).call(this);const o=se(this,Ja,ep).call(this);i&&(P(this,me)!==s||this.options.enabled!==r.enabled||o!==P(this,Ir))&&se(this,Za,tp).call(this,o)}getOptimisticResult(t){const n=P(this,vt).getQueryCache().build(P(this,vt),t),r=this.createResult(n,t);return L4(this,r)&&(G(this,tt,r),G(this,Ui,this.options),G(this,Ts,P(this,me).state)),r}getCurrentResult(){return P(this,tt)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(P(this,Os).add(r),t[r])})}),n}getCurrentQuery(){return P(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=P(this,vt).defaultQueryOptions(t),r=P(this,vt).getQueryCache().build(P(this,vt),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return se(this,Rs,Lo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,tt)))}createResult(t,n){var T;const r=P(this,me),s=this.options,i=P(this,tt),o=P(this,Ts),l=P(this,Ui),u=t!==r?t.state:P(this,Vi),{state:c}=t;let{error:f,errorUpdatedAt:p,fetchStatus:h,status:y}=c,w=!1,x;if(n._optimisticResults){const C=this.hasListeners(),R=!C&&av(t,n),j=C&&lv(t,r,n,s);(R||j)&&(h=Lc(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(y="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(i&&c.data===(o==null?void 0:o.data)&&n.select===P(this,Xa))x=P(this,Hi);else try{G(this,Xa,n.select),x=n.select(c.data),x=Xf(i==null?void 0:i.data,x,n),G(this,Hi,x),G(this,Mn,null)}catch(C){G(this,Mn,C)}else x=c.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&y==="pending"){let C;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))C=i.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((T=P(this,qi))==null?void 0:T.state.data,P(this,qi)):n.placeholderData,n.select&&typeof C<"u")try{C=n.select(C),G(this,Mn,null)}catch(R){G(this,Mn,R)}typeof C<"u"&&(y="success",x=Xf(i==null?void 0:i.data,C,n),w=!0)}P(this,Mn)&&(f=P(this,Mn),x=P(this,Hi),p=Date.now(),y="error");const g=h==="fetching",m=y==="pending",v=y==="error",b=m&&g;return{status:y,fetchStatus:h,isPending:m,isSuccess:y==="success",isError:v,isInitialLoading:b,isLoading:b,data:x,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!m,isLoadingError:v&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:w,isRefetchError:v&&c.dataUpdatedAt!==0,isStale:Ah(t,n),refetch:this.refetch}}updateResult(t){const n=P(this,tt),r=this.createResult(P(this,me),this.options);if(G(this,Ts,P(this,me).state),G(this,Ui,this.options),P(this,Ts).data!==void 0&&G(this,qi,P(this,me)),Du(r,n))return;G(this,tt,r);const s={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!P(this,Os).size)return!0;const a=new Set(l??P(this,Os));return this.options.throwOnError&&a.add("error"),Object.keys(P(this,tt)).some(u=>{const c=u;return P(this,tt)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),se(this,Ic,Ly).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&se(this,el,np).call(this)}},vt=new WeakMap,me=new WeakMap,Vi=new WeakMap,tt=new WeakMap,Ts=new WeakMap,Ui=new WeakMap,Mn=new WeakMap,Xa=new WeakMap,Hi=new WeakMap,qi=new WeakMap,js=new WeakMap,Ps=new WeakMap,Ir=new WeakMap,Os=new WeakMap,Rs=new WeakSet,Lo=function(t){se(this,rl,ip).call(this);let n=P(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Kt)),n},Ya=new WeakSet,Zf=function(){if(se(this,tl,rp).call(this),Gi||P(this,tt).isStale||!Qf(this.options.staleTime))return;const n=Ty(P(this,tt).dataUpdatedAt,this.options.staleTime)+1;G(this,js,setTimeout(()=>{P(this,tt).isStale||this.updateResult()},n))},Ja=new WeakSet,ep=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,me)):this.options.refetchInterval)??!1},Za=new WeakSet,tp=function(t){se(this,nl,sp).call(this),G(this,Ir,t),!(Gi||this.options.enabled===!1||!Qf(P(this,Ir))||P(this,Ir)===0)&&G(this,Ps,setInterval(()=>{(this.options.refetchIntervalInBackground||Fu.isFocused())&&se(this,Rs,Lo).call(this)},P(this,Ir)))},el=new WeakSet,np=function(){se(this,Ya,Zf).call(this),se(this,Za,tp).call(this,se(this,Ja,ep).call(this))},tl=new WeakSet,rp=function(){P(this,js)&&(clearTimeout(P(this,js)),G(this,js,void 0))},nl=new WeakSet,sp=function(){P(this,Ps)&&(clearInterval(P(this,Ps)),G(this,Ps,void 0))},rl=new WeakSet,ip=function(){const t=P(this,vt).getQueryCache().build(P(this,vt),this.options);if(t===P(this,me))return;const n=P(this,me);G(this,me,t),G(this,Vi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ic=new WeakSet,Ly=function(t){Fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(P(this,tt))}),P(this,vt).getQueryCache().notify({query:P(this,me),type:"observerResultsUpdated"})})},ny);function M4(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function av(e,t){return M4(e,t)||e.state.dataUpdatedAt>0&&op(e,t,t.refetchOnMount)}function op(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ah(e,t)}return!1}function lv(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Ah(e,n)}function Ah(e,t){return e.isStaleByTime(t.staleTime)}function L4(e,t){return!Du(e.getCurrentResult(),t)}var D4=class extends My{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Yf()},t)}getOptimisticResult(e){return e.behavior=Yf(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var a,u,c,f;const{state:n}=e,r=super.createResult(e,t),{isFetching:s,isRefetching:i}=r,o=s&&((u=(a=n.fetchMeta)==null?void 0:a.fetchMore)==null?void 0:u.direction)==="forward",l=s&&((f=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:f.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:A4(t,n.data),hasPreviousPage:I4(t,n.data),isFetchingNextPage:o,isFetchingPreviousPage:l,isRefetching:i&&!o&&!l}}},_r,it,Qt,tr,Wi,lu,sl,ap,ry,F4=(ry=class extends uo{constructor(n,r){super();Y(this,Wi);Y(this,sl);Y(this,_r,void 0);Y(this,it,void 0);Y(this,Qt,void 0);Y(this,tr,void 0);G(this,it,void 0),G(this,_r,n),this.setOptions(r),this.bindMethods(),se(this,Wi,lu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=P(this,_r).defaultMutationOptions(n),Du(r,this.options)||P(this,_r).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,Qt),observer:this}),(s=P(this,Qt))==null||s.setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=P(this,Qt))==null||n.removeObserver(this)}onMutationUpdate(n){se(this,Wi,lu).call(this),se(this,sl,ap).call(this,n)}getCurrentResult(){return P(this,it)}reset(){G(this,Qt,void 0),se(this,Wi,lu).call(this),se(this,sl,ap).call(this)}mutate(n,r){var s;return G(this,tr,r),(s=P(this,Qt))==null||s.removeObserver(this),G(this,Qt,P(this,_r).getMutationCache().build(P(this,_r),this.options)),P(this,Qt).addObserver(this),P(this,Qt).execute(n)}},_r=new WeakMap,it=new WeakMap,Qt=new WeakMap,tr=new WeakMap,Wi=new WeakSet,lu=function(){var r;const n=((r=P(this,Qt))==null?void 0:r.state)??Iy();G(this,it,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sl=new WeakSet,ap=function(n){Fe.batch(()=>{var r,s,i,o,l,a,u,c;P(this,tr)&&this.hasListeners()&&((n==null?void 0:n.type)==="success"?((s=(r=P(this,tr)).onSuccess)==null||s.call(r,n.data,P(this,it).variables,P(this,it).context),(o=(i=P(this,tr)).onSettled)==null||o.call(i,n.data,null,P(this,it).variables,P(this,it).context)):(n==null?void 0:n.type)==="error"&&((a=(l=P(this,tr)).onError)==null||a.call(l,n.error,P(this,it).variables,P(this,it).context),(c=(u=P(this,tr)).onSettled)==null||c.call(u,void 0,n.error,P(this,it).variables,P(this,it).context))),this.listeners.forEach(f=>{f(P(this,it))})})},ry),Dy=S.createContext(void 0),pn=e=>{const t=S.useContext(Dy);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$4=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.createElement(Dy.Provider,{value:e},t)),Fy=S.createContext(!1),z4=()=>S.useContext(Fy);Fy.Provider;function B4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var V4=S.createContext(B4()),U4=()=>S.useContext(V4);function $y(e,t){return typeof e=="function"?e(...t):!!e}var H4=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},q4=e=>{S.useEffect(()=>{e.clearReset()},[e])},W4=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&$y(n,[e.error,r]),G4=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Q4=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,K4=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function zy(e,t,n){const r=pn(n),s=z4(),i=U4(),o=r.defaultQueryOptions(e);o._optimisticResults=s?"isRestoring":"optimistic",G4(o),H4(o,i),q4(i);const[l]=S.useState(()=>new t(r,o)),a=l.getOptimisticResult(o);if(S.useSyncExternalStore(S.useCallback(u=>{const c=s?()=>{}:l.subscribe(Fe.batchCalls(u));return l.updateResult(),c},[l,s]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),S.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),Q4(o,a))throw K4(o,l,i);if(W4({result:a,errorResetBoundary:i,throwOnError:o.throwOnError,query:l.getCurrentQuery()}))throw a.error;return o.notifyOnChangeProps?a:l.trackResult(a)}function Ih(e,t){return zy(e,My,t)}function mr(e,t){const n=pn(t),[r]=S.useState(()=>new F4(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const s=S.useSyncExternalStore(S.useCallback(o=>r.subscribe(Fe.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=S.useCallback((o,l)=>{r.mutate(o,l).catch(X4)},[r]);if(s.error&&$y(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function X4(){}function Y4(e,t){return zy(e,D4,t)}var By={exports:{}},Vt={},Vy={exports:{}},Uy={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/(function(e){function t(_,$){var V=_.length;_.push($);e:for(;0<V;){var ne=V-1>>>1,re=_[ne];if(0<s(re,$))_[ne]=$,_[V]=re,V=ne;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var $=_[0],V=_.pop();if(V!==$){_[0]=V;e:for(var ne=0,re=_.length,de=re>>>1;ne<de;){var ye=2*(ne+1)-1,he=_[ye],je=ye+1,Ie=_[je];if(0>s(he,V))je<re&&0>s(Ie,he)?(_[ne]=Ie,_[je]=V,ne=je):(_[ne]=he,_[ye]=V,ne=ye);else if(je<re&&0>s(Ie,V))_[ne]=Ie,_[je]=V,ne=je;else break e}}return $}function s(_,$){var V=_.sortIndex-$.sortIndex;return V!==0?V:_.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,p=3,h=!1,y=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(_){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=_)r(u),$.sortIndex=$.expirationTime,t(a,$);else break;$=n(u)}}function b(_){if(w=!1,v(_),!y)if(n(a)!==null)y=!0,I(E);else{var $=n(u);$!==null&&z(b,$.startTime-_)}}function E(_,$){y=!1,w&&(w=!1,g(R),R=-1),h=!0;var V=p;try{for(v($),f=n(a);f!==null&&(!(f.expirationTime>$)||_&&!A());){var ne=f.callback;if(typeof ne=="function"){f.callback=null,p=f.priorityLevel;var re=ne(f.expirationTime<=$);$=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(a)&&r(a),v($)}else r(a);f=n(a)}if(f!==null)var de=!0;else{var ye=n(u);ye!==null&&z(b,ye.startTime-$),de=!1}return de}finally{f=null,p=V,h=!1}}var T=!1,C=null,R=-1,j=5,L=-1;function A(){return!(e.unstable_now()-L<j)}function N(){if(C!==null){var _=e.unstable_now();L=_;var $=!0;try{$=C(!0,_)}finally{$?M():(T=!1,C=null)}}else T=!1}var M;if(typeof m=="function")M=function(){m(N)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,k=D.port2;D.port1.onmessage=N,M=function(){k.postMessage(null)}}else M=function(){x(N,0)};function I(_){C=_,T||(T=!0,M())}function z(_,$){R=x(function(){_(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,I(E))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var V=p;p=$;try{return _()}finally{p=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,$){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=p;p=_;try{return $()}finally{p=V}},e.unstable_scheduleCallback=function(_,$,V){var ne=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ne+V:ne):V=ne,_){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=V+re,_={id:c++,callback:$,priorityLevel:_,startTime:V,expirationTime:re,sortIndex:-1},V>ne?(_.sortIndex=V,t(u,_),n(a)===null&&_===n(u)&&(w?(g(R),R=-1):w=!0,z(b,V-ne))):(_.sortIndex=re,t(a,_),y||h||(y=!0,I(E))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var $=p;return function(){var V=p;p=$;try{return _.apply(this,arguments)}finally{p=V}}}})(Uy);Vy.exports=Uy;var J4=Vy.exports;/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Hy=S,zt=J4;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qy=new Set,ha={};function Gs(e,t){Qi(e,t),Qi(e+"Capture",t)}function Qi(e,t){for(ha[e]=t,e=0;e<t.length;e++)qy.add(t[e])}var ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lp=Object.prototype.hasOwnProperty,Z4=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,uv={},cv={};function e3(e){return lp.call(cv,e)?!0:lp.call(uv,e)?!1:Z4.test(e)?cv[e]=!0:(uv[e]=!0,!1)}function t3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function n3(e,t,n,r){if(t===null||typeof t>"u"||t3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ft(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new ft(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ke[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var _h=/[\-:]([a-z])/g;function Mh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_h,Mh);Ke[t]=new ft(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_h,Mh);Ke[t]=new ft(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_h,Mh);Ke[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lh(e,t,n,r){var s=Ke.hasOwnProperty(t)?Ke[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(n3(t,n,s,r)&&(n=null),r||s===null?e3(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gr=Hy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Rl=Symbol.for("react.element"),oi=Symbol.for("react.portal"),ai=Symbol.for("react.fragment"),Dh=Symbol.for("react.strict_mode"),up=Symbol.for("react.profiler"),Wy=Symbol.for("react.provider"),Gy=Symbol.for("react.context"),Fh=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),dp=Symbol.for("react.suspense_list"),$h=Symbol.for("react.memo"),Sr=Symbol.for("react.lazy"),Qy=Symbol.for("react.offscreen"),dv=Symbol.iterator;function xo(e){return e===null||typeof e!="object"?null:(e=dv&&e[dv]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,Ud;function Do(e){if(Ud===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ud=t&&t[1]||""}return`
|
|
35
|
-
`+Ud+e}var Hd=!1;function qd(e,t){if(!e||Hd)return"";Hd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
|
|
36
|
-
`),i=r.stack.split(`
|
|
37
|
-
`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var a=`
|
|
38
|
-
`+s[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Hd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Do(e):""}function r3(e){switch(e.tag){case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 2:case 15:return e=qd(e.type,!1),e;case 11:return e=qd(e.type.render,!1),e;case 1:return e=qd(e.type,!0),e;default:return""}}function fp(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 ai:return"Fragment";case oi:return"Portal";case up:return"Profiler";case Dh:return"StrictMode";case cp:return"Suspense";case dp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gy:return(e.displayName||"Context")+".Consumer";case Wy:return(e._context.displayName||"Context")+".Provider";case Fh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $h:return t=e.displayName||null,t!==null?t:fp(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return fp(e(t))}catch{}}return null}function s3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fp(t);case 8:return t===Dh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ky(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i3(e){var t=Ky(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nl(e){e._valueTracker||(e._valueTracker=i3(e))}function Xy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ky(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zu(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 pp(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yy(e,t){t=t.checked,t!=null&&Lh(e,"checked",t,!1)}function hp(e,t){Yy(e,t);var n=Zr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mp(e,t.type,n):t.hasOwnProperty("defaultValue")&&mp(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mp(e,t,n){(t!=="number"||zu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fo=Array.isArray;function xi(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Zr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function gp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(Fo(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zr(n)}}function Jy(e,t){var n=Zr(t.value),r=Zr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function mv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zy(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 vp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Al,ew=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Al=Al||document.createElement("div"),Al.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Al.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ma(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qo={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},o3=["Webkit","ms","Moz","O"];Object.keys(qo).forEach(function(e){o3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qo[t]=qo[e]})});function tw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qo.hasOwnProperty(e)&&qo[e]?(""+t).trim():t+"px"}function nw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=tw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var a3=ke({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 yp(e,t){if(t){if(a3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function wp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xp=null;function zh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bp=null,bi=null,Si=null;function gv(e){if(e=ul(e)){if(typeof bp!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Bc(t),bp(e.stateNode,e.type,t))}}function rw(e){bi?Si?Si.push(e):Si=[e]:bi=e}function sw(){if(bi){var e=bi,t=Si;if(Si=bi=null,gv(e),t)for(e=0;e<t.length;e++)gv(t[e])}}function iw(e,t){return e(t)}function ow(){}var Wd=!1;function aw(e,t,n){if(Wd)return e(t,n);Wd=!0;try{return iw(e,t,n)}finally{Wd=!1,(bi!==null||Si!==null)&&(ow(),sw())}}function ga(e,t){var n=e.stateNode;if(n===null)return null;var r=Bc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var Sp=!1;if(ar)try{var bo={};Object.defineProperty(bo,"passive",{get:function(){Sp=!0}}),window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,bo)}catch{Sp=!1}function l3(e,t,n,r,s,i,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Wo=!1,Bu=null,Vu=!1,Ep=null,u3={onError:function(e){Wo=!0,Bu=e}};function c3(e,t,n,r,s,i,o,l,a){Wo=!1,Bu=null,l3.apply(u3,arguments)}function d3(e,t,n,r,s,i,o,l,a){if(c3.apply(this,arguments),Wo){if(Wo){var u=Bu;Wo=!1,Bu=null}else throw Error(H(198));Vu||(Vu=!0,Ep=u)}}function Qs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function lw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vv(e){if(Qs(e)!==e)throw Error(H(188))}function f3(e){var t=e.alternate;if(!t){if(t=Qs(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return vv(s),e;if(i===r)return vv(s),t;i=i.sibling}throw Error(H(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function uw(e){return e=f3(e),e!==null?cw(e):null}function cw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=cw(e);if(t!==null)return t;e=e.sibling}return null}var dw=zt.unstable_scheduleCallback,yv=zt.unstable_cancelCallback,p3=zt.unstable_shouldYield,h3=zt.unstable_requestPaint,Ae=zt.unstable_now,m3=zt.unstable_getCurrentPriorityLevel,Bh=zt.unstable_ImmediatePriority,fw=zt.unstable_UserBlockingPriority,Uu=zt.unstable_NormalPriority,g3=zt.unstable_LowPriority,pw=zt.unstable_IdlePriority,Dc=null,zn=null;function v3(e){if(zn&&typeof zn.onCommitFiberRoot=="function")try{zn.onCommitFiberRoot(Dc,e,void 0,(e.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:x3,y3=Math.log,w3=Math.LN2;function x3(e){return e>>>=0,e===0?32:31-(y3(e)/w3|0)|0}var Il=64,_l=4194304;function $o(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 Hu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=$o(l):(i&=o,i!==0&&(r=$o(i)))}else o=n&~s,o!==0?r=$o(o):i!==0&&(r=$o(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Cn(t),s=1<<n,r|=e[n],t&=~s;return r}function b3(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function S3(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Cn(i),l=1<<o,a=s[o];a===-1?(!(l&n)||l&r)&&(s[o]=b3(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Cp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hw(){var e=Il;return Il<<=1,!(Il&4194240)&&(Il=64),e}function Gd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function al(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cn(t),e[t]=n}function E3(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Cn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Vh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var pe=0;function mw(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gw,Uh,vw,yw,ww,kp=!1,Ml=[],Ur=null,Hr=null,qr=null,va=new Map,ya=new Map,Cr=[],C3="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 wv(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Hr=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":va.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ya.delete(t.pointerId)}}function So(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=ul(t),t!==null&&Uh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function k3(e,t,n,r,s){switch(t){case"focusin":return Ur=So(Ur,e,t,n,r,s),!0;case"dragenter":return Hr=So(Hr,e,t,n,r,s),!0;case"mouseover":return qr=So(qr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return va.set(i,So(va.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ya.set(i,So(ya.get(i)||null,e,t,n,r,s)),!0}return!1}function xw(e){var t=vs(e.target);if(t!==null){var n=Qs(t);if(n!==null){if(t=n.tag,t===13){if(t=lw(n),t!==null){e.blockedOn=t,ww(e.priority,function(){vw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function uu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xp=r,n.target.dispatchEvent(r),xp=null}else return t=ul(n),t!==null&&Uh(t),e.blockedOn=n,!1;t.shift()}return!0}function xv(e,t,n){uu(e)&&n.delete(t)}function T3(){kp=!1,Ur!==null&&uu(Ur)&&(Ur=null),Hr!==null&&uu(Hr)&&(Hr=null),qr!==null&&uu(qr)&&(qr=null),va.forEach(xv),ya.forEach(xv)}function Eo(e,t){e.blockedOn===t&&(e.blockedOn=null,kp||(kp=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,T3)))}function wa(e){function t(s){return Eo(s,e)}if(0<Ml.length){Eo(Ml[0],e);for(var n=1;n<Ml.length;n++){var r=Ml[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ur!==null&&Eo(Ur,e),Hr!==null&&Eo(Hr,e),qr!==null&&Eo(qr,e),va.forEach(t),ya.forEach(t),n=0;n<Cr.length;n++)r=Cr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cr.length&&(n=Cr[0],n.blockedOn===null);)xw(n),n.blockedOn===null&&Cr.shift()}var Ei=gr.ReactCurrentBatchConfig,qu=!0;function j3(e,t,n,r){var s=pe,i=Ei.transition;Ei.transition=null;try{pe=1,Hh(e,t,n,r)}finally{pe=s,Ei.transition=i}}function P3(e,t,n,r){var s=pe,i=Ei.transition;Ei.transition=null;try{pe=4,Hh(e,t,n,r)}finally{pe=s,Ei.transition=i}}function Hh(e,t,n,r){if(qu){var s=Tp(e,t,n,r);if(s===null)rf(e,t,r,Wu,n),wv(e,r);else if(k3(s,e,t,n,r))r.stopPropagation();else if(wv(e,r),t&4&&-1<C3.indexOf(e)){for(;s!==null;){var i=ul(s);if(i!==null&&gw(i),i=Tp(e,t,n,r),i===null&&rf(e,t,r,Wu,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else rf(e,t,r,null,n)}}var Wu=null;function Tp(e,t,n,r){if(Wu=null,e=zh(r),e=vs(e),e!==null)if(t=Qs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wu=e,null}function bw(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(m3()){case Bh:return 1;case fw:return 4;case Uu:case g3:return 16;case pw:return 536870912;default:return 16}default:return 16}}var Mr=null,qh=null,cu=null;function Sw(){if(cu)return cu;var e,t=qh,n=t.length,r,s="value"in Mr?Mr.value:Mr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return cu=s.slice(e,1<r?1-r:void 0)}function du(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ll(){return!0}function bv(){return!1}function Ut(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ll:bv,this.isPropagationStopped=bv,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),t}var co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wh=Ut(co),ll=ke({},co,{view:0,detail:0}),O3=Ut(ll),Qd,Kd,Co,Fc=ke({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gh,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!==Co&&(Co&&e.type==="mousemove"?(Qd=e.screenX-Co.screenX,Kd=e.screenY-Co.screenY):Kd=Qd=0,Co=e),Qd)},movementY:function(e){return"movementY"in e?e.movementY:Kd}}),Sv=Ut(Fc),R3=ke({},Fc,{dataTransfer:0}),N3=Ut(R3),A3=ke({},ll,{relatedTarget:0}),Xd=Ut(A3),I3=ke({},co,{animationName:0,elapsedTime:0,pseudoElement:0}),_3=Ut(I3),M3=ke({},co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),L3=Ut(M3),D3=ke({},co,{data:0}),Ev=Ut(D3),F3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$3={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"},z3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z3[e])?!!t[e]:!1}function Gh(){return B3}var V3=ke({},ll,{key:function(e){if(e.key){var t=F3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=du(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gh,charCode:function(e){return e.type==="keypress"?du(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?du(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),U3=Ut(V3),H3=ke({},Fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cv=Ut(H3),q3=ke({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gh}),W3=Ut(q3),G3=ke({},co,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q3=Ut(G3),K3=ke({},Fc,{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}),X3=Ut(K3),Y3=[9,13,27,32],Qh=ar&&"CompositionEvent"in window,Go=null;ar&&"documentMode"in document&&(Go=document.documentMode);var J3=ar&&"TextEvent"in window&&!Go,Ew=ar&&(!Qh||Go&&8<Go&&11>=Go),kv=String.fromCharCode(32),Tv=!1;function Cw(e,t){switch(e){case"keyup":return Y3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function Z3(e,t){switch(e){case"compositionend":return kw(t);case"keypress":return t.which!==32?null:(Tv=!0,kv);case"textInput":return e=t.data,e===kv&&Tv?null:e;default:return null}}function ek(e,t){if(li)return e==="compositionend"||!Qh&&Cw(e,t)?(e=Sw(),cu=qh=Mr=null,li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ew&&t.locale!=="ko"?null:t.data;default:return null}}var tk={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 jv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tk[e.type]:t==="textarea"}function Tw(e,t,n,r){rw(r),t=Gu(t,"onChange"),0<t.length&&(n=new Wh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qo=null,xa=null;function nk(e){Dw(e,0)}function $c(e){var t=di(e);if(Xy(t))return e}function rk(e,t){if(e==="change")return t}var jw=!1;if(ar){var Yd;if(ar){var Jd="oninput"in document;if(!Jd){var Pv=document.createElement("div");Pv.setAttribute("oninput","return;"),Jd=typeof Pv.oninput=="function"}Yd=Jd}else Yd=!1;jw=Yd&&(!document.documentMode||9<document.documentMode)}function Ov(){Qo&&(Qo.detachEvent("onpropertychange",Pw),xa=Qo=null)}function Pw(e){if(e.propertyName==="value"&&$c(xa)){var t=[];Tw(t,xa,e,zh(e)),aw(nk,t)}}function sk(e,t,n){e==="focusin"?(Ov(),Qo=t,xa=n,Qo.attachEvent("onpropertychange",Pw)):e==="focusout"&&Ov()}function ik(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $c(xa)}function ok(e,t){if(e==="click")return $c(t)}function ak(e,t){if(e==="input"||e==="change")return $c(t)}function lk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tn=typeof Object.is=="function"?Object.is:lk;function ba(e,t){if(Tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!lp.call(t,s)||!Tn(e[s],t[s]))return!1}return!0}function Rv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nv(e,t){var n=Rv(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rv(n)}}function Ow(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ow(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rw(){for(var e=window,t=zu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zu(e.document)}return t}function Kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uk(e){var t=Rw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ow(n.ownerDocument.documentElement,n)){if(r!==null&&Kh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Nv(n,i);var o=Nv(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ck=ar&&"documentMode"in document&&11>=document.documentMode,ui=null,jp=null,Ko=null,Pp=!1;function Av(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pp||ui==null||ui!==zu(r)||(r=ui,"selectionStart"in r&&Kh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ko&&ba(Ko,r)||(Ko=r,r=Gu(jp,"onSelect"),0<r.length&&(t=new Wh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ui)))}function Dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ci={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionend:Dl("Transition","TransitionEnd")},Zd={},Nw={};ar&&(Nw=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function zc(e){if(Zd[e])return Zd[e];if(!ci[e])return e;var t=ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nw)return Zd[e]=t[n];return e}var Aw=zc("animationend"),Iw=zc("animationiteration"),_w=zc("animationstart"),Mw=zc("transitionend"),Lw=new Map,Iv="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 ss(e,t){Lw.set(e,t),Gs(t,[e])}for(var ef=0;ef<Iv.length;ef++){var tf=Iv[ef],dk=tf.toLowerCase(),fk=tf[0].toUpperCase()+tf.slice(1);ss(dk,"on"+fk)}ss(Aw,"onAnimationEnd");ss(Iw,"onAnimationIteration");ss(_w,"onAnimationStart");ss("dblclick","onDoubleClick");ss("focusin","onFocus");ss("focusout","onBlur");ss(Mw,"onTransitionEnd");Qi("onMouseEnter",["mouseout","mouseover"]);Qi("onMouseLeave",["mouseout","mouseover"]);Qi("onPointerEnter",["pointerout","pointerover"]);Qi("onPointerLeave",["pointerout","pointerover"]);Gs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zo="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(" "),pk=new Set("cancel close invalid load scroll toggle".split(" ").concat(zo));function _v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,d3(r,t,void 0,e),e.currentTarget=null}function Dw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&s.isPropagationStopped())break e;_v(s,l,u),i=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&s.isPropagationStopped())break e;_v(s,l,u),i=a}}}if(Vu)throw e=Ep,Vu=!1,Ep=null,e}function we(e,t){var n=t[Ip];n===void 0&&(n=t[Ip]=new Set);var r=e+"__bubble";n.has(r)||(Fw(t,e,2,!1),n.add(r))}function nf(e,t,n){var r=0;t&&(r|=4),Fw(n,e,r,t)}var Fl="_reactListening"+Math.random().toString(36).slice(2);function Sa(e){if(!e[Fl]){e[Fl]=!0,qy.forEach(function(n){n!=="selectionchange"&&(pk.has(n)||nf(n,!1,e),nf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fl]||(t[Fl]=!0,nf("selectionchange",!1,t))}}function Fw(e,t,n,r){switch(bw(t)){case 1:var s=j3;break;case 4:s=P3;break;default:s=Hh}n=s.bind(null,t,n,e),s=void 0,!Sp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function rf(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;o=o.return}for(;l!==null;){if(o=vs(l),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}l=l.parentNode}}r=r.return}aw(function(){var u=i,c=zh(n),f=[];e:{var p=Lw.get(e);if(p!==void 0){var h=Wh,y=e;switch(e){case"keypress":if(du(n)===0)break e;case"keydown":case"keyup":h=U3;break;case"focusin":y="focus",h=Xd;break;case"focusout":y="blur",h=Xd;break;case"beforeblur":case"afterblur":h=Xd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Sv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=N3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=W3;break;case Aw:case Iw:case _w:h=_3;break;case Mw:h=Q3;break;case"scroll":h=O3;break;case"wheel":h=X3;break;case"copy":case"cut":case"paste":h=L3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Cv}var w=(t&4)!==0,x=!w&&e==="scroll",g=w?p!==null?p+"Capture":null:p;w=[];for(var m=u,v;m!==null;){v=m;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,g!==null&&(b=ga(m,g),b!=null&&w.push(Ea(m,b,v)))),x)break;m=m.return}0<w.length&&(p=new h(p,y,null,n,c),f.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==xp&&(y=n.relatedTarget||n.fromElement)&&(vs(y)||y[lr]))break e;if((h||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?vs(y):null,y!==null&&(x=Qs(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(w=Sv,b="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(w=Cv,b="onPointerLeave",g="onPointerEnter",m="pointer"),x=h==null?p:di(h),v=y==null?p:di(y),p=new w(b,m+"leave",h,n,c),p.target=x,p.relatedTarget=v,b=null,vs(c)===u&&(w=new w(g,m+"enter",y,n,c),w.target=v,w.relatedTarget=x,b=w),x=b,h&&y)t:{for(w=h,g=y,m=0,v=w;v;v=ri(v))m++;for(v=0,b=g;b;b=ri(b))v++;for(;0<m-v;)w=ri(w),m--;for(;0<v-m;)g=ri(g),v--;for(;m--;){if(w===g||g!==null&&w===g.alternate)break t;w=ri(w),g=ri(g)}w=null}else w=null;h!==null&&Mv(f,p,h,w,!1),y!==null&&x!==null&&Mv(f,x,y,w,!0)}}e:{if(p=u?di(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var E=rk;else if(jv(p))if(jw)E=ak;else{E=ik;var T=sk}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=ok);if(E&&(E=E(e,u))){Tw(f,E,n,c);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&mp(p,"number",p.value)}switch(T=u?di(u):window,e){case"focusin":(jv(T)||T.contentEditable==="true")&&(ui=T,jp=u,Ko=null);break;case"focusout":Ko=jp=ui=null;break;case"mousedown":Pp=!0;break;case"contextmenu":case"mouseup":case"dragend":Pp=!1,Av(f,n,c);break;case"selectionchange":if(ck)break;case"keydown":case"keyup":Av(f,n,c)}var C;if(Qh)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else li?Cw(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Ew&&n.locale!=="ko"&&(li||R!=="onCompositionStart"?R==="onCompositionEnd"&&li&&(C=Sw()):(Mr=c,qh="value"in Mr?Mr.value:Mr.textContent,li=!0)),T=Gu(u,R),0<T.length&&(R=new Ev(R,e,null,n,c),f.push({event:R,listeners:T}),C?R.data=C:(C=kw(n),C!==null&&(R.data=C)))),(C=J3?Z3(e,n):ek(e,n))&&(u=Gu(u,"onBeforeInput"),0<u.length&&(c=new Ev("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}Dw(f,t)})}function Ea(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ga(e,n),i!=null&&r.unshift(Ea(e,i,s)),i=ga(e,t),i!=null&&r.push(Ea(e,i,s))),e=e.return}return r}function ri(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mv(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=ga(n,i),a!=null&&o.unshift(Ea(n,a,l))):s||(a=ga(n,i),a!=null&&o.push(Ea(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var hk=/\r\n?/g,mk=/\u0000|\uFFFD/g;function Lv(e){return(typeof e=="string"?e:""+e).replace(hk,`
|
|
39
|
-
`).replace(mk,"")}function $l(e,t,n){if(t=Lv(t),Lv(e)!==t&&n)throw Error(H(425))}function Qu(){}var Op=null,Rp=null;function Np(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ap=typeof setTimeout=="function"?setTimeout:void 0,gk=typeof clearTimeout=="function"?clearTimeout:void 0,Dv=typeof Promise=="function"?Promise:void 0,vk=typeof queueMicrotask=="function"?queueMicrotask:typeof Dv<"u"?function(e){return Dv.resolve(null).then(e).catch(yk)}:Ap;function yk(e){setTimeout(function(){throw e})}function sf(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),wa(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);wa(t)}function Wr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Fv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),Ln="__reactFiber$"+fo,Ca="__reactProps$"+fo,lr="__reactContainer$"+fo,Ip="__reactEvents$"+fo,wk="__reactListeners$"+fo,xk="__reactHandles$"+fo;function vs(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lr]||n[Ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fv(e);e!==null;){if(n=e[Ln])return n;e=Fv(e)}return t}e=n,n=e.parentNode}return null}function ul(e){return e=e[Ln]||e[lr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function di(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function Bc(e){return e[Ca]||null}var _p=[],fi=-1;function is(e){return{current:e}}function xe(e){0>fi||(e.current=_p[fi],_p[fi]=null,fi--)}function ve(e,t){fi++,_p[fi]=e.current,e.current=t}var es={},rt=is(es),St=is(!1),Ms=es;function Ki(e,t){var n=e.type.contextTypes;if(!n)return es;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Et(e){return e=e.childContextTypes,e!=null}function Ku(){xe(St),xe(rt)}function $v(e,t,n){if(rt.current!==es)throw Error(H(168));ve(rt,t),ve(St,n)}function $w(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(H(108,s3(e)||"Unknown",s));return ke({},n,r)}function Xu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,Ms=rt.current,ve(rt,e),ve(St,St.current),!0}function zv(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=$w(e,t,Ms),r.__reactInternalMemoizedMergedChildContext=e,xe(St),xe(rt),ve(rt,e)):xe(St),ve(St,n)}var er=null,Vc=!1,of=!1;function zw(e){er===null?er=[e]:er.push(e)}function bk(e){Vc=!0,zw(e)}function os(){if(!of&&er!==null){of=!0;var e=0,t=pe;try{var n=er;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}er=null,Vc=!1}catch(s){throw er!==null&&(er=er.slice(e+1)),dw(Bh,os),s}finally{pe=t,of=!1}}return null}var pi=[],hi=0,Yu=null,Ju=0,Yt=[],Jt=0,Ls=null,nr=1,rr="";function hs(e,t){pi[hi++]=Ju,pi[hi++]=Yu,Yu=e,Ju=t}function Bw(e,t,n){Yt[Jt++]=nr,Yt[Jt++]=rr,Yt[Jt++]=Ls,Ls=e;var r=nr;e=rr;var s=32-Cn(r)-1;r&=~(1<<s),n+=1;var i=32-Cn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,nr=1<<32-Cn(t)+s|n<<s|r,rr=i+e}else nr=1<<i|n<<s|r,rr=e}function Xh(e){e.return!==null&&(hs(e,1),Bw(e,1,0))}function Yh(e){for(;e===Yu;)Yu=pi[--hi],pi[hi]=null,Ju=pi[--hi],pi[hi]=null;for(;e===Ls;)Ls=Yt[--Jt],Yt[Jt]=null,rr=Yt[--Jt],Yt[Jt]=null,nr=Yt[--Jt],Yt[Jt]=null}var Ft=null,Lt=null,be=!1,xn=null;function Vw(e,t){var n=rn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Bv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ft=e,Lt=Wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ft=e,Lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ls!==null?{id:nr,overflow:rr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ft=e,Lt=null,!0):!1;default:return!1}}function Mp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Lp(e){if(be){var t=Lt;if(t){var n=t;if(!Bv(e,t)){if(Mp(e))throw Error(H(418));t=Wr(n.nextSibling);var r=Ft;t&&Bv(e,t)?Vw(r,n):(e.flags=e.flags&-4097|2,be=!1,Ft=e)}}else{if(Mp(e))throw Error(H(418));e.flags=e.flags&-4097|2,be=!1,Ft=e}}}function Vv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ft=e}function zl(e){if(e!==Ft)return!1;if(!be)return Vv(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Np(e.type,e.memoizedProps)),t&&(t=Lt)){if(Mp(e))throw Uw(),Error(H(418));for(;t;)Vw(e,t),t=Wr(t.nextSibling)}if(Vv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Lt=Wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Lt=null}}else Lt=Ft?Wr(e.stateNode.nextSibling):null;return!0}function Uw(){for(var e=Lt;e;)e=Wr(e.nextSibling)}function Xi(){Lt=Ft=null,be=!1}function Jh(e){xn===null?xn=[e]:xn.push(e)}var Sk=gr.ReactCurrentBatchConfig;function gn(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Zu=is(null),ec=null,mi=null,Zh=null;function em(){Zh=mi=ec=null}function tm(e){var t=Zu.current;xe(Zu),e._currentValue=t}function Dp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ci(e,t){ec=e,Zh=mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bt=!0),e.firstContext=null)}function ln(e){var t=e._currentValue;if(Zh!==e)if(e={context:e,memoizedValue:t,next:null},mi===null){if(ec===null)throw Error(H(308));mi=e,ec.dependencies={lanes:0,firstContext:e}}else mi=mi.next=e;return t}var ys=null;function nm(e){ys===null?ys=[e]:ys.push(e)}function Hw(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,nm(t)):(n.next=s.next,s.next=n),t.interleaved=n,ur(e,r)}function ur(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Er=!1;function rm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function or(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,ur(e,n)}return s=r.interleaved,s===null?(t.next=t,nm(r)):(t.next=s.next,s.next=t),r.interleaved=t,ur(e,n)}function fu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vh(e,n)}}function Uv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tc(e,t,n,r){var s=e.updateQueue;Er=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=s.baseState;o=0,c=u=a=null,l=i;do{var p=l.lane,h=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,w=l;switch(p=t,h=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){f=y.call(h,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(h,f,p):y,p==null)break e;f=ke({},f,p);break e;case 2:Er=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=f):c=c.next=h,o|=p;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;p=l,l=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(1);if(c===null&&(a=f),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Fs|=o,e.lanes=o,e.memoizedState=f}}function Hv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(H(191,s));s.call(r)}}}var Ww=new Hy.Component().refs;function Fp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Uc={isMounted:function(e){return(e=e._reactInternals)?Qs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ct(),s=Kr(e),i=or(r,s);i.payload=t,n!=null&&(i.callback=n),t=Gr(e,i,s),t!==null&&(kn(t,e,s,r),fu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ct(),s=Kr(e),i=or(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Gr(e,i,s),t!==null&&(kn(t,e,s,r),fu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ct(),r=Kr(e),s=or(n,r);s.tag=2,t!=null&&(s.callback=t),t=Gr(e,s,r),t!==null&&(kn(t,e,r,n),fu(t,e,r))}};function qv(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!ba(n,r)||!ba(s,i):!0}function Gw(e,t,n){var r=!1,s=es,i=t.contextType;return typeof i=="object"&&i!==null?i=ln(i):(s=Et(t)?Ms:rt.current,r=t.contextTypes,i=(r=r!=null)?Ki(e,s):es),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Uc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Wv(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Uc.enqueueReplaceState(t,t.state,null)}function $p(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Ww,rm(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ln(i):(i=Et(t)?Ms:rt.current,s.context=Ki(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Fp(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Uc.enqueueReplaceState(s,s.state,null),tc(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ko(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;l===Ww&&(l=s.refs={}),o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Bl(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gv(e){var t=e._init;return t(e._payload)}function Qw(e){function t(g,m){if(e){var v=g.deletions;v===null?(g.deletions=[m],g.flags|=16):v.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=Xr(g,m),g.index=0,g.sibling=null,g}function i(g,m,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<m?(g.flags|=2,m):v):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,v,b){return m===null||m.tag!==6?(m=pf(v,g.mode,b),m.return=g,m):(m=s(m,v),m.return=g,m)}function a(g,m,v,b){var E=v.type;return E===ai?c(g,m,v.props.children,b,v.key):m!==null&&(m.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Sr&&Gv(E)===m.type)?(b=s(m,v.props),b.ref=ko(g,m,v),b.return=g,b):(b=yu(v.type,v.key,v.props,null,g.mode,b),b.ref=ko(g,m,v),b.return=g,b)}function u(g,m,v,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=hf(v,g.mode,b),m.return=g,m):(m=s(m,v.children||[]),m.return=g,m)}function c(g,m,v,b,E){return m===null||m.tag!==7?(m=As(v,g.mode,b,E),m.return=g,m):(m=s(m,v),m.return=g,m)}function f(g,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=pf(""+m,g.mode,v),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Rl:return v=yu(m.type,m.key,m.props,null,g.mode,v),v.ref=ko(g,null,m),v.return=g,v;case oi:return m=hf(m,g.mode,v),m.return=g,m;case Sr:var b=m._init;return f(g,b(m._payload),v)}if(Fo(m)||xo(m))return m=As(m,g.mode,v,null),m.return=g,m;Bl(g,m)}return null}function p(g,m,v,b){var E=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:l(g,m,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Rl:return v.key===E?a(g,m,v,b):null;case oi:return v.key===E?u(g,m,v,b):null;case Sr:return E=v._init,p(g,m,E(v._payload),b)}if(Fo(v)||xo(v))return E!==null?null:c(g,m,v,b,null);Bl(g,v)}return null}function h(g,m,v,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(v)||null,l(m,g,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Rl:return g=g.get(b.key===null?v:b.key)||null,a(m,g,b,E);case oi:return g=g.get(b.key===null?v:b.key)||null,u(m,g,b,E);case Sr:var T=b._init;return h(g,m,v,T(b._payload),E)}if(Fo(b)||xo(b))return g=g.get(v)||null,c(m,g,b,E,null);Bl(m,b)}return null}function y(g,m,v,b){for(var E=null,T=null,C=m,R=m=0,j=null;C!==null&&R<v.length;R++){C.index>R?(j=C,C=null):j=C.sibling;var L=p(g,C,v[R],b);if(L===null){C===null&&(C=j);break}e&&C&&L.alternate===null&&t(g,C),m=i(L,m,R),T===null?E=L:T.sibling=L,T=L,C=j}if(R===v.length)return n(g,C),be&&hs(g,R),E;if(C===null){for(;R<v.length;R++)C=f(g,v[R],b),C!==null&&(m=i(C,m,R),T===null?E=C:T.sibling=C,T=C);return be&&hs(g,R),E}for(C=r(g,C);R<v.length;R++)j=h(C,g,R,v[R],b),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?R:j.key),m=i(j,m,R),T===null?E=j:T.sibling=j,T=j);return e&&C.forEach(function(A){return t(g,A)}),be&&hs(g,R),E}function w(g,m,v,b){var E=xo(v);if(typeof E!="function")throw Error(H(150));if(v=E.call(v),v==null)throw Error(H(151));for(var T=E=null,C=m,R=m=0,j=null,L=v.next();C!==null&&!L.done;R++,L=v.next()){C.index>R?(j=C,C=null):j=C.sibling;var A=p(g,C,L.value,b);if(A===null){C===null&&(C=j);break}e&&C&&A.alternate===null&&t(g,C),m=i(A,m,R),T===null?E=A:T.sibling=A,T=A,C=j}if(L.done)return n(g,C),be&&hs(g,R),E;if(C===null){for(;!L.done;R++,L=v.next())L=f(g,L.value,b),L!==null&&(m=i(L,m,R),T===null?E=L:T.sibling=L,T=L);return be&&hs(g,R),E}for(C=r(g,C);!L.done;R++,L=v.next())L=h(C,g,R,L.value,b),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?R:L.key),m=i(L,m,R),T===null?E=L:T.sibling=L,T=L);return e&&C.forEach(function(N){return t(g,N)}),be&&hs(g,R),E}function x(g,m,v,b){if(typeof v=="object"&&v!==null&&v.type===ai&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Rl:e:{for(var E=v.key,T=m;T!==null;){if(T.key===E){if(E=v.type,E===ai){if(T.tag===7){n(g,T.sibling),m=s(T,v.props.children),m.return=g,g=m;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Sr&&Gv(E)===T.type){n(g,T.sibling),m=s(T,v.props),m.ref=ko(g,T,v),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}v.type===ai?(m=As(v.props.children,g.mode,b,v.key),m.return=g,g=m):(b=yu(v.type,v.key,v.props,null,g.mode,b),b.ref=ko(g,m,v),b.return=g,g=b)}return o(g);case oi:e:{for(T=v.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=s(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=hf(v,g.mode,b),m.return=g,g=m}return o(g);case Sr:return T=v._init,x(g,m,T(v._payload),b)}if(Fo(v))return y(g,m,v,b);if(xo(v))return w(g,m,v,b);Bl(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,v),m.return=g,g=m):(n(g,m),m=pf(v,g.mode,b),m.return=g,g=m),o(g)):n(g,m)}return x}var Yi=Qw(!0),Kw=Qw(!1),cl={},Bn=is(cl),ka=is(cl),Ta=is(cl);function ws(e){if(e===cl)throw Error(H(174));return e}function sm(e,t){switch(ve(Ta,t),ve(ka,e),ve(Bn,cl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vp(t,e)}xe(Bn),ve(Bn,t)}function Ji(){xe(Bn),xe(ka),xe(Ta)}function Xw(e){ws(Ta.current);var t=ws(Bn.current),n=vp(t,e.type);t!==n&&(ve(ka,e),ve(Bn,n))}function im(e){ka.current===e&&(xe(Bn),xe(ka))}var Se=is(0);function nc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var af=[];function om(){for(var e=0;e<af.length;e++)af[e]._workInProgressVersionPrimary=null;af.length=0}var pu=gr.ReactCurrentDispatcher,lf=gr.ReactCurrentBatchConfig,Ds=0,Ce=null,De=null,Ue=null,rc=!1,Xo=!1,ja=0,Ek=0;function Ze(){throw Error(H(321))}function am(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tn(e[n],t[n]))return!1;return!0}function lm(e,t,n,r,s,i){if(Ds=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pu.current=e===null||e.memoizedState===null?jk:Pk,e=n(r,s),Xo){i=0;do{if(Xo=!1,ja=0,25<=i)throw Error(H(301));i+=1,Ue=De=null,t.updateQueue=null,pu.current=Ok,e=n(r,s)}while(Xo)}if(pu.current=sc,t=De!==null&&De.next!==null,Ds=0,Ue=De=Ce=null,rc=!1,t)throw Error(H(300));return e}function um(){var e=ja!==0;return ja=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Ce.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function un(){if(De===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ue===null?Ce.memoizedState:Ue.next;if(t!==null)Ue=t,De=e;else{if(e===null)throw Error(H(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ue===null?Ce.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function Pa(e,t){return typeof t=="function"?t(e):t}function uf(e){var t=un(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=De,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,a=null,u=i;do{var c=u.lane;if((Ds&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,Ce.lanes|=c,Fs|=c}u=u.next}while(u!==null&&u!==i);a===null?o=r:a.next=l,Tn(r,t.memoizedState)||(bt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Ce.lanes|=i,Fs|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cf(e){var t=un(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Tn(i,t.memoizedState)||(bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Yw(){}function Jw(e,t){var n=Ce,r=un(),s=t(),i=!Tn(r.memoizedState,s);if(i&&(r.memoizedState=s,bt=!0),r=r.queue,cm(tx.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,Oa(9,ex.bind(null,n,r,s,t),void 0,null),He===null)throw Error(H(349));Ds&30||Zw(n,t,s)}return s}function Zw(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ex(e,t,n,r){t.value=n,t.getSnapshot=r,nx(t)&&rx(e)}function tx(e,t,n){return n(function(){nx(t)&&rx(e)})}function nx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tn(e,n)}catch{return!0}}function rx(e){var t=ur(e,1);t!==null&&kn(t,e,1,-1)}function Qv(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=Tk.bind(null,Ce,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function sx(){return un().memoizedState}function hu(e,t,n,r){var s=Rn();Ce.flags|=e,s.memoizedState=Oa(1|t,n,void 0,r===void 0?null:r)}function Hc(e,t,n,r){var s=un();r=r===void 0?null:r;var i=void 0;if(De!==null){var o=De.memoizedState;if(i=o.destroy,r!==null&&am(r,o.deps)){s.memoizedState=Oa(t,n,i,r);return}}Ce.flags|=e,s.memoizedState=Oa(1|t,n,i,r)}function Kv(e,t){return hu(8390656,8,e,t)}function cm(e,t){return Hc(2048,8,e,t)}function ix(e,t){return Hc(4,2,e,t)}function ox(e,t){return Hc(4,4,e,t)}function ax(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lx(e,t,n){return n=n!=null?n.concat([e]):null,Hc(4,4,ax.bind(null,t,e),n)}function dm(){}function ux(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&am(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cx(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&am(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dx(e,t,n){return Ds&21?(Tn(n,t)||(n=hw(),Ce.lanes|=n,Fs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=n)}function Ck(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=lf.transition;lf.transition={};try{e(!1),t()}finally{pe=n,lf.transition=r}}function fx(){return un().memoizedState}function kk(e,t,n){var r=Kr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},px(e))hx(t,n);else if(n=Hw(e,t,n,r),n!==null){var s=ct();kn(n,e,r,s),mx(n,t,r)}}function Tk(e,t,n){var r=Kr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(px(e))hx(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,Tn(l,o)){var a=t.interleaved;a===null?(s.next=s,nm(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=Hw(e,t,s,r),n!==null&&(s=ct(),kn(n,e,r,s),mx(n,t,r))}}function px(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function hx(e,t){Xo=rc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vh(e,n)}}var sc={readContext:ln,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},jk={readContext:ln,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:Kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hu(4194308,4,ax.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hu(4194308,4,e,t)},useInsertionEffect:function(e,t){return hu(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kk.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Qv,useDebugValue:dm,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Qv(!1),t=e[0];return e=Ck.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,s=Rn();if(be){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),He===null)throw Error(H(349));Ds&30||Zw(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Kv(tx.bind(null,r,i,e),[e]),r.flags|=2048,Oa(9,ex.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Rn(),t=He.identifierPrefix;if(be){var n=rr,r=nr;n=(r&~(1<<32-Cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ja++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ek++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Pk={readContext:ln,useCallback:ux,useContext:ln,useEffect:cm,useImperativeHandle:lx,useInsertionEffect:ix,useLayoutEffect:ox,useMemo:cx,useReducer:uf,useRef:sx,useState:function(){return uf(Pa)},useDebugValue:dm,useDeferredValue:function(e){var t=un();return dx(t,De.memoizedState,e)},useTransition:function(){var e=uf(Pa)[0],t=un().memoizedState;return[e,t]},useMutableSource:Yw,useSyncExternalStore:Jw,useId:fx,unstable_isNewReconciler:!1},Ok={readContext:ln,useCallback:ux,useContext:ln,useEffect:cm,useImperativeHandle:lx,useInsertionEffect:ix,useLayoutEffect:ox,useMemo:cx,useReducer:cf,useRef:sx,useState:function(){return cf(Pa)},useDebugValue:dm,useDeferredValue:function(e){var t=un();return De===null?t.memoizedState=e:dx(t,De.memoizedState,e)},useTransition:function(){var e=cf(Pa)[0],t=un().memoizedState;return[e,t]},useMutableSource:Yw,useSyncExternalStore:Jw,useId:fx,unstable_isNewReconciler:!1};function Zi(e,t){try{var n="",r=t;do n+=r3(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
40
|
-
Error generating stack: `+i.message+`
|
|
41
|
-
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function df(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rk=typeof WeakMap=="function"?WeakMap:Map;function gx(e,t,n){n=or(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oc||(oc=!0,Xp=r),zp(e,t)},n}function vx(e,t,n){n=or(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){zp(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){zp(e,t),typeof r!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rk;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=Hk.bind(null,e,t,n),t.then(e,e))}function Yv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Jv(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=or(-1,1),t.tag=2,Gr(n,t,1))),n.lanes|=1),e)}var Nk=gr.ReactCurrentOwner,bt=!1;function ot(e,t,n,r){t.child=e===null?Kw(t,null,n,r):Yi(t,e.child,n,r)}function Zv(e,t,n,r,s){n=n.render;var i=t.ref;return Ci(t,s),r=lm(e,t,n,r,i,s),n=um(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,cr(e,t,s)):(be&&n&&Xh(t),t.flags|=1,ot(e,t,r,s),t.child)}function e1(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!wm(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,yx(e,t,i,r,s)):(e=yu(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ba,n(o,r)&&e.ref===t.ref)return cr(e,t,s)}return t.flags|=1,e=Xr(i,r),e.ref=t.ref,e.return=t,t.child=e}function yx(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ba(i,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(bt=!0);else return t.lanes=e.lanes,cr(e,t,s)}return Bp(e,t,n,r,s)}function wx(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(vi,At),At|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(vi,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ve(vi,At),At|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ve(vi,At),At|=r;return ot(e,t,s,n),t.child}function xx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bp(e,t,n,r,s){var i=Et(n)?Ms:rt.current;return i=Ki(t,i),Ci(t,s),n=lm(e,t,n,r,i,s),r=um(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,cr(e,t,s)):(be&&r&&Xh(t),t.flags|=1,ot(e,t,n,s),t.child)}function t1(e,t,n,r,s){if(Et(n)){var i=!0;Xu(t)}else i=!1;if(Ci(t,s),t.stateNode===null)mu(e,t),Gw(t,n,r),$p(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=ln(u):(u=Et(n)?Ms:rt.current,u=Ki(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Wv(t,o,r,u),Er=!1;var p=t.memoizedState;o.state=p,tc(t,r,o,s),a=t.memoizedState,l!==r||p!==a||St.current||Er?(typeof c=="function"&&(Fp(t,n,c,r),a=t.memoizedState),(l=Er||qv(t,n,l,r,p,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,qw(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:gn(t.type,l),o.props=u,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=ln(a):(a=Et(n)?Ms:rt.current,a=Ki(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||p!==a)&&Wv(t,o,r,a),Er=!1,p=t.memoizedState,o.state=p,tc(t,r,o,s);var y=t.memoizedState;l!==f||p!==y||St.current||Er?(typeof h=="function"&&(Fp(t,n,h,r),y=t.memoizedState),(u=Er||qv(t,n,u,r,p,y,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Vp(e,t,n,r,i,s)}function Vp(e,t,n,r,s,i){xx(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&zv(t,n,!1),cr(e,t,i);r=t.stateNode,Nk.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Yi(t,e.child,null,i),t.child=Yi(t,null,l,i)):ot(e,t,l,i),t.memoizedState=r.state,s&&zv(t,n,!0),t.child}function bx(e){var t=e.stateNode;t.pendingContext?$v(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$v(e,t.context,!1),sm(e,t.containerInfo)}function n1(e,t,n,r,s){return Xi(),Jh(s),t.flags|=256,ot(e,t,n,r),t.child}var Up={dehydrated:null,treeContext:null,retryLane:0};function Hp(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sx(e,t,n){var r=t.pendingProps,s=Se.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ve(Se,s&1),e===null)return Lp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Gc(o,r,0,null),e=As(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Hp(n),t.memoizedState=Up,e):fm(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Ak(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Xr(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Xr(l,i):(i=As(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Hp(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Up,r}return i=e.child,e=i.sibling,r=Xr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function fm(e,t){return t=Gc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vl(e,t,n,r){return r!==null&&Jh(r),Yi(t,e.child,null,n),e=fm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ak(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=df(Error(H(422))),Vl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Gc({mode:"visible",children:r.children},s,0,null),i=As(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Yi(t,e.child,null,o),t.child.memoizedState=Hp(o),t.memoizedState=Up,i);if(!(t.mode&1))return Vl(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(H(419)),r=df(i,r,void 0),Vl(e,t,o,r)}if(l=(o&e.childLanes)!==0,bt||l){if(r=He,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,ur(e,s),kn(r,e,s,-1))}return ym(),r=df(Error(H(421))),Vl(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=qk.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Lt=Wr(s.nextSibling),Ft=t,be=!0,xn=null,e!==null&&(Yt[Jt++]=nr,Yt[Jt++]=rr,Yt[Jt++]=Ls,nr=e.id,rr=e.overflow,Ls=t),t=fm(t,r.children),t.flags|=4096,t)}function r1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dp(e.return,t,n)}function ff(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Ex(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(ot(e,t,r.children,n),r=Se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&r1(e,n,t);else if(e.tag===19)r1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ve(Se,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&nc(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ff(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&nc(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ff(t,!0,n,null,i);break;case"together":ff(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=Xr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ik(e,t,n){switch(t.tag){case 3:bx(t),Xi();break;case 5:Xw(t);break;case 1:Et(t.type)&&Xu(t);break;case 4:sm(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ve(Zu,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?Sx(e,t,n):(ve(Se,Se.current&1),e=cr(e,t,n),e!==null?e.sibling:null);ve(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ex(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ve(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,wx(e,t,n)}return cr(e,t,n)}var Cx,qp,kx,Tx;Cx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};qp=function(){};kx=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,ws(Bn.current);var i=null;switch(n){case"input":s=pp(e,s),r=pp(e,r),i=[];break;case"select":s=ke({},s,{value:void 0}),r=ke({},r,{value:void 0}),i=[];break;case"textarea":s=gp(e,s),r=gp(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qu)}yp(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ha.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ha.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&we("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Tx=function(e,t,n,r){n!==r&&(t.flags|=4)};function To(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _k(e,t,n){var r=t.pendingProps;switch(Yh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return Et(t.type)&&Ku(),et(t),null;case 3:return r=t.stateNode,Ji(),xe(St),xe(rt),om(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(Zp(xn),xn=null))),qp(e,t),et(t),null;case 5:im(t);var s=ws(Ta.current);if(n=t.type,e!==null&&t.stateNode!=null)kx(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return et(t),null}if(e=ws(Bn.current),zl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ln]=t,r[Ca]=i,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(s=0;s<zo.length;s++)we(zo[s],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":fv(r,i),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},we("invalid",r);break;case"textarea":hv(r,i),we("invalid",r)}yp(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&$l(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&$l(r.textContent,l,e),s=["children",""+l]):ha.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&we("scroll",r)}switch(n){case"input":Nl(r),pv(r,i,!0);break;case"textarea":Nl(r),mv(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Qu)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ln]=t,e[Ca]=r,Cx(e,t,!1,!1),t.stateNode=e;e:{switch(o=wp(n,r),n){case"dialog":we("cancel",e),we("close",e),s=r;break;case"iframe":case"object":case"embed":we("load",e),s=r;break;case"video":case"audio":for(s=0;s<zo.length;s++)we(zo[s],e);s=r;break;case"source":we("error",e),s=r;break;case"img":case"image":case"link":we("error",e),we("load",e),s=r;break;case"details":we("toggle",e),s=r;break;case"input":fv(e,r),s=pp(e,r),we("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ke({},r,{value:void 0}),we("invalid",e);break;case"textarea":hv(e,r),s=gp(e,r),we("invalid",e);break;default:s=r}yp(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?nw(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ew(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ma(e,a):typeof a=="number"&&ma(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ha.hasOwnProperty(i)?a!=null&&i==="onScroll"&&we("scroll",e):a!=null&&Lh(e,i,a,o))}switch(n){case"input":Nl(e),pv(e,r,!1);break;case"textarea":Nl(e),mv(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xi(e,!!r.multiple,i,!1):r.defaultValue!=null&&xi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Qu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)Tx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=ws(Ta.current),ws(Bn.current),zl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ln]=t,(i=r.nodeValue!==n)&&(e=Ft,e!==null))switch(e.tag){case 3:$l(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$l(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ln]=t,t.stateNode=r}return et(t),null;case 13:if(xe(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&Lt!==null&&t.mode&1&&!(t.flags&128))Uw(),Xi(),t.flags|=98560,i=!1;else if(i=zl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(H(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(H(317));i[Ln]=t}else Xi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),i=!1}else xn!==null&&(Zp(xn),xn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Se.current&1?$e===0&&($e=3):ym())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return Ji(),qp(e,t),e===null&&Sa(t.stateNode.containerInfo),et(t),null;case 10:return tm(t.type._context),et(t),null;case 17:return Et(t.type)&&Ku(),et(t),null;case 19:if(xe(Se),i=t.memoizedState,i===null)return et(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)To(i,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=nc(e),o!==null){for(t.flags|=128,To(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ve(Se,Se.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>eo&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304)}else{if(!r)if(e=nc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),To(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!be)return et(t),null}else 2*Ae()-i.renderingStartTime>eo&&n!==1073741824&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=Se.current,ve(Se,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return vm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?At&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function Mk(e,t){switch(Yh(t),t.tag){case 1:return Et(t.type)&&Ku(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(),xe(St),xe(rt),om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return im(t),null;case 13:if(xe(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Se),null;case 4:return Ji(),null;case 10:return tm(t.type._context),null;case 22:case 23:return vm(),null;case 24:return null;default:return null}}var Ul=!1,nt=!1,Lk=typeof WeakSet=="function"?WeakSet:Set,X=null;function gi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Wp(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var s1=!1;function Dk(e,t){if(Op=qu,e=Rw(),Kh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var h;f!==n||s!==0&&f.nodeType!==3||(l=o+s),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===s&&(l=o),p===i&&++c===r&&(a=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rp={focusedElem:e,selectionRange:n},qu=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,x=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:gn(t.type,w),x);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(b){Pe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return y=s1,s1=!1,y}function Yo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Wp(t,n,i)}s=s.next}while(s!==r)}}function qc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Gp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jx(e){var t=e.alternate;t!==null&&(e.alternate=null,jx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ln],delete t[Ca],delete t[Ip],delete t[wk],delete t[xk])),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 Px(e){return e.tag===5||e.tag===3||e.tag===4}function i1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Px(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 Qp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qu));else if(r!==4&&(e=e.child,e!==null))for(Qp(e,t,n),e=e.sibling;e!==null;)Qp(e,t,n),e=e.sibling}function Kp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Kp(e,t,n),e=e.sibling;e!==null;)Kp(e,t,n),e=e.sibling}var We=null,wn=!1;function wr(e,t,n){for(n=n.child;n!==null;)Ox(e,t,n),n=n.sibling}function Ox(e,t,n){if(zn&&typeof zn.onCommitFiberUnmount=="function")try{zn.onCommitFiberUnmount(Dc,n)}catch{}switch(n.tag){case 5:nt||gi(n,t);case 6:var r=We,s=wn;We=null,wr(e,t,n),We=r,wn=s,We!==null&&(wn?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(wn?(e=We,n=n.stateNode,e.nodeType===8?sf(e.parentNode,n):e.nodeType===1&&sf(e,n),wa(e)):sf(We,n.stateNode));break;case 4:r=We,s=wn,We=n.stateNode.containerInfo,wn=!0,wr(e,t,n),We=r,wn=s;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Wp(n,t,o),s=s.next}while(s!==r)}wr(e,t,n);break;case 1:if(!nt&&(gi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}wr(e,t,n);break;case 21:wr(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,wr(e,t,n),nt=r):wr(e,t,n);break;default:wr(e,t,n)}}function o1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lk),t.forEach(function(r){var s=Wk.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function mn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:We=l.stateNode,wn=!1;break e;case 3:We=l.stateNode.containerInfo,wn=!0;break e;case 4:We=l.stateNode.containerInfo,wn=!0;break e}l=l.return}if(We===null)throw Error(H(160));Ox(i,o,s),We=null,wn=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(u){Pe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rx(t,e),t=t.sibling}function Rx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mn(t,e),On(e),r&4){try{Yo(3,e,e.return),qc(3,e)}catch(w){Pe(e,e.return,w)}try{Yo(5,e,e.return)}catch(w){Pe(e,e.return,w)}}break;case 1:mn(t,e),On(e),r&512&&n!==null&&gi(n,n.return);break;case 5:if(mn(t,e),On(e),r&512&&n!==null&&gi(n,n.return),e.flags&32){var s=e.stateNode;try{ma(s,"")}catch(w){Pe(e,e.return,w)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Yy(s,i),wp(l,o);var u=wp(l,i);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?nw(s,f):c==="dangerouslySetInnerHTML"?ew(s,f):c==="children"?ma(s,f):Lh(s,c,f,u)}switch(l){case"input":hp(s,i);break;case"textarea":Jy(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?xi(s,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?xi(s,!!i.multiple,i.defaultValue,!0):xi(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ca]=i}catch(w){Pe(e,e.return,w)}}break;case 6:if(mn(t,e),On(e),r&4){if(e.stateNode===null)throw Error(H(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(w){Pe(e,e.return,w)}}break;case 3:if(mn(t,e),On(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch(w){Pe(e,e.return,w)}break;case 4:mn(t,e),On(e);break;case 13:mn(t,e),On(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(mm=Ae())),r&4&&o1(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(nt=(u=nt)||c,mn(t,e),nt=u):mn(t,e),On(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(X=e,c=e.child;c!==null;){for(f=X=c;X!==null;){switch(p=X,h=p.child,p.tag){case 0:case 11:case 14:case 15:Yo(4,p,p.return);break;case 1:gi(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){Pe(r,n,w)}}break;case 5:gi(p,p.return);break;case 22:if(p.memoizedState!==null){l1(f);continue}}h!==null?(h.return=p,X=h):l1(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=tw("display",o))}catch(w){Pe(e,e.return,w)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(w){Pe(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mn(t,e),On(e),r&4&&o1(e);break;case 21:break;default:mn(t,e),On(e)}}function On(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Px(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ma(s,""),r.flags&=-33);var i=i1(e);Kp(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=i1(e);Qp(e,l,o);break;default:throw Error(H(161))}}catch(a){Pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fk(e,t,n){X=e,Nx(e)}function Nx(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var s=X,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Ul;if(!o){var l=s.alternate,a=l!==null&&l.memoizedState!==null||nt;l=Ul;var u=nt;if(Ul=o,(nt=a)&&!u)for(X=s;X!==null;)o=X,a=o.child,o.tag===22&&o.memoizedState!==null?u1(s):a!==null?(a.return=o,X=a):u1(s);for(;i!==null;)X=i,Nx(i),i=i.sibling;X=s,Ul=l,nt=u}a1(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,X=i):a1(e)}}function a1(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:nt||qc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!nt)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:gn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Hv(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Hv(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&wa(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}nt||t.flags&512&&Gp(t)}catch(p){Pe(t,t.return,p)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function l1(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function u1(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qc(4,t)}catch(a){Pe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){Pe(t,s,a)}}var i=t.return;try{Gp(t)}catch(a){Pe(t,i,a)}break;case 5:var o=t.return;try{Gp(t)}catch(a){Pe(t,o,a)}}}catch(a){Pe(t,t.return,a)}if(t===e){X=null;break}var l=t.sibling;if(l!==null){l.return=t.return,X=l;break}X=t.return}}var $k=Math.ceil,ic=gr.ReactCurrentDispatcher,pm=gr.ReactCurrentOwner,sn=gr.ReactCurrentBatchConfig,ce=0,He=null,Me=null,Ge=0,At=0,vi=is(0),$e=0,Ra=null,Fs=0,Wc=0,hm=0,Jo=null,xt=null,mm=0,eo=1/0,Jn=null,oc=!1,Xp=null,Qr=null,Hl=!1,Lr=null,ac=0,Zo=0,Yp=null,gu=-1,vu=0;function ct(){return ce&6?Ae():gu!==-1?gu:gu=Ae()}function Kr(e){return e.mode&1?ce&2&&Ge!==0?Ge&-Ge:Sk.transition!==null?(vu===0&&(vu=hw()),vu):(e=pe,e!==0||(e=window.event,e=e===void 0?16:bw(e.type)),e):1}function kn(e,t,n,r){if(50<Zo)throw Zo=0,Yp=null,Error(H(185));al(e,n,r),(!(ce&2)||e!==He)&&(e===He&&(!(ce&2)&&(Wc|=n),$e===4&&kr(e,Ge)),Ct(e,r),n===1&&ce===0&&!(t.mode&1)&&(eo=Ae()+500,Vc&&os()))}function Ct(e,t){var n=e.callbackNode;S3(e,t);var r=Hu(e,e===He?Ge:0);if(r===0)n!==null&&yv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yv(n),t===1)e.tag===0?bk(c1.bind(null,e)):zw(c1.bind(null,e)),vk(function(){!(ce&6)&&os()}),n=null;else{switch(mw(r)){case 1:n=Bh;break;case 4:n=fw;break;case 16:n=Uu;break;case 536870912:n=pw;break;default:n=Uu}n=$x(n,Ax.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ax(e,t){if(gu=-1,vu=0,ce&6)throw Error(H(327));var n=e.callbackNode;if(ki()&&e.callbackNode!==n)return null;var r=Hu(e,e===He?Ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=lc(e,r);else{t=r;var s=ce;ce|=2;var i=_x();(He!==e||Ge!==t)&&(Jn=null,eo=Ae()+500,Ns(e,t));do try{Vk();break}catch(l){Ix(e,l)}while(1);em(),ic.current=i,ce=s,Me!==null?t=0:(He=null,Ge=0,t=$e)}if(t!==0){if(t===2&&(s=Cp(e),s!==0&&(r=s,t=Jp(e,s))),t===1)throw n=Ra,Ns(e,0),kr(e,r),Ct(e,Ae()),n;if(t===6)kr(e,r);else{if(s=e.current.alternate,!(r&30)&&!zk(s)&&(t=lc(e,r),t===2&&(i=Cp(e),i!==0&&(r=i,t=Jp(e,i))),t===1))throw n=Ra,Ns(e,0),kr(e,r),Ct(e,Ae()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:ms(e,xt,Jn);break;case 3:if(kr(e,r),(r&130023424)===r&&(t=mm+500-Ae(),10<t)){if(Hu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ct(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ap(ms.bind(null,e,xt,Jn),t);break}ms(e,xt,Jn);break;case 4:if(kr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-Cn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$k(r/1960))-r,10<r){e.timeoutHandle=Ap(ms.bind(null,e,xt,Jn),r);break}ms(e,xt,Jn);break;case 5:ms(e,xt,Jn);break;default:throw Error(H(329))}}}return Ct(e,Ae()),e.callbackNode===n?Ax.bind(null,e):null}function Jp(e,t){var n=Jo;return e.current.memoizedState.isDehydrated&&(Ns(e,t).flags|=256),e=lc(e,t),e!==2&&(t=xt,xt=n,t!==null&&Zp(t)),e}function Zp(e){xt===null?xt=e:xt.push.apply(xt,e)}function zk(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Tn(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kr(e,t){for(t&=~hm,t&=~Wc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Cn(t),r=1<<n;e[n]=-1,t&=~r}}function c1(e){if(ce&6)throw Error(H(327));ki();var t=Hu(e,0);if(!(t&1))return Ct(e,Ae()),null;var n=lc(e,t);if(e.tag!==0&&n===2){var r=Cp(e);r!==0&&(t=r,n=Jp(e,r))}if(n===1)throw n=Ra,Ns(e,0),kr(e,t),Ct(e,Ae()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ms(e,xt,Jn),Ct(e,Ae()),null}function gm(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(eo=Ae()+500,Vc&&os())}}function $s(e){Lr!==null&&Lr.tag===0&&!(ce&6)&&ki();var t=ce;ce|=1;var n=sn.transition,r=pe;try{if(sn.transition=null,pe=1,e)return e()}finally{pe=r,sn.transition=n,ce=t,!(ce&6)&&os()}}function vm(){At=vi.current,xe(vi)}function Ns(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gk(n)),Me!==null)for(n=Me.return;n!==null;){var r=n;switch(Yh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ku();break;case 3:Ji(),xe(St),xe(rt),om();break;case 5:im(r);break;case 4:Ji();break;case 13:xe(Se);break;case 19:xe(Se);break;case 10:tm(r.type._context);break;case 22:case 23:vm()}n=n.return}if(He=e,Me=e=Xr(e.current,null),Ge=At=t,$e=0,Ra=null,hm=Wc=Fs=0,xt=Jo=null,ys!==null){for(t=0;t<ys.length;t++)if(n=ys[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}ys=null}return e}function Ix(e,t){do{var n=Me;try{if(em(),pu.current=sc,rc){for(var r=Ce.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}rc=!1}if(Ds=0,Ue=De=Ce=null,Xo=!1,ja=0,pm.current=null,n===null||n.return===null){$e=1,Ra=t,Me=null;break}e:{var i=e,o=n.return,l=n,a=t;if(t=Ge,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Yv(o);if(h!==null){h.flags&=-257,Jv(h,o,l,i,t),h.mode&1&&Xv(i,u,t),t=h,a=u;var y=t.updateQueue;if(y===null){var w=new Set;w.add(a),t.updateQueue=w}else y.add(a);break e}else{if(!(t&1)){Xv(i,u,t),ym();break e}a=Error(H(426))}}else if(be&&l.mode&1){var x=Yv(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Jv(x,o,l,i,t),Jh(Zi(a,l));break e}}i=a=Zi(a,l),$e!==4&&($e=2),Jo===null?Jo=[i]:Jo.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=gx(i,a,t);Uv(i,g);break e;case 1:l=a;var m=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Qr===null||!Qr.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=vx(i,l,t);Uv(i,b);break e}}i=i.return}while(i!==null)}Lx(n)}catch(E){t=E,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(1)}function _x(){var e=ic.current;return ic.current=sc,e===null?sc:e}function ym(){($e===0||$e===3||$e===2)&&($e=4),He===null||!(Fs&268435455)&&!(Wc&268435455)||kr(He,Ge)}function lc(e,t){var n=ce;ce|=2;var r=_x();(He!==e||Ge!==t)&&(Jn=null,Ns(e,t));do try{Bk();break}catch(s){Ix(e,s)}while(1);if(em(),ce=n,ic.current=r,Me!==null)throw Error(H(261));return He=null,Ge=0,$e}function Bk(){for(;Me!==null;)Mx(Me)}function Vk(){for(;Me!==null&&!p3();)Mx(Me)}function Mx(e){var t=Fx(e.alternate,e,At);e.memoizedProps=e.pendingProps,t===null?Lx(e):Me=t,pm.current=null}function Lx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Mk(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Me=null;return}}else if(n=_k(n,t,At),n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);$e===0&&($e=5)}function ms(e,t,n){var r=pe,s=sn.transition;try{sn.transition=null,pe=1,Uk(e,t,n,r)}finally{sn.transition=s,pe=r}return null}function Uk(e,t,n,r){do ki();while(Lr!==null);if(ce&6)throw Error(H(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(E3(e,i),e===He&&(Me=He=null,Ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hl||(Hl=!0,$x(Uu,function(){return ki(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=sn.transition,sn.transition=null;var o=pe;pe=1;var l=ce;ce|=4,pm.current=null,Dk(e,n),Rx(n,e),uk(Rp),qu=!!Op,Rp=Op=null,e.current=n,Fk(n),h3(),ce=l,pe=o,sn.transition=i}else e.current=n;if(Hl&&(Hl=!1,Lr=e,ac=s),i=e.pendingLanes,i===0&&(Qr=null),v3(n.stateNode),Ct(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(oc)throw oc=!1,e=Xp,Xp=null,e;return ac&1&&e.tag!==0&&ki(),i=e.pendingLanes,i&1?e===Yp?Zo++:(Zo=0,Yp=e):Zo=0,os(),null}function ki(){if(Lr!==null){var e=mw(ac),t=sn.transition,n=pe;try{if(sn.transition=null,pe=16>e?16:e,Lr===null)var r=!1;else{if(e=Lr,Lr=null,ac=0,ce&6)throw Error(H(331));var s=ce;for(ce|=4,X=e.current;X!==null;){var i=X,o=i.child;if(X.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(X=u;X!==null;){var c=X;switch(c.tag){case 0:case 11:case 15:Yo(8,c,i)}var f=c.child;if(f!==null)f.return=c,X=f;else for(;X!==null;){c=X;var p=c.sibling,h=c.return;if(jx(c),c===u){X=null;break}if(p!==null){p.return=h,X=p;break}X=h}}}var y=i.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}X=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,X=o;else e:for(;X!==null;){if(i=X,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Yo(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,X=g;break e}X=i.return}}var m=e.current;for(X=m;X!==null;){o=X;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,X=v;else e:for(o=m;X!==null;){if(l=X,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:qc(9,l)}}catch(E){Pe(l,l.return,E)}if(l===o){X=null;break e}var b=l.sibling;if(b!==null){b.return=l.return,X=b;break e}X=l.return}}if(ce=s,os(),zn&&typeof zn.onPostCommitFiberRoot=="function")try{zn.onPostCommitFiberRoot(Dc,e)}catch{}r=!0}return r}finally{pe=n,sn.transition=t}}return!1}function d1(e,t,n){t=Zi(n,t),t=gx(e,t,1),e=Gr(e,t,1),t=ct(),e!==null&&(al(e,1,t),Ct(e,t))}function Pe(e,t,n){if(e.tag===3)d1(e,e,n);else for(;t!==null;){if(t.tag===3){d1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qr===null||!Qr.has(r))){e=Zi(n,e),e=vx(t,e,1),t=Gr(t,e,1),e=ct(),t!==null&&(al(t,1,e),Ct(t,e));break}}t=t.return}}function Hk(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ct(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Ge&n)===n&&($e===4||$e===3&&(Ge&130023424)===Ge&&500>Ae()-mm?Ns(e,0):hm|=n),Ct(e,t)}function Dx(e,t){t===0&&(e.mode&1?(t=_l,_l<<=1,!(_l&130023424)&&(_l=4194304)):t=1);var n=ct();e=ur(e,t),e!==null&&(al(e,t,n),Ct(e,n))}function qk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dx(e,n)}function Wk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),Dx(e,n)}var Fx;Fx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,Ik(e,t,n);bt=!!(e.flags&131072)}else bt=!1,be&&t.flags&1048576&&Bw(t,Ju,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;mu(e,t),e=t.pendingProps;var s=Ki(t,rt.current);Ci(t,n),s=lm(null,t,r,e,s,n);var i=um();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(r)?(i=!0,Xu(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,rm(t),s.updater=Uc,t.stateNode=s,s._reactInternals=t,$p(t,r,e,n),t=Vp(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Xh(t),ot(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(mu(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Qk(r),e=gn(r,e),s){case 0:t=Bp(null,t,r,e,n);break e;case 1:t=t1(null,t,r,e,n);break e;case 11:t=Zv(null,t,r,e,n);break e;case 14:t=e1(null,t,r,gn(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),Bp(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),t1(e,t,r,s,n);case 3:e:{if(bx(t),e===null)throw Error(H(387));r=t.pendingProps,i=t.memoizedState,s=i.element,qw(e,t),tc(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Zi(Error(H(423)),t),t=n1(e,t,r,n,s);break e}else if(r!==s){s=Zi(Error(H(424)),t),t=n1(e,t,r,n,s);break e}else for(Lt=Wr(t.stateNode.containerInfo.firstChild),Ft=t,be=!0,xn=null,n=Kw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xi(),r===s){t=cr(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Xw(t),e===null&&Lp(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Np(r,s)?o=null:i!==null&&Np(r,i)&&(t.flags|=32),xx(e,t),ot(e,t,o,n),t.child;case 6:return e===null&&Lp(t),null;case 13:return Sx(e,t,n);case 4:return sm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yi(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),Zv(e,t,r,s,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ve(Zu,r._currentValue),r._currentValue=o,i!==null)if(Tn(i.value,o)){if(i.children===s.children&&!St.current){t=cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=or(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Dp(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(H(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Dp(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ot(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ci(t,n),s=ln(s),r=r(s),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,s=gn(r,t.pendingProps),s=gn(r.type,s),e1(e,t,r,s,n);case 15:return yx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gn(r,s),mu(e,t),t.tag=1,Et(r)?(e=!0,Xu(t)):e=!1,Ci(t,n),Gw(t,r,s),$p(t,r,s,n),Vp(null,t,r,!0,e,n);case 19:return Ex(e,t,n);case 22:return wx(e,t,n)}throw Error(H(156,t.tag))};function $x(e,t){return dw(e,t)}function Gk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,t,n,r){return new Gk(e,t,n,r)}function wm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qk(e){if(typeof e=="function")return wm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fh)return 11;if(e===$h)return 14}return 2}function Xr(e,t){var n=e.alternate;return n===null?(n=rn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function yu(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")wm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ai:return As(n.children,s,i,t);case Dh:o=8,s|=8;break;case up:return e=rn(12,n,t,s|2),e.elementType=up,e.lanes=i,e;case cp:return e=rn(13,n,t,s),e.elementType=cp,e.lanes=i,e;case dp:return e=rn(19,n,t,s),e.elementType=dp,e.lanes=i,e;case Qy:return Gc(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wy:o=10;break e;case Gy:o=9;break e;case Fh:o=11;break e;case $h:o=14;break e;case Sr:o=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=rn(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function As(e,t,n,r){return e=rn(7,e,r,t),e.lanes=n,e}function Gc(e,t,n,r){return e=rn(22,e,r,t),e.elementType=Qy,e.lanes=n,e.stateNode={isHidden:!1},e}function pf(e,t,n){return e=rn(6,e,null,t),e.lanes=n,e}function hf(e,t,n){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kk(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gd(0),this.expirationTimes=Gd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gd(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function xm(e,t,n,r,s,i,o,l,a){return e=new Kk(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rm(i),e}function Xk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oi,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zx(e){if(!e)return es;e=e._reactInternals;e:{if(Qs(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(Et(n))return $w(e,n,t)}return t}function Bx(e,t,n,r,s,i,o,l,a){return e=xm(n,r,!0,e,s,i,o,l,a),e.context=zx(null),n=e.current,r=ct(),s=Kr(n),i=or(r,s),i.callback=t??null,Gr(n,i,s),e.current.lanes=s,al(e,s,r),Ct(e,r),e}function Qc(e,t,n,r){var s=t.current,i=ct(),o=Kr(s);return n=zx(n),t.context===null?t.context=n:t.pendingContext=n,t=or(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Gr(s,t,o),e!==null&&(kn(e,s,o,i),fu(e,s,o)),o}function uc(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 f1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bm(e,t){f1(e,t),(e=e.alternate)&&f1(e,t)}function Yk(){return null}var Vx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Sm(e){this._internalRoot=e}Kc.prototype.render=Sm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));Qc(e,t,null,null)};Kc.prototype.unmount=Sm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$s(function(){Qc(null,e,null,null)}),t[lr]=null}};function Kc(e){this._internalRoot=e}Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=yw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cr.length&&t!==0&&t<Cr[n].priority;n++);Cr.splice(n,0,e),n===0&&xw(e)}};function Em(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function p1(){}function Jk(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=uc(o);i.call(u)}}var o=Bx(t,r,e,0,null,!1,!1,"",p1);return e._reactRootContainer=o,e[lr]=o.current,Sa(e.nodeType===8?e.parentNode:e),$s(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=uc(a);l.call(u)}}var a=xm(e,0,!1,null,null,!1,!1,"",p1);return e._reactRootContainer=a,e[lr]=a.current,Sa(e.nodeType===8?e.parentNode:e),$s(function(){Qc(t,a,n,r)}),a}function Yc(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var a=uc(o);l.call(a)}}Qc(t,o,e,s)}else o=Jk(n,t,e,s,r);return uc(o)}gw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$o(t.pendingLanes);n!==0&&(Vh(t,n|1),Ct(t,Ae()),!(ce&6)&&(eo=Ae()+500,os()))}break;case 13:$s(function(){var r=ur(e,1);if(r!==null){var s=ct();kn(r,e,1,s)}}),bm(e,1)}};Uh=function(e){if(e.tag===13){var t=ur(e,134217728);if(t!==null){var n=ct();kn(t,e,134217728,n)}bm(e,134217728)}};vw=function(e){if(e.tag===13){var t=Kr(e),n=ur(e,t);if(n!==null){var r=ct();kn(n,e,t,r)}bm(e,t)}};yw=function(){return pe};ww=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};bp=function(e,t,n){switch(t){case"input":if(hp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Bc(r);if(!s)throw Error(H(90));Xy(r),hp(r,s)}}}break;case"textarea":Jy(e,n);break;case"select":t=n.value,t!=null&&xi(e,!!n.multiple,t,!1)}};iw=gm;ow=$s;var Zk={usingClientEntryPoint:!1,Events:[ul,di,Bc,rw,sw,gm]},jo={findFiberByHostInstance:vs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},eT={bundleType:jo.bundleType,version:jo.version,rendererPackageName:jo.rendererPackageName,rendererConfig:jo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=uw(e),e===null?null:e.stateNode},findFiberByHostInstance:jo.findFiberByHostInstance||Yk,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 ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ql.isDisabled&&ql.supportsFiber)try{Dc=ql.inject(eT),zn=ql}catch{}}Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zk;Vt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Em(t))throw Error(H(200));return Xk(e,t,null,n)};Vt.createRoot=function(e,t){if(!Em(e))throw Error(H(299));var n=!1,r="",s=Vx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=xm(e,1,!1,null,null,n,!1,r,s),e[lr]=t.current,Sa(e.nodeType===8?e.parentNode:e),new Sm(t)};Vt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=uw(t),e=e===null?null:e.stateNode,e};Vt.flushSync=function(e){return $s(e)};Vt.hydrate=function(e,t,n){if(!Xc(t))throw Error(H(200));return Yc(null,e,t,!0,n)};Vt.hydrateRoot=function(e,t,n){if(!Em(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Vx;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Bx(t,null,e,1,n??null,s,!1,i,o),e[lr]=t.current,Sa(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Kc(t)};Vt.render=function(e,t,n){if(!Xc(t))throw Error(H(200));return Yc(null,e,t,!1,n)};Vt.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(H(40));return e._reactRootContainer?($s(function(){Yc(null,null,e,!1,function(){e._reactRootContainer=null,e[lr]=null})}),!0):!1};Vt.unstable_batchedUpdates=gm;Vt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return Yc(e,t,n,!1,r)};Vt.version="18.2.0-next-9e3b772b8-20220608";function Ux(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ux)}catch(e){console.error(e)}}Ux(),By.exports=Vt;var vr=By.exports,dl=e=>e.type==="checkbox",yi=e=>e instanceof Date,at=e=>e==null;const Hx=e=>typeof e=="object";var Be=e=>!at(e)&&!Array.isArray(e)&&Hx(e)&&!yi(e),qx=e=>Be(e)&&e.target?dl(e.target)?e.target.checked:e.target.value:e,tT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Wx=(e,t)=>e.has(tT(t)),nT=e=>{const t=e.constructor&&e.constructor.prototype;return Be(t)&&t.hasOwnProperty("isPrototypeOf")},Cm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function vn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Cm&&(e instanceof Blob||e instanceof FileList))&&(n||Be(e)))if(t=n?[]:{},!n&&!nT(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=vn(e[r]));else return e;return t}var fl=e=>Array.isArray(e)?e.filter(Boolean):[],Oe=e=>e===void 0,Q=(e,t,n)=>{if(!t||!Be(e))return n;const r=fl(t.split(/[,[\].]+?/)).reduce((s,i)=>at(s)?s:s[i],e);return Oe(r)||r===e?Oe(e[t])?n:e[t]:r},Zt=e=>typeof e=="boolean";const cc={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Sn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Qn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},rT=ee.createContext(null),km=()=>ee.useContext(rT);var Gx=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Sn.all&&(t._proxyFormState[o]=!r||Sn.all),n&&(n[o]=!0),e[o]}});return s},Xt=e=>Be(e)&&!Object.keys(e).length,Qx=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Xt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Sn.all))},wu=e=>Array.isArray(e)?e:[e],Kx=(e,t,n)=>!e||!t||e===t||wu(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Tm(e){const t=ee.useRef(e);t.current=e,ee.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function sT(e){const t=km(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,l]=ee.useState(n._formState),a=ee.useRef(!0),u=ee.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ee.useRef(s);return c.current=s,Tm({disabled:r,next:f=>a.current&&Kx(c.current,f.name,i)&&Qx(f,u.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),ee.useEffect(()=>(a.current=!0,u.current.isValid&&n._updateValid(!0),()=>{a.current=!1}),[n]),Gx(o,n,u.current,!1)}var Fn=e=>typeof e=="string",Xx=(e,t,n,r,s)=>Fn(e)?(r&&t.watch.add(e),Q(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Q(n,i))):(r&&(t.watchAll=!0),n);function iT(e){const t=km(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},l=ee.useRef(r);l.current=r,Tm({disabled:i,subject:n._subjects.values,next:c=>{Kx(l.current,c.name,o)&&u(vn(Xx(l.current,n._names,c.values||n._formValues,!1,s)))}});const[a,u]=ee.useState(n._getWatch(r,s));return ee.useEffect(()=>n._removeUnmounted()),a}var jm=e=>/^\w*$/.test(e),Yx=e=>fl(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ge=(e,t,n)=>{let r=-1;const s=jm(t)?[t]:Yx(t),i=s.length,o=i-1;for(;++r<i;){const l=s[r];let a=n;if(r!==o){const u=e[l];a=Be(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}e[l]=a,e=e[l]}return e};function oT(e){const t=km(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=Wx(s._names.array,n),l=iT({control:s,name:n,defaultValue:Q(s._formValues,n,Q(s._defaultValues,n,e.defaultValue)),exact:!0}),a=sT({control:s,name:n}),u=ee.useRef(s.register(n,{...e.rules,value:l,...Zt(e.disabled)?{disabled:e.disabled}:{}}));return ee.useEffect(()=>{const c=s._options.shouldUnregister||i,f=(p,h)=>{const y=Q(s._fields,p);y&&(y._f.mount=h)};if(f(n,!0),c){const p=vn(Q(s._options.defaultValues,n));ge(s._defaultValues,n,p),Oe(Q(s._formValues,n))&&ge(s._formValues,n,p)}return()=>{(o?c&&!s._state.action:c)?s.unregister(n):f(n,!1)}},[n,s,o,i]),ee.useEffect(()=>{Q(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:Q(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:l,...Zt(r)||Zt(a.disabled)?{disabled:a.disabled||r}:{},onChange:ee.useCallback(c=>u.current.onChange({target:{value:qx(c),name:n},type:cc.CHANGE}),[n]),onBlur:ee.useCallback(()=>u.current.onBlur({target:{value:Q(s._formValues,n),name:n},type:cc.BLUR}),[n,s]),ref:c=>{const f=Q(s._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:a,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(a.errors,n)},isDirty:{enumerable:!0,get:()=>!!Q(a.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Q(a.touchedFields,n)},error:{enumerable:!0,get:()=>Q(a.errors,n)}})}}const Jc=e=>e.render(oT(e));var aT=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},h1=e=>({isOnSubmit:!e||e===Sn.onSubmit,isOnBlur:e===Sn.onBlur,isOnChange:e===Sn.onChange,isOnAll:e===Sn.all,isOnTouch:e===Sn.onTouched}),m1=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ea=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=Q(e,s);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)break;if(o.ref&&t(o.ref,o.name)&&!r)break;ea(l,t)}else Be(l)&&ea(l,t)}}};var lT=(e,t,n)=>{const r=fl(Q(e,n));return ge(r,"root",t[n]),ge(e,n,r),e},Pm=e=>e.type==="file",Dr=e=>typeof e=="function",dc=e=>{if(!Cm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},xu=e=>Fn(e),Om=e=>e.type==="radio",fc=e=>e instanceof RegExp;const g1={value:!1,isValid:!1},v1={value:!0,isValid:!0};var Jx=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Oe(e[0].attributes.value)?Oe(e[0].value)||e[0].value===""?v1:{value:e[0].value,isValid:!0}:v1:g1}return g1};const y1={isValid:!1,value:null};var Zx=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,y1):y1;function w1(e,t,n="validate"){if(xu(e)||Array.isArray(e)&&e.every(xu)||Zt(e)&&!e)return{type:n,message:xu(e)?e:"",ref:t}}var si=e=>Be(e)&&!fc(e)?e:{value:e,message:""},x1=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:l,maxLength:a,minLength:u,min:c,max:f,pattern:p,validate:h,name:y,valueAsNumber:w,mount:x,disabled:g}=e._f,m=Q(t,y);if(!x||g)return{};const v=o?o[0]:i,b=N=>{r&&v.reportValidity&&(v.setCustomValidity(Zt(N)?"":N||""),v.reportValidity())},E={},T=Om(i),C=dl(i),R=T||C,j=(w||Pm(i))&&Oe(i.value)&&Oe(m)||dc(i)&&i.value===""||m===""||Array.isArray(m)&&!m.length,L=aT.bind(null,y,n,E),A=(N,M,D,k=Qn.maxLength,I=Qn.minLength)=>{const z=N?M:D;E[y]={type:N?k:I,message:z,ref:i,...L(N?k:I,z)}};if(s?!Array.isArray(m)||!m.length:l&&(!R&&(j||at(m))||Zt(m)&&!m||C&&!Jx(o).isValid||T&&!Zx(o).isValid)){const{value:N,message:M}=xu(l)?{value:!!l,message:l}:si(l);if(N&&(E[y]={type:Qn.required,message:M,ref:v,...L(Qn.required,M)},!n))return b(M),E}if(!j&&(!at(c)||!at(f))){let N,M;const D=si(f),k=si(c);if(!at(m)&&!isNaN(m)){const I=i.valueAsNumber||m&&+m;at(D.value)||(N=I>D.value),at(k.value)||(M=I<k.value)}else{const I=i.valueAsDate||new Date(m),z=V=>new Date(new Date().toDateString()+" "+V),_=i.type=="time",$=i.type=="week";Fn(D.value)&&m&&(N=_?z(m)>z(D.value):$?m>D.value:I>new Date(D.value)),Fn(k.value)&&m&&(M=_?z(m)<z(k.value):$?m<k.value:I<new Date(k.value))}if((N||M)&&(A(!!N,D.message,k.message,Qn.max,Qn.min),!n))return b(E[y].message),E}if((a||u)&&!j&&(Fn(m)||s&&Array.isArray(m))){const N=si(a),M=si(u),D=!at(N.value)&&m.length>+N.value,k=!at(M.value)&&m.length<+M.value;if((D||k)&&(A(D,N.message,M.message),!n))return b(E[y].message),E}if(p&&!j&&Fn(m)){const{value:N,message:M}=si(p);if(fc(N)&&!m.match(N)&&(E[y]={type:Qn.pattern,message:M,ref:i,...L(Qn.pattern,M)},!n))return b(M),E}if(h){if(Dr(h)){const N=await h(m,t),M=w1(N,v);if(M&&(E[y]={...M,...L(Qn.validate,M.message)},!n))return b(M.message),E}else if(Be(h)){let N={};for(const M in h){if(!Xt(N)&&!n)break;const D=w1(await h[M](m,t),v,M);D&&(N={...D,...L(M,D.message)},b(D.message),n&&(E[y]=N))}if(!Xt(N)&&(E[y]={ref:v,...N},!n))return E}}return b(!0),E};function uT(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Oe(e)?r++:e[t[r++]];return e}function cT(e){for(const t in e)if(e.hasOwnProperty(t)&&!Oe(e[t]))return!1;return!0}function qe(e,t){const n=Array.isArray(t)?t:jm(t)?[t]:Yx(t),r=n.length===1?e:uT(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(Be(r)&&Xt(r)||Array.isArray(r)&&cT(r))&&qe(e,n.slice(0,-1)),e}var mf=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},pc=e=>at(e)||!Hx(e);function xs(e,t){if(pc(e)||pc(t))return e===t;if(yi(e)&&yi(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(yi(i)&&yi(o)||Be(i)&&Be(o)||Array.isArray(i)&&Array.isArray(o)?!xs(i,o):i!==o)return!1}}return!0}var eb=e=>e.type==="select-multiple",dT=e=>Om(e)||dl(e),gf=e=>dc(e)&&e.isConnected,tb=e=>{for(const t in e)if(Dr(e[t]))return!0;return!1};function hc(e,t={}){const n=Array.isArray(e);if(Be(e)||n)for(const r in e)Array.isArray(e[r])||Be(e[r])&&!tb(e[r])?(t[r]=Array.isArray(e[r])?[]:{},hc(e[r],t[r])):at(e[r])||(t[r]=!0);return t}function nb(e,t,n){const r=Array.isArray(e);if(Be(e)||r)for(const s in e)Array.isArray(e[s])||Be(e[s])&&!tb(e[s])?Oe(t)||pc(n[s])?n[s]=Array.isArray(e[s])?hc(e[s],[]):{...hc(e[s])}:nb(e[s],at(t)?{}:t[s],n[s]):n[s]=!xs(e[s],t[s]);return n}var vf=(e,t)=>nb(e,t,hc(t)),rb=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Oe(e)?e:t?e===""?NaN:e&&+e:n&&Fn(e)?new Date(e):r?r(e):e;function yf(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Pm(t)?t.files:Om(t)?Zx(e.refs).value:eb(t)?[...t.selectedOptions].map(({value:n})=>n):dl(t)?Jx(e.refs).value:rb(Oe(t.value)?e.ref.value:t.value,e)}var fT=(e,t,n,r)=>{const s={};for(const i of e){const o=Q(t,i);o&&ge(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Po=e=>Oe(e)?e:fc(e)?e.source:Be(e)?fc(e.value)?e.value.source:e.value:e,pT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function b1(e,t,n){const r=Q(e,n);if(r||jm(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=Q(t,i),l=Q(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};s.pop()}return{name:n}}var hT=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,mT=(e,t)=>!fl(Q(e,t)).length&&qe(e,t);const gT={mode:Sn.onSubmit,reValidateMode:Sn.onChange,shouldFocusError:!0};function vT(e={},t){let n={...gT,...e},r={submitCount:0,isDirty:!1,isLoading:Dr(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},s={},i=Be(n.defaultValues)||Be(n.values)?vn(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:vn(i),l={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:mf(),array:mf(),state:mf()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,y=h1(n.mode),w=h1(n.reValidateMode),x=n.criteriaMode===Sn.all,g=O=>F=>{clearTimeout(c),c=setTimeout(O,F)},m=async O=>{if(f.isValid||O){const F=n.resolver?Xt((await L()).errors):await N(s,!0);F!==r.isValid&&p.state.next({isValid:F})}},v=O=>f.isValidating&&p.state.next({isValidating:O}),b=(O,F=[],B,K,W=!0,q=!0)=>{if(K&&B){if(l.action=!0,q&&Array.isArray(Q(s,O))){const Z=B(Q(s,O),K.argA,K.argB);W&&ge(s,O,Z)}if(q&&Array.isArray(Q(r.errors,O))){const Z=B(Q(r.errors,O),K.argA,K.argB);W&&ge(r.errors,O,Z),mT(r.errors,O)}if(f.touchedFields&&q&&Array.isArray(Q(r.touchedFields,O))){const Z=B(Q(r.touchedFields,O),K.argA,K.argB);W&&ge(r.touchedFields,O,Z)}f.dirtyFields&&(r.dirtyFields=vf(i,o)),p.state.next({name:O,isDirty:D(O,F),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ge(o,O,F)},E=(O,F)=>{ge(r.errors,O,F),p.state.next({errors:r.errors})},T=O=>{r.errors=O,p.state.next({errors:r.errors,isValid:!1})},C=(O,F,B,K)=>{const W=Q(s,O);if(W){const q=Q(o,O,Oe(B)?Q(i,O):B);Oe(q)||K&&K.defaultChecked||F?ge(o,O,F?q:yf(W._f)):z(O,q),l.mount&&m()}},R=(O,F,B,K,W)=>{let q=!1,Z=!1;const fe={name:O},Ne=!!(Q(s,O)&&Q(s,O)._f.disabled);if(!B||K){f.isDirty&&(Z=r.isDirty,r.isDirty=fe.isDirty=D(),q=Z!==fe.isDirty);const Pn=Ne||xs(Q(i,O),F);Z=!!(!Ne&&Q(r.dirtyFields,O)),Pn||Ne?qe(r.dirtyFields,O):ge(r.dirtyFields,O,!0),fe.dirtyFields=r.dirtyFields,q=q||f.dirtyFields&&Z!==!Pn}if(B){const Pn=Q(r.touchedFields,O);Pn||(ge(r.touchedFields,O,B),fe.touchedFields=r.touchedFields,q=q||f.touchedFields&&Pn!==B)}return q&&W&&p.state.next(fe),q?fe:{}},j=(O,F,B,K)=>{const W=Q(r.errors,O),q=f.isValid&&Zt(F)&&r.isValid!==F;if(e.delayError&&B?(u=g(()=>E(O,B)),u(e.delayError)):(clearTimeout(c),u=null,B?ge(r.errors,O,B):qe(r.errors,O)),(B?!xs(W,B):W)||!Xt(K)||q){const Z={...K,...q&&Zt(F)?{isValid:F}:{},errors:r.errors,name:O};r={...r,...Z},p.state.next(Z)}v(!1)},L=async O=>n.resolver(o,n.context,fT(O||a.mount,s,n.criteriaMode,n.shouldUseNativeValidation)),A=async O=>{const{errors:F}=await L(O);if(O)for(const B of O){const K=Q(F,B);K?ge(r.errors,B,K):qe(r.errors,B)}else r.errors=F;return F},N=async(O,F,B={valid:!0})=>{for(const K in O){const W=O[K];if(W){const{_f:q,...Z}=W;if(q){const fe=a.array.has(q.name),Ne=await x1(W,o,x,n.shouldUseNativeValidation&&!F,fe);if(Ne[q.name]&&(B.valid=!1,F))break;!F&&(Q(Ne,q.name)?fe?lT(r.errors,Ne,q.name):ge(r.errors,q.name,Ne[q.name]):qe(r.errors,q.name))}Z&&await N(Z,F,B)}}return B.valid},M=()=>{for(const O of a.unMount){const F=Q(s,O);F&&(F._f.refs?F._f.refs.every(B=>!gf(B)):!gf(F._f.ref))&&Je(O)}a.unMount=new Set},D=(O,F)=>(O&&F&&ge(o,O,F),!xs(de(),i)),k=(O,F,B)=>Xx(O,a,{...l.mount?o:Oe(F)?i:Fn(O)?{[O]:F}:F},B,F),I=O=>fl(Q(l.mount?o:i,O,e.shouldUnregister?Q(i,O,[]):[])),z=(O,F,B={})=>{const K=Q(s,O);let W=F;if(K){const q=K._f;q&&(!q.disabled&&ge(o,O,rb(F,q)),W=dc(q.ref)&&at(F)?"":F,eb(q.ref)?[...q.ref.options].forEach(Z=>Z.selected=W.includes(Z.value)):q.refs?dl(q.ref)?q.refs.length>1?q.refs.forEach(Z=>(!Z.defaultChecked||!Z.disabled)&&(Z.checked=Array.isArray(W)?!!W.find(fe=>fe===Z.value):W===Z.value)):q.refs[0]&&(q.refs[0].checked=!!W):q.refs.forEach(Z=>Z.checked=Z.value===W):Pm(q.ref)?q.ref.value="":(q.ref.value=W,q.ref.type||p.values.next({name:O,values:{...o}})))}(B.shouldDirty||B.shouldTouch)&&R(O,W,B.shouldTouch,B.shouldDirty,!0),B.shouldValidate&&re(O)},_=(O,F,B)=>{for(const K in F){const W=F[K],q=`${O}.${K}`,Z=Q(s,q);(a.array.has(O)||!pc(W)||Z&&!Z._f)&&!yi(W)?_(q,W,B):z(q,W,B)}},$=(O,F,B={})=>{const K=Q(s,O),W=a.array.has(O),q=vn(F);ge(o,O,q),W?(p.array.next({name:O,values:{...o}}),(f.isDirty||f.dirtyFields)&&B.shouldDirty&&p.state.next({name:O,dirtyFields:vf(i,o),isDirty:D(O,q)})):K&&!K._f&&!at(q)?_(O,q,B):z(O,q,B),m1(O,a)&&p.state.next({...r}),p.values.next({name:O,values:{...o}}),!l.mount&&t()},V=async O=>{const F=O.target;let B=F.name,K=!0;const W=Q(s,B),q=()=>F.type?yf(W._f):qx(O),Z=fe=>{K=Number.isNaN(fe)||fe===Q(o,B,fe)};if(W){let fe,Ne;const Pn=q(),Zs=O.type===cc.BLUR||O.type===cc.FOCUS_OUT,JE=!pT(W._f)&&!n.resolver&&!Q(r.errors,B)&&!W._f.deps||hT(Zs,Q(r.touchedFields,B),r.isSubmitted,w,y),Dd=m1(B,a,Zs);ge(o,B,Pn),Zs?(W._f.onBlur&&W._f.onBlur(O),u&&u(0)):W._f.onChange&&W._f.onChange(O);const Fd=R(B,Pn,Zs,!1),ZE=!Xt(Fd)||Dd;if(!Zs&&p.values.next({name:B,type:O.type,values:{...o}}),JE)return f.isValid&&m(),ZE&&p.state.next({name:B,...Dd?{}:Fd});if(!Zs&&Dd&&p.state.next({...r}),v(!0),n.resolver){const{errors:Ig}=await L([B]);if(Z(Pn),K){const eC=b1(r.errors,s,B),_g=b1(Ig,s,eC.name||B);fe=_g.error,B=_g.name,Ne=Xt(Ig)}}else fe=(await x1(W,o,x,n.shouldUseNativeValidation))[B],Z(Pn),K&&(fe?Ne=!1:f.isValid&&(Ne=await N(s,!0)));K&&(W._f.deps&&re(W._f.deps),j(B,Ne,fe,Fd))}},ne=(O,F)=>{if(Q(r.errors,F)&&O.focus)return O.focus(),1},re=async(O,F={})=>{let B,K;const W=wu(O);if(v(!0),n.resolver){const q=await A(Oe(O)?O:W);B=Xt(q),K=O?!W.some(Z=>Q(q,Z)):B}else O?(K=(await Promise.all(W.map(async q=>{const Z=Q(s,q);return await N(Z&&Z._f?{[q]:Z}:Z)}))).every(Boolean),!(!K&&!r.isValid)&&m()):K=B=await N(s);return p.state.next({...!Fn(O)||f.isValid&&B!==r.isValid?{}:{name:O},...n.resolver||!O?{isValid:B}:{},errors:r.errors,isValidating:!1}),F.shouldFocus&&!K&&ea(s,ne,O?W:a.mount),K},de=O=>{const F={...i,...l.mount?o:{}};return Oe(O)?F:Fn(O)?Q(F,O):O.map(B=>Q(F,B))},ye=(O,F)=>({invalid:!!Q((F||r).errors,O),isDirty:!!Q((F||r).dirtyFields,O),isTouched:!!Q((F||r).touchedFields,O),error:Q((F||r).errors,O)}),he=O=>{O&&wu(O).forEach(F=>qe(r.errors,F)),p.state.next({errors:O?r.errors:{}})},je=(O,F,B)=>{const K=(Q(s,O,{_f:{}})._f||{}).ref;ge(r.errors,O,{...F,ref:K}),p.state.next({name:O,errors:r.errors,isValid:!1}),B&&B.shouldFocus&&K&&K.focus&&K.focus()},Ie=(O,F)=>Dr(O)?p.values.subscribe({next:B=>O(k(void 0,F),B)}):k(O,F,!0),Je=(O,F={})=>{for(const B of O?wu(O):a.mount)a.mount.delete(B),a.array.delete(B),F.keepValue||(qe(s,B),qe(o,B)),!F.keepError&&qe(r.errors,B),!F.keepDirty&&qe(r.dirtyFields,B),!F.keepTouched&&qe(r.touchedFields,B),!n.shouldUnregister&&!F.keepDefaultValue&&qe(i,B);p.values.next({values:{...o}}),p.state.next({...r,...F.keepDirty?{isDirty:D()}:{}}),!F.keepIsValid&&m()},gt=({disabled:O,name:F,field:B,fields:K,value:W})=>{if(Zt(O)){const q=O?void 0:Oe(W)?yf(B?B._f:Q(K,F)._f):W;ge(o,F,q),R(F,q,!1,!1,!0)}},Gn=(O,F={})=>{let B=Q(s,O);const K=Zt(F.disabled);return ge(s,O,{...B||{},_f:{...B&&B._f?B._f:{ref:{name:O}},name:O,mount:!0,...F}}),a.mount.add(O),B?gt({field:B,disabled:F.disabled,name:O,value:F.value}):C(O,!0,F.value),{...K?{disabled:F.disabled}:{},...n.progressive?{required:!!F.required,min:Po(F.min),max:Po(F.max),minLength:Po(F.minLength),maxLength:Po(F.maxLength),pattern:Po(F.pattern)}:{},name:O,onChange:V,onBlur:V,ref:W=>{if(W){Gn(O,F),B=Q(s,O);const q=Oe(W.value)&&W.querySelectorAll&&W.querySelectorAll("input,select,textarea")[0]||W,Z=dT(q),fe=B._f.refs||[];if(Z?fe.find(Ne=>Ne===q):q===B._f.ref)return;ge(s,O,{_f:{...B._f,...Z?{refs:[...fe.filter(gf),q,...Array.isArray(Q(i,O))?[{}]:[]],ref:{type:q.type,name:O}}:{ref:q}}}),C(O,!1,void 0,q)}else B=Q(s,O,{}),B._f&&(B._f.mount=!1),(n.shouldUnregister||F.shouldUnregister)&&!(Wx(a.array,O)&&l.action)&&a.unMount.add(O)}}},Js=()=>n.shouldFocusError&&ea(s,ne,a.mount),_d=O=>{Zt(O)&&(p.state.next({disabled:O}),ea(s,(F,B)=>{let K=O;const W=Q(s,B);W&&Zt(W._f.disabled)&&(K||(K=W._f.disabled)),F.disabled=K},0,!1))},vo=(O,F)=>async B=>{B&&(B.preventDefault&&B.preventDefault(),B.persist&&B.persist());let K=vn(o);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:W,values:q}=await L();r.errors=W,K=q}else await N(s);qe(r.errors,"root"),Xt(r.errors)?(p.state.next({errors:{}}),await O(K,B)):(F&&await F({...r.errors},B),Js(),setTimeout(Js)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Xt(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Md=(O,F={})=>{Q(s,O)&&(Oe(F.defaultValue)?$(O,Q(i,O)):($(O,F.defaultValue),ge(i,O,F.defaultValue)),F.keepTouched||qe(r.touchedFields,O),F.keepDirty||(qe(r.dirtyFields,O),r.isDirty=F.defaultValue?D(O,Q(i,O)):D()),F.keepError||(qe(r.errors,O),f.isValid&&m()),p.state.next({...r}))},kl=(O,F={})=>{const B=O?vn(O):i,K=vn(B),W=O&&!Xt(O)?K:i;if(F.keepDefaultValues||(i=B),!F.keepValues){if(F.keepDirtyValues||h)for(const q of a.mount)Q(r.dirtyFields,q)?ge(W,q,Q(o,q)):$(q,Q(W,q));else{if(Cm&&Oe(O))for(const q of a.mount){const Z=Q(s,q);if(Z&&Z._f){const fe=Array.isArray(Z._f.refs)?Z._f.refs[0]:Z._f.ref;if(dc(fe)){const Ne=fe.closest("form");if(Ne){Ne.reset();break}}}}s={}}o=e.shouldUnregister?F.keepDefaultValues?vn(i):{}:vn(W),p.array.next({values:{...W}}),p.values.next({values:{...W}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!f.isValid||!!F.keepIsValid,l.watch=!!e.shouldUnregister,p.state.next({submitCount:F.keepSubmitCount?r.submitCount:0,isDirty:F.keepDirty?r.isDirty:!!(F.keepDefaultValues&&!xs(O,i)),isSubmitted:F.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:F.keepDirtyValues?r.dirtyFields:F.keepDefaultValues&&O?vf(i,O):{},touchedFields:F.keepTouched?r.touchedFields:{},errors:F.keepErrors?r.errors:{},isSubmitSuccessful:F.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},yo=(O,F)=>kl(Dr(O)?O(o):O,F);return{control:{register:Gn,unregister:Je,getFieldState:ye,handleSubmit:vo,setError:je,_executeSchema:L,_getWatch:k,_getDirty:D,_updateValid:m,_removeUnmounted:M,_updateFieldArray:b,_updateDisabledField:gt,_getFieldArray:I,_reset:kl,_resetDefaultValues:()=>Dr(n.defaultValues)&&n.defaultValues().then(O=>{yo(O,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:O=>{r={...r,...O}},_disableForm:_d,_subjects:p,_proxyFormState:f,_setErrors:T,get _fields(){return s},get _formValues(){return o},get _state(){return l},set _state(O){l=O},get _defaultValues(){return i},get _names(){return a},set _names(O){a=O},get _formState(){return r},set _formState(O){r=O},get _options(){return n},set _options(O){n={...n,...O}}},trigger:re,register:Gn,handleSubmit:vo,watch:Ie,setValue:$,getValues:de,reset:yo,resetField:Md,clearErrors:he,unregister:Je,setError:je,setFocus:(O,F={})=>{const B=Q(s,O),K=B&&B._f;if(K){const W=K.refs?K.refs[0]:K.ref;W.focus&&(W.focus(),F.shouldSelect&&W.select())}},getFieldState:ye}}function sb(e={}){const t=ee.useRef(),n=ee.useRef(),[r,s]=ee.useState({isDirty:!1,isValidating:!1,isLoading:Dr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:Dr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...vT(e,()=>s(o=>({...o}))),formState:r});const i=t.current.control;return i._options=e,Tm({subject:i._subjects.state,next:o=>{Qx(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),ee.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ee.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),ee.useEffect(()=>{e.values&&!xs(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ee.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ee.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Gx(r,i),t.current}function ib(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ib(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function J(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ib(e))&&(r&&(r+=" "),r+=t);return r}const yT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),wT=yT,xT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0",clipRule:"evenodd"})]}),bT=xT,ST=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414",clipRule:"evenodd"})]}),ET=ST,CT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12"})]}),Rm=CT,kT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",clipRule:"evenodd"})]}),TT=kT,jT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0",clipRule:"evenodd"})]}),ob=jT,PT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916M3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923z",clipRule:"evenodd"})]}),OT=PT,RT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),ab=RT,NT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879m-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465z",clipRule:"evenodd"})]}),AT=NT,IT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0",clipRule:"evenodd"})]}),_T=IT,MT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32",clipRule:"evenodd"})]}),i7=MT,LT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z",clipRule:"evenodd"})]}),DT=LT,FT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374zM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2z",clipRule:"evenodd"})]}),$T=FT,zT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),o7=zT,BT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),lb=BT,VT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655",clipRule:"evenodd"})]}),UT=VT,HT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),d.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),d.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),qT=HT,WT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z",clipRule:"evenodd"})]}),GT=WT,QT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117",clipRule:"evenodd"})]}),Na=QT,KT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141",clipRule:"evenodd"})]}),XT=KT,YT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141",clipRule:"evenodd"})]}),S1=YT,JT=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117",clipRule:"evenodd"})]}),ZT=JT,e5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),t5=e5,n5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0m7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1",clipRule:"evenodd"})]}),r5=n5,s5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219",clipRule:"evenodd"})]}),i5=s5,o5=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:d.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272M15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036M1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"users_svg__a",children:d.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),a7=o5;function a5(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wl(e){return e instanceof Element||e instanceof a5(e).Element}const Aa=Math.min,en=Math.max,mc=Math.round,Gl=Math.floor,ts=e=>({x:e,y:e}),l5={left:"right",right:"left",bottom:"top",top:"bottom"},u5={start:"end",end:"start"};function Zc(e,t){return typeof e=="function"?e(t):e}function zs(e){return e.split("-")[0]}function pl(e){return e.split("-")[1]}function c5(e){return e==="x"?"y":"x"}function ub(e){return e==="y"?"height":"width"}function ed(e){return["top","bottom"].includes(zs(e))?"y":"x"}function cb(e){return c5(ed(e))}function d5(e,t,n){n===void 0&&(n=!1);const r=pl(e),s=cb(e),i=ub(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=gc(o)),[o,gc(o)]}function f5(e){const t=gc(e);return[eh(e),t,eh(t)]}function eh(e){return e.replace(/start|end/g,t=>u5[t])}function p5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function h5(e,t,n,r){const s=pl(e);let i=p5(zs(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(eh)))),i}function gc(e){return e.replace(/left|right|bottom|top/g,t=>l5[t])}function m5(e){return{top:0,right:0,bottom:0,left:0,...e}}function g5(e){return typeof e!="number"?m5(e):{top:e,right:e,bottom:e,left:e}}function vc(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function E1(e,t,n){let{reference:r,floating:s}=e;const i=ed(t),o=cb(t),l=ub(o),a=zs(t),u=i==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,p=r[l]/2-s[l]/2;let h;switch(a){case"top":h={x:c,y:r.y-s.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(pl(t)){case"start":h[o]-=p*(n&&u?-1:1);break;case"end":h[o]+=p*(n&&u?-1:1);break}return h}const v5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=E1(u,r,a),p=r,h={},y=0;for(let w=0;w<l.length;w++){const{name:x,fn:g}=l[w],{x:m,y:v,data:b,reset:E}=await g({x:c,y:f,initialPlacement:r,placement:p,strategy:s,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=m??c,f=v??f,h={...h,[x]:{...h[x],...b}},E&&y<=50){y++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:c,y:f}=E1(u,p,a)),w=-1;continue}}return{x:c,y:f,placement:p,strategy:s,middlewareData:h}};async function db(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Zc(t,e),y=g5(h),x=l[p?f==="floating"?"reference":"floating":f],g=vc(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),m=f==="floating"?{...o.floating,x:r,y:s}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),b=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},E=vc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:v,strategy:a}):m);return{top:(g.top-E.top+y.top)/b.y,bottom:(E.bottom-g.bottom+y.bottom)/b.y,left:(g.left-E.left+y.left)/b.x,right:(E.right-g.right+y.right)/b.x}}const y5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...x}=Zc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=zs(s),m=zs(l)===l,v=await(a.isRTL==null?void 0:a.isRTL(u.floating)),b=p||(m||!w?[gc(l)]:f5(l));!p&&y!=="none"&&b.push(...h5(l,w,y,v));const E=[l,...b],T=await db(t,x),C=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&C.push(T[g]),f){const N=d5(s,o,v);C.push(T[N[0]],T[N[1]])}if(R=[...R,{placement:s,overflows:C}],!C.every(N=>N<=0)){var j,L;const N=(((j=i.flip)==null?void 0:j.index)||0)+1,M=E[N];if(M)return{data:{index:N,overflows:R},reset:{placement:M}};let D=(L=R.filter(k=>k.overflows[0]<=0).sort((k,I)=>k.overflows[1]-I.overflows[1])[0])==null?void 0:L.placement;if(!D)switch(h){case"bestFit":{var A;const k=(A=R.map(I=>[I.placement,I.overflows.filter(z=>z>0).reduce((z,_)=>z+_,0)]).sort((I,z)=>I[1]-z[1])[0])==null?void 0:A[0];k&&(D=k);break}case"initialPlacement":D=l;break}if(s!==D)return{reset:{placement:D}}}return{}}}};async function w5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=zs(n),l=pl(n),a=ed(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&a?-1:1,f=Zc(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof y=="number"&&(h=l==="end"?y*-1:y),a?{x:h*c,y:p*u}:{x:p*u,y:h*c}}const x5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=t,a=await w5(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+a.x,y:i+a.y,data:{...a,placement:o}}}}},b5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...l}=Zc(e,t),a=await db(t,l),u=zs(n),c=pl(n),f=ed(n)==="y",{width:p,height:h}=r.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,y=c==="end"?"top":"bottom");const x=h-a[y],g=p-a[w],m=!t.middlewareData.shift;let v=x,b=g;if(f){const T=p-a.left-a.right;b=c||m?Aa(g,T):T}else{const T=h-a.top-a.bottom;v=c||m?Aa(x,T):T}if(m&&!c){const T=en(a.left,0),C=en(a.right,0),R=en(a.top,0),j=en(a.bottom,0);f?b=p-2*(T!==0||C!==0?T+C:en(a.left,a.right)):v=h-2*(R!==0||j!==0?R+j:en(a.top,a.bottom))}await o({...t,availableWidth:b,availableHeight:v});const E=await s.getDimensions(i.floating);return p!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function ns(e){return fb(e)?(e.nodeName||"").toLowerCase():"#document"}function $t(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yr(e){var t;return(t=(fb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fb(e){return e instanceof Node||e instanceof $t(e).Node}function dr(e){return e instanceof Element||e instanceof $t(e).Element}function Un(e){return e instanceof HTMLElement||e instanceof $t(e).HTMLElement}function C1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $t(e).ShadowRoot}function hl(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function S5(e){return["table","td","th"].includes(ns(e))}function Nm(e){const t=Am(),n=cn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function E5(e){let t=to(e);for(;Un(t)&&!td(t);){if(Nm(t))return t;t=to(t)}return null}function Am(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function td(e){return["html","body","#document"].includes(ns(e))}function cn(e){return $t(e).getComputedStyle(e)}function nd(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function to(e){if(ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||C1(e)&&e.host||yr(e);return C1(t)?t.host:t}function pb(e){const t=to(e);return td(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&hl(t)?t:pb(t)}function Ia(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=pb(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=$t(s);return i?t.concat(o,o.visualViewport||[],hl(s)?s:[],o.frameElement&&n?Ia(o.frameElement):[]):t.concat(s,Ia(s,[],n))}function hb(e){const t=cn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Un(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,l=mc(n)!==i||mc(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function Im(e){return dr(e)?e:e.contextElement}function Ti(e){const t=Im(e);if(!Un(t))return ts(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=hb(t);let o=(i?mc(n.width):n.width)/r,l=(i?mc(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const C5=ts(0);function mb(e){const t=$t(e);return!Am()||!t.visualViewport?C5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function k5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$t(e)?!1:t}function Bs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Im(e);let o=ts(1);t&&(r?dr(r)&&(o=Ti(r)):o=Ti(e));const l=k5(i,n,r)?mb(i):ts(0);let a=(s.left+l.x)/o.x,u=(s.top+l.y)/o.y,c=s.width/o.x,f=s.height/o.y;if(i){const p=$t(i),h=r&&dr(r)?$t(r):r;let y=p.frameElement;for(;y&&r&&h!==p;){const w=Ti(y),x=y.getBoundingClientRect(),g=cn(y),m=x.left+(y.clientLeft+parseFloat(g.paddingLeft))*w.x,v=x.top+(y.clientTop+parseFloat(g.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=m,u+=v,y=$t(y).frameElement}}return vc({width:c,height:f,x:a,y:u})}function T5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Un(n),i=yr(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},l=ts(1);const a=ts(0);if((s||!s&&r!=="fixed")&&((ns(n)!=="body"||hl(i))&&(o=nd(n)),Un(n))){const u=Bs(n);l=Ti(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-o.scrollLeft*l.x+a.x,y:t.y*l.y-o.scrollTop*l.y+a.y}}function j5(e){return Array.from(e.getClientRects())}function gb(e){return Bs(yr(e)).left+nd(e).scrollLeft}function P5(e){const t=yr(e),n=nd(e),r=e.ownerDocument.body,s=en(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=en(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+gb(e);const l=-n.scrollTop;return cn(r).direction==="rtl"&&(o+=en(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}function O5(e,t){const n=$t(e),r=yr(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,a=0;if(s){i=s.width,o=s.height;const u=Am();(!u||u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:i,height:o,x:l,y:a}}function R5(e,t){const n=Bs(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Un(e)?Ti(e):ts(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,a=s*i.x,u=r*i.y;return{width:o,height:l,x:a,y:u}}function k1(e,t,n){let r;if(t==="viewport")r=O5(e,n);else if(t==="document")r=P5(yr(e));else if(dr(t))r=R5(t,n);else{const s=mb(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return vc(r)}function vb(e,t){const n=to(e);return n===t||!dr(n)||td(n)?!1:cn(n).position==="fixed"||vb(n,t)}function N5(e,t){const n=t.get(e);if(n)return n;let r=Ia(e,[],!1).filter(l=>dr(l)&&ns(l)!=="body"),s=null;const i=cn(e).position==="fixed";let o=i?to(e):e;for(;dr(o)&&!td(o);){const l=cn(o),a=Nm(o);!a&&l.position==="fixed"&&(s=null),(i?!a&&!s:!a&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||hl(o)&&!a&&vb(e,o))?r=r.filter(c=>c!==o):s=l,o=to(o)}return t.set(e,r),r}function A5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?N5(t,this._c):[].concat(n),r],l=o[0],a=o.reduce((u,c)=>{const f=k1(t,c,s);return u.top=en(f.top,u.top),u.right=Aa(f.right,u.right),u.bottom=Aa(f.bottom,u.bottom),u.left=en(f.left,u.left),u},k1(t,l,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function I5(e){const{width:t,height:n}=hb(e);return{width:t,height:n}}function _5(e,t,n){const r=Un(t),s=yr(t),i=n==="fixed",o=Bs(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=ts(0);if(r||!r&&!i)if((ns(t)!=="body"||hl(s))&&(l=nd(t)),r){const u=Bs(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else s&&(a.x=gb(s));return{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function T1(e,t){return!Un(e)||cn(e).position==="fixed"?null:t?t(e):e.offsetParent}function yb(e,t){const n=$t(e);if(!Un(e))return n;let r=T1(e,t);for(;r&&S5(r)&&cn(r).position==="static";)r=T1(r,t);return r&&(ns(r)==="html"||ns(r)==="body"&&cn(r).position==="static"&&!Nm(r))?n:r||E5(e)||n}const M5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||yb,i=this.getDimensions;return{reference:_5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function L5(e){return cn(e).direction==="rtl"}const D5={convertOffsetParentRelativeRectToViewportRelativeRect:T5,getDocumentElement:yr,getClippingRect:A5,getOffsetParent:yb,getElementRects:M5,getClientRects:j5,getDimensions:I5,getScale:Ti,isElement:dr,isRTL:L5};function F5(e,t){let n=null,r;const s=yr(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const h=Gl(c),y=Gl(s.clientWidth-(u+f)),w=Gl(s.clientHeight-(c+p)),x=Gl(u),m={rootMargin:-h+"px "+-y+"px "+-w+"px "+-x+"px",threshold:en(0,Aa(1,a))||1};let v=!0;function b(E){const T=E[0].intersectionRatio;if(T!==a){if(!v)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(b,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,m)}n.observe(e)}return o(!0),i}function $5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Im(e),c=s||i?[...u?Ia(u):[],...Ia(t)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=u&&l?F5(u,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),u&&!a&&h.observe(u),h.observe(t));let y,w=a?Bs(e):null;a&&x();function x(){const g=Bs(e);w&&(g.x!==w.x||g.y!==w.y||g.width!==w.width||g.height!==w.height)&&n(),w=g,y=requestAnimationFrame(x)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,a&&cancelAnimationFrame(y)}}const z5=y5,B5=b5,V5=(e,t,n)=>{const r=new Map,s={platform:D5,...n},i={...s.platform,_c:r};return v5(e,t,{...s,platform:i})};var bu=typeof document<"u"?S.useLayoutEffect:S.useEffect;function yc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!yc(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!yc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function j1(e,t){const n=wb(e);return Math.round(t*n)/n}function P1(e){const t=S.useRef(e);return bu(()=>{t.current=e}),t}function U5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=S.useState(r);yc(p,r)||h(r);const[y,w]=S.useState(null),[x,g]=S.useState(null),m=S.useCallback(I=>{I!=T.current&&(T.current=I,w(I))},[w]),v=S.useCallback(I=>{I!==C.current&&(C.current=I,g(I))},[g]),b=i||y,E=o||x,T=S.useRef(null),C=S.useRef(null),R=S.useRef(c),j=P1(a),L=P1(s),A=S.useCallback(()=>{if(!T.current||!C.current)return;const I={placement:t,strategy:n,middleware:p};L.current&&(I.platform=L.current),V5(T.current,C.current,I).then(z=>{const _={...z,isPositioned:!0};N.current&&!yc(R.current,_)&&(R.current=_,vr.flushSync(()=>{f(_)}))})},[p,t,n,L]);bu(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(I=>({...I,isPositioned:!1})))},[u]);const N=S.useRef(!1);bu(()=>(N.current=!0,()=>{N.current=!1}),[]),bu(()=>{if(b&&(T.current=b),E&&(C.current=E),b&&E){if(j.current)return j.current(b,E,A);A()}},[b,E,A,j]);const M=S.useMemo(()=>({reference:T,floating:C,setReference:m,setFloating:v}),[m,v]),D=S.useMemo(()=>({reference:b,floating:E}),[b,E]),k=S.useMemo(()=>{const I={position:n,left:0,top:0};if(!D.floating)return I;const z=j1(D.floating,c.x),_=j1(D.floating,c.y);return l?{...I,transform:"translate("+z+"px, "+_+"px)",...wb(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:_}},[n,l,D.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:A,refs:M,elements:D,floatingStyles:k}),[c,A,M,D,k])}var xb=typeof document<"u"?S.useLayoutEffect:S.useEffect;let wf=!1,H5=0;const O1=()=>"floating-ui-"+H5++;function q5(){const[e,t]=S.useState(()=>wf?O1():void 0);return xb(()=>{e==null&&t(O1())},[]),S.useEffect(()=>{wf||(wf=!0)},[]),e}const W5=hy["useId".toString()],G5=W5||q5;function Q5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const K5=S.createContext(null),X5=()=>S.useContext(K5),Y5=hy["useInsertionEffect".toString()],J5=Y5||(e=>e());function Z5(e){const t=S.useRef(()=>{});return J5(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function ej(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=S.useState(null),l=((t=e.elements)==null?void 0:t.reference)||i,a=U5(e),u=X5(),c=Z5((b,E)=>{b&&(p.current.openEvent=E),r==null||r(b,E)}),f=S.useRef(null),p=S.useRef({}),h=S.useState(()=>Q5())[0],y=G5(),w=S.useCallback(b=>{const E=Wl(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;a.refs.setReference(E)},[a.refs]),x=S.useCallback(b=>{(Wl(b)||b===null)&&(f.current=b,o(b)),(Wl(a.refs.reference.current)||a.refs.reference.current===null||b!==null&&!Wl(b))&&a.refs.setReference(b)},[a.refs]),g=S.useMemo(()=>({...a.refs,setReference:x,setPositionReference:w,domReference:f}),[a.refs,x,w]),m=S.useMemo(()=>({...a.elements,domReference:l}),[a.elements,l]),v=S.useMemo(()=>({...a,refs:g,elements:m,dataRef:p,nodeId:s,floatingId:y,events:h,open:n,onOpenChange:c}),[a,s,y,h,n,c,g,m]);return xb(()=>{const b=u==null?void 0:u.nodesRef.current.find(E=>E.id===s);b&&(b.context=v)}),S.useMemo(()=>({...a,context:v,refs:g,elements:m}),[a,g,m,v])}let tj={data:""},nj=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tj,rj=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,sj=/\/\*[^]*?\*\/| +/g,R1=/\n+/g,Tr=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?Tr(o,i):i+"{"+Tr(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=Tr(o,t?t.replace(/([^,])+/g,l=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Tr.p?Tr.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Kn={},bb=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+bb(e[n]);return t}return e},ij=(e,t,n,r,s)=>{let i=bb(e),o=Kn[i]||(Kn[i]=(a=>{let u=0,c=11;for(;u<a.length;)c=101*c+a.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Kn[o]){let a=i!==e?e:(u=>{let c,f,p=[{}];for(;c=rj.exec(u.replace(sj,""));)c[4]?p.shift():c[3]?(f=c[3].replace(R1," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(R1," ").trim();return p[0]})(e);Kn[o]=Tr(s?{["@keyframes "+o]:a}:a,n?"":"."+o)}let l=n&&Kn.g?Kn.g:null;return n&&(Kn.g=Kn[o]),((a,u,c,f)=>{f?u.data=u.data.replace(f,a):u.data.indexOf(a)===-1&&(u.data=c?a+u.data:u.data+a)})(Kn[o],t,r,l),o},oj=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];if(o&&o.call){let l=o(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;o=a?"."+a:l&&typeof l=="object"?l.props?"":Tr(l,""):l===!1?"":l}return r+s+(o??"")},"");function rd(e){let t=this||{},n=e.call?e(t.p):e;return ij(n.unshift?n.raw?oj(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,nj(t.target),t.g,t.o,t.k)}let Sb,th,nh;rd.bind({g:1});let fr=rd.bind({k:1});function aj(e,t,n,r){Tr.p=t,Sb=e,th=n,nh=r}function as(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let l=Object.assign({},i),a=l.className||s.className;n.p=Object.assign({theme:th&&th()},l),n.o=/ *go\d+/.test(a),l.className=rd.apply(n,r)+(a?" "+a:""),t&&(l.ref=o);let u=e;return e[0]&&(u=l.as||e,delete l.as),nh&&u[0]&&nh(l),Sb(u,l)}return t?t(s):s}}var lj=e=>typeof e=="function",wc=(e,t)=>lj(e)?e(t):e,uj=(()=>{let e=0;return()=>(++e).toString()})(),Eb=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),cj=20,Su=new Map,dj=1e3,N1=e=>{if(Su.has(e))return;let t=setTimeout(()=>{Su.delete(e),Ks({type:4,toastId:e})},dj);Su.set(e,t)},fj=e=>{let t=Su.get(e);t&&clearTimeout(t)},rh=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,cj)};case 1:return t.toast.id&&fj(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?rh(e,{type:1,toast:n}):rh(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?N1(r):e.toasts.forEach(i=>{N1(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},Eu=[],Cu={toasts:[],pausedAt:void 0},Ks=e=>{Cu=rh(Cu,e),Eu.forEach(t=>{t(Cu)})},pj={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},hj=(e={})=>{let[t,n]=S.useState(Cu);S.useEffect(()=>(Eu.push(n),()=>{let s=Eu.indexOf(n);s>-1&&Eu.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||pj[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},mj=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||uj()}),ml=e=>(t,n)=>{let r=mj(t,e,n);return Ks({type:2,toast:r}),r.id},Dt=(e,t)=>ml("blank")(e,t);Dt.error=ml("error");Dt.success=ml("success");Dt.loading=ml("loading");Dt.custom=ml("custom");Dt.dismiss=e=>{Ks({type:3,toastId:e})};Dt.remove=e=>Ks({type:4,toastId:e});Dt.promise=(e,t,n)=>{let r=Dt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Dt.success(wc(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Dt.error(wc(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var gj=(e,t)=>{Ks({type:1,toast:{id:e,height:t}})},vj=()=>{Ks({type:5,time:Date.now()})},yj=e=>{let{toasts:t,pausedAt:n}=hj(e);S.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(l=>{if(l.duration===1/0)return;let a=(l.duration||0)+l.pauseDuration-(i-l.createdAt);if(a<0){l.visible&&Dt.dismiss(l.id);return}return setTimeout(()=>Dt.dismiss(l.id),a)});return()=>{o.forEach(l=>l&&clearTimeout(l))}},[t,n]);let r=S.useCallback(()=>{n&&Ks({type:6,time:Date.now()})},[n]),s=S.useCallback((i,o)=>{let{reverseOrder:l=!1,gutter:a=8,defaultPosition:u}=o||{},c=t.filter(h=>(h.position||u)===(i.position||u)&&h.height),f=c.findIndex(h=>h.id===i.id),p=c.filter((h,y)=>y<f&&h.visible).length;return c.filter(h=>h.visible).slice(...l?[p+1]:[0,p]).reduce((h,y)=>h+(y.height||0)+a,0)},[t]);return{toasts:t,handlers:{updateHeight:gj,startPause:vj,endPause:r,calculateOffset:s}}},wj=fr`
|
|
42
|
-
from {
|
|
43
|
-
transform: scale(0) rotate(45deg);
|
|
44
|
-
opacity: 0;
|
|
45
|
-
}
|
|
46
|
-
to {
|
|
47
|
-
transform: scale(1) rotate(45deg);
|
|
48
|
-
opacity: 1;
|
|
49
|
-
}`,xj=fr`
|
|
50
|
-
from {
|
|
51
|
-
transform: scale(0);
|
|
52
|
-
opacity: 0;
|
|
53
|
-
}
|
|
54
|
-
to {
|
|
55
|
-
transform: scale(1);
|
|
56
|
-
opacity: 1;
|
|
57
|
-
}`,bj=fr`
|
|
58
|
-
from {
|
|
59
|
-
transform: scale(0) rotate(90deg);
|
|
60
|
-
opacity: 0;
|
|
61
|
-
}
|
|
62
|
-
to {
|
|
63
|
-
transform: scale(1) rotate(90deg);
|
|
64
|
-
opacity: 1;
|
|
65
|
-
}`,Sj=as("div")`
|
|
66
|
-
width: 20px;
|
|
67
|
-
opacity: 0;
|
|
68
|
-
height: 20px;
|
|
69
|
-
border-radius: 10px;
|
|
70
|
-
background: ${e=>e.primary||"#ff4b4b"};
|
|
71
|
-
position: relative;
|
|
72
|
-
transform: rotate(45deg);
|
|
73
|
-
|
|
74
|
-
animation: ${wj} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
75
|
-
forwards;
|
|
76
|
-
animation-delay: 100ms;
|
|
77
|
-
|
|
78
|
-
&:after,
|
|
79
|
-
&:before {
|
|
80
|
-
content: '';
|
|
81
|
-
animation: ${xj} 0.15s ease-out forwards;
|
|
82
|
-
animation-delay: 150ms;
|
|
83
|
-
position: absolute;
|
|
84
|
-
border-radius: 3px;
|
|
85
|
-
opacity: 0;
|
|
86
|
-
background: ${e=>e.secondary||"#fff"};
|
|
87
|
-
bottom: 9px;
|
|
88
|
-
left: 4px;
|
|
89
|
-
height: 2px;
|
|
90
|
-
width: 12px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:before {
|
|
94
|
-
animation: ${bj} 0.15s ease-out forwards;
|
|
95
|
-
animation-delay: 180ms;
|
|
96
|
-
transform: rotate(90deg);
|
|
97
|
-
}
|
|
98
|
-
`,Ej=fr`
|
|
99
|
-
from {
|
|
100
|
-
transform: rotate(0deg);
|
|
101
|
-
}
|
|
102
|
-
to {
|
|
103
|
-
transform: rotate(360deg);
|
|
104
|
-
}
|
|
105
|
-
`,Cj=as("div")`
|
|
106
|
-
width: 12px;
|
|
107
|
-
height: 12px;
|
|
108
|
-
box-sizing: border-box;
|
|
109
|
-
border: 2px solid;
|
|
110
|
-
border-radius: 100%;
|
|
111
|
-
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
112
|
-
border-right-color: ${e=>e.primary||"#616161"};
|
|
113
|
-
animation: ${Ej} 1s linear infinite;
|
|
114
|
-
`,kj=fr`
|
|
115
|
-
from {
|
|
116
|
-
transform: scale(0) rotate(45deg);
|
|
117
|
-
opacity: 0;
|
|
118
|
-
}
|
|
119
|
-
to {
|
|
120
|
-
transform: scale(1) rotate(45deg);
|
|
121
|
-
opacity: 1;
|
|
122
|
-
}`,Tj=fr`
|
|
123
|
-
0% {
|
|
124
|
-
height: 0;
|
|
125
|
-
width: 0;
|
|
126
|
-
opacity: 0;
|
|
127
|
-
}
|
|
128
|
-
40% {
|
|
129
|
-
height: 0;
|
|
130
|
-
width: 6px;
|
|
131
|
-
opacity: 1;
|
|
132
|
-
}
|
|
133
|
-
100% {
|
|
134
|
-
opacity: 1;
|
|
135
|
-
height: 10px;
|
|
136
|
-
}`,jj=as("div")`
|
|
137
|
-
width: 20px;
|
|
138
|
-
opacity: 0;
|
|
139
|
-
height: 20px;
|
|
140
|
-
border-radius: 10px;
|
|
141
|
-
background: ${e=>e.primary||"#61d345"};
|
|
142
|
-
position: relative;
|
|
143
|
-
transform: rotate(45deg);
|
|
144
|
-
|
|
145
|
-
animation: ${kj} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
146
|
-
forwards;
|
|
147
|
-
animation-delay: 100ms;
|
|
148
|
-
&:after {
|
|
149
|
-
content: '';
|
|
150
|
-
box-sizing: border-box;
|
|
151
|
-
animation: ${Tj} 0.2s ease-out forwards;
|
|
152
|
-
opacity: 0;
|
|
153
|
-
animation-delay: 200ms;
|
|
154
|
-
position: absolute;
|
|
155
|
-
border-right: 2px solid;
|
|
156
|
-
border-bottom: 2px solid;
|
|
157
|
-
border-color: ${e=>e.secondary||"#fff"};
|
|
158
|
-
bottom: 6px;
|
|
159
|
-
left: 6px;
|
|
160
|
-
height: 10px;
|
|
161
|
-
width: 6px;
|
|
162
|
-
}
|
|
163
|
-
`,Pj=as("div")`
|
|
164
|
-
position: absolute;
|
|
165
|
-
`,Oj=as("div")`
|
|
166
|
-
position: relative;
|
|
167
|
-
display: flex;
|
|
168
|
-
justify-content: center;
|
|
169
|
-
align-items: center;
|
|
170
|
-
min-width: 20px;
|
|
171
|
-
min-height: 20px;
|
|
172
|
-
`,Rj=fr`
|
|
173
|
-
from {
|
|
174
|
-
transform: scale(0.6);
|
|
175
|
-
opacity: 0.4;
|
|
176
|
-
}
|
|
177
|
-
to {
|
|
178
|
-
transform: scale(1);
|
|
179
|
-
opacity: 1;
|
|
180
|
-
}`,Nj=as("div")`
|
|
181
|
-
position: relative;
|
|
182
|
-
transform: scale(0.6);
|
|
183
|
-
opacity: 0.4;
|
|
184
|
-
min-width: 20px;
|
|
185
|
-
animation: ${Rj} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
186
|
-
forwards;
|
|
187
|
-
`,Aj=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?S.createElement(Nj,null,t):t:n==="blank"?null:S.createElement(Oj,null,S.createElement(Cj,{...r}),n!=="loading"&&S.createElement(Pj,null,n==="error"?S.createElement(Sj,{...r}):S.createElement(jj,{...r})))},Ij=e=>`
|
|
188
|
-
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
189
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
190
|
-
`,_j=e=>`
|
|
191
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
192
|
-
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
193
|
-
`,Mj="0%{opacity:0;} 100%{opacity:1;}",Lj="0%{opacity:1;} 100%{opacity:0;}",Dj=as("div")`
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
background: #fff;
|
|
197
|
-
color: #363636;
|
|
198
|
-
line-height: 1.3;
|
|
199
|
-
will-change: transform;
|
|
200
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
201
|
-
max-width: 350px;
|
|
202
|
-
pointer-events: auto;
|
|
203
|
-
padding: 8px 10px;
|
|
204
|
-
border-radius: 8px;
|
|
205
|
-
`,Fj=as("div")`
|
|
206
|
-
display: flex;
|
|
207
|
-
justify-content: center;
|
|
208
|
-
margin: 4px 10px;
|
|
209
|
-
color: inherit;
|
|
210
|
-
flex: 1 1 auto;
|
|
211
|
-
white-space: pre-line;
|
|
212
|
-
`,$j=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=Eb()?[Mj,Lj]:[Ij(n),_j(n)];return{animation:t?`${fr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${fr(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},zj=S.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?$j(e.position||t||"top-center",e.visible):{opacity:0},i=S.createElement(Aj,{toast:e}),o=S.createElement(Fj,{...e.ariaProps},wc(e.message,e));return S.createElement(Dj,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):S.createElement(S.Fragment,null,i,o))});aj(S.createElement);var Bj=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let i=S.useCallback(o=>{if(o){let l=()=>{let a=o.getBoundingClientRect().height;r(e,a)};l(),new MutationObserver(l).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return S.createElement("div",{ref:i,className:t,style:n},s)},Vj=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Eb()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},Uj=rd`
|
|
213
|
-
z-index: 9999;
|
|
214
|
-
> * {
|
|
215
|
-
pointer-events: auto;
|
|
216
|
-
}
|
|
217
|
-
`,Ql=16,Hj=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:l,handlers:a}=yj(n);return S.createElement("div",{style:{position:"fixed",zIndex:9999,top:Ql,left:Ql,right:Ql,bottom:Ql,pointerEvents:"none",...i},className:o,onMouseEnter:a.startPause,onMouseLeave:a.endPause},l.map(u=>{let c=u.position||t,f=a.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Vj(c,f);return S.createElement(Bj,{id:u.id,key:u.id,onHeightUpdate:a.updateHeight,className:u.visible?Uj:"",style:p},u.type==="custom"?wc(u.message,u):s?s(u):S.createElement(zj,{toast:u,position:c}))}))},Oo=Dt,qj=Object.defineProperty,Wj=(e,t)=>{for(var n in t)qj(e,n,{get:t[n],enumerable:!0})},jn={};Wj(jn,{assign:()=>Kj,colors:()=>Yr,createStringInterpolator:()=>zm,skipAnimation:()=>Rb,to:()=>Ob,willAdvance:()=>Bm});var _m=vl(),ie=e=>gl(e,_m),Mm=vl();ie.write=e=>gl(e,Mm);var sd=vl();ie.onStart=e=>gl(e,sd);var Lm=vl();ie.onFrame=e=>gl(e,Lm);var Dm=vl();ie.onFinish=e=>gl(e,Dm);var ji=[];ie.setTimeout=(e,t)=>{const n=ie.now()+t,r=()=>{const i=ji.findIndex(o=>o.cancel==r);~i&&ji.splice(i,1),$r-=~i?1:0},s={time:n,handler:e,cancel:r};return ji.splice(Cb(n),0,s),$r+=1,kb(),s};var Cb=e=>~(~ji.findIndex(t=>t.time>e)||~ji.length);ie.cancel=e=>{sd.delete(e),Lm.delete(e),Dm.delete(e),_m.delete(e),Mm.delete(e)};ie.sync=e=>{sh=!0,ie.batchedUpdates(e),sh=!1};ie.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,ie.onStart(n)}return r.handler=e,r.cancel=()=>{sd.delete(n),t=null},r};var Fm=typeof window<"u"?window.requestAnimationFrame:()=>{};ie.use=e=>Fm=e;ie.now=typeof performance<"u"?()=>performance.now():Date.now;ie.batchedUpdates=e=>e();ie.catch=console.error;ie.frameLoop="always";ie.advance=()=>{ie.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):jb()};var Fr=-1,$r=0,sh=!1;function gl(e,t){sh?(t.delete(e),e(0)):(t.add(e),kb())}function kb(){Fr<0&&(Fr=0,ie.frameLoop!=="demand"&&Fm(Tb))}function Gj(){Fr=-1}function Tb(){~Fr&&(Fm(Tb),ie.batchedUpdates(jb))}function jb(){const e=Fr;Fr=ie.now();const t=Cb(Fr);if(t&&(Pb(ji.splice(0,t),n=>n.handler()),$r-=t),!$r){Gj();return}sd.flush(),_m.flush(e?Math.min(64,Fr-e):16.667),Lm.flush(),Mm.flush(),Dm.flush()}function vl(){let e=new Set,t=e;return{add(n){$r+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return $r-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,$r-=t.size,Pb(t,r=>r(n)&&e.add(r)),$r+=e.size,t=e)}}}function Pb(e,t){e.forEach(n=>{try{t(n)}catch(r){ie.catch(r)}})}function ih(){}var Qj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),U={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Zn(e,t){if(U.arr(e)){if(!U.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var te=(e,t)=>e.forEach(t);function Hn(e,t,n){if(U.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var ut=e=>U.und(e)?[]:U.arr(e)?e:[e];function ta(e,t){if(e.size){const n=Array.from(e);e.clear(),te(n,t)}}var Bo=(e,...t)=>ta(e,n=>n(...t)),$m=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),zm,Ob,Yr=null,Rb=!1,Bm=ih,Kj=e=>{e.to&&(Ob=e.to),e.now&&(ie.now=e.now),e.colors!==void 0&&(Yr=e.colors),e.skipAnimation!=null&&(Rb=e.skipAnimation),e.createStringInterpolator&&(zm=e.createStringInterpolator),e.requestAnimationFrame&&ie.use(e.requestAnimationFrame),e.batchedUpdates&&(ie.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Bm=e.willAdvance),e.frameLoop&&(ie.frameLoop=e.frameLoop)},na=new Set,nn=[],xf=[],xc=0,id={get idle(){return!na.size&&!nn.length},start(e){xc>e.priority?(na.add(e),ie.onStart(Xj)):(Nb(e),ie(oh))},advance:oh,sort(e){if(xc)ie.onFrame(()=>id.sort(e));else{const t=nn.indexOf(e);~t&&(nn.splice(t,1),Ab(e))}},clear(){nn=[],na.clear()}};function Xj(){na.forEach(Nb),na.clear(),ie(oh)}function Nb(e){nn.includes(e)||Ab(e)}function Ab(e){nn.splice(Yj(nn,t=>t.priority>e.priority),0,e)}function oh(e){const t=xf;for(let n=0;n<nn.length;n++){const r=nn[n];xc=r.priority,r.idle||(Bm(r),r.advance(e),r.idle||t.push(r))}return xc=0,xf=nn,xf.length=0,nn=t,nn.length>0}function Yj(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Jj=(e,t,n)=>Math.min(Math.max(n,e),t),Zj={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},En="[-+]?\\d*\\.?\\d+",bc=En+"%";function od(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var eP=new RegExp("rgb"+od(En,En,En)),tP=new RegExp("rgba"+od(En,En,En,En)),nP=new RegExp("hsl"+od(En,bc,bc)),rP=new RegExp("hsla"+od(En,bc,bc,En)),sP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,iP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,oP=/^#([0-9a-fA-F]{6})$/,aP=/^#([0-9a-fA-F]{8})$/;function lP(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=oP.exec(e))?parseInt(t[1]+"ff",16)>>>0:Yr&&Yr[e]!==void 0?Yr[e]:(t=eP.exec(e))?(ii(t[1])<<24|ii(t[2])<<16|ii(t[3])<<8|255)>>>0:(t=tP.exec(e))?(ii(t[1])<<24|ii(t[2])<<16|ii(t[3])<<8|_1(t[4]))>>>0:(t=sP.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=aP.exec(e))?parseInt(t[1],16)>>>0:(t=iP.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=nP.exec(e))?(A1(I1(t[1]),Kl(t[2]),Kl(t[3]))|255)>>>0:(t=rP.exec(e))?(A1(I1(t[1]),Kl(t[2]),Kl(t[3]))|_1(t[4]))>>>0:null}function bf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function A1(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=bf(s,r,e+1/3),o=bf(s,r,e),l=bf(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(l*255)<<8}function ii(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function I1(e){return(parseFloat(e)%360+360)%360/360}function _1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Kl(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function M1(e){let t=lP(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var _a=(e,t,n)=>{if(U.fun(e))return e;if(U.arr(e))return _a({range:e,output:t,extrapolate:n});if(U.str(e.output[0]))return zm(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",a=r.easing||(u=>u);return u=>{const c=cP(u,i);return uP(u,i[c],i[c+1],s[c],s[c+1],a,o,l,r.map)}};function uP(e,t,n,r,s,i,o,l,a){let u=a?a(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function cP(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var dP=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return Jj(0,1,s/e)},Sc=1.70158,Xl=Sc*1.525,L1=Sc+1,D1=2*Math.PI/3,F1=2*Math.PI/4.5,Yl=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,fP={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>L1*e*e*e-Sc*e*e,easeOutBack:e=>1+L1*Math.pow(e-1,3)+Sc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Xl+1)*2*e-Xl)/2:(Math.pow(2*e-2,2)*((Xl+1)*(e*2-2)+Xl)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*D1),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*D1)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*F1))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*F1)/2+1,easeInBounce:e=>1-Yl(1-e),easeOutBounce:Yl,easeInOutBounce:e=>e<.5?(1-Yl(1-2*e))/2:(1+Yl(2*e-1))/2,steps:dP},Ma=Symbol.for("FluidValue.get"),no=Symbol.for("FluidValue.observers"),tn=e=>!!(e&&e[Ma]),yt=e=>e&&e[Ma]?e[Ma]():e,$1=e=>e[no]||null;function pP(e,t){e.eventObserved?e.eventObserved(t):e(t)}function La(e,t){const n=e[no];n&&n.forEach(r=>{pP(r,t)})}var Ib=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");hP(this,e)}},hP=(e,t)=>_b(e,Ma,t);function po(e,t){if(e[Ma]){let n=e[no];n||_b(e,no,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Da(e,t){const n=e[no];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[no]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var _b=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ku=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,mP=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,z1=new RegExp(`(${ku.source})(%|[a-z]+)`,"i"),gP=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ad=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Mb=e=>{const[t,n]=vP(e);if(!t||$m())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&ad.test(n))return Mb(n);if(n)return n}return e},vP=e=>{const t=ad.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Sf,yP=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,Lb=e=>{Sf||(Sf=Yr?new RegExp(`(${Object.keys(Yr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>yt(i).replace(ad,Mb).replace(mP,M1).replace(Sf,M1)),n=t.map(i=>i.match(ku).map(Number)),s=n[0].map((i,o)=>n.map(l=>{if(!(o in l))throw Error('The arity of each "output" value must be equal');return l[o]})).map(i=>_a({...e,output:i}));return i=>{var a;const o=!z1.test(t[0])&&((a=t.find(u=>z1.test(u)))==null?void 0:a.replace(ku,""));let l=0;return t[0].replace(ku,()=>`${s[l++](i)}${o||""}`).replace(gP,yP)}},Vm="react-spring: ",Db=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Vm}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},wP=Db(console.warn);function xP(){wP(`${Vm}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var bP=Db(console.warn);function SP(){bP(`${Vm}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ld(e){return U.str(e)&&(e[0]=="#"||/\d/.test(e)||!$m()&&ad.test(e)||e in(Yr||{}))}var bs=$m()?S.useEffect:S.useLayoutEffect,EP=()=>{const e=S.useRef(!1);return bs(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Um(){const e=S.useState()[1],t=EP();return()=>{t.current&&e(Math.random())}}function CP(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&kP(t,i.inputs)||(i={inputs:t,result:e()}):i=n,S.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function kP(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Hm=e=>S.useEffect(e,TP),TP=[];function ah(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Fa=Symbol.for("Animated:node"),jP=e=>!!e&&e[Fa]===e,Nn=e=>e&&e[Fa],qm=(e,t)=>Qj(e,Fa,t),ud=e=>e&&e[Fa]&&e[Fa].getPayload(),Fb=class{constructor(){qm(this,this)}getPayload(){return this.payload||[]}},yl=class extends Fb{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,U.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return U.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,U.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},$a=class extends yl{constructor(e){super(0),this._string=null,this._toString=_a({output:[e,e]})}static create(e){return new $a(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(U.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=_a({output:[this.getValue(),e]})),this._value=0,super.reset()}},Ec={dependencies:null},cd=class extends Fb{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Hn(this.source,(n,r)=>{jP(n)?t[r]=n.getValue(e):tn(n)?t[r]=yt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&te(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Hn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ec.dependencies&&tn(e)&&Ec.dependencies.add(e);const t=ud(e);t&&te(t,n=>this.add(n))}},$b=class extends cd{constructor(e){super(e)}static create(e){return new $b(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(PP)),!0)}};function PP(e){return(ld(e)?$a:yl).create(e)}function lh(e){const t=Nn(e);return t?t.constructor:U.arr(e)?$b:ld(e)?$a:yl}var B1=(e,t)=>{const n=!U.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,s)=>{const i=S.useRef(null),o=n&&S.useCallback(y=>{i.current=NP(s,y)},[s]),[l,a]=RP(r,t),u=Um(),c=()=>{const y=i.current;if(n&&!y)return;(y?t.applyAnimatedValues(y,l.getValue(!0)):!1)===!1&&u()},f=new OP(c,a),p=S.useRef();bs(()=>(p.current=f,te(a,y=>po(y,f)),()=>{p.current&&(te(p.current.deps,y=>Da(y,p.current)),ie.cancel(p.current.update))})),S.useEffect(c,[]),Hm(()=>()=>{const y=p.current;te(y.deps,w=>Da(w,y))});const h=t.getComponentProps(l.getValue());return S.createElement(e,{...h,ref:o})})},OP=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&ie.write(this.update)}};function RP(e,t){const n=new Set;return Ec.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new cd(e),Ec.dependencies=null,[e,n]}function NP(e,t){return e&&(U.fun(e)?e(t):e.current=t),t}var V1=Symbol.for("AnimatedComponent"),AP=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new cd(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const l=U1(o)||"Anonymous";return U.str(o)?o=i[o]||(i[o]=B1(o,s)):o=o[V1]||(o[V1]=B1(o,s)),o.displayName=`Animated(${l})`,o};return Hn(e,(o,l)=>{U.arr(e)&&(l=U1(o)),i[l]=i(o)}),{animated:i}},U1=e=>U.str(e)?e:e&&U.str(e.displayName)?e.displayName:U.fun(e)&&e.name||null;function wt(e,...t){return U.fun(e)?e(...t):e}var ra=(e,t)=>e===!0||!!(t&&e&&(U.fun(e)?e(t):ut(e).includes(t))),zb=(e,t)=>U.obj(e)?t&&e[t]:e,Bb=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,IP=e=>e,dd=(e,t=IP)=>{let n=_P;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);U.und(i)||(r[s]=i)}return r},_P=["config","onProps","onStart","onChange","onPause","onResume","onRest"],MP={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function LP(e){const t={};let n=0;if(Hn(e,(r,s)=>{MP[s]||(t[s]=r,n++)}),n)return t}function Wm(e){const t=LP(e);if(t){const n={to:t};return Hn(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function za(e){return e=yt(e),U.arr(e)?e.map(za):ld(e)?jn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Vb(e){for(const t in e)return!0;return!1}function uh(e){return U.fun(e)||U.arr(e)&&U.obj(e[0])}function ch(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function Ub(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var DP={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dh={...DP.default,mass:1,damping:1,easing:fP.linear,clamp:!1},FP=class{constructor(){this.velocity=0,Object.assign(this,dh)}};function $P(e,t,n){n&&(n={...n},H1(n,t),t={...n,...t}),H1(e,t),Object.assign(e,t);for(const o in dh)e[o]==null&&(e[o]=dh[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return U.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function H1(e,t){if(!U.und(t.decay))e.duration=void 0;else{const n=!U.und(t.tension)||!U.und(t.friction);(n||!U.und(t.frequency)||!U.und(t.damping)||!U.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var q1=[],zP=class{constructor(){this.changed=!1,this.values=q1,this.toValues=null,this.fromValues=q1,this.config=new FP,this.immediate=!1}};function Hb(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,l)=>{let a,u,c=ra(n.cancel??(r==null?void 0:r.cancel),t);if(c)h();else{U.und(n.pause)||(s.paused=ra(n.pause,t));let y=r==null?void 0:r.pause;y!==!0&&(y=s.paused||ra(y,t)),a=wt(n.delay||0,t),y?(s.resumeQueue.add(p),i.pause()):(i.resume(),p())}function f(){s.resumeQueue.add(p),s.timeouts.delete(u),u.cancel(),a=u.time-ie.now()}function p(){a>0&&!jn.skipAnimation?(s.delayed=!0,u=ie.setTimeout(h,a),s.pauseQueue.add(f),s.timeouts.add(u)):h()}function h(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(f),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(y){l(y)}}})}var Gm=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Pi(e.get()):t.every(n=>n.noop)?qb(e.get()):bn(e.get(),t.every(n=>n.finished)),qb=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Pi=e=>({value:e,cancelled:!0,finished:!1});function Wb(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:l,promise:a}=n;return!i&&e===l&&!t.reset?a:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=dd(t,(x,g)=>g==="onRest"?void 0:x);let c,f;const p=new Promise((x,g)=>(c=x,f=g)),h=x=>{const g=s<=(n.cancelId||0)&&Pi(r)||s!==n.asyncId&&bn(r,!1);if(g)throw x.result=g,f(x),x},y=(x,g)=>{const m=new W1,v=new G1;return(async()=>{if(jn.skipAnimation)throw Ba(n),v.result=bn(r,!1),f(v),v;h(m);const b=U.obj(x)?{...x}:{...g,to:x};b.parentId=s,Hn(u,(T,C)=>{U.und(b[C])&&(b[C]=T)});const E=await r.start(b);return h(m),n.paused&&await new Promise(T=>{n.resumeQueue.add(T)}),E})()};let w;if(jn.skipAnimation)return Ba(n),bn(r,!1);try{let x;U.arr(e)?x=(async g=>{for(const m of g)await y(m)})(e):x=Promise.resolve(e(y,r.stop.bind(r))),await Promise.all([x.then(c),p]),w=bn(r.get(),!0,!1)}catch(x){if(x instanceof W1)w=x.result;else if(x instanceof G1)w=x.result;else throw x}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?l:void 0,n.promise=i?a:void 0)}return U.fun(o)&&ie.batchedUpdates(()=>{o(w,r,r.item)}),w})()}function Ba(e,t){ta(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var W1=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},G1=class extends Error{constructor(){super("SkipAnimationSignal")}},fh=e=>e instanceof Qm,BP=1,Qm=class extends Ib{constructor(){super(...arguments),this.id=BP++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Nn(this);return e&&e.getValue()}to(...e){return jn.to(this,e)}interpolate(...e){return xP(),jn.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){La(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||id.sort(this),La(this,{type:"priority",parent:this,priority:e})}},Vs=Symbol.for("SpringPhase"),Gb=1,ph=2,hh=4,Ef=e=>(e[Vs]&Gb)>0,xr=e=>(e[Vs]&ph)>0,Ro=e=>(e[Vs]&hh)>0,Q1=(e,t)=>t?e[Vs]|=ph|Gb:e[Vs]&=~ph,K1=(e,t)=>t?e[Vs]|=hh:e[Vs]&=~hh,VP=class extends Qm{constructor(e,t){if(super(),this.animation=new zP,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!U.und(e)||!U.und(t)){const n=U.obj(e)?{...e}:{...t,from:e};U.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xr(this)||this._state.asyncTo)||Ro(this)}get goal(){return yt(this.animation.to)}get velocity(){const e=Nn(this);return e instanceof yl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ef(this)}get isAnimating(){return xr(this)}get isPaused(){return Ro(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=ud(r.to);!o&&tn(r.to)&&(s=ut(yt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==$a?1:o?o[c].lastPosition:s[c];let p=r.immediate,h=f;if(!p){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let y=u.elapsedTime+=e;const w=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=U.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const m=i.precision||(w==f?.005:Math.min(1,Math.abs(f-w)*.001));if(U.und(i.duration))if(i.decay){const v=i.decay===!0?.998:i.decay,b=Math.exp(-(1-v)*y);h=w+x/(1-v)*(1-b),p=Math.abs(u.lastPosition-h)<=m,g=x*b}else{g=u.lastVelocity==null?x:u.lastVelocity;const v=i.restVelocity||m/10,b=i.clamp?0:i.bounce,E=!U.und(b),T=w==f?u.v0>0:w<f;let C,R=!1;const j=1,L=Math.ceil(e/j);for(let A=0;A<L&&(C=Math.abs(g)>v,!(!C&&(p=Math.abs(f-h)<=m,p)));++A){E&&(R=h==f||h>f==T,R&&(g=-g*b,h=f));const N=-i.tension*1e-6*(h-f),M=-i.friction*.001*g,D=(N+M)/i.mass;g=g+D*j,h=h+g*j}}else{let v=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,y=u.elapsedTime+=e)),v=(i.progress||0)+y/this._memoizedDuration,v=v>1?1:v<0?0:v,u.durationProgress=v),h=w+i.easing(v)*(f-w),g=(h-u.lastPosition)/e,p=v==1}u.lastVelocity=g,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),p=!0)}o&&!o[c].done&&(p=!1),p?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const l=Nn(this),a=l.getValue();if(t){const u=yt(r.to);(a!==u||n)&&!i.decay?(l.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(a),this._stop()}else n&&this._onChange(a)}set(e){return ie.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xr(this)){const{to:e,config:t}=this.animation;ie.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return U.und(e)?(n=this.queue||[],this.queue=[]):n=[U.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Gm(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ba(this._state,e&&this._lastCallId),ie.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=U.obj(n)?n[t]:n,(n==null||uh(n))&&(n=void 0),r=U.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Ef(this)||(e.reverse&&([n,r]=[r,n]),r=yt(r),U.und(r)?Nn(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,dd(e,(o,l)=>/^on/.test(l)?zb(o,n):o)),Y1(this,e,"onProps"),Ao(this,"onProps",e,this);const s=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return Hb(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ro(this)||(K1(this,!0),Bo(i.pauseQueue),Ao(this,"onPause",bn(this,No(this,this.animation.to)),this))},resume:()=>{Ro(this)&&(K1(this,!1),xr(this)&&this._resume(),Bo(i.resumeQueue),Ao(this,"onResume",bn(this,No(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const l=Qb(e);if(l)return this._update(l,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Pi(this));const r=!U.und(e.to),s=!U.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Pi(this));const{key:i,defaultProps:o,animation:l}=this,{to:a,from:u}=l;let{to:c=a,from:f=u}=e;s&&!r&&(!t.default||U.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const p=!Zn(f,u);p&&(l.from=f),f=yt(f);const h=!Zn(c,a);h&&this._focus(c);const y=uh(t.to),{config:w}=l,{decay:x,velocity:g}=w;(r||s)&&(w.velocity=0),t.config&&!y&&$P(w,wt(t.config,i),t.config!==o.config?wt(o.config,i):void 0);let m=Nn(this);if(!m||U.und(c))return n(bn(this,!0));const v=U.und(t.reset)?s&&!t.default:!U.und(f)&&ra(t.reset,i),b=v?f:this.get(),E=za(c),T=U.num(E)||U.arr(E)||ld(E),C=!y&&(!T||ra(o.immediate||t.immediate,i));if(h){const A=lh(c);if(A!==m.constructor)if(C)m=this._set(E);else throw Error(`Cannot animate between ${m.constructor.name} and ${A.name}, as the "to" prop suggests`)}const R=m.constructor;let j=tn(c),L=!1;if(!j){const A=v||!Ef(this)&&p;(h||A)&&(L=Zn(za(b),E),j=!L),(!Zn(l.immediate,C)&&!C||!Zn(w.decay,x)||!Zn(w.velocity,g))&&(j=!0)}if(L&&xr(this)&&(l.changed&&!v?j=!0:j||this._stop(a)),!y&&((j||tn(a))&&(l.values=m.getPayload(),l.toValues=tn(c)?null:R==$a?[1]:ut(E)),l.immediate!=C&&(l.immediate=C,!C&&!v&&this._set(a)),j)){const{onRest:A}=l;te(HP,M=>Y1(this,t,M));const N=bn(this,No(this,a));Bo(this._pendingCalls,N),this._pendingCalls.add(n),l.changed&&ie.batchedUpdates(()=>{var M;l.changed=!v,A==null||A(N,this),v?wt(o.onRest,N):(M=l.onStart)==null||M.call(l,N,this)})}v&&this._set(b),y?n(Wb(t.to,t,this._state,this)):j?this._start():xr(this)&&!h?this._pendingCalls.add(n):n(qb(b))}_focus(e){const t=this.animation;e!==t.to&&($1(this)&&this._detach(),t.to=e,$1(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;tn(t)&&(po(t,this),fh(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;tn(e)&&Da(e,this)}_set(e,t=!0){const n=yt(e);if(!U.und(n)){const r=Nn(this);if(!r||!Zn(n,r.getValue())){const s=lh(n);!r||r.constructor!=s?qm(this,s.create(n)):r.setValue(n),r&&ie.batchedUpdates(()=>{this._onChange(n,t)})}}return Nn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ao(this,"onStart",bn(this,No(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),wt(this.animation.onChange,e,this)),wt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Nn(this).reset(yt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),xr(this)||(Q1(this,!0),Ro(this)||this._resume())}_resume(){jn.skipAnimation?this.finish():id.start(this)}_stop(e,t){if(xr(this)){Q1(this,!1);const n=this.animation;te(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),La(this,{type:"idle",parent:this});const r=t?Pi(this.get()):bn(this.get(),No(this,e??n.to));Bo(this._pendingCalls,r),n.changed&&(n.changed=!1,Ao(this,"onRest",r,this))}}};function No(e,t){const n=za(t),r=za(e.get());return Zn(r,n)}function Qb(e,t=e.loop,n=e.to){const r=wt(t);if(r){const s=r!==!0&&Wm(r),i=(s||e).reverse,o=!s||s.reset;return Va({...e,loop:t,default:!1,pause:void 0,to:!i||uh(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function Va(e){const{to:t,from:n}=e=Wm(e),r=new Set;return U.obj(t)&&X1(t,r),U.obj(n)&&X1(n,r),e.keys=r.size?Array.from(r):null,e}function UP(e){const t=Va(e);return U.und(t.default)&&(t.default=dd(t)),t}function X1(e,t){Hn(e,(n,r)=>n!=null&&t.add(r))}var HP=["onStart","onRest","onChange","onPause","onResume"];function Y1(e,t,n){e.animation[n]=t[n]!==Bb(t,n)?zb(t[n],e.key):void 0}function Ao(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var qP=["onStart","onChange","onRest"],WP=1,Kb=class{constructor(e,t){this.id=WP++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];U.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Va(e)),this}start(e){let{queue:t}=this;return e?t=ut(e).map(Va):this.queue=[],this._flush?this._flush(this,t):(e2(this,t),mh(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;te(ut(t),r=>n[r].stop(!!e))}else Ba(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(U.und(e))this.start({pause:!0});else{const t=this.springs;te(ut(e),n=>t[n].pause())}return this}resume(e){if(U.und(e))this.start({pause:!1});else{const t=this.springs;te(ut(e),n=>t[n].resume())}return this}each(e){Hn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,ta(e,([l,a])=>{a.value=this.get(),l(a,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&ta(t,([l,a])=>{a.value=o,l(a,this,this._item)}),i&&(this._started=!1,ta(n,([l,a])=>{a.value=o,l(a,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;ie.onFrame(this._onFrame)}};function mh(e,t){return Promise.all(t.map(n=>Xb(e,n))).then(n=>Gm(e,n))}async function Xb(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:l,onResolve:a}=t,u=U.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=U.arr(s)||U.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):te(qP,w=>{const x=t[w];if(U.fun(x)){const g=e._events[w];t[w]=({finished:m,cancelled:v})=>{const b=g.get(x);b?(m||(b.finished=!1),v&&(b.cancelled=!0)):g.set(x,{value:null,finished:m||!1,cancelled:v||!1})},u&&(u[w]=t[w])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,Bo(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(w=>e.springs[w].start(t)),h=t.cancel===!0||Bb(t,"cancel")===!0;(c||h&&f.asyncId)&&p.push(Hb(++e._lastAsyncId,{props:t,state:f,actions:{pause:ih,resume:ih,start(w,x){h?(Ba(f,e._lastAsyncId),x(Pi(e))):(w.onRest=l,x(Wb(c,w,f,e)))}}})),f.paused&&await new Promise(w=>{f.resumeQueue.add(w)});const y=Gm(e,await Promise.all(p));if(o&&y.finished&&!(n&&y.noop)){const w=Qb(t,o,s);if(w)return e2(e,[w]),Xb(e,w,!0)}return a&&ie.batchedUpdates(()=>a(y,e,e.item)),y}function gh(e,t){const n={...e.springs};return t&&te(ut(t),r=>{U.und(r.keys)&&(r=Va(r)),U.obj(r.to)||(r={...r,to:void 0}),Zb(n,r,s=>Jb(s))}),Yb(e,n),n}function Yb(e,t){Hn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,po(n,e))})}function Jb(e,t){const n=new VP;return n.key=e,t&&po(n,t),n}function Zb(e,t,n){t.keys&&te(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function e2(e,t){te(t,n=>{Zb(e.springs,n,r=>Jb(r,e))})}var wl=({children:e,...t})=>{const n=S.useContext(Cc),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=CP(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Cc;return S.createElement(i,{value:t},e)},Cc=GP(wl,{});wl.Provider=Cc.Provider;wl.Consumer=Cc.Consumer;function GP(e,t){return Object.assign(e,S.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var t2=()=>{const e=[],t=function(r){SP();const s=[];return te(e,(i,o)=>{if(U.und(r))s.push(i.start());else{const l=n(r,i,o);l&&s.push(i.start(l))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return te(e,r=>r.pause(...arguments)),this},t.resume=function(){return te(e,r=>r.resume(...arguments)),this},t.set=function(r){te(e,(s,i)=>{const o=U.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return te(e,(i,o)=>{if(U.und(r))s.push(i.start());else{const l=this._getProps(r,i,o);l&&s.push(i.start(l))}}),s},t.stop=function(){return te(e,r=>r.stop(...arguments)),this},t.update=function(r){return te(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return U.fun(r)?r(i,s):r};return t._getProps=n,t};function QP(e,t,n){const r=U.fun(t)&&t;r&&!n&&(n=[]);const s=S.useMemo(()=>r||arguments.length==3?t2():void 0,[]),i=S.useRef(0),o=Um(),l=S.useMemo(()=>({ctrls:[],queue:[],flush(g,m){const v=gh(g,m);return i.current>0&&!l.queue.length&&!Object.keys(v).some(E=>!g.springs[E])?mh(g,m):new Promise(E=>{Yb(g,v),l.queue.push(()=>{E(mh(g,m))}),o()})}}),[]),a=S.useRef([...l.ctrls]),u=[],c=ah(e)||0;S.useMemo(()=>{te(a.current.slice(e,c),g=>{ch(g,s),g.stop(!0)}),a.current.length=e,f(c,e)},[e]),S.useMemo(()=>{f(0,Math.min(c,e))},n);function f(g,m){for(let v=g;v<m;v++){const b=a.current[v]||(a.current[v]=new Kb(null,l.flush)),E=r?r(v,b):t[v];E&&(u[v]=UP(E))}}const p=a.current.map((g,m)=>gh(g,u[m])),h=S.useContext(wl),y=ah(h),w=h!==y&&Vb(h);bs(()=>{i.current++,l.ctrls=a.current;const{queue:g}=l;g.length&&(l.queue=[],te(g,m=>m())),te(a.current,(m,v)=>{s==null||s.add(m),w&&m.start({default:h});const b=u[v];b&&(Ub(m,b.ref),m.ref?m.queue.push(b):m.start(b))})}),Hm(()=>()=>{te(l.ctrls,g=>g.stop(!0))});const x=p.map(g=>({...g}));return s?[x,s]:x}function l7(e,t){const n=U.fun(e),[[r],s]=QP(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function n2(e,t,n){const r=U.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:l=!0,exitBeforeEnter:a=!1,onDestroyed:u,ref:c,config:f}=r?r():t,p=S.useMemo(()=>r||arguments.length==3?t2():void 0,[]),h=ut(e),y=[],w=S.useRef(null),x=s?null:w.current;bs(()=>{w.current=y}),Hm(()=>(te(y,D=>{p==null||p.add(D.ctrl),D.ctrl.ref=p}),()=>{te(w.current,D=>{D.expired&&clearTimeout(D.expirationId),ch(D.ctrl,p),D.ctrl.stop(!0)})}));const g=XP(h,r?r():t,x),m=s&&w.current||[];bs(()=>te(m,({ctrl:D,item:k,key:I})=>{ch(D,p),wt(u,k,I)}));const v=[];if(x&&te(x,(D,k)=>{D.expired?(clearTimeout(D.expirationId),m.push(D)):(k=v[k]=g.indexOf(D.key),~k&&(y[k]=D))}),te(h,(D,k)=>{y[k]||(y[k]={key:g[k],item:D,phase:"mount",ctrl:new Kb},y[k].ctrl.item=D)}),v.length){let D=-1;const{leave:k}=r?r():t;te(v,(I,z)=>{const _=x[z];~I?(D=y.indexOf(_),y[D]={..._,item:h[I]}):k&&y.splice(++D,0,_)})}U.fun(i)&&y.sort((D,k)=>i(D.item,k.item));let b=-o;const E=Um(),T=dd(t),C=new Map,R=S.useRef(new Map),j=S.useRef(!1);te(y,(D,k)=>{const I=D.key,z=D.phase,_=r?r():t;let $,V;const ne=wt(_.delay||0,I);if(z=="mount")$=_.enter,V="enter";else{const he=g.indexOf(I)<0;if(z!="leave")if(he)$=_.leave,V="leave";else if($=_.update)V="update";else return;else if(!he)$=_.enter,V="enter";else return}if($=wt($,D.item,k),$=U.obj($)?Wm($):{to:$},!$.config){const he=f||T.config;$.config=wt(he,D.item,k,V)}b+=o;const re={...T,delay:ne+b,ref:c,immediate:_.immediate,reset:!1,...$};if(V=="enter"&&U.und(re.from)){const he=r?r():t,je=U.und(he.initial)||x?he.from:he.initial;re.from=wt(je,D.item,k)}const{onResolve:de}=re;re.onResolve=he=>{wt(de,he);const je=w.current,Ie=je.find(Je=>Je.key===I);if(Ie&&!(he.cancelled&&Ie.phase!="update")&&Ie.ctrl.idle){const Je=je.every(gt=>gt.ctrl.idle);if(Ie.phase=="leave"){const gt=wt(l,Ie.item);if(gt!==!1){const Gn=gt===!0?0:gt;if(Ie.expired=!0,!Je&&Gn>0){Gn<=2147483647&&(Ie.expirationId=setTimeout(E,Gn));return}}}Je&&je.some(gt=>gt.expired)&&(R.current.delete(Ie),a&&(j.current=!0),E())}};const ye=gh(D.ctrl,re);V==="leave"&&a?R.current.set(D,{phase:V,springs:ye,payload:re}):C.set(D,{phase:V,springs:ye,payload:re})});const L=S.useContext(wl),A=ah(L),N=L!==A&&Vb(L);bs(()=>{N&&te(y,D=>{D.ctrl.start({default:L})})},[L]),te(C,(D,k)=>{if(R.current.size){const I=y.findIndex(z=>z.key===k.key);y.splice(I,1)}}),bs(()=>{te(R.current.size?R.current:C,({phase:D,payload:k},I)=>{const{ctrl:z}=I;I.phase=D,p==null||p.add(z),N&&D=="enter"&&z.start({default:L}),k&&(Ub(z,k.ref),(z.ref||p)&&!j.current?z.update(k):(z.start(k),j.current&&(j.current=!1)))})},s?void 0:n);const M=D=>S.createElement(S.Fragment,null,y.map((k,I)=>{const{springs:z}=C.get(k)||k.ctrl,_=D({...z},k.item,k,I);return _&&_.type?S.createElement(_.type,{..._.props,key:U.str(k.key)||U.num(k.key)?k.key:k.ctrl.id,ref:_.ref}):_}));return p?[M,p]:M}var KP=1;function XP(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(l=>l.item===i&&l.phase!=="leave"&&!s.has(l));return o?(s.add(o),o.key):KP++})}return U.und(n)?e:U.fun(n)?e.map(n):ut(n)}var YP=class extends Qm{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=_a(...t);const n=this._get(),r=lh(n);qm(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Zn(t,n)||(Nn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&J1(this._active)&&Cf(this)}_get(){const e=U.arr(this.source)?this.source.map(yt):ut(yt(this.source));return this.calc(...e)}_start(){this.idle&&!J1(this._active)&&(this.idle=!1,te(ud(this),e=>{e.done=!1}),jn.skipAnimation?(ie.batchedUpdates(()=>this.advance()),Cf(this)):id.start(this))}_attach(){let e=1;te(ut(this.source),t=>{tn(t)&&po(t,this),fh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){te(ut(this.source),e=>{tn(e)&&Da(e,this)}),this._active.clear(),Cf(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ut(this.source).reduce((t,n)=>Math.max(t,(fh(n)?n.priority:0)+1),0))}};function JP(e){return e.idle!==!1}function J1(e){return!e.size||Array.from(e).every(JP)}function Cf(e){e.idle||(e.idle=!0,te(ud(e),t=>{t.done=!0}),La(e,{type:"idle",parent:e}))}jn.assign({createStringInterpolator:Lb,to:(e,t)=>new YP(e,t)});var r2=/^--/;function ZP(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!r2.test(e)&&!(sa.hasOwnProperty(e)&&sa[e])?t+"px":(""+t).trim()}var Z1={};function eO(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:l,...a}=t,u=Object.values(a),c=Object.keys(a).map(f=>n||e.hasAttribute(f)?f:Z1[f]||(Z1[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));s!==void 0&&(e.textContent=s);for(const f in r)if(r.hasOwnProperty(f)){const p=ZP(f,r[f]);r2.test(f)?e.style.setProperty(f,p):e.style[f]=p}c.forEach((f,p)=>{e.setAttribute(f,u[p])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),l!==void 0&&e.setAttribute("viewBox",l)}var sa={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tO=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),nO=["Webkit","Ms","Moz","O"];sa=Object.keys(sa).reduce((e,t)=>(nO.forEach(n=>e[tO(n,t)]=e[t]),e),sa);var rO=/^(matrix|translate|scale|rotate|skew)/,sO=/^(translate)/,iO=/^(rotate|skew)/,kf=(e,t)=>U.num(e)&&e!==0?e+t:e,Tu=(e,t)=>U.arr(e)?e.every(n=>Tu(n,t)):U.num(e)?e===t:parseFloat(e)===t,oO=class extends cd{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(l=>kf(l,"px")).join(",")})`,Tu(o,0)])),Hn(r,(o,l)=>{if(l==="transform")s.push([o||""]),i.push(a=>[a,a===""]);else if(rO.test(l)){if(delete r[l],U.und(o))return;const a=sO.test(l)?"px":iO.test(l)?"deg":"";s.push(ut(o)),i.push(l==="rotate3d"?([u,c,f,p])=>[`rotate3d(${u},${c},${f},${kf(p,a)})`,Tu(p,0)]:u=>[`${l}(${u.map(c=>kf(c,a)).join(",")})`,Tu(u,l.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new aO(s,i)),super(r)}},aO=class extends Ib{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return te(this.inputs,(n,r)=>{const s=yt(n[0]),[i,o]=this.transforms[r](U.arr(s)?s:n.map(yt));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&te(this.inputs,t=>te(t,n=>tn(n)&&po(n,this)))}observerRemoved(e){e==0&&te(this.inputs,t=>te(t,n=>tn(n)&&Da(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),La(this,e)}},lO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];jn.assign({batchedUpdates:vr.unstable_batchedUpdates,createStringInterpolator:Lb,colors:Zj});var uO=AP(lO,{applyAnimatedValues:eO,createAnimatedStyle:e=>new oO(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),vh=uO.animated,e0=function(t){return t.reduce(function(n,r){var s=r[0],i=r[1];return n[s]=i,n},{})},t0=typeof window<"u"&&window.document&&window.document.createElement?S.useLayoutEffect:S.useEffect,kt="top",dn="bottom",fn="right",Tt="left",Km="auto",xl=[kt,dn,fn,Tt],ro="start",Ua="end",cO="clippingParents",s2="viewport",Io="popper",dO="reference",n0=xl.reduce(function(e,t){return e.concat([t+"-"+ro,t+"-"+Ua])},[]),i2=[].concat(xl,[Km]).reduce(function(e,t){return e.concat([t,t+"-"+ro,t+"-"+Ua])},[]),fO="beforeRead",pO="read",hO="afterRead",mO="beforeMain",gO="main",vO="afterMain",yO="beforeWrite",wO="write",xO="afterWrite",bO=[fO,pO,hO,mO,gO,vO,yO,wO,xO];function qn(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Us(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function on(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xm(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SO(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!on(i)||!qn(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var l=s[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function EO(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=o.reduce(function(a,u){return a[u]="",a},{});!on(s)||!qn(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(a){s.removeAttribute(a)}))})}}const CO={name:"applyStyles",enabled:!0,phase:"write",fn:SO,effect:EO,requires:["computeStyles"]};function Vn(e){return e.split("-")[0]}var Is=Math.max,kc=Math.min,so=Math.round;function yh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function o2(){return!/^((?!chrome|android).)*safari/i.test(yh())}function io(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&on(e)&&(s=e.offsetWidth>0&&so(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&so(r.height)/e.offsetHeight||1);var o=Us(e)?Bt(e):window,l=o.visualViewport,a=!o2()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/s,c=(r.top+(a&&l?l.offsetTop:0))/i,f=r.width/s,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function Ym(e){var t=io(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function a2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pr(e){return Bt(e).getComputedStyle(e)}function kO(e){return["table","td","th"].indexOf(qn(e))>=0}function ls(e){return((Us(e)?e.ownerDocument:e.document)||window.document).documentElement}function fd(e){return qn(e)==="html"?e:e.assignedSlot||e.parentNode||(Xm(e)?e.host:null)||ls(e)}function r0(e){return!on(e)||pr(e).position==="fixed"?null:e.offsetParent}function TO(e){var t=/firefox/i.test(yh()),n=/Trident/i.test(yh());if(n&&on(e)){var r=pr(e);if(r.position==="fixed")return null}var s=fd(e);for(Xm(s)&&(s=s.host);on(s)&&["html","body"].indexOf(qn(s))<0;){var i=pr(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function bl(e){for(var t=Bt(e),n=r0(e);n&&kO(n)&&pr(n).position==="static";)n=r0(n);return n&&(qn(n)==="html"||qn(n)==="body"&&pr(n).position==="static")?t:n||TO(e)||t}function Jm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ia(e,t,n){return Is(e,kc(t,n))}function jO(e,t,n){var r=ia(e,t,n);return r>n?n:r}function l2(){return{top:0,right:0,bottom:0,left:0}}function u2(e){return Object.assign({},l2(),e)}function c2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var PO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,u2(typeof t!="number"?t:c2(t,xl))};function OO(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,l=Vn(n.placement),a=Jm(l),u=[Tt,fn].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!o)){var f=PO(s.padding,n),p=Ym(i),h=a==="y"?kt:Tt,y=a==="y"?dn:fn,w=n.rects.reference[c]+n.rects.reference[a]-o[a]-n.rects.popper[c],x=o[a]-n.rects.reference[a],g=bl(i),m=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,v=w/2-x/2,b=f[h],E=m-p[c]-f[y],T=m/2-p[c]/2+v,C=ia(b,T,E),R=a;n.modifiersData[r]=(t={},t[R]=C,t.centerOffset=C-T,t)}}function RO(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||a2(t.elements.popper,s)&&(t.elements.arrow=s))}const NO={name:"arrow",enabled:!0,phase:"main",fn:OO,effect:RO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oo(e){return e.split("-")[1]}var AO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IO(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:so(n*s)/s||0,y:so(r*s)/s||0}}function s0(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=o.x,h=p===void 0?0:p,y=o.y,w=y===void 0?0:y,x=typeof c=="function"?c({x:h,y:w}):{x:h,y:w};h=x.x,w=x.y;var g=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),v=Tt,b=kt,E=window;if(u){var T=bl(n),C="clientHeight",R="clientWidth";if(T===Bt(n)&&(T=ls(n),pr(T).position!=="static"&&l==="absolute"&&(C="scrollHeight",R="scrollWidth")),T=T,s===kt||(s===Tt||s===fn)&&i===Ua){b=dn;var j=f&&T===E&&E.visualViewport?E.visualViewport.height:T[C];w-=j-r.height,w*=a?1:-1}if(s===Tt||(s===kt||s===dn)&&i===Ua){v=fn;var L=f&&T===E&&E.visualViewport?E.visualViewport.width:T[R];h-=L-r.width,h*=a?1:-1}}var A=Object.assign({position:l},u&&AO),N=c===!0?IO({x:h,y:w},Bt(n)):{x:h,y:w};if(h=N.x,w=N.y,a){var M;return Object.assign({},A,(M={},M[b]=m?"0":"",M[v]=g?"0":"",M.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",M))}return Object.assign({},A,(t={},t[b]=m?w+"px":"",t[v]=g?h+"px":"",t.transform="",t))}function _O(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:Vn(t.placement),variation:oo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,s0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,s0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const MO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_O,data:{}};var Jl={passive:!0};function LO(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,l=o===void 0?!0:o,a=Bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Jl)}),l&&a.addEventListener("resize",n.update,Jl),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Jl)}),l&&a.removeEventListener("resize",n.update,Jl)}}const DO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LO,data:{}};var FO={left:"right",right:"left",bottom:"top",top:"bottom"};function ju(e){return e.replace(/left|right|bottom|top/g,function(t){return FO[t]})}var $O={start:"end",end:"start"};function i0(e){return e.replace(/start|end/g,function(t){return $O[t]})}function Zm(e){var t=Bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function eg(e){return io(ls(e)).left+Zm(e).scrollLeft}function zO(e,t){var n=Bt(e),r=ls(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,l=0,a=0;if(s){i=s.width,o=s.height;var u=o2();(u||!u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:i,height:o,x:l+eg(e),y:a}}function BO(e){var t,n=ls(e),r=Zm(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Is(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Is(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+eg(e),a=-r.scrollTop;return pr(s||n).direction==="rtl"&&(l+=Is(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:l,y:a}}function tg(e){var t=pr(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function d2(e){return["html","body","#document"].indexOf(qn(e))>=0?e.ownerDocument.body:on(e)&&tg(e)?e:d2(fd(e))}function oa(e,t){var n;t===void 0&&(t=[]);var r=d2(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Bt(r),o=s?[i].concat(i.visualViewport||[],tg(r)?r:[]):r,l=t.concat(o);return s?l:l.concat(oa(fd(o)))}function wh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VO(e,t){var n=io(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function o0(e,t,n){return t===s2?wh(zO(e,n)):Us(t)?VO(t,n):wh(BO(ls(e)))}function UO(e){var t=oa(fd(e)),n=["absolute","fixed"].indexOf(pr(e).position)>=0,r=n&&on(e)?bl(e):e;return Us(r)?t.filter(function(s){return Us(s)&&a2(s,r)&&qn(s)!=="body"}):[]}function HO(e,t,n,r){var s=t==="clippingParents"?UO(e):[].concat(t),i=[].concat(s,[n]),o=i[0],l=i.reduce(function(a,u){var c=o0(e,u,r);return a.top=Is(c.top,a.top),a.right=kc(c.right,a.right),a.bottom=kc(c.bottom,a.bottom),a.left=Is(c.left,a.left),a},o0(e,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function f2(e){var t=e.reference,n=e.element,r=e.placement,s=r?Vn(r):null,i=r?oo(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(s){case kt:a={x:o,y:t.y-n.height};break;case dn:a={x:o,y:t.y+t.height};break;case fn:a={x:t.x+t.width,y:l};break;case Tt:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=s?Jm(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case ro:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Ua:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function Ha(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?cO:l,u=n.rootBoundary,c=u===void 0?s2:u,f=n.elementContext,p=f===void 0?Io:f,h=n.altBoundary,y=h===void 0?!1:h,w=n.padding,x=w===void 0?0:w,g=u2(typeof x!="number"?x:c2(x,xl)),m=p===Io?dO:Io,v=e.rects.popper,b=e.elements[y?m:p],E=HO(Us(b)?b:b.contextElement||ls(e.elements.popper),a,c,o),T=io(e.elements.reference),C=f2({reference:T,element:v,strategy:"absolute",placement:s}),R=wh(Object.assign({},v,C)),j=p===Io?R:T,L={top:E.top-j.top+g.top,bottom:j.bottom-E.bottom+g.bottom,left:E.left-j.left+g.left,right:j.right-E.right+g.right},A=e.modifiersData.offset;if(p===Io&&A){var N=A[s];Object.keys(L).forEach(function(M){var D=[fn,dn].indexOf(M)>=0?1:-1,k=[kt,dn].indexOf(M)>=0?"y":"x";L[M]+=N[k]*D})}return L}function qO(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?i2:a,c=oo(r),f=c?l?n0:n0.filter(function(y){return oo(y)===c}):xl,p=f.filter(function(y){return u.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,w){return y[w]=Ha(e,{placement:w,boundary:s,rootBoundary:i,padding:o})[Vn(w)],y},{});return Object.keys(h).sort(function(y,w){return h[y]-h[w]})}function WO(e){if(Vn(e)===Km)return[];var t=ju(e);return[i0(e),t,i0(t)]}function GO(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,l=o===void 0?!0:o,a=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,w=n.allowedAutoPlacements,x=t.options.placement,g=Vn(x),m=g===x,v=a||(m||!y?[ju(x)]:WO(x)),b=[x].concat(v).reduce(function(ye,he){return ye.concat(Vn(he)===Km?qO(t,{placement:he,boundary:c,rootBoundary:f,padding:u,flipVariations:y,allowedAutoPlacements:w}):he)},[]),E=t.rects.reference,T=t.rects.popper,C=new Map,R=!0,j=b[0],L=0;L<b.length;L++){var A=b[L],N=Vn(A),M=oo(A)===ro,D=[kt,dn].indexOf(N)>=0,k=D?"width":"height",I=Ha(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),z=D?M?fn:Tt:M?dn:kt;E[k]>T[k]&&(z=ju(z));var _=ju(z),$=[];if(i&&$.push(I[N]<=0),l&&$.push(I[z]<=0,I[_]<=0),$.every(function(ye){return ye})){j=A,R=!1;break}C.set(A,$)}if(R)for(var V=y?3:1,ne=function(he){var je=b.find(function(Ie){var Je=C.get(Ie);if(Je)return Je.slice(0,he).every(function(gt){return gt})});if(je)return j=je,"break"},re=V;re>0;re--){var de=ne(re);if(de==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const QO={name:"flip",enabled:!0,phase:"main",fn:GO,requiresIfExists:["offset"],data:{_skip:!1}};function a0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function l0(e){return[kt,fn,dn,Tt].some(function(t){return e[t]>=0})}function KO(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=Ha(t,{elementContext:"reference"}),l=Ha(t,{altBoundary:!0}),a=a0(o,r),u=a0(l,s,i),c=l0(a),f=l0(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const XO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KO};function YO(e,t,n){var r=Vn(e),s=[Tt,kt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],l=i[1];return o=o||0,l=(l||0)*s,[Tt,fn].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function JO(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=i2.reduce(function(c,f){return c[f]=YO(f,t.rects,i),c},{}),l=o[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const ZO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JO};function eR(e){var t=e.state,n=e.name;t.modifiersData[n]=f2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tR={name:"popperOffsets",enabled:!0,phase:"read",fn:eR,data:{}};function nR(e){return e==="x"?"y":"x"}function rR(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,l=o===void 0?!1:o,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,y=n.tetherOffset,w=y===void 0?0:y,x=Ha(t,{boundary:a,rootBoundary:u,padding:f,altBoundary:c}),g=Vn(t.placement),m=oo(t.placement),v=!m,b=Jm(g),E=nR(b),T=t.modifiersData.popperOffsets,C=t.rects.reference,R=t.rects.popper,j=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,L=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(T){if(i){var M,D=b==="y"?kt:Tt,k=b==="y"?dn:fn,I=b==="y"?"height":"width",z=T[b],_=z+x[D],$=z-x[k],V=h?-R[I]/2:0,ne=m===ro?C[I]:R[I],re=m===ro?-R[I]:-C[I],de=t.elements.arrow,ye=h&&de?Ym(de):{width:0,height:0},he=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:l2(),je=he[D],Ie=he[k],Je=ia(0,C[I],ye[I]),gt=v?C[I]/2-V-Je-je-L.mainAxis:ne-Je-je-L.mainAxis,Gn=v?-C[I]/2+V+Je+Ie+L.mainAxis:re+Je+Ie+L.mainAxis,Js=t.elements.arrow&&bl(t.elements.arrow),_d=Js?b==="y"?Js.clientTop||0:Js.clientLeft||0:0,vo=(M=A==null?void 0:A[b])!=null?M:0,Md=z+gt-vo-_d,kl=z+Gn-vo,yo=ia(h?kc(_,Md):_,z,h?Is($,kl):$);T[b]=yo,N[b]=yo-z}if(l){var Ld,Ng=b==="x"?kt:Tt,Ag=b==="x"?dn:fn,O=T[E],F=E==="y"?"height":"width",B=O+x[Ng],K=O-x[Ag],W=[kt,Tt].indexOf(g)!==-1,q=(Ld=A==null?void 0:A[E])!=null?Ld:0,Z=W?B:O-C[F]-R[F]-q+L.altAxis,fe=W?O+C[F]+R[F]-q-L.altAxis:K,Ne=h&&W?jO(Z,O,fe):ia(h?Z:B,O,h?fe:K);T[E]=Ne,N[E]=Ne-O}t.modifiersData[r]=N}}const sR={name:"preventOverflow",enabled:!0,phase:"main",fn:rR,requiresIfExists:["offset"]};function iR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oR(e){return e===Bt(e)||!on(e)?Zm(e):iR(e)}function aR(e){var t=e.getBoundingClientRect(),n=so(t.width)/e.offsetWidth||1,r=so(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lR(e,t,n){n===void 0&&(n=!1);var r=on(t),s=on(t)&&aR(t),i=ls(t),o=io(e,s,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((qn(t)!=="body"||tg(i))&&(l=oR(t)),on(t)?(a=io(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=eg(i))),{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function uR(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&s(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function cR(e){var t=uR(e);return bO.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function dR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fR(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var u0={placement:"bottom",modifiers:[],strategy:"absolute"};function c0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function pR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?u0:s;return function(l,a,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},u0,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(g){var m=typeof g=="function"?g(c.options):g;w(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:Us(l)?oa(l):l.contextElement?oa(l.contextElement):[],popper:oa(a)};var v=cR(fR([].concat(r,c.options.modifiers)));return c.orderedModifiers=v.filter(function(b){return b.enabled}),y(),h.update()},forceUpdate:function(){if(!p){var g=c.elements,m=g.reference,v=g.popper;if(c0(m,v)){c.rects={reference:lR(m,bl(v),c.options.strategy==="fixed"),popper:Ym(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(L){return c.modifiersData[L.name]=Object.assign({},L.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var E=c.orderedModifiers[b],T=E.fn,C=E.options,R=C===void 0?{}:C,j=E.name;typeof T=="function"&&(c=T({state:c,options:R,name:j,instance:h})||c)}}}},update:dR(function(){return new Promise(function(x){h.forceUpdate(),x(c)})}),destroy:function(){w(),p=!0}};if(!c0(l,a))return h;h.setOptions(u).then(function(x){!p&&u.onFirstUpdate&&u.onFirstUpdate(x)});function y(){c.orderedModifiers.forEach(function(x){var g=x.name,m=x.options,v=m===void 0?{}:m,b=x.effect;if(typeof b=="function"){var E=b({state:c,name:g,instance:h,options:v}),T=function(){};f.push(E||T)}})}function w(){f.forEach(function(x){return x()}),f=[]}return h}}var hR=[DO,tR,MO,CO,ZO,QO,sR,NO,XO],mR=pR({defaultModifiers:hR}),gR=typeof Element<"u",vR=typeof Map=="function",yR=typeof Set=="function",wR=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Pu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Pu(e[r],t[r]))return!1;return!0}var i;if(vR&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Pu(r.value[1],t.get(r.value[0])))return!1;return!0}if(yR&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(wR&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(gR&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!Pu(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var xR=function(t,n){try{return Pu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const bR=il(xR);var SR=[],ER=function(t,n,r){r===void 0&&(r={});var s=S.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||SR},o=S.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],a=o[1],u=S.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var y=h.state,w=Object.keys(y.elements);vr.flushSync(function(){a({styles:e0(w.map(function(x){return[x,y.styles[x]||{}]})),attributes:e0(w.map(function(x){return[x,y.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=S.useMemo(function(){var p={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return bR(s.current,p)?s.current||p:(s.current=p,p)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=S.useRef();return t0(function(){f.current&&f.current.setOptions(c)},[c]),t0(function(){if(!(t==null||n==null)){var p=r.createPopper||mR,h=p(t,n,c);return f.current=h,function(){h.destroy(),f.current=null}}},[t,n,r.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};const CR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.805c.49.704.733 1.473.733 2.306 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624"})]}),kR=CR,TR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M22.996 13.153c0 1.393-.291 2.722-.873 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.153c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589M13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201"})]}),d0=TR,jR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111m3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363"})]}),PR=jR,OR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216m7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216m7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216m7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216m7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216zM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24m7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24m7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24z"})]}),f0=OR,RR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963M9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03",clipRule:"evenodd"})]}),NR=RR,AR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216zm0-2.738V8.573l5.848 3.531zm0-12.084V3.048h23.024v3.387l-11.512 6.847zm17.176 5.67 5.848-3.532v9.946z"})]}),p0=AR,IR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53zm0 4.4v-2.2h-2.14v2.2zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),_R=IR,MR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),LR=MR,DR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334m10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.996 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837",clipRule:"evenodd"})]}),FR=DR,$R=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:d.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51m0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"one-profile_svg__a",children:d.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),p2=$R,zR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628m2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486"})]}),BR=zR,VR=({title:e,titleId:t,...n})=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),UR=VR;function h0(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function ng(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:h0(t[n])&&h0(e[n])&&Object.keys(t[n]).length>0&&ng(e[n],t[n])})}const h2={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Xs(){const e=typeof document<"u"?document:{};return ng(e,h2),e}const HR={document:h2,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ht(){const e=typeof window<"u"?window:{};return ng(e,HR),e}function qR(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function xh(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Tc(){return Date.now()}function WR(e){const t=Ht();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function GR(e,t){t===void 0&&(t="x");const n=Ht();let r,s,i;const o=WR(e);return n.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(l=>l.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(s==="none"?"":s)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?s=i.m41:r.length===16?s=parseFloat(r[12]):s=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?s=i.m42:r.length===16?s=parseFloat(r[13]):s=parseFloat(r[5])),s||0}function Zl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function QR(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function It(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!QR(r)){const s=Object.keys(Object(r)).filter(i=>t.indexOf(i)<0);for(let i=0,o=s.length;i<o;i+=1){const l=s[i],a=Object.getOwnPropertyDescriptor(r,l);a!==void 0&&a.enumerable&&(Zl(e[l])&&Zl(r[l])?r[l].__swiper__?e[l]=r[l]:It(e[l],r[l]):!Zl(e[l])&&Zl(r[l])?(e[l]={},r[l].__swiper__?e[l]=r[l]:It(e[l],r[l])):e[l]=r[l])}}}return e}function eu(e,t,n){e.style.setProperty(t,n)}function m2(e){let{swiper:t,targetPosition:n,side:r}=e;const s=Ht(),i=-t.translate;let o=null,l;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const u=n>i?"next":"prev",c=(p,h)=>u==="next"&&p>=h||u==="prev"&&p<=h,f=()=>{l=new Date().getTime(),o===null&&(o=l);const p=Math.max(Math.min((l-o)/a,1),0),h=.5-Math.cos(p*Math.PI)/2;let y=i+h*(n-i);if(c(y,n)&&(y=n),t.wrapperEl.scrollTo({[r]:y}),c(y,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:y})}),s.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=s.requestAnimationFrame(f)};f()}function $n(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function g2(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function KR(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function XR(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function zr(e,t){return Ht().getComputedStyle(e,null).getPropertyValue(t)}function jc(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function v2(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function bh(e,t,n){const r=Ht();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}function YR(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(s=>{if(!n[s]&&n.auto===!0){let i=$n(e.el,`.${r[s]}`)[0];i||(i=g2("div",r[s]),i.className=r[s],e.el.append(i)),n[s]=i,t[s]=i}}),n}function _o(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function JR(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const i="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,bullets:[]};let o,l=0;const a=m=>(Array.isArray(m)||(m=[m].filter(v=>!!v)),m);function u(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(m,v){const{bulletActiveClass:b}=t.params.pagination;m&&(m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&(m.classList.add(`${b}-${v}`),m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&m.classList.add(`${b}-${v}-${v}`)))}function f(m){const v=m.target.closest(_o(t.params.pagination.bulletClass));if(!v)return;m.preventDefault();const b=jc(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===b)return;const E=t.getSlideIndexByData(b),T=t.getSlideIndexByData(t.realIndex);E>t.slides.length-t.loopedSlides&&t.loopFix({direction:E>T?"next":"prev",activeSlideIndex:E,slideTo:!1}),t.slideToLoop(b)}else t.slideTo(b)}function p(){const m=t.rtl,v=t.params.pagination;if(u())return;let b=t.pagination.el;b=a(b);let E,T;const C=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,R=t.params.loop?Math.ceil(C/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(T=t.previousRealIndex||0,E=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(E=t.snapIndex,T=t.previousSnapIndex):(T=t.previousIndex||0,E=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const j=t.pagination.bullets;let L,A,N;if(v.dynamicBullets&&(o=bh(j[0],t.isHorizontal()?"width":"height",!0),b.forEach(M=>{M.style[t.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&T!==void 0&&(l+=E-(T||0),l>v.dynamicMainBullets-1?l=v.dynamicMainBullets-1:l<0&&(l=0)),L=Math.max(E-l,0),A=L+(Math.min(j.length,v.dynamicMainBullets)-1),N=(A+L)/2),j.forEach(M=>{const D=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(k=>`${v.bulletActiveClass}${k}`)].map(k=>typeof k=="string"&&k.includes(" ")?k.split(" "):k).flat();M.classList.remove(...D)}),b.length>1)j.forEach(M=>{const D=jc(M);D===E?M.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&M.setAttribute("part","bullet"),v.dynamicBullets&&(D>=L&&D<=A&&M.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),D===L&&c(M,"prev"),D===A&&c(M,"next"))});else{const M=j[E];if(M&&M.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&j.forEach((D,k)=>{D.setAttribute("part",k===E?"bullet-active":"bullet")}),v.dynamicBullets){const D=j[L],k=j[A];for(let I=L;I<=A;I+=1)j[I]&&j[I].classList.add(...`${v.bulletActiveClass}-main`.split(" "));c(D,"prev"),c(k,"next")}}if(v.dynamicBullets){const M=Math.min(j.length,v.dynamicMainBullets+4),D=(o*M-o)/2-N*o,k=m?"right":"left";j.forEach(I=>{I.style[t.isHorizontal()?k:"top"]=`${D}px`})}}b.forEach((j,L)=>{if(v.type==="fraction"&&(j.querySelectorAll(_o(v.currentClass)).forEach(A=>{A.textContent=v.formatFractionCurrent(E+1)}),j.querySelectorAll(_o(v.totalClass)).forEach(A=>{A.textContent=v.formatFractionTotal(R)})),v.type==="progressbar"){let A;v.progressbarOpposite?A=t.isHorizontal()?"vertical":"horizontal":A=t.isHorizontal()?"horizontal":"vertical";const N=(E+1)/R;let M=1,D=1;A==="horizontal"?M=N:D=N,j.querySelectorAll(_o(v.progressbarFillClass)).forEach(k=>{k.style.transform=`translate3d(0,0,0) scaleX(${M}) scaleY(${D})`,k.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(j.innerHTML=v.renderCustom(t,E+1,R),L===0&&s("paginationRender",j)):(L===0&&s("paginationRender",j),s("paginationUpdate",j)),t.params.watchOverflow&&t.enabled&&j.classList[t.isLocked?"add":"remove"](v.lockClass)})}function h(){const m=t.params.pagination;if(u())return;const v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let b=t.pagination.el;b=a(b);let E="";if(m.type==="bullets"){let T=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&T>v&&(T=v);for(let C=0;C<T;C+=1)m.renderBullet?E+=m.renderBullet.call(t,C,m.bulletClass):E+=`<${m.bulletElement} ${t.isElement?'part="bullet"':""} class="${m.bulletClass}"></${m.bulletElement}>`}m.type==="fraction"&&(m.renderFraction?E=m.renderFraction.call(t,m.currentClass,m.totalClass):E=`<span class="${m.currentClass}"></span> / <span class="${m.totalClass}"></span>`),m.type==="progressbar"&&(m.renderProgressbar?E=m.renderProgressbar.call(t,m.progressbarFillClass):E=`<span class="${m.progressbarFillClass}"></span>`),t.pagination.bullets=[],b.forEach(T=>{m.type!=="custom"&&(T.innerHTML=E||""),m.type==="bullets"&&t.pagination.bullets.push(...T.querySelectorAll(_o(m.bulletClass)))}),m.type!=="custom"&&s("paginationRender",b[0])}function y(){t.params.pagination=YR(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const m=t.params.pagination;if(!m.el)return;let v;typeof m.el=="string"&&t.isElement&&(v=t.el.querySelector(m.el)),!v&&typeof m.el=="string"&&(v=[...document.querySelectorAll(m.el)]),v||(v=m.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof m.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(m.el)],v.length>1&&(v=v.filter(b=>v2(b,".swiper")[0]===t.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=a(v),v.forEach(b=>{m.type==="bullets"&&m.clickable&&b.classList.add(m.clickableClass),b.classList.add(m.modifierClass+m.type),b.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.type==="bullets"&&m.dynamicBullets&&(b.classList.add(`${m.modifierClass}${m.type}-dynamic`),l=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&b.classList.add(m.progressbarOppositeClass),m.clickable&&b.addEventListener("click",f),t.enabled||b.classList.add(m.lockClass)}))}function w(){const m=t.params.pagination;if(u())return;let v=t.pagination.el;v&&(v=a(v),v.forEach(b=>{b.classList.remove(m.hiddenClass),b.classList.remove(m.modifierClass+m.type),b.classList.remove(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.clickable&&b.removeEventListener("click",f)})),t.pagination.bullets&&t.pagination.bullets.forEach(b=>b.classList.remove(...m.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const m=t.params.pagination;let{el:v}=t.pagination;v=a(v),v.forEach(b=>{b.classList.remove(m.horizontalClass,m.verticalClass),b.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?g():(y(),h(),p())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&p()}),r("snapIndexChange",()=>{p()}),r("snapGridLengthChange",()=>{h(),p()}),r("destroy",()=>{w()}),r("enable disable",()=>{let{el:m}=t.pagination;m&&(m=a(m),m.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{p()}),r("click",(m,v)=>{const b=v.target,E=a(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&E&&E.length>0&&!b.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&b===t.navigation.nextEl||t.navigation.prevEl&&b===t.navigation.prevEl))return;const T=E[0].classList.contains(t.params.pagination.hiddenClass);s(T===!0?"paginationShow":"paginationHide"),E.forEach(C=>C.classList.toggle(t.params.pagination.hiddenClass))}});const x=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=a(m),m.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),y(),h(),p()},g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=a(m),m.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),w()};Object.assign(t.pagination,{enable:x,disable:g,render:h,update:p,init:y,destroy:w})}let Tf;function ZR(){const e=Ht(),t=Xs();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function y2(){return Tf||(Tf=ZR()),Tf}let jf;function eN(e){let{userAgent:t}=e===void 0?{}:e;const n=y2(),r=Ht(),s=r.navigator.platform,i=t||r.navigator.userAgent,o={ios:!1,android:!1},l=r.screen.width,a=r.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const f=i.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let y=s==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&n.touch&&w.indexOf(`${l}x${a}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),u&&!h&&(o.os="android",o.android=!0),(c||p||f)&&(o.os="ios",o.ios=!0),o}function tN(e){return e===void 0&&(e={}),jf||(jf=eN(e)),jf}let Pf;function nN(){const e=Ht();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[s,i]=r.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));t=s<16||s===16&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function rN(){return Pf||(Pf=nN()),Pf}function sN(e){let{swiper:t,on:n,emit:r}=e;const s=Ht();let i=null,o=null;const l=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(i=new ResizeObserver(f=>{o=s.requestAnimationFrame(()=>{const{width:p,height:h}=t;let y=p,w=h;f.forEach(x=>{let{contentBoxSize:g,contentRect:m,target:v}=x;v&&v!==t.el||(y=m?m.width:(g[0]||g).inlineSize,w=m?m.height:(g[0]||g).blockSize)}),(y!==p||w!==h)&&l()})}),i.observe(t.el))},u=()=>{o&&s.cancelAnimationFrame(o),i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof s.ResizeObserver<"u"){a();return}s.addEventListener("resize",l),s.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),s.removeEventListener("resize",l),s.removeEventListener("orientationchange",c)})}function iN(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const i=[],o=Ht(),l=function(c,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,h=new p(y=>{if(t.__preventObserver__)return;if(y.length===1){s("observerUpdate",y[0]);return}const w=function(){s("observerUpdate",y[0])};o.requestAnimationFrame?o.requestAnimationFrame(w):o.setTimeout(w,0)});h.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),i.push(h)},a=()=>{if(t.params.observer){if(t.params.observeParents){const c=v2(t.el);for(let f=0;f<c.length;f+=1)l(c[f])}l(t.el,{childList:t.params.observeSlideChildren}),l(t.wrapperEl,{attributes:!1})}},u=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",a),r("destroy",u)}var oN={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const s=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][s](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function s(){r.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];t.apply(r,o)}return s.__emitterProxy=t,r.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((s,i)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return typeof i[0]=="string"||Array.isArray(i[0])?(t=i[0],n=i.slice(1,i.length),r=e):(t=i[0].events,n=i[0].data,r=i[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(a=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[a,...n])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(u=>{u.apply(r,n)})}),e}};function aN(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(zr(r,"padding-left")||0,10)-parseInt(zr(r,"padding-right")||0,10),n=n-parseInt(zr(r,"padding-top")||0,10)-parseInt(zr(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function lN(){const e=this;function t(A){return e.isHorizontal()?A:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[A]}function n(A,N){return parseFloat(A.getPropertyValue(t(N))||0)}const r=e.params,{wrapperEl:s,slidesEl:i,size:o,rtlTranslate:l,wrongRTL:a}=e,u=e.virtual&&r.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,f=$n(i,`.${e.params.slideClass}, swiper-slide`),p=u?e.virtual.slides.length:f.length;let h=[];const y=[],w=[];let x=r.slidesOffsetBefore;typeof x=="function"&&(x=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(e));const m=e.snapGrid.length,v=e.slidesGrid.length;let b=r.spaceBetween,E=-x,T=0,C=0;if(typeof o>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*o:typeof b=="string"&&(b=parseFloat(b)),e.virtualSize=-b,f.forEach(A=>{l?A.style.marginLeft="":A.style.marginRight="",A.style.marginBottom="",A.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(eu(s,"--swiper-centered-offset-before",""),eu(s,"--swiper-centered-offset-after",""));const R=r.grid&&r.grid.rows>1&&e.grid;R&&e.grid.initSlides(p);let j;const L=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(A=>typeof r.breakpoints[A].slidesPerView<"u").length>0;for(let A=0;A<p;A+=1){j=0;let N;if(f[A]&&(N=f[A]),R&&e.grid.updateSlide(A,N,p,t),!(f[A]&&zr(N,"display")==="none")){if(r.slidesPerView==="auto"){L&&(f[A].style[t("width")]="");const M=getComputedStyle(N),D=N.style.transform,k=N.style.webkitTransform;if(D&&(N.style.transform="none"),k&&(N.style.webkitTransform="none"),r.roundLengths)j=e.isHorizontal()?bh(N,"width",!0):bh(N,"height",!0);else{const I=n(M,"width"),z=n(M,"padding-left"),_=n(M,"padding-right"),$=n(M,"margin-left"),V=n(M,"margin-right"),ne=M.getPropertyValue("box-sizing");if(ne&&ne==="border-box")j=I+$+V;else{const{clientWidth:re,offsetWidth:de}=N;j=I+z+_+$+V+(de-re)}}D&&(N.style.transform=D),k&&(N.style.webkitTransform=k),r.roundLengths&&(j=Math.floor(j))}else j=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(j=Math.floor(j)),f[A]&&(f[A].style[t("width")]=`${j}px`);f[A]&&(f[A].swiperSlideSize=j),w.push(j),r.centeredSlides?(E=E+j/2+T/2+b,T===0&&A!==0&&(E=E-o/2-b),A===0&&(E=E-o/2-b),Math.abs(E)<1/1e3&&(E=0),r.roundLengths&&(E=Math.floor(E)),C%r.slidesPerGroup===0&&h.push(E),y.push(E)):(r.roundLengths&&(E=Math.floor(E)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&h.push(E),y.push(E),E=E+j+b),e.virtualSize+=j+b,T=j,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,l&&a&&(r.effect==="slide"||r.effect==="coverflow")&&(s.style.width=`${e.virtualSize+b}px`),r.setWrapperSize&&(s.style[t("width")]=`${e.virtualSize+b}px`),R&&e.grid.updateWrapperSize(j,h,t),!r.centeredSlides){const A=[];for(let N=0;N<h.length;N+=1){let M=h[N];r.roundLengths&&(M=Math.floor(M)),h[N]<=e.virtualSize-o&&A.push(M)}h=A,Math.floor(e.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-o)}if(u&&r.loop){const A=w[0]+b;if(r.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),M=A*r.slidesPerGroup;for(let D=0;D<N;D+=1)h.push(h[h.length-1]+M)}for(let N=0;N<e.virtual.slidesBefore+e.virtual.slidesAfter;N+=1)r.slidesPerGroup===1&&h.push(h[h.length-1]+A),y.push(y[y.length-1]+A),e.virtualSize+=A}if(h.length===0&&(h=[0]),b!==0){const A=e.isHorizontal()&&l?"marginLeft":t("marginRight");f.filter((N,M)=>!r.cssMode||r.loop?!0:M!==f.length-1).forEach(N=>{N.style[A]=`${b}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let A=0;w.forEach(M=>{A+=M+(b||0)}),A-=b;const N=A-o;h=h.map(M=>M<=0?-x:M>N?N+g:M)}if(r.centerInsufficientSlides){let A=0;if(w.forEach(N=>{A+=N+(b||0)}),A-=b,A<o){const N=(o-A)/2;h.forEach((M,D)=>{h[D]=M-N}),y.forEach((M,D)=>{y[D]=M+N})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:y,slidesSizesGrid:w}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){eu(s,"--swiper-centered-offset-before",`${-h[0]}px`),eu(s,"--swiper-centered-offset-after",`${e.size/2-w[w.length-1]/2}px`);const A=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+A),e.slidesGrid=e.slidesGrid.map(M=>M+N)}if(p!==c&&e.emit("slidesLengthChange"),h.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),y.length!==v&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const A=`${r.containerModifierClass}backface-hidden`,N=e.el.classList.contains(A);p<=r.maxBackfaceHiddenSlides?N||e.el.classList.add(A):N&&e.el.classList.remove(A)}}function uN(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let s=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=l=>r?t.slides[t.getSlideIndexByData(l)]:t.slides[l];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(l=>{n.push(l)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const l=t.activeIndex+i;if(l>t.slides.length&&!r)break;n.push(o(l))}else n.push(o(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const l=n[i].offsetHeight;s=l>s?l:s}(s||s===0)&&(t.wrapperEl.style.height=`${s}px`)}function cN(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function dN(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:s,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;s&&(o=e),r.forEach(a=>{a.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a<r.length;a+=1){const u=r[a];let c=u.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const f=(o+(n.centeredSlides?t.minTranslate():0)-c)/(u.swiperSlideSize+l),p=(o-i[0]+(n.centeredSlides?t.minTranslate():0)-c)/(u.swiperSlideSize+l),h=-(o-c),y=h+t.slidesSizesGrid[a];(h>=0&&h<t.size-1||y>1&&y<=t.size||h<=0&&y>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(a),r[a].classList.add(n.slideVisibleClass)),u.progress=s?-f:f,u.originalProgress=s?-p:p}}function fN(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:i,isEnd:o,progressLoop:l}=t;const a=i,u=o;if(r===0)s=0,i=!0,o=!0;else{s=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=c||s<=0,o=f||s>=1,c&&(s=0),f&&(s=1)}if(n.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[c],h=t.slidesGrid[f],y=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=p?l=(w-p)/y:l=(w+y-h)/y,l>1&&(l-=1)}Object.assign(t,{progress:s,progressLoop:l,isBeginning:i,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!a&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(a&&!i||u&&!o)&&t.emit("fromEdge"),t.emit("progress",s)}function pN(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:s}=e,i=e.virtual&&n.virtual.enabled,o=a=>$n(r,`.${n.slideClass}${a}, swiper-slide${a}`)[0];t.forEach(a=>{a.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let l;if(i)if(n.loop){let a=s-e.virtual.slidesBefore;a<0&&(a=e.virtual.slides.length+a),a>=e.virtual.slides.length&&(a-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else l=t[s];if(l){l.classList.add(n.slideActiveClass);let a=XR(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!a&&(a=t[0]),a&&a.classList.add(n.slideNextClass);let u=KR(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const Ou=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const s=r.querySelector(`.${e.params.lazyPreloaderClass}`);s&&s.remove()}},Of=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Sh=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=s,l=[o-t];l.push(...Array.from({length:t}).map((a,u)=>o+r+u)),e.slides.forEach((a,u)=>{l.includes(a.column)&&Of(e,u)});return}const i=s+r-1;if(e.params.rewind||e.params.loop)for(let o=s-t;o<=i+t;o+=1){const l=(o%n+n)%n;(l<s||l>i)&&Of(e,l)}else for(let o=Math.max(s-t,0);o<=Math.min(i+t,n-1);o+=1)o!==s&&(o>i||o<s)&&Of(e,o)};function hN(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let s;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?s=i:r>=t[i]&&r<t[i+1]&&(s=i+1):r>=t[i]&&(s=i);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function mN(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:s,activeIndex:i,realIndex:o,snapIndex:l}=t;let a=e,u;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof a>"u"&&(a=hN(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(s.slidesPerGroupSkip,a);u=p+Math.floor((a-p)/s.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),a===i){u!==l&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=c(a));return}let f;t.virtual&&s.virtual.enabled&&s.loop?f=c(a):t.slides[a]?f=parseInt(t.slides[a].getAttribute("data-swiper-slide-index")||a,10):f=a,Object.assign(t,{previousSnapIndex:l,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:i,activeIndex:a}),t.initialized&&Sh(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function gN(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let s=!1,i;if(r){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===r){s=!0,i=o;break}}if(r&&s)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var vN={updateSize:aN,updateSlides:lN,updateAutoHeight:uN,updateSlidesOffset:cN,updateSlidesProgress:dN,updateProgress:fN,updateSlidesClasses:pN,updateActiveIndex:mN,updateClickedSlide:gN};function yN(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:r,translate:s,wrapperEl:i}=t;if(n.virtualTranslate)return r?-s:s;if(n.cssMode)return s;let o=GR(i,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function wN(e,t){const n=this,{rtlTranslate:r,params:s,wrapperEl:i,progress:o}=n;let l=0,a=0;const u=0;n.isHorizontal()?l=r?-e:e:a=e,s.roundLengths&&(l=Math.floor(l),a=Math.floor(a)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:a,s.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-a:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():a-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${l}px, ${a}px, ${u}px)`);let c;const f=n.maxTranslate()-n.minTranslate();f===0?c=0:c=(e-n.minTranslate())/f,c!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function xN(){return-this.snapGrid[0]}function bN(){return-this.snapGrid[this.snapGrid.length-1]}function SN(e,t,n,r,s){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const i=this,{params:o,wrapperEl:l}=i;if(i.animating&&o.preventInteractionOnTransition)return!1;const a=i.minTranslate(),u=i.maxTranslate();let c;if(r&&e>a?c=a:r&&e<u?c=u:c=e,i.updateProgress(c),o.cssMode){const f=i.isHorizontal();if(t===0)l[f?"scrollLeft":"scrollTop"]=-c;else{if(!i.support.smoothScroll)return m2({swiper:i,targetPosition:-c,side:f?"left":"top"}),!0;l.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(p){!i||i.destroyed||p.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var EN={getTranslate:yN,setTranslate:wN,minTranslate:xN,maxTranslate:bN,translateTo:SN};function CN(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function w2(e){let{swiper:t,runCallbacks:n,direction:r,step:s}=e;const{activeIndex:i,previousIndex:o}=t;let l=r;if(l||(i>o?l="next":i<o?l="prev":l="reset"),t.emit(`transition${s}`),n&&i!==o){if(l==="reset"){t.emit(`slideResetTransition${s}`);return}t.emit(`slideChangeTransition${s}`),l==="next"?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}function kN(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),w2({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function TN(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),w2({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var jN={setTransition:CN,transitionStart:kN,transitionEnd:TN};function PN(e,t,n,r,s){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;o<0&&(o=0);const{params:l,snapGrid:a,slidesGrid:u,previousIndex:c,activeIndex:f,rtlTranslate:p,wrapperEl:h,enabled:y}=i;if(i.animating&&l.preventInteractionOnTransition||!y&&!r&&!s)return!1;const w=Math.min(i.params.slidesPerGroupSkip,o);let x=w+Math.floor((o-w)/i.params.slidesPerGroup);x>=a.length&&(x=a.length-1);const g=-a[x];if(l.normalizeSlideIndex)for(let v=0;v<u.length;v+=1){const b=-Math.floor(g*100),E=Math.floor(u[v]*100),T=Math.floor(u[v+1]*100);typeof u[v+1]<"u"?b>=E&&b<T-(T-E)/2?o=v:b>=E&&b<T&&(o=v+1):b>=E&&(o=v)}if(i.initialized&&o!==f&&(!i.allowSlideNext&&(p?g>i.translate&&g>i.minTranslate():g<i.translate&&g<i.minTranslate())||!i.allowSlidePrev&&g>i.translate&&g>i.maxTranslate()&&(f||0)!==o))return!1;o!==(c||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(g);let m;if(o>f?m="next":o<f?m="prev":m="reset",p&&-g===i.translate||!p&&g===i.translate)return i.updateActiveIndex(o),l.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),l.effect!=="slide"&&i.setTranslate(g),m!=="reset"&&(i.transitionStart(n,m),i.transitionEnd(n,m)),!1;if(l.cssMode){const v=i.isHorizontal(),b=p?g:-g;if(t===0){const E=i.virtual&&i.params.virtual.enabled;E&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),E&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[v?"scrollLeft":"scrollTop"]=b})):h[v?"scrollLeft":"scrollTop"]=b,E&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return m2({swiper:i,targetPosition:b,side:v?"left":"top"}),!0;h.scrollTo({[v?"left":"top"]:b,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(g),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),t===0?i.transitionEnd(n,m):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(b){!i||i.destroyed||b.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,m))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function ON(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let i=e;return s.params.loop&&(s.virtual&&s.params.virtual.enabled?i=i+s.virtual.slidesBefore:i=s.getSlideIndexByData(i)),s.slideTo(i,t,n,r)}function RN(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{enabled:s,params:i,animating:o}=r;if(!s)return r;let l=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const a=r.activeIndex<i.slidesPerGroupSkip?1:l,u=r.virtual&&i.virtual.enabled;if(i.loop){if(o&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+a,e,t,n)}function NN(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{params:s,snapGrid:i,slidesGrid:o,rtlTranslate:l,enabled:a,animating:u}=r;if(!a)return r;const c=r.virtual&&s.virtual.enabled;if(s.loop){if(u&&!c&&s.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=l?r.translate:-r.translate;function p(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const h=p(f),y=i.map(g=>p(g));let w=i[y.indexOf(h)-1];if(typeof w>"u"&&s.cssMode){let g;i.forEach((m,v)=>{h>=m&&(g=v)}),typeof g<"u"&&(w=i[g>0?g-1:g])}let x=0;if(typeof w<"u"&&(x=o.indexOf(w),x<0&&(x=r.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(x=x-r.slidesPerViewDynamic("previous",!0)+1,x=Math.max(x,0))),s.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return r.slideTo(x,e,t,n)}function AN(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this;return r.slideTo(r.activeIndex,e,t,n)}function IN(e,t,n,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=.5);const s=this;let i=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,i),l=o+Math.floor((i-o)/s.params.slidesPerGroup),a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[l]){const u=s.snapGrid[l],c=s.snapGrid[l+1];a-u>(c-u)*r&&(i+=s.params.slidesPerGroup)}else{const u=s.snapGrid[l-1],c=s.snapGrid[l];a-u<=(c-u)*r&&(i-=s.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,s.slidesGrid.length-1),s.slideTo(i,e,t,n)}function _N(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex,i;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-r/2||s>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),s=e.getSlideIndex($n(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),xh(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-r?(e.loopFix(),s=e.getSlideIndex($n(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),xh(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}var MN={slideTo:PN,slideToLoop:ON,slideNext:RN,slidePrev:NN,slideReset:AN,slideToClosest:IN,slideToClickedSlide:_N};function LN(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;$n(r,`.${n.slideClass}, swiper-slide`).forEach((i,o)=>{i.setAttribute("data-swiper-slide-index",o)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function DN(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:s,activeSlideIndex:i,byController:o,byMousewheel:l}=e===void 0?{}:e;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:f,slidesEl:p,params:h}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&h.virtual.enabled){n&&(!h.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):h.centeredSlides&&a.snapIndex<h.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=c,a.allowSlideNext=f,a.emit("loopFix");return}const y=h.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(h.slidesPerView,10));let w=h.loopedSlides||y;w%h.slidesPerGroup!==0&&(w+=h.slidesPerGroup-w%h.slidesPerGroup),a.loopedSlides=w;const x=[],g=[];let m=a.activeIndex;typeof i>"u"?i=a.getSlideIndex(a.slides.filter(C=>C.classList.contains(h.slideActiveClass))[0]):m=i;const v=r==="next"||!r,b=r==="prev"||!r;let E=0,T=0;if(i<w){E=Math.max(w-i,h.slidesPerGroup);for(let C=0;C<w-i;C+=1){const R=C-Math.floor(C/u.length)*u.length;x.push(u.length-R-1)}}else if(i>a.slides.length-w*2){T=Math.max(i-(a.slides.length-w*2),h.slidesPerGroup);for(let C=0;C<T;C+=1){const R=C-Math.floor(C/u.length)*u.length;g.push(R)}}if(b&&x.forEach(C=>{a.slides[C].swiperLoopMoveDOM=!0,p.prepend(a.slides[C]),a.slides[C].swiperLoopMoveDOM=!1}),v&&g.forEach(C=>{a.slides[C].swiperLoopMoveDOM=!0,p.append(a.slides[C]),a.slides[C].swiperLoopMoveDOM=!1}),a.recalcSlides(),h.slidesPerView==="auto"&&a.updateSlides(),h.watchSlidesProgress&&a.updateSlidesOffset(),n){if(x.length>0&&b)if(typeof t>"u"){const C=a.slidesGrid[m],j=a.slidesGrid[m+E]-C;l?a.setTranslate(a.translate-j):(a.slideTo(m+E,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=j))}else s&&a.slideToLoop(t,0,!1,!0);else if(g.length>0&&v)if(typeof t>"u"){const C=a.slidesGrid[m],j=a.slidesGrid[m-T]-C;l?a.setTranslate(a.translate-j):(a.slideTo(m-T,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=j))}else a.slideToLoop(t,0,!1,!0)}if(a.allowSlidePrev=c,a.allowSlideNext=f,a.controller&&a.controller.control&&!o){const C={slideRealIndex:t,slideTo:!1,direction:r,setTranslate:s,activeSlideIndex:i,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(R=>{!R.destroyed&&R.params.loop&&R.loopFix(C)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(C)}a.emit("loopFix")}function FN(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(s=>{const i=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;r[i]=s}),e.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),r.forEach(s=>{n.append(s)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var $N={loopCreate:LN,loopFix:DN,loopDestroy:FN};function zN(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function BN(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var VN={setGrabCursor:zN,unsetGrabCursor:BN};function UN(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Xs()||r===Ht())return null;r.assignedSlot&&(r=r.assignedSlot);const s=r.closest(e);return!s&&!r.getRootNode?null:s||n(r.getRootNode().host)}return n(t)}function HN(e){const t=this,n=Xs(),r=Ht(),s=t.touchEventsData;s.evCache.push(e);const{params:i,touches:o,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let a=e;a.originalEvent&&(a=a.originalEvent);let u=a.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in a&&a.which===3||"button"in a&&a.button>0||s.isTouched&&s.isMoved)return;const c=!!i.noSwipingClass&&i.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;c&&a.target&&a.target.shadowRoot&&f&&(u=f[0]);const p=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,h=!!(a.target&&a.target.shadowRoot);if(i.noSwiping&&(h?UN(p,u):u.closest(p))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const y=o.currentX,w=o.currentY,x=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,g=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(x&&(y<=g||y>=r.innerWidth-g))if(x==="prevent")e.preventDefault();else return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=y,o.startY=w,s.touchStartTime=Tc(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1);let m=!0;u.matches(s.focusableElements)&&(m=!1,u.nodeName==="SELECT"&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const v=m&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||v)&&!u.isContentEditable&&a.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function qN(e){const t=Xs(),n=this,r=n.touchEventsData,{params:s,touches:i,rtlTranslate:o,enabled:l}=n;if(!l||!s.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent&&(a=a.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a);return}const u=r.evCache.findIndex(T=>T.pointerId===a.pointerId);u>=0&&(r.evCache[u]=a);const c=r.evCache.length>1?r.evCache[0]:a,f=c.pageX,p=c.pageY;if(a.preventedByNestedSwiper){i.startX=f,i.startY=p;return}if(!n.allowTouchMove){a.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:f,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:p}),r.touchStartTime=Tc());return}if(s.touchReleaseOnEdges&&!s.loop){if(n.isVertical()){if(p<i.startY&&n.translate<=n.maxTranslate()||p>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(f<i.startX&&n.translate<=n.maxTranslate()||f>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&a.target===t.activeElement&&a.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;i.currentX=f,i.currentY=p;const h=i.currentX-i.startX,y=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(h**2+y**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let T;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:h*h+y*y>=25&&(T=Math.atan2(Math.abs(y),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?T>s.touchAngle:90-T>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",a),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation();let w=n.isHorizontal()?h:y,x=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;s.oneWayMovement&&(w=Math.abs(w)*(o?1:-1),x=Math.abs(x)*(o?1:-1)),i.diff=w,w*=s.touchRatio,o&&(w=-w,x=-x);const g=n.touchesDirection;n.swipeDirection=w>0?"prev":"next",n.touchesDirection=x>0?"prev":"next";const m=n.params.loop&&!s.cssMode;if(!r.isMoved){if(m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(T)}r.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",a)}let v;r.isMoved&&g!==n.touchesDirection&&m&&Math.abs(w)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),v=!0),n.emit("sliderMove",a),r.isMoved=!0,r.currentTranslate=w+r.startTranslate;let b=!0,E=s.resistanceRatio;if(s.touchReleaseOnEdges&&(E=0),w>0?(m&&!v&&r.currentTranslate>(s.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+w)**E))):w<0&&(m&&!v&&r.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(s.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(b=!1,s.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-w)**E))),b&&(a.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(w)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function WN(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(v=>v.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:s,touches:i,rtlTranslate:o,slidesGrid:l,enabled:a}=t;if(!a||!s.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=Tc(),f=c-n.touchStartTime;if(t.allowClick){const v=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(v&&v[0]||u.target),t.emit("tap click",u),f<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=Tc(),xh(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=o?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}let h=0,y=t.slidesSizesGrid[0];for(let v=0;v<l.length;v+=v<s.slidesPerGroupSkip?1:s.slidesPerGroup){const b=v<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof l[v+b]<"u"?p>=l[v]&&p<l[v+b]&&(h=v,y=l[v+b]-l[v]):p>=l[v]&&(h=v,y=l[l.length-1]-l[l.length-2])}let w=null,x=null;s.rewind&&(t.isBeginning?x=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const g=(p-l[h])/y,m=h<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?w:h+m):t.slideTo(h)),t.swipeDirection==="prev"&&(g>1-s.longSwipesRatio?t.slideTo(h+m):x!==null&&g<0&&Math.abs(g)>s.longSwipesRatio?t.slideTo(x):t.slideTo(h))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+m):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(w!==null?w:h+m),t.swipeDirection==="prev"&&t.slideTo(x!==null?x:h))}}function m0(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:i}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!l?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=s,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function GN(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function QN(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let s;const i=e.maxTranslate()-e.minTranslate();i===0?s=0:s=(e.translate-e.minTranslate())/i,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function KN(e){const t=this;Ou(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let g0=!1;function XN(){}const x2=(e,t)=>{const n=Xs(),{params:r,el:s,wrapperEl:i,device:o}=e,l=!!r.nested,a=t==="on"?"addEventListener":"removeEventListener",u=t;s[a]("pointerdown",e.onTouchStart,{passive:!1}),n[a]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[a]("pointerup",e.onTouchEnd,{passive:!0}),n[a]("pointercancel",e.onTouchEnd,{passive:!0}),n[a]("pointerout",e.onTouchEnd,{passive:!0}),n[a]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&s[a]("click",e.onClick,!0),r.cssMode&&i[a]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",m0,!0):e[u]("observerUpdate",m0,!0),s[a]("load",e.onLoad,{capture:!0})};function YN(){const e=this,t=Xs(),{params:n}=e;e.onTouchStart=HN.bind(e),e.onTouchMove=qN.bind(e),e.onTouchEnd=WN.bind(e),n.cssMode&&(e.onScroll=QN.bind(e)),e.onClick=GN.bind(e),e.onLoad=KN.bind(e),g0||(t.addEventListener("touchstart",XN),g0=!0),x2(e,"on")}function JN(){x2(this,"off")}var ZN={attachEvents:YN,detachEvents:JN};const v0=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function e8(){const e=this,{realIndex:t,initialized:n,params:r,el:s}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const o=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const a=(o in i?i[o]:void 0)||e.originalParams,u=v0(e,r),c=v0(e,a),f=r.enabled;u&&!c?(s.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(s.classList.add(`${r.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&r.grid.fill==="column")&&s.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof a[w]>"u")return;const x=r[w]&&r[w].enabled,g=a[w]&&a[w].enabled;x&&!g&&e[w].disable(),!x&&g&&e[w].enable()});const p=a.direction&&a.direction!==r.direction,h=r.loop&&(a.slidesPerView!==r.slidesPerView||p);p&&n&&e.changeDirection(),It(e.params,a);const y=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",a),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",a)}function t8(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const s=Ht(),i=t==="window"?s.innerHeight:n.clientHeight,o=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:i*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l<o.length;l+=1){const{point:a,value:u}=o[l];t==="window"?s.matchMedia(`(min-width: ${u}px)`).matches&&(r=a):u<=n.clientWidth&&(r=a)}return r||"max"}var n8={setBreakpoint:e8,getBreakpoint:t8};function r8(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(s=>{r[s]&&n.push(t+s)}):typeof r=="string"&&n.push(t+r)}),n}function s8(){const e=this,{classNames:t,params:n,rtl:r,el:s,device:i}=e,o=r8(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()}function i8(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var o8={addClasses:s8,removeClasses:i8};function a8(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const s=e.slides.length-1,i=e.slidesGrid[s]+e.slidesSizesGrid[s]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var l8={checkOverflow:a8},y0={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function u8(e,t){return function(r){r===void 0&&(r={});const s=Object.keys(r)[0],i=r[s];if(typeof i!="object"||i===null){It(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(s)>=0&&e[s]===!0&&(e[s]={auto:!0}),!(s in e&&"enabled"in i)){It(t,r);return}e[s]===!0&&(e[s]={enabled:!0}),typeof e[s]=="object"&&!("enabled"in e[s])&&(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),It(t,r)}}const Rf={eventsEmitter:oN,update:vN,translate:EN,transition:jN,slide:MN,loop:$N,grabCursor:VN,events:ZN,breakpoints:n8,checkOverflow:l8,classes:o8},Nf={};let qa=class Yn{constructor(){let t,n;for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?n=s[0]:[t,n]=s,n||(n={}),n=It({},n),t&&!n.el&&(n.el=t);const o=Xs();if(n.el&&typeof n.el=="string"&&o.querySelectorAll(n.el).length>1){const c=[];return o.querySelectorAll(n.el).forEach(f=>{const p=It({},n,{el:f});c.push(new Yn(p))}),c}const l=this;l.__swiper__=!0,l.support=y2(),l.device=tN({userAgent:n.userAgent}),l.browser=rN(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const a={};l.modules.forEach(c=>{c({params:n,swiper:l,extendParams:u8(n,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const u=It({},y0,a);return l.params=It({},u,Nf,n),l.originalParams=It({},l.params),l.passedParams=It({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(c=>{l.on(c,l.params.on[c])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(t){const{slidesEl:n,params:r}=this,s=$n(n,`.${r.slideClass}, swiper-slide`),i=jc(s[0]);return jc(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=$n(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const s=r.minTranslate(),o=(r.maxTranslate()-s)*t+s;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const s=t.getSlideClasses(r);n.push({slideEl:r,classNames:s}),t.emit("_slideClass",r,s)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:s,slides:i,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:u}=r;let c=1;if(s.centeredSlides){let f=i[u]?i[u].swiperSlideSize:0,p;for(let h=u+1;h<i.length;h+=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,c+=1,f>a&&(p=!0));for(let h=u-1;h>=0;h-=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,c+=1,f>a&&(p=!0))}else if(t==="current")for(let f=u+1;f<i.length;f+=1)(n?o[f]+l[f]-o[u]<a:o[f]-o[u]<a)&&(c+=1);else for(let f=u-1;f>=0;f-=1)o[u]-o[f]<a&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&Ou(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function s(){const o=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)s(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(o.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||s()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,s=r.params.direction;return t||(t=s==="horizontal"?"vertical":"horizontal"),t===s||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${s}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&(n.isElement=!0);const s=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(s()):$n(r,s())[0])();return!o&&n.params.createElements&&(o=g2("div",n.params.wrapperClass),r.append(o),$n(r,`.${n.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||zr(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||zr(r,"direction")==="rtl"),wrongRTL:zr(o,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete?Ou(n,s):s.addEventListener("load",i=>{Ou(n,i.target)})}),Sh(n),n.initialized=!0,Sh(n),n.emit("init"),n.emit("afterInit")),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:s,el:i,wrapperEl:o,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),s.loop&&r.loopDestroy(),n&&(r.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(a=>{r.off(a)}),t!==!1&&(r.el.swiper=null,qR(r)),r.destroyed=!0),null}static extendDefaults(t){It(Nf,t)}static get extendedDefaults(){return Nf}static get defaults(){return y0}static installModule(t){Yn.prototype.__modules__||(Yn.prototype.__modules__=[]);const n=Yn.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Yn.installModule(n)),Yn):(Yn.installModule(t),Yn)}};Object.keys(Rf).forEach(e=>{Object.keys(Rf[e]).forEach(t=>{qa.prototype[t]=Rf[e][t]})});qa.use([sN,iN]);const b2=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Hs(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Br(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Hs(t[r])&&Hs(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Br(e[r],t[r]):e[r]=t[r]})}function S2(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function E2(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function C2(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function k2(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function c8(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function d8(e){let{swiper:t,slides:n,passedParams:r,changedParams:s,nextEl:i,prevEl:o,scrollbarEl:l,paginationEl:a}=e;const u=s.filter(j=>j!=="children"&&j!=="direction"&&j!=="wrapperClass"),{params:c,pagination:f,navigation:p,scrollbar:h,virtual:y,thumbs:w}=t;let x,g,m,v,b,E,T,C;s.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(x=!0),s.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(g=!0),s.includes("pagination")&&r.pagination&&(r.pagination.el||a)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(m=!0),s.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(c.scrollbar||c.scrollbar===!1)&&h&&!h.el&&(v=!0),s.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(b=!0);const R=j=>{t[j]&&(t[j].destroy(),j==="navigation"?(t.isElement&&(t[j].prevEl.remove(),t[j].nextEl.remove()),c[j].prevEl=void 0,c[j].nextEl=void 0,t[j].prevEl=void 0,t[j].nextEl=void 0):(t.isElement&&t[j].el.remove(),c[j].el=void 0,t[j].el=void 0))};s.includes("loop")&&t.isElement&&(c.loop&&!r.loop?E=!0:!c.loop&&r.loop?T=!0:C=!0),u.forEach(j=>{if(Hs(c[j])&&Hs(r[j]))Br(c[j],r[j]),(j==="navigation"||j==="pagination"||j==="scrollbar")&&"enabled"in r[j]&&!r[j].enabled&&R(j);else{const L=r[j];(L===!0||L===!1)&&(j==="navigation"||j==="pagination"||j==="scrollbar")?L===!1&&R(j):c[j]=r[j]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),s.includes("children")&&n&&y&&c.virtual.enabled&&(y.slides=n,y.update(!0)),s.includes("children")&&n&&c.loop&&(C=!0),x&&w.init()&&w.update(!0),g&&(t.controller.control=c.controller.control),m&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),t.el.appendChild(a)),a&&(c.pagination.el=a),f.init(),f.render(),f.update()),v&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),t.el.appendChild(l)),l&&(c.scrollbar.el=l),h.init(),h.updateSize(),h.setTranslate()),b&&(t.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),i.innerHTML=t.hostEl.nextButtonSvg,t.el.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),i.innerHTML=t.hostEl.prevButtonSvg,t.el.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),p.init(),p.update()),s.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),s.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),s.includes("direction")&&t.changeDirection(r.direction,!1),(E||C)&&t.loopDestroy(),(T||C)&&t.loopCreate(),t.update()}function f8(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},s={};Br(n,qa.defaults),Br(n,qa.extendedDefaults),n._emitClasses=!0,n.init=!1;const i={},o=b2.map(a=>a.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(a=>{typeof e[a]>"u"||(o.indexOf(a)>=0?Hs(e[a])?(n[a]={},s[a]={},Br(n[a],e[a]),Br(s[a],e[a])):(n[a]=e[a],s[a]=e[a]):a.search(/on[A-Z]/)===0&&typeof e[a]=="function"?t?r[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(a=>{n[a]===!0&&(n[a]={}),n[a]===!1&&delete n[a]}),{params:n,passedParams:s,rest:i,events:r}}function p8(e,t){let{el:n,nextEl:r,prevEl:s,paginationEl:i,scrollbarEl:o,swiper:l}=e;S2(t)&&r&&s&&(l.params.navigation.nextEl=r,l.originalParams.navigation.nextEl=r,l.params.navigation.prevEl=s,l.originalParams.navigation.prevEl=s),E2(t)&&i&&(l.params.pagination.el=i,l.originalParams.pagination.el=i),C2(t)&&o&&(l.params.scrollbar.el=o,l.originalParams.scrollbar.el=o),l.init(n)}function h8(e,t,n,r,s){const i=[];if(!t)return i;const o=a=>{i.indexOf(a)<0&&i.push(a)};if(n&&r){const a=r.map(s),u=n.map(s);a.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return b2.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(Hs(e[a])&&Hs(t[a])){const u=Object.keys(e[a]),c=Object.keys(t[a]);u.length!==c.length?o(a):(u.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}),c.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}))}else e[a]!==t[a]&&o(a)}),i}const m8=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pc.apply(this,arguments)}function T2(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function j2(e){const t=[];return ee.Children.toArray(e).forEach(n=>{T2(n)?t.push(n):n.props&&n.props.children&&j2(n.props.children).forEach(r=>t.push(r))}),t}function g8(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return ee.Children.toArray(e).forEach(r=>{if(T2(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const s=j2(r.props.children);s.length>0?s.forEach(i=>t.push(i)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function v8(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},s=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:o}=n,l=e.params.loop?-t.length:0,a=e.params.loop?t.length*2:t.length,u=[];for(let c=l;c<a;c+=1)c>=i&&c<=o&&u.push(t[r(c)]);return u.map((c,f)=>ee.cloneElement(c,{swiper:e,style:s,key:`slide-${f}`}))}function aa(e,t){return typeof window>"u"?S.useEffect(e,t):S.useLayoutEffect(e,t)}const w0=S.createContext(null),y8=S.createContext(null),P2=S.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:s="div",children:i,onSwiper:o,...l}=e===void 0?{}:e,a=!1;const[u,c]=S.useState("swiper"),[f,p]=S.useState(null),[h,y]=S.useState(!1),w=S.useRef(!1),x=S.useRef(null),g=S.useRef(null),m=S.useRef(null),v=S.useRef(null),b=S.useRef(null),E=S.useRef(null),T=S.useRef(null),C=S.useRef(null),{params:R,passedParams:j,rest:L,events:A}=f8(l),{slides:N,slots:M}=g8(i),D=()=>{y(!h)};Object.assign(R.on,{_containerClasses($,V){c(V)}});const k=()=>{Object.assign(R.on,A),a=!0;const $={...R};if(delete $.wrapperClass,g.current=new qa($),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=N;const V={cache:!1,slides:N,renderExternal:p,renderExternalUpdate:!1};Br(g.current.params.virtual,V),Br(g.current.originalParams.virtual,V)}};x.current||k(),g.current&&g.current.on("_beforeBreakpoint",D);const I=()=>{a||!A||!g.current||Object.keys(A).forEach($=>{g.current.on($,A[$])})},z=()=>{!A||!g.current||Object.keys(A).forEach($=>{g.current.off($,A[$])})};S.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",D)}),S.useEffect(()=>{!w.current&&g.current&&(g.current.emitSlidesClasses(),w.current=!0)}),aa(()=>{if(t&&(t.current=x.current),!!x.current)return g.current.destroyed&&k(),p8({el:x.current,nextEl:b.current,prevEl:E.current,paginationEl:T.current,scrollbarEl:C.current,swiper:g.current},R),o&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),aa(()=>{I();const $=h8(j,m.current,N,v.current,V=>V.key);return m.current=j,v.current=N,$.length&&g.current&&!g.current.destroyed&&d8({swiper:g.current,slides:N,passedParams:j,changedParams:$,nextEl:b.current,prevEl:E.current,scrollbarEl:C.current,paginationEl:T.current}),()=>{z()}}),aa(()=>{m8(g.current)},[f]);function _(){return R.virtual?v8(g.current,N,f):N.map(($,V)=>ee.cloneElement($,{swiper:g.current,swiperSlideIndex:V}))}return ee.createElement(r,Pc({ref:x,className:k2(`${u}${n?` ${n}`:""}`)},L),ee.createElement(y8.Provider,{value:g.current},M["container-start"],ee.createElement(s,{className:c8(R.wrapperClass)},M["wrapper-start"],_(),M["wrapper-end"]),S2(R)&&ee.createElement(ee.Fragment,null,ee.createElement("div",{ref:E,className:"swiper-button-prev"}),ee.createElement("div",{ref:b,className:"swiper-button-next"})),C2(R)&&ee.createElement("div",{ref:C,className:"swiper-scrollbar"}),E2(R)&&ee.createElement("div",{ref:T,className:"swiper-pagination"}),M["container-end"]))});P2.displayName="Swiper";const O2=S.forwardRef(function(e,t){let{tag:n="div",children:r,className:s="",swiper:i,zoom:o,lazy:l,virtualIndex:a,swiperSlideIndex:u,...c}=e===void 0?{}:e;const f=S.useRef(null),[p,h]=S.useState("swiper-slide"),[y,w]=S.useState(!1);function x(b,E,T){E===f.current&&h(T)}aa(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!i)){if(i.destroyed){p!=="swiper-slide"&&h("swiper-slide");return}return i.on("_slideClass",x),()=>{i&&i.off("_slideClass",x)}}}),aa(()=>{i&&f.current&&!i.destroyed&&h(i.getSlideClasses(f.current))},[i]);const g={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(g):r,v=()=>{w(!0)};return ee.createElement(n,Pc({ref:f,className:k2(`${p}${s?` ${s}`:""}`),"data-swiper-slide-index":a,onLoad:v},c),o&&ee.createElement(w0.Provider,{value:g},ee.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},m(),l&&!y&&ee.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&ee.createElement(w0.Provider,{value:g},m(),l&&!y&&ee.createElement("div",{className:"swiper-lazy-preloader"})))});O2.displayName="SwiperSlide";const x0=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function w8(e,t){t?t={...x0,...t}:t=x0;const n=R2(t);return n.dispatch(e),n.toString()}const x8=Object.freeze(["prototype","__proto__","constructor"]);function R2(e){let t="",n=new Map;const r=s=>{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const l=i.length;l<10?o="unknown:["+i+"]":o=i.slice(8,l-1),o=o.toLowerCase();let a=null;if((a=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+a+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let c=[];e.respectType!==!1&&!b0(s)&&(c=x8),e.excludeKeys&&(u=u.filter(p=>!e.excludeKeys(p)),c=c.filter(p=>!e.excludeKeys(p))),r("object:"+(u.length+c.length)+":");const f=p=>{this.dispatch(p),r(":"),e.excludeValues||this.dispatch(s[p]),r(",")};for(const p of u)f(p);for(const p of c)f(p)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const a of s)this.dispatch(a);return}const o=new Map,l=s.map(a=>{const u=R2(e);u.dispatch(a);for(const[c,f]of u.getContext())o.set(c,f);return u.toString()});return n=o,l.sort(),this.array(l,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),b0(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
218
|
-
Use "options.replacer" or "options.ignoreUnknown"
|
|
219
|
-
`)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const N2="[native code] }",b8=N2.length;function b0(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-b8)===N2}class Jr{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||S8).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Jr([...this.words])}}const S8={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},E8={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r<e.sigBytes;r+=3){const s=e.words[r>>>2]>>>24-r%4*8&255,i=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,o=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,l=s<<16|i<<8|o;for(let a=0;a<4&&r*8+a*6<e.sigBytes*8;a++)n.push(t.charAt(l>>>6*(3-a)&63))}return n.join("")}},C8={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new Jr(n,t)}},k8={parse(e){return C8.parse(unescape(encodeURIComponent(e)))}};class T8{constructor(){this._data=new Jr,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Jr,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=k8.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*this.blockSize,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=this.blockSize)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new Jr(n,i)}}class j8 extends T8{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const S0=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],P8=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],fs=[];class O8 extends j8{constructor(){super(...arguments),this._hash=new Jr([...S0])}reset(){super.reset(),this._hash=new Jr([...S0])}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],l=r[3],a=r[4],u=r[5],c=r[6],f=r[7];for(let p=0;p<64;p++){if(p<16)fs[p]=t[n+p]|0;else{const v=fs[p-15],b=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3,E=fs[p-2],T=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10;fs[p]=b+fs[p-7]+T+fs[p-16]}const h=a&u^~a&c,y=s&i^s&o^i&o,w=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),x=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),g=f+x+h+P8[p]+fs[p],m=w+y;f=c,c=u,u=a,a=l+g|0,l=o,o=i,i=s,s=g+m|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+l|0,r[4]=r[4]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function R8(e){return new O8().finalize(e).toString(E8)}function A2(e,t={}){const n=typeof e=="string"?e:w8(e,t);return R8(n).slice(0,10)}var I2={};Object.defineProperty(I2,"__esModule",{value:!0});const N8=e=>{const t="ÀÁÂÃÄÅĄĀàáâãäåąāÒÓÔÕÕÖØòóôõöøÈÉÊËĘĒèéêëðęēÇĆČçćčÐÌÍÎÏĪìíîïīÙÚÛÜŪùúûüūÑŅñņŠŚšśŸÿýŽŹŻžźżŁĻłļŃŅńņàáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîüûñçýỳỹỵỷğışĞİŞĢģĶķ",n="AAAAAAAAaaaaaaaaOOOOOOOooooooEEEEEEeeeeeeeCCCcccDIIIIIiiiiiUUUUUuuuuuNNnnSSssYyyZZZzzzLLllNNnnaaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiuuncyyyyygisGISGgKk",r=t.split("").join("|"),s=new RegExp(`(${r})`,"g");function i(o){return n[t.indexOf(o)]||""}return e.replace(s,i)},A8=e=>e.split("").map(t=>`\\${t}`).join(""),E0=(e,t,n=!1)=>{const r=N8(e).trim().toLowerCase(),s=A8(t);return n?r.replace(/\s+/g,t):r.replace(new RegExp(`[^a-z0-9${s}]+`,"g"),t).replace(new RegExp(`${s}+`,"g"),t).replace(new RegExp(`^${s}`,"g"),"").replace(new RegExp(`${s}$`,"g"),"")},Vo=(e,t={delimiter:"-",prefix:""})=>{if(t.delimiter||(t.delimiter="-"),t.prefix||(t.prefix=""),!e||typeof e=="boolean")return"";const{delimiter:n,prefix:r}=t;if(typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number"){const s=E0(r,n,!0),i=E0(String(e),n);return s?`${s}${n}${i}`:i}return"children"in e?Vo(e.children):"type"in e?Vo(e.props.children,t):Symbol.iterator in e?Vo(Array.from(e).map(s=>Vo(s,{delimiter:n})).join(n),t):""};var _2=I2.default=Vo,rg={},sg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(sg);var oe={},us=lt&<.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),la=lt&<.__assign||function(){return la=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},la.apply(this,arguments)};Object.defineProperty(oe,"__esModule",{value:!0});oe.cloneNode=oe.hasChildren=oe.isDocument=oe.isDirective=oe.isComment=oe.isText=oe.isCDATA=oe.isTag=oe.Element=oe.Document=oe.CDATA=oe.NodeWithChildren=oe.ProcessingInstruction=oe.Comment=oe.Text=oe.DataNode=oe.Node=void 0;var jt=sg,ig=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),og(this,t)},e}();oe.Node=ig;var pd=function(e){us(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(ig);oe.DataNode=pd;var M2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(pd);oe.Text=M2;var L2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(pd);oe.Comment=L2;var D2=function(e){us(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=jt.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(pd);oe.ProcessingInstruction=D2;var hd=function(e){us(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(ig);oe.NodeWithChildren=hd;var F2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(hd);oe.CDATA=F2;var $2=function(e){us(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=jt.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(hd);oe.Document=$2;var z2=function(e){us(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?jt.ElementType.Script:n==="style"?jt.ElementType.Style:jt.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(hd);oe.Element=z2;function B2(e){return(0,jt.isTag)(e)}oe.isTag=B2;function V2(e){return e.type===jt.ElementType.CDATA}oe.isCDATA=V2;function U2(e){return e.type===jt.ElementType.Text}oe.isText=U2;function H2(e){return e.type===jt.ElementType.Comment}oe.isComment=H2;function q2(e){return e.type===jt.ElementType.Directive}oe.isDirective=q2;function W2(e){return e.type===jt.ElementType.Root}oe.isDocument=W2;function I8(e){return Object.prototype.hasOwnProperty.call(e,"children")}oe.hasChildren=I8;function og(e,t){t===void 0&&(t=!1);var n;if(U2(e))n=new M2(e.data);else if(H2(e))n=new L2(e.data);else if(B2(e)){var r=t?Af(e.children):[],s=new z2(e.name,la({},e.attribs),r);r.forEach(function(a){return a.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=la({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=la({},e["x-attribsPrefix"])),n=s}else if(V2(e)){var r=t?Af(e.children):[],i=new F2(r);r.forEach(function(u){return u.parent=i}),n=i}else if(W2(e)){var r=t?Af(e.children):[],o=new $2(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(q2(e)){var l=new D2(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}oe.cloneNode=og;function Af(e){for(var t=e.map(function(r){return og(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=lt&<.__createBinding||(Object.create?function(l,a,u,c){c===void 0&&(c=u);var f=Object.getOwnPropertyDescriptor(a,u);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(l,c,f)}:function(l,a,u,c){c===void 0&&(c=u),l[c]=a[u]}),n=lt&<.__exportStar||function(l,a){for(var u in l)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&t(a,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=sg,s=oe;n(oe,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function l(a,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??i,this.elementCB=c??null}return l.prototype.onparserinit=function(a){this.parser=a},l.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(a){this.handleCallback(a)},l.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},l.prototype.onopentag=function(a,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,f=new s.Element(a,u,void 0,c);this.addNode(f),this.tagStack.push(f)},l.prototype.ontext=function(a){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=a,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(a);this.addNode(c),this.lastNode=c}},l.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=a;return}var u=new s.Comment(a);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var a=new s.Text(""),u=new s.CDATA([a]);this.addNode(u),a.parent=u,this.lastNode=a},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(a,u){var c=new s.ProcessingInstruction(a,u);this.addNode(c)},l.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},l.prototype.addNode=function(a){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),u.children.push(a),c&&(a.prev=c,c.next=a),a.parent=u,this.lastNode=null},l}();e.DomHandler=o,e.default=o})(rg);var C0="html",k0="head",tu="body",_8=/<([a-zA-Z]+[0-9]?)/,T0=/<head[^]*>/i,j0=/<body[^]*>/i,Oc=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Eh=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},P0=typeof window=="object"&&window.DOMParser;if(typeof P0=="function"){var M8=new P0,L8="text/html";Eh=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),M8.parseFromString(e,L8)},Oc=Eh}if(typeof document=="object"&&document.implementation){var nu=document.implementation.createHTMLDocument();Oc=function(e,t){if(t){var n=nu.documentElement.querySelector(t);return n.innerHTML=e,nu}return nu.documentElement.innerHTML=e,nu}}var If=typeof document=="object"?document.createElement("template"):{},Ch;If.content&&(Ch=function(e){return If.innerHTML=e,If.content.childNodes});function D8(e){var t,n=e.match(_8);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case C0:return r=Eh(e),T0.test(e)||(s=r.querySelector(k0),s&&s.parentNode.removeChild(s)),j0.test(e)||(s=r.querySelector(tu),s&&s.parentNode.removeChild(s)),r.querySelectorAll(C0);case k0:case tu:return r=Oc(e),i=r.querySelectorAll(t),j0.test(e)&&T0.test(e)?i[0].parentNode.childNodes:i;default:return Ch?Ch(e):(s=Oc(e,tu).querySelector(tu),s.childNodes)}}var F8=D8,ag={},G2={};G2.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var md=rg,$8=G2,O0=$8.CASE_SENSITIVE_TAG_NAMES,z8=md.Comment,B8=md.Element,V8=md.ProcessingInstruction,U8=md.Text,Q2={},_f;for(var Mf=0,H8=O0.length;Mf<H8;Mf++)_f=O0[Mf],Q2[_f.toLowerCase()]=_f;function q8(e){return Q2[e]}function K2(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function W8(e){e=e.toLowerCase();var t=q8(e);return t||e}function X2(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var l=e[i],a;switch(l.nodeType){case 1:s=W8(l.nodeName),a=new B8(s,K2(l.attributes)),a.children=X2(s==="template"?l.content.childNodes:l.childNodes,a);break;case 3:a=new U8(l.nodeValue);break;case 8:a=new z8(l.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=a),a.parent=t,a.prev=u,a.next=null,r.push(a)}return n&&(a=new V8(n.substring(0,n.indexOf(" ")).toLowerCase(),n),a.next=r[0]||null,a.parent=t,r.unshift(a),r[1]&&(r[1].prev=r[0])),r}ag.formatAttributes=K2;ag.formatDOM=X2;var G8=F8,Q8=ag,K8=Q8.formatDOM,X8=/<(![a-zA-Z\s]+)>/;function Y8(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(X8),n;return t&&t[1]&&(n=t[1]),K8(G8(e),null,n)}var J8=Y8,hn={},gd={},Z8=0;gd.SAME=Z8;var eA=1;gd.CAMELCASE=eA;gd.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(hn,"__esModule",{value:!0});function tA(e,t){return nA(e)||rA(e,t)||sA(e,t)||iA()}function nA(e){if(Array.isArray(e))return e}function rA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,l;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(a){i=!0,l=a}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function sA(e,t){if(e){if(typeof e=="string")return R0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R0(e,t)}}function R0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
220
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Y2=0,cs=1,vd=2,yd=3,lg=4,J2=5,Z2=6;function oA(e){return Xe.hasOwnProperty(e)?Xe[e]:null}function pt(e,t,n,r,s,i,o){this.acceptsBooleans=t===vd||t===yd||t===lg,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Xe={},aA=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];aA.forEach(function(e){Xe[e]=new pt(e,Y2,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=tA(e,2),n=t[0],r=t[1];Xe[n]=new pt(n,cs,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new pt(e,vd,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new pt(e,vd,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){Xe[e]=new pt(e,yd,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new pt(e,yd,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new pt(e,lg,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new pt(e,Z2,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new pt(e,J2,!1,e.toLowerCase(),null,!1,!1)});var ug=/[\-\:]([a-z])/g,cg=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(ug,cg);Xe[t]=new pt(t,cs,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ug,cg);Xe[t]=new pt(t,cs,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ug,cg);Xe[t]=new pt(t,cs,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new pt(e,cs,!1,e.toLowerCase(),null,!1,!1)});var lA="xlinkHref";Xe[lA]=new pt("xlinkHref",cs,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new pt(e,cs,!1,e.toLowerCase(),null,!0,!0)});var dg=gd,uA=dg.CAMELCASE,cA=dg.SAME,N0=dg.possibleStandardNames,dA=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",fA=dA+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pA=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+fA+"]*$")),hA=Object.keys(N0).reduce(function(e,t){var n=N0[t];return n===cA?e[t]=t:n===uA?e[t.toLowerCase()]=t:e[t]=n,e},{});hn.BOOLEAN=yd;hn.BOOLEANISH_STRING=vd;hn.NUMERIC=J2;hn.OVERLOADED_BOOLEAN=lg;hn.POSITIVE_NUMERIC=Z2;hn.RESERVED=Y2;hn.STRING=cs;hn.getPropertyInfo=oA;hn.isCustomAttribute=pA;hn.possibleStandardNames=hA;var eS={},fg={exports:{}},A0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mA=/\n/g,gA=/^\s*/,vA=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yA=/^:\s*/,wA=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xA=/^[;\s]*/,bA=/^\s+|\s+$/g,SA=`
|
|
221
|
-
`,I0="/",_0="*",gs="",EA="comment",CA="declaration",kA=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function s(y){var w=y.match(mA);w&&(n+=w.length);var x=y.lastIndexOf(SA);r=~x?y.length-x:r+y.length}function i(){var y={line:n,column:r};return function(w){return w.position=new o(y),u(),w}}function o(y){this.start=y,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(y){var w=new Error(t.source+":"+n+":"+r+": "+y);if(w.reason=y,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function a(y){var w=y.exec(e);if(w){var x=w[0];return s(x),e=e.slice(x.length),w}}function u(){a(gA)}function c(y){var w;for(y=y||[];w=f();)w!==!1&&y.push(w);return y}function f(){var y=i();if(!(I0!=e.charAt(0)||_0!=e.charAt(1))){for(var w=2;gs!=e.charAt(w)&&(_0!=e.charAt(w)||I0!=e.charAt(w+1));)++w;if(w+=2,gs===e.charAt(w-1))return l("End of comment missing");var x=e.slice(2,w-2);return r+=2,s(x),e=e.slice(w),r+=2,y({type:EA,comment:x})}}function p(){var y=i(),w=a(vA);if(w){if(f(),!a(yA))return l("property missing ':'");var x=a(wA),g=y({type:CA,property:M0(w[0].replace(A0,gs)),value:x?M0(x[0].replace(A0,gs)):gs});return a(xA),g}}function h(){var y=[];c(y);for(var w;w=p();)w!==!1&&(y.push(w),c(y));return y}return u(),h()};function M0(e){return e?e.replace(bA,gs):gs}var TA=kA;function tS(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=TA(e),i=typeof t=="function",o,l,a=0,u=s.length;a<u;a++)r=s[a],o=r.property,l=r.value,i?t(o,l,r):l&&(n||(n={}),n[o]=l);return n}fg.exports=tS;fg.exports.default=tS;var jA=fg.exports,wd={};wd.__esModule=!0;wd.camelCase=void 0;var PA=/^--[a-zA-Z0-9-]+$/,OA=/-([a-z])/g,RA=/^[^-]+$/,NA=/^-(webkit|moz|ms|o|khtml)-/,AA=/^-(ms)-/,IA=function(e){return!e||RA.test(e)||PA.test(e)},_A=function(e,t){return t.toUpperCase()},L0=function(e,t){return"".concat(t,"-")},MA=function(e,t){return t===void 0&&(t={}),IA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(AA,L0):e=e.replace(NA,L0),e.replace(OA,_A))};wd.camelCase=MA;(function(e){var t=lt&<.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(jA),r=wd;function s(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,r.camelCase)(a,o)]=u)}),l}e.default=s})(eS);var LA=S,DA=eS.default;function FA(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function $A(e,t){if(e.indexOf("-")===-1)return t&&typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zA={reactCompat:!0};function BA(e,t){if(e!=null)try{t.style=DA(e,zA)}catch{t.style={}}}var VA=LA.version.split(".")[0]>=16,nS=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function UA(e){return!nS.has(e.name)}var rS={PRESERVE_CUSTOM_ATTRIBUTES:VA,invertObject:FA,isCustomComponent:$A,setStyleProp:BA,canTextBeChildOfNode:UA,elementsWithNoTextChildren:nS},Uo=hn,D0=rS,HA=["checked","value"],qA=["input","select","textarea"],WA={reset:!0,submit:!0},sS=function(t,n){t=t||{};var r,s,i,o,l,a={},u=t.type&&WA[t.type];for(r in t){if(i=t[r],Uo.isCustomAttribute(r)){a[r]=i;continue}if(s=r.toLowerCase(),o=F0(s),o){switch(l=Uo.getPropertyInfo(o),HA.indexOf(o)!==-1&&qA.indexOf(n)!==-1&&!u&&(o=F0("default"+s)),a[o]=i,l&&l.type){case Uo.BOOLEAN:a[o]=!0;break;case Uo.OVERLOADED_BOOLEAN:i===""&&(a[o]=!0);break}continue}D0.PRESERVE_CUSTOM_ATTRIBUTES&&(a[r]=i)}return D0.setStyleProp(t.style,a),a};function F0(e){return Uo.possibleStandardNames[e]}var GA=S,QA=sS,Rc=rS,KA=Rc.setStyleProp,XA=Rc.canTextBeChildOfNode;function iS(e,t){t=t||{};for(var n=t.library||GA,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],l,a,u=typeof t.replace=="function",c,f,p,h=t.trim,y=0,w=e.length;y<w;y++){if(l=e[y],u&&(c=t.replace(l),i(c))){w>1&&(c=r(c,{key:c.key||y})),o.push(c);continue}if(l.type==="text"){if(a=!l.data.trim().length,a&&l.parent&&!XA(l.parent)||h&&a)continue;o.push(l.data);continue}switch(f=l.attribs,YA(l)?KA(f.style,f):f&&(f=QA(f,l.name)),p=null,l.type){case"script":case"style":l.children[0]&&(f.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":l.name==="textarea"&&l.children[0]?f.defaultValue=l.children[0].data:l.children&&l.children.length&&(p=iS(l.children,t));break;default:continue}w>1&&(f.key=y),o.push(s(l.name,f,p))}return o.length===1?o[0]:o}function YA(e){return Rc.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Rc.isCustomComponent(e.name,e.attribs)}var JA=iS,xd=rg,wi=J8,ZA=sS,oS=JA;wi=typeof wi.default=="function"?wi.default:wi;var eI={lowerCaseAttributeNames:!1};function Wn(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},oS(wi(e,t.htmlparser2||eI),t))}Wn.domToReact=oS;Wn.htmlToDOM=wi;Wn.attributesToProps=ZA;Wn.Comment=xd.Comment;Wn.Element=xd.Element;Wn.ProcessingInstruction=xd.ProcessingInstruction;Wn.Text=xd.Text;var tI=Wn;Wn.default=Wn;const ds=il(tI);var ru=ds.domToReact;ds.htmlToDOM;var Lf=ds.attributesToProps;ds.Comment;ds.Element;ds.ProcessingInstruction;ds.Text;const aS=S.forwardRef(({children:e},t)=>d.jsx("div",{ref:t,className:"actionbar",children:e}));aS.displayName="ActionBar";const nI=aS,lS=S.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:l=3e3,onClose:a,onVisibilityChange:u},c)=>{const[f,p]=S.useState(!0),h=S.useRef(null),y=S.useCallback(()=>{p(!1),a==null||a()},[a]);S.useImperativeHandle(c,()=>({show:w,hide:y,...h.current})),S.useLayoutEffect(()=>{u==null||u(f)},[f,u]),S.useEffect(()=>{o&&f&&setTimeout(()=>{y()},l)},[o,l,y,f]);const w=()=>{p(!0)},x={success:{icon:d.jsx(i5,{}),classModifier:"alert-success"},warning:{icon:d.jsx(wT,{}),classModifier:"alert-warning"},info:{icon:d.jsx(lb,{}),classModifier:"alert-info"},danger:{icon:d.jsx(_T,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},m=J("alert gap-12",x[e].classModifier,g,t);return d.jsx(d.Fragment,{children:f?d.jsxs("div",{ref:h,className:m,role:"alert",children:[x[e].icon,d.jsx("div",{className:"alert-content small",children:n}),r&&d.jsx("div",{className:"ms-12",children:r}),s&&d.jsx("div",{className:"btn-close-container",children:d.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:y})}),o&&d.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});lS.displayName="Alert";const Vr=lS,uS=S.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=J("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return d.jsxs("div",{ref:r,className:s,children:[e,t?d.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});uS.displayName="AppHeader";const cS=uS;function pg({appCode:e}){return Ih({queryKey:["conf"],queryFn:async()=>await ae.conf().getConf(e),suspense:!0})}function dS(){return Ih({queryKey:["session"],queryFn:async()=>await ae.session().getSession(),suspense:!0})}const hg=S.createContext(null);function fS({children:e,params:t}){const n=t.app,{t:r}=ue(),s=r(n),i=dS(),o=pg({appCode:n}),l=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);S.useEffect(()=>{var u,c;(c=document.querySelector("html"))==null||c.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),S.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const a=S.useMemo(()=>{var u,c,f,p,h,y;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(c=o==null?void 0:o.data)==null?void 0:c.currentApp,currentLanguage:(f=i==null?void 0:i.data)==null?void 0:f.currentLanguage,init:l,sessionQuery:i,user:(p=i==null?void 0:i.data)==null?void 0:p.user,userDescription:(h=i==null?void 0:i.data)==null?void 0:h.userDescription,userProfile:(y=i==null?void 0:i.data)==null?void 0:y.userProfile}},[n,o,l,i]);return d.jsx(hg.Provider,{value:a,children:e})}function Te(){const e=S.useContext(hg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}const mg=S.createContext(null);function pS({children:e}){var t;const{appCode:n}=Te(),r=pg({appCode:n});S.useEffect(()=>{var i,o,l,a,u,c,f,p,h;const y=document.getElementById("favicon");y.href=`${(o=(i=r==null?void 0:r.data)==null?void 0:i.theme)==null?void 0:o.basePath}/img/illustrations/favicon.ico`;const w=(u=(a=(l=r==null?void 0:r.data)==null?void 0:l.theme)==null?void 0:a.bootstrapVersion)==null?void 0:u.split("-"),x=w?w[w.length-1]:void 0;[{data:"data-skin",value:(f=(c=r==null?void 0:r.data)==null?void 0:c.theme)==null?void 0:f.skinName},{data:"data-theme",value:(h=(p=r==null?void 0:r.data)==null?void 0:p.theme)==null?void 0:h.themeName},{data:"data-product",value:x}].forEach(m=>{var v;return(v=document.querySelector("html"))==null?void 0:v.setAttribute(m.data,m.value)})},[r==null?void 0:r.data]);const s=S.useMemo(()=>{var i;return{theme:(i=r==null?void 0:r.data)==null?void 0:i.theme}},[(t=r==null?void 0:r.data)==null?void 0:t.theme]);return d.jsx(mg.Provider,{value:s,children:e})}function bd(){const e=S.useContext(mg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function hS(){var e;const{sessionQuery:t}=Te(),n=new Set;return(e=t==null?void 0:t.data)==null?void 0:e.bookmarkedApps.filter(s=>{const i=n.has(s.displayName);return n.add(s.displayName),!i})}function Oi(e){const[t,n]=S.useState();return S.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await ae.rights().sessionHasWorkflowRight(e):await ae.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}const rI=()=>{const e=Oi("fr.openent.zimbra.controllers.ZimbraController|view"),t=Oi("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=S.useState(0),[s,i]=S.useState(""),o=S.useCallback(async()=>{if(e)try{const a=await ae.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});a.status!==200&&r(0),r(a.count)}catch{console.error("error"),r(0)}else try{const a=await ae.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(a.count)}catch{console.error("error"),r(0)}},[e]),l=S.useCallback(()=>{let a="";ae.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?a="/zimbra/preauth":a=window.location.origin+"/zimbra/zimbra"}catch{a="/zimbra/zimbra"}}),i(a)},[t]);return S.useEffect(()=>{(async()=>{try{await o()}catch(a){console.error(a)}})(),l()},[l,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},mS=rI,$0=["mousedown","touchstart"];function gg(e,t,n){const r=S.useRef();return S.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const l=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!l&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||$0).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||$0).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}const su="top-right";function ht(){return{success:(t,n)=>Oo.custom(d.jsx(Vr,{type:"success",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),error:(t,n)=>Oo.custom(d.jsx(Vr,{type:"danger",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),info:(t,n)=>Oo.custom(d.jsx(Vr,{type:"info",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),warning:(t,n)=>Oo.custom(d.jsx(Vr,{type:"warning",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??su}),loading:Oo.loading}}function vg(){const[e,t]=S.useState(!1),n=S.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return S.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function gS({src:e,placeholder:t}){const[n,r]=S.useState(e||t),s=S.useCallback(()=>{r(t)},[t]);return S.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function vS(e,t){const n=S.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);S.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function yS(){const e=typeof document<"u",[t,n]=S.useState(()=>document.title);return S.useEffect(()=>{e&&n(document.title)},[e]),t}function yg(e=!1){const[t,n]=S.useState(e),r=S.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function wS(e,t){const[n,r]=S.useState(e);return S.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function xS(){const e=S.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return S.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=l=>{l.key==="Tab"&&(l.shiftKey?document.activeElement===r&&(i.focus(),l.preventDefault()):document.activeElement===i&&(r.focus(),l.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function bS(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const sI=(e,t)=>{const[,n]=S.useState(!1),r=S.useCallback(o=>{o.preventDefault(),o.stopPropagation(),n(!0)},[]),s=o=>{o.preventDefault(),o.stopPropagation(),n(!1)};return{handleDragging:r,handleDragLeave:s,handleDrop:o=>{var l;s(o);const a=(l=o.dataTransfer)==null?void 0:l.files;t(a),e!=null&&e.current&&a&&(e.current.files=a)}}},SS=sI;function ES({user:e,avatar:t}){const{t:n}=ue(),r=yS(),[s,i]=S.useState(!0),[o,l]=vg(),a=S.useId(),u=S.useId(),c=t,f=e==null?void 0:e.username,p=n("welcome",{username:e==null?void 0:e.firstName}),h=hS(),y=Oi("net.atos.entng.community.controllers.CommunityController|view"),w=Oi("org.entcore.conversation.controllers.ConversationController|view"),x=Oi("fr.openent.searchengine.controllers.SearchEngineController|view"),g=S.useCallback(()=>{i(!s)},[s]),m=async()=>{await ae.session().logout(),window.location.href="/auth/login"};return S.useMemo(()=>({title:r,bookmarkedApps:h,appsRef:o,isAppsHovered:l,popoverAppsId:a,popoverSearchId:u,userAvatar:c,userName:f,welcomeUser:p,communityWorkflow:y,conversationWorflow:w,searchWorkflow:x,isCollapsed:s,toggleCollapsedNav:g,handleLogout:m}),[o,h,y,w,l,s,a,u,x,r,g,c,f,p])}function CS(){const[e,t]=S.useState(!1);S.useEffect(()=>{n()},[]);const n=S.useCallback(async()=>{const r=await ae.session().isAdml();t(r)},[]);return{isAdml:e}}const wg={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},iI=()=>{var e;const{user:t,appCode:n}=Te(),r=wg[n],s=(e=t.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:e.address.split("?");let i=s==null?void 0:s[0];i!=null&&i.endsWith("/")||(i=`${i}/`);const o=s==null?void 0:s[1],l=`application%5B0%5D=${r}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${i}search/?${o}&${l}`}},oI=iI;function Sd(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(l){let a="";switch(a=(l==null?void 0:l.icon)!==void 0?l==null?void 0:l.icon.trim().toLowerCase():"placeholder",a&&a.length>0?a.endsWith("-large")&&(a=a.replace("-large","")):a=(l==null?void 0:l.displayName)!==void 0?l==null?void 0:l.displayName.trim().toLowerCase():"",a){case"admin.title":a="admin";break;case"banques des savoirs":a="banquesavoir";break;case"collaborativewall":a="collaborative-wall";break;case"communautés":a="community";break;case"directory.user":a="userbook";break;case"emploi du temps":a="edt";break;case"messagerie":a="conversation";break;case"news":a="actualites";break;case"homeworks":case"cahier de texte":a="cahier-de-texte";break;case"diary":case"cahier de texte 2d":a="cahier-textes";break}return a}function n(l){return l&&(l.startsWith("/")||l.startsWith("http://")||l.startsWith("https://"))}function r(l){const a=t(l);return a?`color-app-${a}`:"color-app-placeholder"}function s(l){const a=t(l);return a?`bg-app-${a}`:"bg-app-placeholder"}function i(l){const a=t(l);return a?`bg-light-${a}`:"bg-light-placeholder"}function o(l){return e[l.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Ys(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}function Ed(){const{user:e,userDescription:t,userProfile:n}=Te(),{theme:r}=bd();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function kS(){const[e,t]=S.useState("pending"),{currentApp:n}=Te();S.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await ae.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const TS=S.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},l)=>{const[a]=Ys(),u=n??`${a}/common/image-placeholder.png`,{imgSrc:c,onError:f}=gS({src:e,placeholder:u}),p={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},h={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},y=J({...p}),w=J({...h},i),x=d.jsx("img",{alt:t,onError:f,ref:l,src:c,className:w,...o});return r?d.jsx("div",{className:y,children:x}):x});TS.displayName="Image";const ho=TS,jS=S.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Sd(),[,l]=Ys(),a=r==="square",u=r==="rounded",c=r==="circle",f=n==="contain",p=n==="ratio",h={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},y={square:a,rounded:u,"rounded-circle":c},w={"icon-contain":f,"icon-ratio":p},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",m=e?o(e):"",v=i(x),b=m||"placeholder",E=J("app-icon",{...h,...y,...w,[`bg-light-${b}`]:b&&!f,[`color-app-${b}`]:b});return v?d.jsx(ho,{src:x,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):d.jsx("div",{className:E,style:{width:t+"px",height:t+"px"},children:d.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:d.jsx("use",{xlinkHref:`${l}/apps.svg#${b}`})})})});jS.displayName="AppIcon";const qs=jS,PS=S.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},l)=>{const[a]=Ys(),u=s||`${a}/avatar/no-avatar.svg`,w=J("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},i);return d.jsx("div",{ref:l,className:w,children:d.jsx(ho,{src:r||u,alt:n,imgPlaceholder:u,...o})})});PS.displayName="Avatar";const Ws=PS,OS=S.forwardRef(({children:e,className:t,...n},r)=>{const s=J("breadcrumb-item",t);return d.jsx("li",{ref:r,className:s,...n,children:e})});OS.displayName="BreadcrumbItem";const Df=OS,RS=S.forwardRef(({children:e,className:t},n)=>{const r=J("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return d.jsx("ol",{ref:n,className:r,children:e})});RS.displayName="BreadcrumbList";const aI=RS,NS=S.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=ue(),{getIconClass:i}=Sd(),o=J("d-flex align-items-center mb-0",i(t),n),l={"--edifice-breadcrumb-divider":"-"};return d.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:l,children:e})});NS.displayName="BreadcrumbNav";const lI=NS,AS=S.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,l=()=>{let u;return r?u=r:u=d.jsx(UT,{...o,"aria-label":"Loading"}),u},a=J("loading",{"is-loading":n});return d.jsxs("div",{className:a,role:"status",ref:t,children:[(!s||s==="left")&&l(),i,s==="right"&&l()]})});AS.displayName="Loading";const xg=AS,IS=S.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:l,rightIcon:a,className:u,variant:c="filled",...f},p)=>{const h=J("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return d.jsx("button",{ref:p,className:h,type:t,...f,children:s?d.jsx(xg,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):d.jsxs("span",{children:[l,r,a]})})});IS.displayName="Button";const ze=IS,_S=S.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:J("btn-icon btn-sm",t)};return d.jsx(ze,{ref:r,...s,children:e})});_S.displayName="IconButton";const hr=_S,MS=S.forwardRef(({icon:e=d.jsx(r5,{}),onClick:t,...n},r)=>{const s=J("btn-search");return d.jsx(hr,{ref:r,className:s,icon:e,...n,onClick:t})});MS.displayName="SearchButton";const bg=MS,LS=S.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=J(t,r);return d.jsx(e,{ref:i,className:o,...s,children:n})});LS.displayName="Heading";const an=LS,DS=S.forwardRef(({app:e,name:t},n)=>{const{t:r}=ue();return d.jsx(lI,{app:e,ref:n,className:"mw-100",children:d.jsx(aI,{className:"gap-12 mw-100",children:t?d.jsxs(d.Fragment,{children:[d.jsx(Df,{children:d.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[d.jsx(hr,{variant:"ghost",color:"tertiary",icon:d.jsx(XT,{}),"aria-label":r(e==null?void 0:e.displayName)}),d.jsx(qs,{app:e,size:"40"})]})}),d.jsx(Df,{className:"text-truncate",children:d.jsx(an,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):d.jsxs(Df,{className:"gap-12 d-flex align-items-center",children:[d.jsx(qs,{app:e,size:"40"}),d.jsx(an,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});DS.displayName="Breadcrumb";const FS=DS,$S=({children:e,space:t=null,flexDirection:n="row"})=>{const r=J("card-body",{"p-8":t==="8","gap-8":t==="8","align-items-start":n==="column","flex-column":n==="column"});return d.jsx("div",{className:r,children:e})};$S.displayName="Card.Body";const uI=$S,Sg=S.createContext(null);Sg.displayName="CardContext";const zS=()=>{const e=S.useContext(Sg);if(!e)throw new Error("Cannot be rendered outside the Card component");return e},BS=({children:e})=>d.jsx("div",{className:"card-footer gap-16",children:e});BS.displayName="Card.Footer";const cI=BS,VS=()=>{const{isSelectable:e,isClickable:t,onClick:n,onSelect:r}=zS();return d.jsxs("div",{className:"card-header",children:[e?d.jsx(hr,{"aria-label":"Open Action Bar",className:"z-3 bg-white",color:"secondary",icon:d.jsx(qT,{}),onClick:r,variant:"ghost"}):null,t?d.jsx("button",{onClick:n,className:"position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100","aria-label":"Open resource"}):null]})};VS.displayName="Card.Header";const dI=VS,US=({imageSrc:e,className:t,variant:n="medium"})=>{const{app:r}=zS(),s=n==="landscape"?{width:"100%",height:"auto"}:null;return d.jsx("div",{className:J("card-image",n),children:e?d.jsx(ho,{alt:"",src:e,objectFit:"cover",className:J("h-full",t)}):d.jsx(qs,{app:r,iconFit:"ratio",size:"80",variant:"rounded",...s})})};US.displayName="Card.Image";const fI=US,HS=({children:e,className:t})=>{const n=J("card-text small text-break text-truncate text-truncate-1",t);return d.jsx("p",{className:n,children:e})};HS.displayName="Card.Text";const pI=HS,qS=({children:e,className:t})=>{const n=J("card-title body text-break text-truncate text-truncate-1",t);return d.jsx("h3",{className:n,children:d.jsx("strong",{children:e})})};qS.displayName="Card.Title";const hI=qS,WS=({userSrc:e,creatorName:t})=>e?d.jsx(Ws,{alt:t||"",size:"xs",src:e,variant:"circle",width:"24",height:"24"}):d.jsx(p2,{});WS.displayName="Card.User";const mI=WS,GS=S.forwardRef(({app:e,isSelectable:t=!0,isClickable:n=!0,isSelected:r=!1,onClick:s,onSelect:i,children:o,className:l},a)=>{const{getIconCode:u}=Sd(),c=e?u(e):"placeholder",f=S.useMemo(()=>({app:e,appCode:c,isSelectable:t,isClickable:n,onClick:s,onSelect:i}),[e,c,t,n,s,i]);return d.jsx(Sg.Provider,{value:f,children:d.jsxs("div",{ref:a,className:J("card",{"is-selected":r},l),children:[d.jsx(QS.Header,{}),typeof o=="function"?o(c):o]})})});GS.displayName="Card";const QS=Object.assign(GS,{Title:hI,Text:pI,Image:fI,Body:uI,User:mI,Footer:cI,Header:dI}),gI=QS,KS=S.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=S.useRef(null);S.useImperativeHandle(i,()=>({...o.current})),S.useEffect(()=>{o.current.indeterminate=r},[o,r]);const l=S.useId(),a={type:"checkbox",checked:n,disabled:t,ref:o,className:J(s.className,"form-check-input c-pointer"),id:l},u={...s,...a};return d.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[d.jsx("input",{...u}),e&&d.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});KS.displayName="Checkbox";const Cd=KS,XS=S.createContext(null),mo=()=>{const e=S.useContext(XS);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},YS=S.createContext(null),kd=()=>{const e=S.useContext(YS);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},JS=({children:e})=>{const{status:t}=kd(),n=J("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return d.jsx("p",{className:n,children:d.jsx("em",{children:e})})};JS.displayName="Text";const ZS=JS,eE=S.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:l,isRequired:a,isReadOnly:u,status:c}=kd(),f=J({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return d.jsx("input",{ref:o,id:l,className:f,type:r,placeholder:t,required:a,readOnly:u,...i})});eE.displayName="Input";const rs=eE,tE=S.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:l,isRequired:a}=kd(),u=J("form-label",{"has-icon":e},s),c=l&&!a,f=a&&!l;return S.useEffect(()=>{if(l&&a)throw new Error("Cannot be optional and required at the same time")},[l,a]),d.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&d.jsxs("em",{className:"optional",children:["- ",t]}),f&&d.jsx("em",{className:"required",children:n})]})});tE.displayName="Label";const _s=tE,nE=S.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...l},a)=>{const u=S.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return d.jsx(YS.Provider,{value:u,children:d.jsx("div",{ref:a,className:t,...l,children:e})})}),vI=Object.assign(nE,{Label:_s,Input:rs,Text:ZS});nE.displayName="FormControl";const Qe=vI,yI=({placeholder:e,value:t="",handleSearchInputChange:n})=>{const{triggerProps:r,itemProps:s,setVisible:i}=mo(),o={...r,role:"combobox",onClick:()=>{t.length>2&&i(!0)},onChange:n};return S.useEffect(()=>{i(t.length>2)},[i,t]),d.jsx(Qe,{className:"d-flex align-items-center",id:"search",children:d.jsx(rs,{...o,className:"max-w-512",noValidationIcon:!0,placeholder:e,size:"md",type:"search",onKeyDown:s.onMenuItemKeyDown})})},wI=yI,rE=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=mo(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:a}=s,u=S.useId(),c=n.includes(t),f={value:t,model:n,checked:c,readOnly:!0},p=J("dropdown-item c-pointer",{focus:o===u});return d.jsx("div",{id:u,ref:h=>i.current[u]=h,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:h=>l(h,()=>r(t)),onMouseEnter:a,tabIndex:c?0:-1,className:p,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,d.jsx(Cd,{...f})]})})};rE.displayName="Dropdown.CheckboxItem";const xI=rE,sE=({type:e="action",icon:t,onClick:n,children:r,...s})=>{const{itemProps:i,itemRefs:o,isFocused:l}=mo(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:u,onMenuItemClick:c}=i,f=()=>{n==null||n(),e==="action"&&c()},p=S.useId(),h=J("dropdown-item",{focus:l===p});return d.jsx("div",{id:p,role:"menuitem",ref:y=>o.current[p]=y,tabIndex:l===p?0:-1,className:h,"aria-current":l===p,onClick:f,onMouseEnter:u,onKeyDown:y=>a(y,n),...s,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[t,r]})})};sE.displayName="Dropdown.Item";const bI=sE,iE=S.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=mo(),{className:o,...l}=s,a={...l,...n},u=J({"w-100":t},o);return i?d.jsx("div",{ref:r,className:u,...a,children:e}):null});iE.displayName="Dropdown.Menu";const SI=iE,oE=S.forwardRef(({label:e,children:t},n)=>d.jsxs("div",{ref:n,role:"group",children:[d.jsx("span",{className:"small px-4",children:d.jsx("strong",{children:e})}),t]}));oE.displayName="Dropdown.MenuGroup";const EI=oE,aE=S.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const l=S.useId(),a={type:"radio",checked:s,disabled:r,ref:o,className:J(i.className,"form-check-input c-pointer",t&&"d-none"),id:l},u={...i,...a};return d.jsxs("div",{className:J("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[d.jsx("input",{...u}),t&&d.jsx("label",{htmlFor:u.id,className:J("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&d.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});aE.displayName="Radio";const Nc=aE,lE=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=mo(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:a}=s,u=S.useId(),f={value:t,model:n,checked:t===n,readOnly:!0},p=J("dropdown-item c-pointer",{focus:o===u});return d.jsx("div",{id:u,ref:h=>i.current[u]=h,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:h=>l(h,()=>r(t)),onMouseEnter:a,tabIndex:t===n?0:-1,className:p,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,d.jsx(Nc,{...f,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};lE.displayName="Dropdown.RadioItem";const CI=lE,uE=()=>d.jsx("div",{role:"separator",className:"px-4",children:d.jsx("hr",{className:"m-0"})});uE.displayName="Dropdown.Separator";const kI=uE,cE=S.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},l)=>{const{triggerProps:a,block:u}=mo(),{className:c,...f}=a,p={...f,...o},h=J(s,n,{"w-100":u},c);return d.jsxs("button",{ref:l,className:h,disabled:r,...p,children:[t||null,e,i?d.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):d.jsx(ZT,{width:16,height:16,className:"dropdown-toggle-caret"})]})});cE.displayName="Dropdown.Trigger";const TI=cE,jI=e=>{const t=S.useId(),[n,r]=S.useState(!1),[s,i]=S.useState(-1),[o,l]=S.useState(null),{refs:a,floatingStyles:u}=ej({placement:e,open:n,onOpenChange:r,whileElementsMounted:$5,middleware:[x5(4),B5({apply({rects:A,elements:N}){Object.assign(N.floating.style,{minWidth:`${A.reference.width}px`})}}),z5({padding:0})]}),c=S.useRef(null),f=S.useRef(null),p=S.useRef({});S.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),p.current={})},[n]),S.useEffect(()=>{if(s!==-1){const A=Object.values(p.current)[s];if(A){const N=A.getAttribute("id");l(N),A.focus()}}},[s]);const h=()=>{const N=Object.values(p.current).length;i(M=>(M+1)%N)},y=()=>{const N=Object.values(p.current).length;i(M=>(M-1+N)%N)},w=()=>{i(0)},x=()=>{const N=Object.values(p.current).length;i(N-1)},g=S.useCallback(()=>{r(!0)},[]),m=S.useCallback(()=>{f.current&&(f.current.focus(),r(!1))},[]),v=(A,N)=>{A&&(N.stopPropagation(),N.preventDefault())},b=S.useCallback(A=>{let N=!1;switch(A.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),N=!0;break;case"Esc":case"Escape":m(),N=!0;break;case"Up":case"ArrowUp":g(),N=!0;break}v(N,A)},[m,g]),E=A=>{const M=Object.values(p.current).findIndex(D=>D.id===A.currentTarget.getAttribute("id"));i(M)},T=S.useCallback((A,N)=>{let M=!1;if(A.shiftKey)A.key==="Tab"&&(m(),M=!0);else{switch(A.code){case"Escape":m();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(p.current)[s].getAttribute("role")==="menuitem"&&f.current&&(f.current.focus(),r(!1)),N==null||N()),M=!0;break;case"ArrowDown":case"Down":h(),M=!0;break;case"ArrowUp":case"Up":y(),M=!0;break;case"Home":w(),M=!0;break;case"End":x(),M=!0;break}v(M,A)}},[s,m]),C=S.useCallback(A=>{r(n!==!0),A.stopPropagation(),A.preventDefault()},[n]),R=S.useCallback(()=>{m()},[m]);function j(A,...N){N.forEach(M=>{typeof M=="function"?M(A):M!=null&&(M.current=A)})}function L(...A){return N=>{j(N,...A)}}return{isFocused:o,visible:n,itemRefs:p,triggerRef:f,menuRef:c,triggerProps:{ref:L(f,a.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:C,onKeyDown:b,"aria-activedescendant":o},menuProps:{ref:L(c,a.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:E,onMenuItemClick:R,onMenuItemKeyDown:T},setVisible:r}},dE=jI,fE=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:l,itemProps:a,itemRefs:u,setVisible:c}=dE(r),f=gg(()=>c(!1)),p=S.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:l,itemProps:a,itemRefs:u,block:t,setVisible:c}),[s,i,o,l,a,u,t,c]),h=J("dropdown",{"w-100":t,overflow:n});return d.jsx(XS.Provider,{value:p,children:d.jsx("div",{ref:f,className:h,children:typeof e=="function"?e(o,u):e})})};fE.displayName="Dropdown";const PI=Object.assign(fE,{Trigger:TI,Menu:SI,Item:bI,Separator:kI,CheckboxItem:xI,RadioItem:CI,MenuGroup:EI}),Ee=PI,Td=({onSearchResultsChange:e,onSearchInputChange:t,options:n,value:r,isLoading:s,noResult:i,placeholder:o})=>{const{t:l}=ue(),[a,u]=S.useState([]);S.useEffect(()=>{e(a)},[a]);const c=p=>{u([p])},f=()=>s?d.jsxs("div",{className:"d-flex align-items-center p-4",children:[d.jsx(xg,{isLoading:s}),d.jsx("span",{className:"ps-4",children:l("explorer.search.pending")})]}):i?d.jsx("div",{className:"p-4",children:l("portal.no.result")}):n.map((p,h)=>d.jsxs(S.Fragment,{children:[d.jsx(Ee.Item,{type:"select",onClick:()=>c(p.value),children:p.label}),h<n.length-1&&d.jsx(Ee.Separator,{})]},h));return d.jsxs(Ee,{block:!0,children:[d.jsx(Td.Trigger,{placeholder:o,handleSearchInputChange:t,value:r}),d.jsx(Ee.Menu,{children:f()})]})};Td.Trigger=wI;Td.displayName="Combobox";const pE=Td,hE=({imageSrc:e,imageAlt:t="",title:n,text:r})=>d.jsxs("div",{className:"emptyscreen",children:[e&&d.jsx("div",{className:"emptyscreen-image mb-12",children:d.jsx("img",{className:"mx-auto",src:e,alt:t,width:"250",height:"250"})}),n&&d.jsx(an,{level:"h2",headingStyle:"h2",className:"text-secondary mb-8",children:n}),r&&d.jsx("div",{className:"text",children:r})]});hE.displayName="EmptyScreen";const OI=hE,Ri=({children:e,className:t,...n})=>{const r=J("grid",t);return d.jsx("div",{className:r,...n,children:e})},Eg=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...l})=>{const a=o||"div",u=J({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return d.jsx(a,{className:u,...l,children:s})};Ri.displayName="Grid";Eg.displayName="Grid.Col";Ri.Col=Eg;const mE=S.forwardRef(({label:e,addButtonLabel:t="Add image",deleteButtonLabel:n="Delete image",src:r,className:s,app:i,onUploadImage:o,onDeleteImage:l},a)=>{const u=S.useRef(null),[c,f]=S.useState(r||""),p=b=>{f("");const E=b==null?void 0:b[0];E&&(f(URL.createObjectURL(E)),o(E))},h=()=>{var b;(b=u.current)==null||b.click()},y=()=>{u.current&&(u.current.value=""),f(""),l()},w=b=>{p(b.target.files)},x=J("image-input",s),{handleDragging:g,handleDragLeave:m,handleDrop:v}=SS(u,p);return d.jsxs(Qe,{id:"image-input",className:x,onDragEnter:g,onDragOver:g,onDragLeave:m,onDrop:v,ref:a,children:[d.jsxs("div",{className:"image-input-actions gap-8",children:[d.jsx(hr,{"aria-label":t,color:"tertiary",icon:d.jsx(AT,{}),onClick:h,type:"button",variant:"ghost"}),d.jsx(hr,{"aria-label":n,color:"danger",disabled:!c,icon:d.jsx(ab,{width:"20",height:"20"}),onClick:y,type:"button",variant:"ghost"})]}),d.jsxs(Qe.Label,{children:[d.jsx("span",{className:"visually-hidden",children:e}),d.jsx(rs,{accept:"image/*",hidden:!0,onChange:w,ref:u,size:"sm",type:"file"}),c?d.jsx(Ws,{alt:"",src:c,size:"xl"}):d.jsx(qs,{app:i,iconFit:"ratio",size:"160",variant:"rounded"})]})]})});mE.displayName="ImagePicker";const Cg=mE,gE=S.forwardRef(({text:e,textButton:t,src:n,alt:r,url:s},i)=>d.jsx(d.Fragment,{children:d.jsxs("div",{ref:i,className:"p-16",children:[d.jsx(ho,{width:"270",height:"140",loading:"lazy",className:"rounded",src:n,alt:r}),d.jsx("p",{className:"m-8",children:e}),d.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:d.jsx(ze,{rightIcon:d.jsx(ET,{}),className:"py-0 px-8",variant:"ghost",color:"primary",children:t})})]})}));gE.displayName="Library";const RI=gE,vE=S.forwardRef(({position:e=!0},t)=>{const[n]=Ys(),r=`${n}/loading/screen-loading.gif`,s=J("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:t,className:s,children:d.jsx("div",{className:"bg-white rounded-circle mx-auto",children:d.jsx("img",{src:r,alt:"loading"})})}),!e&&d.jsx("div",{className:"modal-backdrop fade show"})]})});vE.displayName="LoadingScreen";const _t=vE,yE=S.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=J("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return d.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:d.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});yE.displayName="Logo";const kh=yE,kg=S.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});kg.displayName="ModalContext";const wE=()=>{const e=S.useContext(kg);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},xE=e=>{const{ariaDescriptionId:t}=wE(),{children:n,className:r}=e,s=J("modal-body",r);return d.jsx("div",{id:t,className:s,children:n})};xE.displayName="Modal.Body";const NI=xE,bE=e=>d.jsx("div",{className:"modal-footer",children:e.children});bE.displayName="Modal.Footer";const AI=bE,SE=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=wE(),i=S.useRef(null);return S.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),d.jsxs("div",{className:"modal-header",children:[d.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),d.jsx(hr,{ref:i,"aria-label":"Close",color:"tertiary",icon:d.jsx(ob,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};SE.displayName="Modal.Header";const II=SE,EE=e=>d.jsx("p",{className:"modal-subtitle",children:e.children});EE.displayName="Modal.Subtitle";const _I=EE,CE=S.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:l=!1,focusId:a,children:u}=e,c=`aria_label_${n}`,f=`aria_desc_${n}`,p=gg(s),h=xS();vS(s,["Escape"]),S.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const m=document.getElementById(a);m==null||m.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const y=J("modal fade",{"show d-block":r,"modal-scrollable":l,viewport:o,[`modal-${i}`]:i}),w=J("modal-dialog"),x={ariaLabelId:c,ariaDescriptionId:f,focusId:a},g=n2(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return d.jsx(kg.Provider,{value:x,children:g((m,v)=>d.jsxs(d.Fragment,{children:[v&&d.jsx(vh.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":f,className:y,style:m,tabIndex:-1,children:d.jsx("div",{id:`${n}_ref`,ref:b=>{p.current=b,v&&(h.current=b)},className:w,children:d.jsx("div",{className:"modal-content",children:u})})}),v&&d.jsx(vh.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),MI=Object.assign(CE,{Header:II,Subtitle:_I,Body:NI,Footer:AI});CE.displayName="Modal";const Re=MI,LI=({children:e,className:t})=>{const n=J("popover-header",t);return d.jsx("div",{className:n,children:e})},kE=({children:e,className:t})=>{const n=J("popover-body",t);return d.jsx("div",{className:n,children:e})},TE=({children:e,className:t})=>{const n=J("popover-footer p-8",t);return d.jsx("div",{className:n,children:e})},jd=S.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=J("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return n2(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((a,u)=>u&&d.jsx(vh.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:a,...s,children:e}))});jd.displayName="Popover";const jE=e=>d.jsx(Ee.Trigger,{...e,"aria-haspopup":"listbox",role:"combobox"});jE.displayName="SelectTrigger";const DI=jE,PE=({icon:e,options:t,overflow:n,block:r,variant:s,size:i,disabled:o,placeholderOption:l,onValueChange:a})=>{const[u,c]=S.useState(),{t:f}=ue();S.useEffect(()=>{if(u){const h=typeof u=="object"?u.value:u;a==null||a(h)}},[u]);const p=typeof u=="object"?u.label:u;return d.jsxs(Ee,{overflow:n,block:r,children:[d.jsx(DI,{icon:e,label:f(p||l),variant:s,size:i,disabled:o}),d.jsx(Ee.Menu,{role:"listbox",children:t==null?void 0:t.map(h=>{const y=typeof h=="object"?h.value:h,w=typeof h=="object"?h.label:h;return d.jsx(Ee.Item,{onClick:()=>c(h),children:w},y)})})]})};PE.displayName="Select";const Tg=PE,FI=({children:e,message:t,icon:n=null,placement:r="auto"})=>{const[s,i]=S.useState(null),[o,l]=S.useState(null),[a,u]=S.useState(null),{styles:c,attributes:f}=ER(s,o,{placement:r,modifiers:[{name:"arrow",options:{element:a}}]}),[p,h]=S.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"d-inline-block position-relative z-2",ref:i,onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},children:e}),p&&d.jsxs("div",{className:J("tooltip d-block show mb-12","bs-tooltip-auto"),ref:l,style:c.popper,...f.popper,children:[d.jsxs("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center",children:[n&&n,d.jsx("div",{children:t})]}),d.jsx("div",{className:"tooltip-arrow",ref:u,style:c.arrow})]})]})},OE=FI,RE=S.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",height:r="md",className:s,...i},o)=>{const{id:l,isRequired:a,isReadOnly:u,status:c}=kd(),f=J({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","textarea-height-lg":r==="lg","textarea-height-md":r==="md","textarea-height-sm":r==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return d.jsx("textarea",{ref:o,id:l,className:f,placeholder:t,required:a,readOnly:u,...i})});RE.displayName="TextArea";const jg=RE;function $I(e,t,n,r,s,i,o,l,a){const u=x=>{x.preventDefault(),s==null||s(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),s==null||s(e),x.stopPropagation())},f=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),f(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),f(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),l==null||l(e)},handleItemBlur:x=>{x.preventDefault(),a==null||a(e)}}}const NE=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:l,onItemUnfold:a,onItemFocus:u,onItemBlur:c,selectedNodesIds:f}=e,[p,h]=S.useState(!1),{handleItemClick:y,handleItemKeyDown:w,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:g,handleItemFocus:m,handleItemBlur:v}=$I(t,n,p,h,o,l,a,u,c);S.useEffect(()=>{if(f!=null&&f.length&&(f==null?void 0:f.length)>=1){const T=f[f.length-1];f.some(C=>C===t&&t!==T?(h(!0),C===t):(h(!1),!1))}else h(!1)},[t,f]);const b=s?16:12,E=()=>d.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":p,children:d.jsxs("div",{children:[d.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[d.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:x,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!p&&d.jsx(S1,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&p&&d.jsx(Na,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&d.jsx(S1,{title:"RafterRight",width:b,height:b,"aria-hidden":"true",className:"opacity-0"})]}),d.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:y,onKeyDown:w,onFocus:m,onBlur:v,children:[s&&d.jsx($T,{title:"Folder",width:20,height:20}),d.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&d.jsx("ul",{role:"group",children:r})]})},t);return s?d.jsx("ul",{role:"tree",className:"m-0 p-0",children:E()}):E()};NE.displayName="TreeItem";const zI=NE,AE=S.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:l,selectedNodesIds:a}=e,[u,c]=S.useState("default");S.useEffect(()=>{a!=null&&a.length&&(a==null?void 0:a.length)>=1?c(a[a.length-1]):c("")},[a]);const f=g=>{c(g),r==null||r(g)},p=g=>{s==null||s(g)},h=g=>{i==null||i(g)},y=g=>{o==null||o(g)},w=g=>{l==null||l(g)},x=g=>d.jsx(zI,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:a,selected:u===g.id,onItemSelect:f,onItemFold:p,onItemUnfold:h,onItemFocus:y,onItemBlur:w,children:Array.isArray(g.children)?g.children.map(m=>x(m)):null},g.id);return d.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});AE.displayName="TreeView";const IE=AE,_E=S.forwardRef(({children:e},t)=>d.jsx("span",{className:"visually-hidden",ref:t,children:e}));_E.displayName="VisuallyHidden";const sr=_E,BI=async e=>await ae.conf().getPreference(e),VI=async e=>await ae.conf().savePreference(e,JSON.stringify({showOnboardingTrash:!1})),UI=e=>{const[t,n]=S.useState(!0),[r,s]=S.useState(!1);return S.useEffect(()=>{(async()=>{const o=await BI(e);if(o){const{showOnboardingTrash:l}=o;s(l);return}s(!0)})()},[e]),{isOpen:t,setIsOpen:n,isOnboardingTrash:r,handleSavePreference:async()=>{await VI(e),n(!1)}}},ME=({id:e,items:t,modalOptions:n})=>{const[r]=Ys(),[s,i]=S.useState(),[o,l]=S.useState(0),{isOpen:a,isOnboardingTrash:u,setIsOpen:c,handleSavePreference:f}=UI(e),{t:p}=ue(),{title:h,prevText:y,closeText:w,nextText:x}=n;return u?vr.createPortal(d.jsxs(Re,{id:"onboarding-modal",size:"md",isOpen:a,focusId:"nextButtonId",onModalClose:()=>c(!1),children:[d.jsx(Re.Header,{onModalClose:()=>c(!1),children:p(h||"explorer.modal.onboarding.trash.title")}),d.jsx(Re.Body,{children:d.jsx(P2,{modules:[JR],onSwiper:g=>{i(g)},onSlideChange:g=>{l(g.progress)},pagination:{clickable:!0},children:t.map((g,m)=>d.jsxs(O2,{children:[d.jsx(ho,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${r}/${g.src}`,alt:p(g.alt)}),d.jsx("p",{children:p(g.text)})]},m))})}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>c(!1),children:p("explorer.modal.onboarding.trash.later")}),o>0&&d.jsx(ze,{type:"button",color:"primary",variant:"outline",onClick:()=>s.slidePrev(),children:p(y||"explorer.modal.onboarding.trash.prev")}),o<1&&d.jsx(ze,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>s.slideNext(),children:p(x||"explorer.modal.onboarding.trash.next")}),o===1&&d.jsx(ze,{type:"button",color:"primary",variant:"filled",onClick:f,children:p(w||"explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null};ME.displayName="OnboardingModal";const HI=ME,qI=()=>{const{t:e}=ue();return[{value:"bpr.activityType.classroomActivity",label:e("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:e("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:e("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:e("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:e("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:e("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:e("bpr.activityType.courseElement")},{value:"bpr.other",label:e("bpr.other")}]},WI=({control:e,selectedActivities:t,selectActivities:n})=>{const r=qI(),{t:s}=ue();return d.jsx("div",{className:"col d-flex",children:d.jsx(Jc,{name:"activityType",control:e,rules:{required:!0},render:({field:{onChange:i}})=>d.jsxs(Ee,{block:!0,overflow:!0,children:[d.jsx(Ee.Trigger,{size:"md",label:s("bpr.form.publication.type"),badgeContent:t==null?void 0:t.length}),d.jsx(Ee.Menu,{children:r.map((o,l)=>d.jsx(Ee.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},l))})]})})})},GI=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],z0=({name:e,control:t,placeholderOption:n,validate:r})=>d.jsx(Jc,{name:e,control:t,rules:{required:!0,validate:r},render:({field:{onChange:s}})=>d.jsx(Tg,{block:!0,size:"md",onValueChange:s,options:GI,"aria-required":!0,placeholderOption:n})}),QI=()=>{const{t:e}=ue();return[{value:"de_DE",label:e("de_DE")},{value:"en_EN",label:e("en_EN")},{value:"ar_DZ",label:e("ar_DZ")},{value:"es_ES",label:e("es_ES")},{value:"fr_FR",label:e("fr_FR")},{value:"it_IT",label:e("it_IT")},{value:"ja_JP",label:e("ja_JP")},{value:"zh_CN",label:e("zh_CN")},{value:"pt_PT",label:e("pt_PT")},{value:"ru_RU",label:e("ru_RU")},{value:"bpr.other",label:e("bpr.other")}]},KI="bpr.form.publication.language",XI=({control:e})=>{const t=QI();return d.jsx("div",{className:"col",children:d.jsx(Jc,{name:"language",control:e,rules:{required:!0},render:({field:{onChange:n}})=>d.jsx(Tg,{block:!0,size:"md",onValueChange:n,options:t,"aria-required":!0,placeholderOption:KI})})})},YI=()=>{const{t:e}=ue(),[t]=Ys();return d.jsxs(d.Fragment,{children:[d.jsxs("ul",{className:"mb-12",children:[d.jsxs("li",{children:[e("bpr.form.publication.licence.text.1"),d.jsx("img",{className:"ms-8 d-inline-block",src:`${t}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),d.jsx("li",{children:e("bpr.form.publication.licence.text.2")})]}),d.jsx(Vr,{type:"info",className:"mb-12",children:e("bpr.form.publication.licence.text.3")}),d.jsx(Vr,{type:"warning",children:e("bpr.form.publication.licence.text.4")})]})},JI=()=>{const{t:e}=ue();return[{value:"bpr.subjectArea.artActivity",label:e("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:e("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:e("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:e("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:e("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:e("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:e("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:e("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:e("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:e("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:e("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:e("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:e("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:e("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:e("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:e("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:e("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:e("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:e("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:e("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:e("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:e("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:e("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:e("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:e("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:e("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:e("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:e("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:e("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:e("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:e("bpr.subjectArea.technology")},{value:"bpr.other",label:e("bpr.other")}]},ZI=({control:e,selectedSubjectAreas:t,selectSubjects:n})=>{const r=JI(),{t:s}=ue();return d.jsx("div",{className:"col d-flex",children:d.jsx(Jc,{name:"subjectArea",control:e,rules:{required:!0},render:({field:{onChange:i}})=>d.jsxs(Ee,{block:!0,overflow:!0,children:[d.jsx(Ee.Trigger,{size:"md",label:s("bpr.form.publication.discipline"),badgeContent:t==null?void 0:t.length}),d.jsx(Ee.Menu,{children:r.map((o,l)=>d.jsx(Ee.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},l))})]})})})};function B0({formData:e}){const{t}=ue(),n=r=>r.match(/^\s/);return d.jsxs(d.Fragment,{children:[d.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),d.jsx("p",{className:"pt-24 pb-24",children:d.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),d.jsxs("ul",{children:[n(e.title)&&d.jsx("li",{className:"pt-2 pb-2",children:d.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),n(e.description)&&d.jsx("li",{className:"pt-2 pb-2",children:d.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}function e6({result:e}){const{t}=ue();return d.jsxs(d.Fragment,{children:[d.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),d.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),d.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),e.details.front_url&&d.jsx("p",{className:"pt-24 pb-24",children:d.jsx("a",{className:"button right-magnet",href:e.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}function t6({onSuccess:e,resource:t}){const{user:n,appCode:r}=Te(),s=ht(),[i,o]=S.useState(t.thumbnail||""),{control:l,register:a,watch:u,setValue:c,handleSubmit:f,formState:{errors:p,isSubmitting:h,isDirty:y,isValid:w}}=sb({mode:"onChange"}),[x,g]=S.useState([]),[m,v]=S.useState([]),b=(L,A,N)=>{let M=[...A];const D=M.findIndex(k=>k===L);A.includes(L)?M=A.filter((k,I)=>I!==D):M=[...A,L],N(M)};return{control:l,cover:i,formState:{errors:p,isSubmitting:h,isDirty:y,isValid:w},handleDeleteImage:()=>o(""),handlePublish:async L=>{const A=n?n==null?void 0:n.userId:"";try{let N=new Blob;typeof i=="string"?N=await ae.http().get(i,{responseType:"blob"}):i?N=await ae.http().get(URL.createObjectURL(i),{responseType:"blob"}):t.thumbnail&&(N=await ae.http().get(t.thumbnail,{responseType:"blob"}));const M=await ae.http().get(`/userbook/avatar/${A}?thumbnail=48x48`,{responseType:"blob"}),D=await ae.http().get(`/directory/user/${A}/attachment-school`,{responseType:"json"}),k=wg[r],I={activityType:x,age:[L.ageMin,L.ageMax],application:k,cover:N,description:L.description,keyWords:L.keyWords,language:L.language,licence:"CC-BY",resourceId:t.assetId,resourceEntId:t.assetId,subjectArea:m,teacherAvatar:M,title:L.title,userId:A,userStructureName:D.name||(n==null?void 0:n.structureNames[0])},z=await ae.resource(r).publish(I);z.success?s.success(d.jsx(e6,{result:z}),{duration:1e4}):s.error(d.jsx(B0,{formData:L})),e==null||e()}catch(N){console.error(N),s.error(d.jsx(B0,{formData:L}))}},handleSubmit:f,handleUploadImage:L=>o(L),register:a,selectActivities:L=>{b(L,x,g)},selectedActivities:x,selectedSubjectAreas:m,selectSubjects:L=>{b(L,m,v)},setValue:c,watch:u}}function n6({isOpen:e,resource:t,onSuccess:n,onCancel:r}){const{currentApp:s}=Te(),{t:i}=ue(),{control:o,cover:l,formState:{isDirty:a,isValid:u,isSubmitting:c},handleDeleteImage:f,handleSubmit:p,handleUploadImage:h,handlePublish:y,register:w,selectActivities:x,selectedActivities:g,selectedSubjectAreas:m,selectSubjects:v}=t6({resource:t,onSuccess:n}),b="bpr.form.publication.age.min",E="bpr.form.publication.age.max";return vr.createPortal(d.jsxs(Re,{isOpen:e,onModalClose:r,id:"libraryModal",size:"lg",children:[d.jsx(Re.Header,{onModalClose:r,children:i("bpr.publish")}),d.jsx(Re.Subtitle,{children:i("bpr.form.tip")}),d.jsxs(Re.Body,{children:[d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.general")}),d.jsxs("form",{id:"libraryModalForm",onSubmit:p(y),children:[d.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[d.jsxs("div",{style:{maxWidth:"160px"},children:[d.jsx("div",{className:"form-label",children:i("bpr.form.publication.cover.title")}),d.jsx(Cg,{app:s,src:t.thumbnail,label:i("bpr.form.publication.cover.upload.label"),addButtonLabel:i("bpr.form.publication.cover.upload.add"),deleteButtonLabel:i("bpr.form.publication.cover.upload.remove"),onUploadImage:h,onDeleteImage:f,className:"align-self-center"}),!l&&d.jsx("p",{className:"form-text is-invalid",children:d.jsx("em",{children:i("bpr.form.publication.cover.upload.required.image")})})]}),d.jsxs("div",{className:"flex-fill",children:[d.jsxs(Qe,{id:"title",className:"mb-16",isRequired:!0,children:[d.jsx(_s,{children:i("bpr.form.publication.title")}),d.jsx(rs,{type:"text",defaultValue:t.name,...w("title",{required:!0}),placeholder:i("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),d.jsxs(Qe,{id:"description",isRequired:!0,children:[d.jsx(_s,{children:i("bpr.form.publication.description")}),d.jsx(jg,{...w("description",{required:!0}),placeholder:i("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),d.jsx("hr",{}),d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.infos")}),d.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[d.jsx(WI,{control:o,selectedActivities:g,selectActivities:x}),d.jsx(ZI,{control:o,selectedSubjectAreas:m,selectSubjects:v}),d.jsx(XI,{control:o})]}),d.jsxs("div",{className:"mb-24",children:[d.jsx("label",{htmlFor:"",className:"form-label",children:i("bpr.form.publication.age")}),d.jsxs("div",{className:"d-flex gap-8",children:[d.jsx("div",{className:"col col-2",children:d.jsx(z0,{control:o,name:"ageMin",placeholderOption:b,validate:(T,C)=>parseInt(T)<=parseInt(C.ageMax)})}),d.jsx("div",{className:"col col-2",children:d.jsx(z0,{control:o,name:"ageMax",placeholderOption:E,validate:(T,C)=>parseInt(T)>=parseInt(C.ageMin)})})]})]}),d.jsx("div",{className:"mb-24",children:d.jsxs(Qe,{id:"keywords",isOptional:!0,children:[d.jsx(_s,{children:i("bpr.form.publication.keywords")}),d.jsx(rs,{type:"text",...w("keyWords"),size:"md",placeholder:i("bpr.form.publication.keywords.placeholder")})]})}),d.jsx("hr",{}),d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.licence.text")}),d.jsx(YI,{})]})]}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:i("cancel")}),d.jsx(ze,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:c,disabled:!l||c||!a||!u,children:i("bpr.form.submit")})]})]}),document.getElementById("portal"))}const r6=({watch:e,selectedResource:t})=>{const[n,r]=S.useState(""),[s,i]=S.useState(!!(t!=null&&t.public)||!1),o=S.useId(),l=e("title"),{t:a}=ue(),u=ht(),c=`${A2({foo:`${l}${o}`})}-${_2(l)}`;S.useEffect(()=>{if(s){let h="";t&&t.slug?h=t.slug:h=c,r(h)}},[s,t,l,o,c]);function f(h){i(h)}function p(){navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}/pub/${n}`),u.success(a("explorer.copy.clipboard"))}return{slug:n,uniqueId:o,isPublic:s,resourceName:l,onPublicChange:f,onCopyToClipBoard:p}},s6=({isUpdating:e,selectedResource:t})=>{const[n,r]=S.useState(e&&(t==null?void 0:t.thumbnail)||"");return{thumbnail:n,handleDeleteImage:()=>r(""),handleUploadImage:o=>r(o)}},i6=({appCode:e,isPublic:t,onCopyToClipBoard:n,onPublicChange:r,register:s,slug:i,resourceName:o})=>{const{t:l}=ue();return d.jsxs(d.Fragment,{children:[d.jsxs(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:[l("explorer.resource.editModal.heading.access"),e]}),d.jsx(Vr,{type:"info",children:l("explorer.resource.editModal.access.alert")}),d.jsxs(Qe,{id:"flexSwitchCheckDefault",className:"form-switch d-flex gap-8 mt-16 mb-8",children:[d.jsx(Qe.Input,{type:"checkbox",role:"switch",...s("enablePublic",{disabled:!t&&!o,onChange:a=>{r(a.target.checked)}}),className:"form-check-input mt-0",size:"md"}),d.jsx(Qe.Label,{className:"form-check-label mb-0",children:l("explorer.resource.editModal.access.flexSwitchCheckDefault.label")})]}),t&&d.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-4",children:[d.jsxs("p",{className:"text-break",children:[window.location.origin,window.location.pathname,"/pub/",i]}),d.jsx(ze,{color:"primary",disabled:!t,onClick:n,type:"button",leftIcon:d.jsx(OT,{}),variant:"ghost",className:"text-nowrap",children:l("explorer.resource.editModal.access.url.button")})]})]})},Ac=(e,t)=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},o6=({isOpen:e,actions:t,onCancel:n,onSuccess:r,...s})=>{var i,o,l,a,u,c;const{appCode:f,currentApp:p}=Te(),{t:h}=ue(),{mode:y}=s,w=S.useId(),x=y==="create",g=y==="update",{watch:m,register:v,handleSubmit:b,formState:{isSubmitting:E,isValid:T}}=sb({mode:"onChange",defaultValues:{description:g?(i=s.selectedResource)==null?void 0:i.description:"",enablePublic:g?(o=s.selectedResource)==null?void 0:o.public:!1,title:g?(l=s.selectedResource)==null?void 0:l.name:""}}),{slug:C,uniqueId:R,isPublic:j,resourceName:L,onPublicChange:A,onCopyToClipBoard:N}=r6({watch:m,selectedResource:g?s.selectedResource:void 0}),M=ht(),{thumbnail:D,handleDeleteImage:k,handleUploadImage:I}=s6({isUpdating:g}),z=async function(_){var $,V;try{const ne={description:_.description||"",name:_.title,public:_.enablePublic,thumbnail:D},re=`${A2({foo:`${_.title}${R}`})}-${_2(_.title)}`;x?await s.createResource.mutateAsync({...ne,folder:(($=s.currentFolder)==null?void 0:$.id)==="default"?void 0:parseInt(((V=s.currentFolder)==null?void 0:V.id)||""),slug:_.enablePublic?re:"",app:f}):await s.updateResource.mutateAsync({...ne,slug:_.enablePublic?s.selectedResource&&s.selectedResource.slug?s.selectedResource.slug:re:"",entId:s.selectedResource.assetId,trashed:s.selectedResource.trashed}),M.success(d.jsxs(d.Fragment,{children:[d.jsx("strong",{children:h(x?"explorer.resource.created":"explorer.resource.updated")}),d.jsxs("p",{children:[h("title")," : ",_.title]}),d.jsxs("p",{children:[h("description")," : ",_.description]}),f===Ho.BLOG&&d.jsxs("p",{children:["Public:",_.enablePublic?h("explorer.enable.public.yes"):h("explorer.enable.public.no")]})]})),r()}catch(ne){console.error(ne)}};return vr.createPortal(d.jsxs(Re,{id:`${y}-resource`,size:"lg",isOpen:e,onModalClose:n,children:[d.jsx(Re.Header,{onModalClose:n,children:h(`explorer.resource.editModal.header.${x?"create":"edit"}`)}),d.jsxs(Re.Body,{children:[d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:h("explorer.resource.editModal.heading.general")}),d.jsxs("form",{id:w,onSubmit:b(z),children:[d.jsxs("div",{className:"d-block d-md-flex gap-16 mb-24",children:[d.jsx("div",{children:d.jsx(Cg,{app:p,src:g&&((a=s.selectedResource)==null?void 0:a.thumbnail)||"",label:h("explorer.imagepicker.label"),addButtonLabel:h("explorer.imagepicker.button.add"),deleteButtonLabel:h("explorer.imagepicker.button.delete"),onUploadImage:I,onDeleteImage:k,className:"align-self-center mt-8"})}),d.jsxs("div",{className:"col",children:[d.jsxs(Qe,{id:"title",className:"mb-16",isRequired:!0,children:[d.jsx(_s,{children:h("title")}),d.jsx(rs,{type:"text",defaultValue:g?(u=s.selectedResource)==null?void 0:u.name:"",...v("title",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:h("explorer.resource.editModal.title.placeholder"),size:"md","aria-required":!0})]}),d.jsxs(Qe,{id:"description",isOptional:!0,children:[d.jsx(_s,{children:h("description")}),d.jsx(jg,{defaultValue:g?(c=s.selectedResource)==null?void 0:c.description:"",...v("description"),placeholder:h("explorer.resource.editModal.description.placeholder"),size:"md"})]})]})]}),f===Ho.BLOG&&Ac({workflow:"createPublic",actions:t})&&d.jsx(i6,{appCode:f,isPublic:j,slug:C,onCopyToClipBoard:N,onPublicChange:A,register:v,resourceName:L})]})]}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:h("explorer.cancel")}),d.jsx(ze,{form:w,type:"submit",color:"primary",isLoading:E,variant:"filled",disabled:!T||E,children:h(x?"explorer.create":"save")})]})]}),document.getElementById("portal"))},a6=o6;function l6({radioPublicationValue:e,onRadioPublicationChange:t}){const{appCode:n}=Te(),{t:r}=ue(n);return d.jsxs(d.Fragment,{children:[d.jsx("hr",{}),d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("explorer.publication.steps")}),d.jsx(Nc,{label:r("explorer.immediat.publication"),id:"publication-now",name:"publication",value:"IMMEDIATE",model:e,checked:e==="IMMEDIATE",onChange:s=>t(s.target.value)}),d.jsx(Nc,{label:r("explorer.validate.publication"),id:"publication-validate",name:"publication",value:"RESTRAINT",checked:e==="RESTRAINT",model:e,onChange:s=>t(s.target.value)})]})}const u6={searchInputValue:"",searchResults:[],searchAPIResults:[],searchPending:!1,isLoading:!1};function c6(e,t){switch(t.type){case"onChange":return{...e,searchInputValue:t.payload};case"isSearching":return{...e,isLoading:t.payload};case"addResult":return{...e,searchResults:t.payload};case"addApiResult":return{...e,searchAPIResults:t.payload};case"updateSearchResult":return{...e,searchResults:t.payload};case"emptyResult":return{...e,searchResults:t.payload};default:throw new Error("Unhandled action type")}}const Ff=[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}],d6=({resource:e,shareRights:t,shareDispatch:n})=>{const[r,s]=S.useReducer(c6,u6),i=wS(r.searchInputValue,500),{isAdml:o}=CS(),{appCode:l}=Te();S.useEffect(()=>{u(i)},[i]);const a=y=>{const w=y.target.value;s({type:"onChange",payload:w})},u=async y=>{if(s({type:"isSearching",payload:!0}),!o&&y.length>=1||o&&y.length>=3){const w=await ae.share().searchShareSubjects(l,e.assetId,y);s({type:"addApiResult",payload:w});const x=w.filter(g=>!t.rights.find(m=>m.id===g.id)).filter(g=>!(g.type==="user"&&g.id===e.creatorId)).map(g=>({value:g.id,label:g.displayName,icon:g.type==="sharebookmark"?Rm:null}));s({type:"addResult",payload:x})}else s({type:"emptyResult",payload:[]}),Promise.resolve();s({type:"isSearching",payload:!1})};return{state:r,showSearchAdmlHint:()=>o&&r.searchInputValue.length<3,showSearchLoading:()=>r.searchPending&&r.searchInputValue.length>0,showSearchNoResults:()=>!r.searchPending&&!o&&i.length>0&&r.searchResults.length===0||!r.searchPending&&o&&i.length>3&&r.searchResults.length===0,handleSearchInputChange:a,handleSearchResultsChange:async y=>{const w=r.searchAPIResults.find(x=>x.id===y[0]);if(w){let x=[];if(w.type==="sharebookmark"){const g=await ae.directory().getBookMarkById(w.id);x.push({...g,type:"sharebookmark",avatarUrl:"",directoryUrl:"",actions:Ff}),g==null||g.users.filter(m=>!t.rights.find(v=>v.id===m.id)).forEach(m=>{x.push({...m,type:"user",avatarUrl:"",directoryUrl:"",actions:Ff,isBookmarkMember:!0})}),g.groups.filter(m=>!t.rights.find(v=>v.id===m.id)).forEach(m=>{x.push({...m,type:"group",avatarUrl:"",directoryUrl:"",actions:Ff,isBookmarkMember:!0})})}else x=[{...w,actions:[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}]}];n({type:"updateShareRights",payload:{...t,rights:[...t.rights,...x]}}),s({type:"updateSearchResult",payload:r.searchResults.filter(g=>g.value!==y[0])})}}}},f6={isSharing:!1,shareRights:{rights:[],visibleBookmarks:[],visibleGroups:[],visibleUsers:[]},shareRightActions:[]};function p6(e,t){switch(t.type){case"init":return{...e,...t.payload};case"deleteRow":return{...e,shareRights:t.payload};case"updateShareRights":return{...e,shareRights:t.payload};case"toggleRight":return{...e,shareRights:t.payload};case"isSharing":return{...e,isSharing:!0};default:throw new Error("Unhandled action type")}}function h6({onSuccess:e,resource:t,updateResource:n,shareResource:r}){const{appCode:s}=Te(),{user:i,avatar:o}=Ed(),[l,a]=S.useReducer(p6,f6);return S.useEffect(()=>{(async()=>{const h=await ae.share().getActionsForApp(s),y=await ae.share().getRightsForResource(s,t.assetId);a({type:"init",payload:{shareRightActions:h,shareRights:y}})})()},[]),{state:l,dispatch:a,currentIsAuthor:()=>!!(t&&t.creatorId===(i==null?void 0:i.userId)),myAvatar:o,handleDeleteRow:h=>{a({type:"deleteRow",payload:{...l.shareRights,rights:l.shareRights.rights.filter(y=>{var w,x;return y.id!==h.id&&!((w=h.users)!=null&&w.find(g=>g.id===y.id))&&!((x=h.groups)!=null&&x.find(g=>g.id===y.id))})}})},handleShare:async h=>{a({type:"isSharing",payload:!0});try{const y=t.rights.filter(x=>i&&x.includes(`user:${i.userId}`)).map(x=>x.split(":")[2]).filter(x=>!!x),w=[...l.shareRights.rights];if(y.length>0){const x=y.map(g=>({displayName:g,id:g}));w.push({actions:x,avatarUrl:"",directoryUrl:"",displayName:i.username,id:i.userId,type:"user"})}s==="blog"?await n.mutateAsync(h):await n.mutateAsync({entId:t.assetId||"",trashed:t.trashed||!1,name:t.name||"",thumbnail:t.thumbnail||"",description:t.description||"",public:t.public||!1,slug:t.slug||""}),await r.mutateAsync({resourceId:t.assetId,rights:w}),e==null||e()}catch(y){console.error("Failed to save share",y)}finally{a({type:"isSharing",payload:!1})}},toggleRight:(h,y)=>{var w,x;const{rights:g,...m}=l.shareRights,v=[...g],b=v.findIndex(C=>C.id===h.id),E=l.shareRightActions.filter(C=>C.id===y)[0];if(v[b].actions.findIndex(C=>C.id===y)>-1){let C=v[b].actions.filter(j=>j.id!==y);const R=l.shareRightActions.filter(j=>{var L;return(L=j.requires)==null?void 0:L.includes(y)});C=C.filter(j=>!R.find(L=>L.id===j.id)),v[b]={...v[b],actions:C}}else{const C=l.shareRightActions.filter(R=>{var j;return((j=E.requires)==null?void 0:j.includes(R.id))&&!v[b].actions.find(L=>L.id===R.id)});v[b]={...v[b],actions:[...v[b].actions,E,...C]}}h.type==="sharebookmark"&&((w=v[b].users)==null||w.forEach(C=>{const R=v.findIndex(j=>j.id===C.id);v[R]={...v[R],actions:v[b].actions}}),(x=v[b].groups)==null||x.forEach(C=>{const R=v.findIndex(j=>j.id===C.id);v[R]={...v[R],actions:v[b].actions}})),a({type:"toggleRight",payload:{rights:v,...m}})}}}function m6({resource:e}){const{assetId:t,description:n,thumbnail:r,name:s,public:i,trashed:o,slug:l,"publish-type":a}=e||{"publish-type":"",assetId:"",description:"",name:"",public:!1,slug:"",thumbnail:"",trashed:!1},[u,c]=S.useState(a||"RESTRAINT"),[f,p]=S.useState({description:n||"",entId:t,name:s,public:!!i,slug:l||"",thumbnail:r,trashed:o,"publish-type":a});return S.useEffect(()=>{u&&p(y=>({...y,"publish-type":u}))},[u]),{radioPublicationValue:u,shareBlogPayload:f,handleRadioPublicationChange:async y=>{c(y)}}}const g6=({shareRights:e,shareDispatch:t})=>{const n=ht(),{t:r}=ue(),s=S.useRef(null),[i,o]=S.useState({name:"",id:S.useId()}),[l,a]=yg(!1),[u,c]=S.useState(!1),f=()=>{a()},p=()=>{o(w=>{var x;return{...w,name:((x=s.current)==null?void 0:x.value)||""}})},h=async w=>{try{const x=await ae.directory().saveBookmarks(w,{users:e.rights.filter(g=>g.type==="user").map(g=>g.id),groups:e.rights.filter(g=>g.type==="group").map(g=>g.id),bookmarks:e.rights.filter(g=>g.type==="sharebookmark").map(g=>g.id)});n.success(r("explorer.bookmarked.status.saved")),t({type:"updateShareRights",payload:{...e,visibleBookmarks:[...e.visibleBookmarks,{displayName:w,id:x.id}]}}),o(g=>({...g,bookmarkId:g.id+new Date().getTime().toString()})),c(!1)}catch(x){console.error("Failed to save bookmark",x),n.error(r("explorer.bookmarked.status.error"))}};return{refBookmark:s,showBookmark:l,showBookmarkInput:u,bookmark:i,handleBookmarkChange:p,setBookmark:o,handleOnSave:()=>{var w;const x=((w=s.current)==null?void 0:w.value)||"";h(x)},toggleBookmark:f,toggleBookmarkInput:c}},v6=({bookmark:e,refBookmark:t,onBookmarkChange:n,onSave:r})=>{const{t:s}=ue();return d.jsx("div",{className:"mt-16",children:d.jsxs(Qe,{id:"bookmarkName",className:"d-flex flex-wrap align-items-center gap-16",children:[d.jsx("div",{className:"flex-fill",children:d.jsx(Qe.Input,{ref:t,onChange:n,placeholder:s("explorer.modal.share.sharebookmark.placeholder"),size:"sm",type:"text"},e.id)}),d.jsx(ze,{type:"button",color:"primary",variant:"ghost",disabled:e.name.length===0,leftIcon:d.jsx(t5,{}),onClick:r,className:"text-nowrap",children:s("explorer.modal.share.sharebookmark.save")})]})})},y6=(e,t)=>e.actions.filter(n=>t.id===n.id).length>0,w6=(e,t)=>e.isBookmarkMember&&t||!e.isBookmarkMember,x6=({shareRights:e,showBookmark:t,toggleBookmark:n,shareRightActions:r,toggleRight:s,onDeleteRow:i})=>{const{t:o}=ue();return e==null?void 0:e.rights.map(l=>w6(l,t)&&d.jsxs("tr",{className:l.isBookmarkMember?"bg-light":"",children:[d.jsxs("td",{children:[l.type!=="sharebookmark"&&d.jsx(Ws,{alt:o("explorer.modal.share.avatar.shared.alt"),size:"xs",src:l.avatarUrl,variant:"circle"}),l.type==="sharebookmark"&&d.jsx(Rm,{})]}),d.jsx("td",{children:d.jsxs("div",{className:"d-flex",children:[l.type==="sharebookmark"&&d.jsx(ze,{color:"tertiary",rightIcon:d.jsx(Na,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:t?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal ps-0",onClick:n,children:l.displayName}),l.type!=="sharebookmark"&&l.displayName]})}),r.map(a=>d.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:d.jsx(Cd,{checked:y6(l,a),onChange:()=>s(l,a.id)})},a.displayName)),d.jsx("td",{children:!l.isBookmarkMember&&d.jsx(hr,{"aria-label":"Delete",color:"tertiary",icon:d.jsx(ob,{}),type:"button",variant:"ghost",title:"Delete",onClick:()=>i(l)})})]},l.id))};function b6({isOpen:e,resource:t,updateResource:n,shareResource:r,onSuccess:s,onCancel:i}){const{appCode:o}=Te(),{radioPublicationValue:l,shareBlogPayload:a,handleRadioPublicationChange:u}=m6({resource:t}),{state:{isSharing:c,shareRights:f,shareRightActions:p},dispatch:h,myAvatar:y,currentIsAuthor:w,handleShare:x,toggleRight:g,handleDeleteRow:m}=h6({resource:t,updateResource:n,shareResource:r,onSuccess:s}),{state:{searchResults:v,searchInputValue:b},showSearchAdmlHint:E,showSearchLoading:T,showSearchNoResults:C,handleSearchInputChange:R,handleSearchResultsChange:j}=d6({resource:t,shareRights:f,shareDispatch:h}),{refBookmark:L,showBookmark:A,handleBookmarkChange:N,toggleBookmark:M,bookmark:D,handleOnSave:k,showBookmarkInput:I,toggleBookmarkInput:z}=g6({shareRights:f,shareDispatch:h}),{t:_}=ue(),$=E()?_("explorer.search.adml.hint"):_("explorer.modal.share.search.placeholder");return vr.createPortal(d.jsxs(Re,{id:"share_modal",size:"lg",isOpen:e,onModalClose:i,children:[d.jsx(Re.Header,{onModalClose:i,children:_("share.title")}),d.jsxs(Re.Body,{children:[d.jsx(an,{headingStyle:"h4",level:"h3",className:"mb-16",children:_("explorer.modal.share.usersWithAccess")}),d.jsx("div",{className:"table-responsive",children:d.jsxs("table",{className:"table border align-middle mb-0",children:[d.jsx("thead",{className:"bg-secondary",children:d.jsxs("tr",{children:[d.jsx("th",{scope:"col",className:"w-32",children:d.jsx(sr,{children:_("explorer.modal.share.avatar.shared.alt")})}),d.jsx("th",{scope:"col",children:d.jsx(sr,{children:_("explorer.modal.share.search.placeholder")})}),p.map(V=>d.jsx("th",{scope:"col",className:"text-center text-white",children:_(V.displayName)},V.displayName)),d.jsx("th",{scope:"col",children:d.jsx(sr,{children:_("close")})})]})}),d.jsxs("tbody",{children:[w()&&d.jsxs("tr",{children:[d.jsx("th",{scope:"row",children:d.jsx(Ws,{alt:_("explorer.modal.share.avatar.me.alt"),size:"xs",src:y,variant:"circle"})}),d.jsx("td",{children:_("share.me")}),p.map(V=>d.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:d.jsx(Cd,{checked:!0,disabled:!0})},V.displayName)),d.jsx("td",{})]}),d.jsx(x6,{showBookmark:A,shareRightActions:p,shareRights:f,onDeleteRow:m,toggleRight:g,toggleBookmark:M})]})]})}),d.jsxs("div",{className:"mt-16",children:[d.jsx(ze,{color:"tertiary",leftIcon:d.jsx(Rm,{}),rightIcon:d.jsx(Na,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:I?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal",onClick:()=>z(!I),children:_("share.save.sharebookmark")}),I&&d.jsx(v6,{refBookmark:L,bookmark:D,onBookmarkChange:N,onSave:k})]}),d.jsx("hr",{}),d.jsxs(an,{headingStyle:"h4",level:"h3",className:"mb-16 d-flex align-items-center",children:[d.jsx("div",{className:"me-8",children:_("explorer.modal.share.search")}),d.jsx(OE,{message:"Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.",placement:"top",children:d.jsx(lb,{className:"c-pointer",height:"18"})})]}),d.jsx("div",{className:"row",children:d.jsx("div",{className:"col-10",children:d.jsx(pE,{value:b,placeholder:$,isLoading:T(),noResult:C(),options:v,onSearchInputChange:R,onSearchResultsChange:j})})}),o==="blog"&&d.jsx(l6,{radioPublicationValue:l,onRadioPublicationChange:u})]}),d.jsxs(Re.Footer,{children:[d.jsx(ze,{type:"button",color:"tertiary",variant:"ghost",onClick:i,children:_("explorer.cancel")}),d.jsx(ze,{type:"button",color:"primary",variant:"filled",isLoading:c,onClick:()=>x(a),disabled:c,children:_("share")})]})]}),document.getElementById("portal"))}function $f({children:e}){return d.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function zf({children:e,className:t,...n}){const r=J("navbar",t);return d.jsx("nav",{className:r,...n,children:e})}function V0({children:e,className:t,...n}){const r=J("navbar-nav",t);return d.jsx("ul",{className:r,...n,children:e})}const _e=S.forwardRef(({children:e,className:t,...n},r)=>{const s=J("nav-item",t);return d.jsx("li",{ref:r,className:s,...n,children:e})});_e.displayName="NavItem";function Mo({link:e,className:t,children:n,translate:r,...s}){const i=J("nav-link",t);return d.jsxs("a",{href:e,className:i,...s,children:[n,r&&d.jsx(sr,{children:d.jsx("span",{className:"nav-text",children:r})})]})}const S6=()=>{const{t:e}=ue();return d.jsx("div",{className:"widget-footer",children:d.jsx("div",{className:"widget-footer-action",children:d.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},E6=({bookmarkedApps:e})=>{const{t}=ue();return d.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&d.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>d.jsx("a",{href:n.address,className:"bookmarked-app",children:d.jsx(qs,{app:n,size:"32"})},r))]})};function U0({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=ue(),o=()=>{t(!1)};return e?vr.createPortal(d.jsxs(Re,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[d.jsx(Re.Header,{onModalClose:o,children:i("navbar.help")}),d.jsx(Re.Subtitle,{children:s?i("help.notfound.title"):n}),d.jsx(Re.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}function C6(){var e;const{appCode:t}=Te(),{theme:n}=bd(),[r,s]=S.useState(""),[i,o]=S.useState(!0),[l,a]=S.useState(!1),[u,c]=S.useState(!1),f=n!=null&&n.is1d?"/help-1d":"/help-2d";S.useEffect(()=>{(async()=>{let x="";x=f+"/application/"+t+"/",!t&&window.location.pathname!=="/adapter"?x=f+"/application/portal/":window.location.pathname==="/adapter"?x=f+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?x=f+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(x=f+"/application/userbook/");try{const g=await fetch(x),m=await g.text();if(g.status===404){c(!0);return}s(m),c(!1)}catch(g){c(!0),console.error(g)}})()},[t,f]);const h=ds(r,{replace:x=>{const g=x;if(g.attribs&&g.attribs.id==="TOC")return d.jsxs("nav",{id:"TOC",children:[d.jsx(ze,{onClick:()=>{o(!i)},children:d.jsx(TT,{})}),ru(g.children,{replace:m=>{const v=m;if(v.attribs&&v.name==="ul")return d.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:ru(v.children,{replace:b=>{const E=b;if(E.attribs&&E.name==="a")return d.jsx("a",{...Lf(E.attribs),children:d.jsx("span",{onClick:()=>{o(!1)},children:ru(E.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const m=Lf(x.attribs);return d.jsx("div",{...m,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:ru(g.children,{replace:v=>{const b=v;if(b.attribs&&b.name==="img"){const E=v.attribs.src;return d.jsx("img",{...Lf(b.attribs),src:`${f}/${E}`,alt:""})}}})})}}}),y=(e=h==null?void 0:h.props)==null?void 0:e.children.find(x=>x.type==="body").props.children,w=y==null?void 0:y.find(x=>x.type==="p").props.children;return{html:r,visibility:i,isModalOpen:l,setIsModalOpen:a,parsedContent:y,parsedHeadline:w,error:u}}const LE=()=>{const[e,t]=vg(),n=S.useRef(null),r=S.useId(),{t:s}=ue();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return d.jsxs(_e,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[d.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[d.jsx(BR,{className:"icon search"}),d.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),d.jsx(jd,{id:r,isVisible:t,className:"d-none d-md-flex",children:d.jsxs(Qe,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[d.jsx(Qe.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),d.jsx(bg,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};LE.displayName="SearchEngine";const k6=LE,DE=({is1d:e=!1,src:t=""})=>{const{t:n}=ue(),{messages:r,msgLink:s,zimbraWorkflow:i}=mS(),{user:o,avatar:l}=Ed(),{currentLanguage:a}=Te(),{isModalOpen:u,setIsModalOpen:c,parsedContent:f,parsedHeadline:p,error:h}=C6(),y=J("header",{"no-2d":e,"no-1d":!e}),{title:w,bookmarkedApps:x,appsRef:g,isAppsHovered:m,popoverAppsId:v,userAvatar:b,userName:E,welcomeUser:T,communityWorkflow:C,conversationWorflow:R,searchWorkflow:j,isCollapsed:L,toggleCollapsedNav:A,handleLogout:N}=ES({user:o,avatar:l}),M=r>0;return d.jsx("header",{className:y,children:e?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"container-fluid",children:d.jsxs(zf,{children:[d.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:w}),d.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[d.jsx(Ws,{alt:E,size:"sm",src:b,variant:"circle",width:"32",height:"32"}),d.jsx("span",{className:"navbar-text",children:T})]}),d.jsxs(V0,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[R&&d.jsx(_e,{children:d.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[d.jsx(FR,{className:"icon notification"}),M&&d.jsx($f,{children:r}),d.jsx(sr,{children:n("navbar.messages")})]})}),d.jsx(_e,{children:d.jsx(Mo,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:d.jsx(p2,{className:"icon user"})})}),a==="fr"?d.jsxs(_e,{children:[d.jsxs("button",{className:"nav-link",onClick:()=>{c(!0)},children:[d.jsx(LR,{className:"icon help"}),d.jsx(sr,{children:n("navbar.help")})]}),d.jsx(U0,{isHelpOpen:u,setIsHelpOpen:c,parsedContent:f,parsedHeadline:p,error:h})]}):null,d.jsx(_e,{children:d.jsxs("button",{className:"nav-link",onClick:N,children:[d.jsx(d0,{className:"icon logout"}),d.jsx(sr,{children:n("navbar.disconnect")})]})}),d.jsx(_e,{className:"d-md-none",children:d.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!L,"aria-label":n("navbar.secondary.navigation"),onClick:A,children:d.jsx(Na,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),d.jsx(zf,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:d.jsx("div",{className:"container-fluid",children:d.jsxs("div",{className:`collapse navbar-collapse ${L?"":"show"}`,id:"navbarCollapsed",children:[d.jsx(kh,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),d.jsxs(V0,{className:"gap-8",children:[d.jsx(_e,{children:d.jsxs("a",{href:"/timeline/timeline",className:"button",children:[d.jsx(_R,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),d.jsx(_e,{children:d.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[d.jsx(UR,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),d.jsx(_e,{children:d.jsxs("a",{href:"/welcome",className:"button",children:[d.jsx(f0,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):d.jsx(zf,{className:"navbar-expand-md",children:d.jsxs("div",{className:"container-fluid",children:[d.jsx(kh,{src:`${t}/img/illustrations/logo.png`}),d.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:w}),d.jsxs("ul",{className:"navbar-nav",children:[d.jsx(_e,{children:d.jsx(Mo,{link:"/timeline/timeline",translate:n("navbar.home"),children:d.jsx(PR,{color:"#fff"})})}),d.jsxs(_e,{className:"position-relative",ref:g,id:v,"aria-haspopup":"true","aria-expanded":m,children:[d.jsx(Mo,{link:"/welcome",translate:n("navbar.applications"),children:d.jsx(f0,{color:"#fff"})}),d.jsxs(jd,{className:"top-100 widget",id:v,isVisible:m,children:[d.jsx(kE,{children:d.jsx(E6,{bookmarkedApps:x})}),d.jsx(TE,{className:"widget-footer border-top border-ghost",children:d.jsx(S6,{})})]})]}),R&&d.jsx(_e,{children:d.jsxs(Mo,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[d.jsx(p0,{color:"#fff"}),M&&d.jsx($f,{children:r})]})}),i&&d.jsx(_e,{children:d.jsxs(Mo,{className:"position-relative",link:s,translate:n("conversation"),children:[d.jsx(p0,{color:"#fff"}),M&&d.jsx($f,{children:r})]})}),a==="fr"?d.jsxs(_e,{children:[d.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{c(!0)},children:[d.jsx(NR,{color:"#fff"}),d.jsx(sr,{children:n("support")})]}),d.jsx(U0,{isHelpOpen:u,setIsHelpOpen:c,parsedContent:f,parsedHeadline:p,error:h})]}):null,d.jsx(_e,{children:d.jsxs("div",{className:"dropdown",children:[d.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!L,"aria-label":n("navbar.open.menu"),onClick:A,children:d.jsx(Na,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),d.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${L?"":"show"}`,id:"dropdown-navbar",children:[C&&d.jsx(_e,{children:d.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[d.jsx(kR,{className:"icon community"}),d.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),j?d.jsx(k6,{}):null,d.jsx(_e,{children:d.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[d.jsx(Ws,{alt:E,size:"sm",src:b,variant:"circle",className:"bg-white",width:"32",height:"32"}),d.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),d.jsx(_e,{children:d.jsx("hr",{className:"dropdown-divider"})}),d.jsx(_e,{children:d.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[d.jsx(d0,{className:"icon logout"}),d.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};DE.displayName="Header";const T6=DE;function FE({children:e,className:t,...n}){const r=J("container-fluid",t);return d.jsx("main",{className:r,...n,children:e})}FE.displayName="Main";const $E=({children:e,...t})=>{const{theme:n}=bd();return d.jsxs(d.Fragment,{children:[d.jsx(T6,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),d.jsx(FE,{className:J("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),d.jsx(Hj,{toastOptions:{position:"top-right"}})]})};$E.displayName="Layout";const zE=$E,j6=({children:e})=>d.jsx("div",{className:"widget-footer",children:d.jsx("div",{className:"widget-footer-action",children:d.jsx("a",{href:"/welcome",className:"link",children:e})})}),P6=({children:e})=>d.jsxs("div",{className:"widget-header",children:[d.jsx("div",{className:"subtitle",children:e}),d.jsx("div",{className:"widget-options",children:d.jsx("div",{className:"widget-handle",children:d.jsx("i",{className:"fas fa-grip-vertical"})})})]}),O6=({children:e})=>d.jsx("div",{className:"widget-body p-12 d-flex flex-wrap",children:e});function Sl({children:e}){return d.jsx("div",{className:"widget",children:e})}Sl.Header=P6;Sl.Body=O6;Sl.Footer=j6;Sl.displayName="Widget";const BE=({data:e})=>e.length>0?e.slice(0,6).map((t,n)=>d.jsx("a",{href:t.address,className:"bookmarked-app",children:d.jsx(qs,{app:t,size:"32"})},n)):d.jsx("div",{className:"text-dark mx-auto",children:d.jsx("a",{href:"/welcome",children:"Sélectionner vos applications favorites"})});BE.displayName="BookmarkedApps";const R6=BE,N6=Object.freeze(Object.defineProperty({__proto__:null,ActionBar:nI,Alert:Vr,AppHeader:cS,AppIcon:qs,Avatar:Ws,BookmarkedApps:R6,Breadcrumb:FS,Button:ze,Card:gI,Checkbox:Cd,Column:Eg,Combobox:pE,Dropdown:Ee,EmptyScreen:OI,FormControl:Qe,FormText:ZS,Grid:Ri,Heading:an,IconButton:hr,Image:ho,ImagePicker:Cg,Input:rs,Label:_s,Layout:zE,Library:RI,Loading:xg,LoadingScreen:_t,Logo:kh,Modal:Re,OdeClientContext:hg,OdeClientProvider:fS,OnboardingModal:HI,Popover:jd,PopoverBody:kE,PopoverFooter:TE,PopoverHeader:LI,PublishModal:n6,Radio:Nc,ResourceModal:a6,SearchButton:bg,Select:Tg,ShareModal:b6,TextArea:jg,ThemeContext:mg,ThemeProvider:pS,Tooltip:OE,TreeView:IE,VisuallyHidden:sr,Widget:Sl,isActionAvailable:Ac,libraryMaps:wg,useBookmark:hS,useClickOutside:gg,useConf:pg,useConversation:mS,useDebounce:wS,useDropdown:dE,useDropzone:SS,useHasWorkflow:Oi,useHeader:ES,useHover:vg,useImage:gS,useIsAdml:CS,useKeyPress:vS,useLibraryUrl:oI,useOdeClient:Te,useOdeIcons:Sd,useOdeTheme:bd,usePaths:Ys,useScrollToTop:bS,useSession:dS,useTitle:yS,useToast:ht,useToggle:yg,useTrapFocus:xS,useUser:Ed,useXitiTrackPageLoad:kS},Symbol.toStringTag,{value:"Module"}));var A6=function(){return null},VE,H0=vr;VE=H0.createRoot,H0.hydrateRoot;const ps=document.querySelector("[data-explorer-config]");let q0;function I6(){var e;if((e=ps==null?void 0:ps.dataset)!=null&&e.explorerConfig){const{explorerConfig:t}=ps.dataset;try{const n=JSON.parse(t);q0=Object.assign({},n)}catch(n){console.error("[Explorer Config] could not parse app params from root data attributes:",ps==null?void 0:ps.dataset,n)}}return q0}const W0=e=>{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const f=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},s=()=>t,l={setState:r,getState:s,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{n.clear()}};return t=e(r,s,l),l},_6=e=>e?W0(e):W0;var UE={exports:{}},HE={},qE={exports:{}},WE={};/**
|
|
1
|
+
var Nt=Object.defineProperty;var At=(r,e,t)=>e in r?Nt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var te=(r,e,t)=>(At(r,typeof e!="symbol"?e+"":e,t),t);import{u as Ft,a as G,j as m,I as $t,b as _t,c as z,d as Q,e as X,f as kt,g as Ut,L as H,F as Bt,h as qt,S as Vt,D as se,i as Mt,T as Ht,B as Kt,k as zt,l as Qe,A as Qt,m as Jt,G as Ae,n as Wt,Q as Xt,o as Gt,p as Yt,O as Zt,q as es}from"./edifice-react.js";import{c as ue,g as ht,i as ts,a as ss,r as v,b as rs,u as oe}from"./react.js";import{s as ns,t as is,f as os,u as as}from"./edifice-icons.js";import{odeServices as V,FOLDER as q,APP as Fe}from"/assets/js/edifice-ts-client/index.js";function ls(r,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const n in s)if(n!=="default"&&!(n in r)){const i=Object.getOwnPropertyDescriptor(s,n);i&&Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:()=>s[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();const us="modulepreload",cs=function(r){return"/"+r},Je={},k=function(e,t,s){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(i=>{if(i=cs(i),i in Je)return;Je[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!s)for(let f=n.length-1;f>=0;f--){const d=n[f];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":us,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((f,d)=>{c.addEventListener("load",f),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},fs={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,e){console&&console[r]&&console[r].apply(console,e)}};class Se{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||fs,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,n){return n&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Se(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Se(this.logger,e)}}var K=new Se;class Ee{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(s=>{this.observers[s]=this.observers[s]||[],this.observers[s].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(s=>s!==t)}}emit(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(o=>{o(...s)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[e,...s])})}}function le(){let r,e;const t=new Promise((s,n)=>{r=s,e=n});return t.resolve=r,t.reject=e,t}function We(r){return r==null?"":""+r}function ds(r,e,t){r.forEach(s=>{e[s]&&(t[s]=e[s])})}function Ve(r,e,t){function s(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function n(){return!r||typeof r=="string"}const i=typeof e!="string"?[].concat(e):e.split(".");for(;i.length>1;){if(n())return{};const o=s(i.shift());!r[o]&&t&&(r[o]=new t),Object.prototype.hasOwnProperty.call(r,o)?r=r[o]:r={}}return n()?{}:{obj:r,k:s(i.shift())}}function Xe(r,e,t){const{obj:s,k:n}=Ve(r,e,Object);s[n]=t}function hs(r,e,t,s){const{obj:n,k:i}=Ve(r,e,Object);n[i]=n[i]||[],s&&(n[i]=n[i].concat(t)),s||n[i].push(t)}function ve(r,e){const{obj:t,k:s}=Ve(r,e);if(t)return t[s]}function ps(r,e,t){const s=ve(r,t);return s!==void 0?s:ve(e,t)}function pt(r,e,t){for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in r?typeof r[s]=="string"||r[s]instanceof String||typeof e[s]=="string"||e[s]instanceof String?t&&(r[s]=e[s]):pt(r[s],e[s],t):r[s]=e[s]);return r}function re(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var gs={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ms(r){return typeof r=="string"?r.replace(/[&<>"'\/]/g,e=>gs[e]):r}const ys=[" ",",","?","!",";"];function bs(r,e,t){e=e||"",t=t||"";const s=ys.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(s.length===0)return!0;const n=new RegExp(`(${s.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!n.test(r);if(!i){const o=r.indexOf(t);o>0&&!n.test(r.substring(0,o))&&(i=!0)}return i}function we(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return r[e];const s=e.split(t);let n=r;for(let i=0;i<s.length;++i){if(!n||typeof n[s[i]]=="string"&&i+1<s.length)return;if(n[s[i]]===void 0){let o=2,a=s.slice(i,i+o).join(t),l=n[a];for(;l===void 0&&s.length>i+o;)o++,a=s.slice(i,i+o).join(t),l=n[a];if(l===void 0)return;if(l===null)return null;if(e.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const c=s.slice(i+o).join(t);return c?we(l,c,t):void 0}n=n[s[i]]}return n}function Oe(r){return r&&r.indexOf("_")>0?r.replace("_","-"):r}class Ge extends Ee{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[e,t];s&&typeof s!="string"&&(a=a.concat(s)),s&&typeof s=="string"&&(a=a.concat(i?s.split(i):s)),e.indexOf(".")>-1&&(a=e.split("."));const l=ve(this.data,a);return l||!o||typeof s!="string"?l:we(this.data&&this.data[e]&&this.data[e][t],s,i)}addResource(e,t,s,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,t];s&&(a=a.concat(o?s.split(o):s)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),Xe(this.data,a,n),i.silent||this.emit("added",e,t,s,n)}addResources(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in s)(typeof s[i]=="string"||Object.prototype.toString.apply(s[i])==="[object Array]")&&this.addResource(e,t,i,s[i],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=s,s=t,t=a[1]),this.addNamespaces(t);let l=ve(this.data,a)||{};n?pt(l,s,i):l={...l,...s},Xe(this.data,a,l),o.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var gt={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,e,t,s,n){return r.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,t,s,n))}),e}};const Ye={};class Re extends Ee{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ds(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=K.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const s=this.resolve(e,t);return s&&s.res!==void 0}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=s&&e.indexOf(s)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!bs(e,s,n);if(o&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const c=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(n)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,t,s){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],c=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){const O=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${O}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${O}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:o}const d=this.resolve(e,t);let u=d&&d.res;const p=d&&d.usedKey||o,g=d&&d.exactUsedKey||o,b=Object.prototype.toString.apply(u),x=["[object Number]","[object Function]","[object RegExp]"],w=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject;if(P&&u&&(typeof u!="string"&&typeof u!="boolean"&&typeof u!="number")&&x.indexOf(b)<0&&!(typeof w=="string"&&b==="[object Array]")){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,u,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(d.res=O,d.usedParams=this.getUsedParamsDetails(t),d):O}if(i){const O=b==="[object Array]",C=O?[]:{},L=O?g:p;for(const E in u)if(Object.prototype.hasOwnProperty.call(u,E)){const T=`${L}${i}${E}`;C[E]=this.translate(T,{...t,joinArrays:!1,ns:a}),C[E]===T&&(C[E]=u[E])}u=C}}else if(P&&typeof w=="string"&&b==="[object Array]")u=u.join(w),u&&(u=this.extendTranslation(u,e,t,s));else{let O=!1,C=!1;const L=t.count!==void 0&&typeof t.count!="string",E=Re.hasDefaultValue(t),T=L?this.pluralResolver.getSuffix(c,t.count,t):"",N=t.ordinal&&L?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",Y=t[`defaultValue${T}`]||t[`defaultValue${N}`]||t.defaultValue;!this.isValidLookup(u)&&E&&(O=!0,u=Y),this.isValidLookup(u)||(C=!0,u=o);const B=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:u,Z=E&&Y!==u&&this.options.updateMissing;if(C||O||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,l,o,Z?Y:u),i){const S=this.resolve(o,{...t,keySeparator:!1});S&&S.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let J=[];const h=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&h&&h[0])for(let S=0;S<h.length;S++)J.push(h[S]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(t.lng||this.language):J.push(t.lng||this.language);const y=(S,I,j)=>{const R=E&&j!==u?j:B;this.options.missingKeyHandler?this.options.missingKeyHandler(S,l,I,R,Z,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(S,l,I,R,Z,t),this.emit("missingKey",S,l,I,u)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?J.forEach(S=>{this.pluralResolver.getSuffixes(S,t).forEach(I=>{y([S],o+I,t[`defaultValue${I}`]||Y)})}):y(J,o,Y))}u=this.extendTranslation(u,e,t,d,s),C&&u===o&&this.options.appendNamespaceToMissingKey&&(u=`${l}:${o}`),(C||O)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?u=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,O?u:void 0):u=this.options.parseMissingKeyHandler(u))}return n?(d.res=u,d.usedParams=this.getUsedParamsDetails(t),d):u}extendTranslation(e,t,s,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const c=typeof e=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const u=e.match(this.interpolator.nestingRegexp);f=u&&u.length}let d=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,s.lng||this.language,s),c){const u=e.match(this.interpolator.nestingRegexp),p=u&&u.length;f<p&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&n&&n.res&&(s.lng=n.usedLng),s.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var u=arguments.length,p=new Array(u),g=0;g<u;g++)p[g]=arguments[g];return i&&i[0]===p[0]&&!s.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`),null):o.translate(...p,t)},s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return e!=null&&l&&l.length&&s.applyPostProcessor!==!1&&(e=gt.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,n,i,o,a;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(s))return;const c=this.extractFromKey(l,t),f=c.key;n=f;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const u=t.count!==void 0&&typeof t.count!="string",p=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),g=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",b=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(x=>{this.isValidLookup(s)||(a=x,!Ye[`${b[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Ye[`${b[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${b.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(w=>{if(this.isValidLookup(s))return;o=w;const P=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(P,f,w,x,t);else{let O;u&&(O=this.pluralResolver.getSuffix(w,t.count,t));const C=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(P.push(f+O),t.ordinal&&O.indexOf(L)===0&&P.push(f+O.replace(L,this.options.pluralSeparator)),p&&P.push(f+C)),g){const E=`${f}${this.options.contextSeparator}${t.context}`;P.push(E),u&&(P.push(E+O),t.ordinal&&O.indexOf(L)===0&&P.push(E+O.replace(L,this.options.pluralSeparator)),p&&P.push(E+C))}}let D;for(;D=P.pop();)this.isValidLookup(s)||(i=D,s=this.getResource(w,x,D,t))}))})}),{res:s,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&typeof e.replace!="string";let n=s?e.replace:e;if(s&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const i of t)delete n[i]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,t.length)&&e[s]!==void 0)return!0;return!1}}function $e(r){return r.charAt(0).toUpperCase()+r.slice(1)}class Ze{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=K.create("languageUtils")}getScriptPartFromCode(e){if(e=Oe(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Oe(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let s=e.split("-");return this.options.lowerCaseLng?s=s.map(n=>n.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),t.indexOf(s[1].toLowerCase())>-1&&(s[1]=$e(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),t.indexOf(s[1].toLowerCase())>-1&&(s[1]=$e(s[1].toLowerCase())),t.indexOf(s[2].toLowerCase())>-1&&(s[2]=$e(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const n=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const n=this.getLanguagePartFromCode(s);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(i=>{if(i===n)return i;if(!(i.indexOf("-")<0&&n.indexOf("-")<0)&&i.indexOf(n)===0)return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],i=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),s.forEach(o=>{n.indexOf(o)<0&&i(this.formatLanguageCode(o))}),n}}let xs=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ss={1:function(r){return+(r>1)},2:function(r){return+(r!=1)},3:function(r){return 0},4:function(r){return r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2},5:function(r){return r==0?0:r==1?1:r==2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5},6:function(r){return r==1?0:r>=2&&r<=4?1:2},7:function(r){return r==1?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2},8:function(r){return r==1?0:r==2?1:r!=8&&r!=11?2:3},9:function(r){return+(r>=2)},10:function(r){return r==1?0:r==2?1:r<7?2:r<11?3:4},11:function(r){return r==1||r==11?0:r==2||r==12?1:r>2&&r<20?2:3},12:function(r){return+(r%10!=1||r%100==11)},13:function(r){return+(r!==0)},14:function(r){return r==1?0:r==2?1:r==3?2:3},15:function(r){return r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2},16:function(r){return r%10==1&&r%100!=11?0:r!==0?1:2},17:function(r){return r==1||r%10==1&&r%100!=11?0:1},18:function(r){return r==0?0:r==1?1:2},19:function(r){return r==1?0:r==0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3},20:function(r){return r==1?0:r==0||r%100>0&&r%100<20?1:2},21:function(r){return r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0},22:function(r){return r==1?0:r==2?1:(r<0||r>10)&&r%10==0?2:3}};const vs=["v1","v2","v3"],ws=["v4"],et={zero:0,one:1,two:2,few:3,many:4,other:5};function Os(){const r={};return xs.forEach(e=>{e.lngs.forEach(t=>{r[t]={numbers:e.nr,plurals:Ss[e.fc]}})}),r}class Rs{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=K.create("pluralResolver"),(!this.options.compatibilityJSON||ws.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Os()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Oe(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(e,t);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,s).map(n=>`${t}${n}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(e,t);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((n,i)=>et[n]-et[i]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):s.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(e,s);return n?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const s=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[s];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(n===2?n="plural":n===1&&(n=""));const i=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return this.options.compatibilityJSON==="v1"?n===1?"":typeof n=="number"?`_plural_${n.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!vs.includes(this.options.compatibilityJSON)}}function tt(r,e,t){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=ps(r,e,t);return!i&&n&&typeof t=="string"&&(i=we(r,t,s),i===void 0&&(i=we(e,t,s))),i}class Ps{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=K.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=t.escape!==void 0?t.escape:ms,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?re(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?re(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?re(t.nestingPrefix):t.nestingPrefixEscaped||re("$t("),this.nestingSuffix=t.nestingSuffix?re(t.nestingSuffix):t.nestingSuffixEscaped||re(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(e,t,s,n){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}const f=g=>{if(g.indexOf(this.formatSeparator)<0){const P=tt(t,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(P,void 0,s,{...n,...t,interpolationkey:g}):P}const b=g.split(this.formatSeparator),x=b.shift().trim(),w=b.join(this.formatSeparator).trim();return this.format(tt(t,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,s,{...n,...t,interpolationkey:x})};this.resetRegExp();const d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>c(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?c(this.escape(g)):c(g)}].forEach(g=>{for(a=0;i=g.regex.exec(e);){const b=i[1].trim();if(o=f(b),o===void 0)if(typeof d=="function"){const w=d(e,i,n);o=typeof w=="string"?w:""}else if(n&&Object.prototype.hasOwnProperty.call(n,b))o="";else if(u){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=We(o));const x=g.safeValue(o);if(e=e.replace(i[0],x),u?(g.regex.lastIndex+=o.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,o;function a(l,c){const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const d=l.split(new RegExp(`${f}[ ]*{`));let u=`{${d[1]}`;l=d[0],u=this.interpolate(u,o);const p=u.match(/'/g),g=u.match(/"/g);(p&&p.length%2===0&&!g||g.length%2!==0)&&(u=u.replace(/'/g,'"'));try{o=JSON.parse(u),c&&(o={...c,...o})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,b),`${l}${f}${u}`}return delete o.defaultValue,l}for(;n=this.nestingRegexp.exec(e);){let l=[];o={...s},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const f=n[1].split(this.formatSeparator).map(d=>d.trim());n[1]=f.shift(),l=f,c=!0}if(i=t(a.call(this,n[1].trim(),o),o),i&&n[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=We(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((f,d)=>this.format(f,d,s.lng,{...s,interpolationkey:n[1].trim()}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}function Is(r){let e=r.toLowerCase().trim();const t={};if(r.indexOf("(")>-1){const s=r.split("(");e=s[0].toLowerCase().trim();const n=s[1].substring(0,s[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,"");t[a.trim()]||(t[a.trim()]=c),c==="false"&&(t[a.trim()]=!1),c==="true"&&(t[a.trim()]=!0),isNaN(c)||(t[a.trim()]=parseInt(c,10))})}return{formatName:e,formatOptions:t}}function ne(r){const e={};return function(s,n,i){const o=n+JSON.stringify(i);let a=e[o];return a||(a=r(Oe(n),i),e[o]=a),a(s)}}class Es{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=K.create("formatter"),this.options=e,this.formats={number:ne((t,s)=>{const n=new Intl.NumberFormat(t,{...s});return i=>n.format(i)}),currency:ne((t,s)=>{const n=new Intl.NumberFormat(t,{...s,style:"currency"});return i=>n.format(i)}),datetime:ne((t,s)=>{const n=new Intl.DateTimeFormat(t,{...s});return i=>n.format(i)}),relativetime:ne((t,s)=>{const n=new Intl.RelativeTimeFormat(t,{...s});return i=>n.format(i,s.range||"day")}),list:ne((t,s)=>{const n=new Intl.ListFormat(t,{...s});return i=>n.format(i)})},this.init(e)}init(e){const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ne(t)}format(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce((a,l)=>{const{formatName:c,formatOptions:f}=Is(l);if(this.formats[c]){let d=a;try{const u=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},p=u.locale||u.lng||n.locale||n.lng||s;d=this.formats[c](a,p,{...f,...n,...u})}catch(u){this.logger.warn(u)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}function Ls(r,e){r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)}class js extends Ee{constructor(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=K.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,n.backend,n)}queueLoad(e,t,s,n){const i={},o={},a={},l={};return e.forEach(c=>{let f=!0;t.forEach(d=>{const u=`${c}|${d}`;!s.reload&&this.store.hasResourceBundle(c,d)?this.state[u]=2:this.state[u]<0||(this.state[u]===1?o[u]===void 0&&(o[u]=!0):(this.state[u]=1,f=!1,o[u]===void 0&&(o[u]=!0),i[u]===void 0&&(i[u]=!0),l[d]===void 0&&(l[d]=!0)))}),f||(a[c]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),s&&this.store.addResourceBundle(i,o,s),this.state[e]=t?-1:2;const a={};this.queue.forEach(l=>{hs(l.loaded,[i],o),Ls(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const f=l.loaded[c];f.length&&f.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:i,callback:o});return}this.readingCalls++;const a=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&f&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,s,n+1,i*2,o)},i);return}o(c,f)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const c=l(e,t);c&&typeof c.then=="function"?c.then(f=>a(null,f)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,t,a)}prepareLoading(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t=="string"&&(t=[t]);const i=this.queueLoad(e,t,s,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=e.split("|"),n=s[0],i=s[1];this.read(n,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,o),!o&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,a),this.loaded(e,o,a)})}saveMissing(e,t,s,n,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let f;c.length===5?f=c(e,t,s,n,l):f=c(e,t,s,n),f&&typeof f.then=="function"?f.then(d=>a(null,d)).catch(a):a(null,f)}catch(f){a(f)}else c(e,t,s,n,a,l)}!e||!e[0]||this.store.addResource(e[0],t,s,n)}}}function st(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const s=e[3]||e[2];Object.keys(s).forEach(n=>{t[n]=s[n]})}return t},interpolation:{escapeValue:!0,format:(r,e,t,s)=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function rt(r){return typeof r.ns=="string"&&(r.ns=[r.ns]),typeof r.fallbackLng=="string"&&(r.fallbackLng=[r.fallbackLng]),typeof r.fallbackNS=="string"&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs&&r.supportedLngs.indexOf("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r}function be(){}function Cs(r){Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(t=>{typeof r[t]=="function"&&(r[t]=r[t].bind(r))})}class ce extends Ee{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=rt(e),this.services={},this.logger=K,this.modules={external:[]},Cs(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof t=="function"&&(s=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=st();this.options={...n,...this.options,...rt(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function i(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?K.init(i(this.modules.logger),this.options):K.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Es);const d=new Ze(this.options);this.store=new Ge(this.options.resources,this.options);const u=this.services;u.logger=K,u.resourceStore=this.store,u.languageUtils=d,u.pluralResolver=new Rs(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(u.formatter=i(f),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new Ps(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new js(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var g=arguments.length,b=new Array(g>1?g-1:0),x=1;x<g;x++)b[x-1]=arguments[x];e.emit(p,...b)}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new Re(this.services,this.options),this.translator.on("*",function(p){for(var g=arguments.length,b=new Array(g>1?g-1:0),x=1;x<g;x++)b[x-1]=arguments[x];e.emit(p,...b)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,s||(s=be),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return e.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return e.store[f](...arguments),e}});const l=le(),c=()=>{const f=(d,u)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(u),s(d,u)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be;const n=typeof e=="string"?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(a)})}else s(null)}reloadResources(e,t,s){const n=le();return e||(e=this.languages),t||(t=this.options.ns),s||(s=be),this.services.backendConnector.reload(e,t,i=>{n.resolve(),s(i)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&>.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(e,t){var s=this;this.isLanguageChangingTo=e;const n=le();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,n.resolve(function(){return s.t(...arguments)}),t&&t(l,function(){return s.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,f=>{o(f,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,s){var n=this;const i=function(o,a){let l;if(typeof a!="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),d=2;d<c;d++)f[d-2]=arguments[d];l=n.options.overloadTranslationOptionHandler([o,a].concat(f))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix=l.keyPrefix||s||i.keyPrefix;const u=n.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(o)?p=o.map(g=>`${l.keyPrefix}${u}${g}`):p=l.keyPrefix?`${l.keyPrefix}${u}${o}`:o,n.t(p,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=s,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===2};if(t.precheck){const a=t.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!n||o(i,e)))}loadNamespaces(e,t){const s=le();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{s.resolve(),t&&t(n)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=le();typeof e=="string"&&(e=[e]);const n=this.options.preload||[],i=e.filter(o=>n.indexOf(o)<0);return i.length?(this.options.preload=n.concat(i),this.loadResources(o=>{s.resolve(),t&&t(o)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new Ze(st());return t.indexOf(s.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ce(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be;const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},i=new ce(n);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},s&&(i.store=new Ge(this.store.data,n),i.services.resourceStore=i.store),i.translator=new Re(i.services,n),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];i.emit(a,...c)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const F=ce.createInstance();F.createInstance=ce.createInstance;F.createInstance;F.dir;F.init;F.loadResources;F.reloadResources;F.use;F.changeLanguage;F.getFixedT;const _=F.t;F.exists;F.setDefaultNamespace;F.hasLoadedNamespace;F.loadNamespaces;F.loadLanguages;function ke(r){"@babel/helpers - typeof";return ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(r)}var mt=[],Ds=mt.forEach,Ts=mt.slice;function Ue(r){return Ds.call(Ts.call(arguments,1),function(e){if(e)for(var t in e)r[t]===void 0&&(r[t]=e[t])}),r}function yt(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":ke(XMLHttpRequest))==="object"}function Ns(r){return!!r&&typeof r.then=="function"}function As(r){return Ns(r)?r:Promise.resolve(r)}function Fs(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Be={exports:{}},xe={exports:{}},nt;function $s(){return nt||(nt=1,function(r,e){var t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ue<"u"&&ue,s=function(){function i(){this.fetch=!1,this.DOMException=t.DOMException}return i.prototype=t,new i}();(function(i){(function(o){var a=typeof i<"u"&&i||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function c(h){return h&&DataView.prototype.isPrototypeOf(h)}if(l.arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(h){return h&&f.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function g(h){var y={next:function(){var S=h.shift();return{done:S===void 0,value:S}}};return l.iterable&&(y[Symbol.iterator]=function(){return y}),y}function b(h){this.map={},h instanceof b?h.forEach(function(y,S){this.append(S,y)},this):Array.isArray(h)?h.forEach(function(y){this.append(y[0],y[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(y){this.append(y,h[y])},this)}b.prototype.append=function(h,y){h=u(h),y=p(y);var S=this.map[h];this.map[h]=S?S+", "+y:y},b.prototype.delete=function(h){delete this.map[u(h)]},b.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},b.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},b.prototype.set=function(h,y){this.map[u(h)]=p(y)},b.prototype.forEach=function(h,y){for(var S in this.map)this.map.hasOwnProperty(S)&&h.call(y,this.map[S],S,this)},b.prototype.keys=function(){var h=[];return this.forEach(function(y,S){h.push(S)}),g(h)},b.prototype.values=function(){var h=[];return this.forEach(function(y){h.push(y)}),g(h)},b.prototype.entries=function(){var h=[];return this.forEach(function(y,S){h.push([S,y])}),g(h)},l.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function x(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function w(h){return new Promise(function(y,S){h.onload=function(){y(h.result)},h.onerror=function(){S(h.error)}})}function P(h){var y=new FileReader,S=w(y);return y.readAsArrayBuffer(h),S}function D(h){var y=new FileReader,S=w(y);return y.readAsText(h),S}function O(h){for(var y=new Uint8Array(h),S=new Array(y.length),I=0;I<y.length;I++)S[I]=String.fromCharCode(y[I]);return S.join("")}function C(h){if(h.slice)return h.slice(0);var y=new Uint8Array(h.byteLength);return y.set(new Uint8Array(h)),y.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:l.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:l.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():l.arrayBuffer&&l.blob&&c(h)?(this._bodyArrayBuffer=C(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||d(h))?this._bodyArrayBuffer=C(h):this._bodyText=h=Object.prototype.toString.call(h):this._bodyText="",this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var h=x(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var h=x(this);return h||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(P)}),this.text=function(){var h=x(this);if(h)return h;if(this._bodyBlob)return D(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(Y)}),this.json=function(){return this.text().then(JSON.parse)},this}var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function T(h){var y=h.toUpperCase();return E.indexOf(y)>-1?y:h}function N(h,y){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');y=y||{};var S=y.body;if(h instanceof N){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,y.headers||(this.headers=new b(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!S&&h._bodyInit!=null&&(S=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=y.credentials||this.credentials||"same-origin",(y.headers||!this.headers)&&(this.headers=new b(y.headers)),this.method=T(y.method||this.method||"GET"),this.mode=y.mode||this.mode||null,this.signal=y.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&S)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(S),(this.method==="GET"||this.method==="HEAD")&&(y.cache==="no-store"||y.cache==="no-cache")){var I=/([?&])_=[^&]*/;if(I.test(this.url))this.url=this.url.replace(I,"$1_="+new Date().getTime());else{var j=/\?/;this.url+=(j.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}N.prototype.clone=function(){return new N(this,{body:this._bodyInit})};function Y(h){var y=new FormData;return h.trim().split("&").forEach(function(S){if(S){var I=S.split("="),j=I.shift().replace(/\+/g," "),R=I.join("=").replace(/\+/g," ");y.append(decodeURIComponent(j),decodeURIComponent(R))}}),y}function ze(h){var y=new b,S=h.replace(/\r?\n[\t ]+/g," ");return S.split("\r").map(function(I){return I.indexOf(`
|
|
2
|
+
`)===0?I.substr(1,I.length):I}).forEach(function(I){var j=I.split(":"),R=j.shift().trim();if(R){var me=j.join(":").trim();y.append(R,me)}}),y}L.call(N.prototype);function B(h,y){if(!(this instanceof B))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');y||(y={}),this.type="default",this.status=y.status===void 0?200:y.status,this.ok=this.status>=200&&this.status<300,this.statusText=y.statusText===void 0?"":""+y.statusText,this.headers=new b(y.headers),this.url=y.url||"",this._initBody(h)}L.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},B.error=function(){var h=new B(null,{status:0,statusText:""});return h.type="error",h};var Z=[301,302,303,307,308];B.redirect=function(h,y){if(Z.indexOf(y)===-1)throw new RangeError("Invalid status code");return new B(null,{status:y,headers:{location:h}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(y,S){this.message=y,this.name=S;var I=Error(y);this.stack=I.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function J(h,y){return new Promise(function(S,I){var j=new N(h,y);if(j.signal&&j.signal.aborted)return I(new o.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function me(){R.abort()}R.onload=function(){var M={status:R.status,statusText:R.statusText,headers:ze(R.getAllResponseHeaders()||"")};M.url="responseURL"in R?R.responseURL:M.headers.get("X-Request-URL");var ye="response"in R?R.response:R.responseText;setTimeout(function(){S(new B(ye,M))},0)},R.onerror=function(){setTimeout(function(){I(new TypeError("Network request failed"))},0)},R.ontimeout=function(){setTimeout(function(){I(new TypeError("Network request failed"))},0)},R.onabort=function(){setTimeout(function(){I(new o.DOMException("Aborted","AbortError"))},0)};function Tt(M){try{return M===""&&a.location.href?a.location.href:M}catch{return M}}R.open(j.method,Tt(j.url),!0),j.credentials==="include"?R.withCredentials=!0:j.credentials==="omit"&&(R.withCredentials=!1),"responseType"in R&&(l.blob?R.responseType="blob":l.arrayBuffer&&j.headers.get("Content-Type")&&j.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(R.responseType="arraybuffer")),y&&typeof y.headers=="object"&&!(y.headers instanceof b)?Object.getOwnPropertyNames(y.headers).forEach(function(M){R.setRequestHeader(M,p(y.headers[M]))}):j.headers.forEach(function(M,ye){R.setRequestHeader(ye,M)}),j.signal&&(j.signal.addEventListener("abort",me),R.onreadystatechange=function(){R.readyState===4&&j.signal.removeEventListener("abort",me)}),R.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return J.polyfill=!0,a.fetch||(a.fetch=J,a.Headers=b,a.Request=N,a.Response=B),o.Headers=b,o.Request=N,o.Response=B,o.fetch=J,o})({})})(s),s.fetch.ponyfill=!0,delete s.fetch.polyfill;var n=t.fetch?t:s;e=n.fetch,e.default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,r.exports=e}(xe,xe.exports)),xe.exports}(function(r,e){var t;if(typeof fetch=="function"&&(typeof ue<"u"&&ue.fetch?t=ue.fetch:typeof window<"u"&&window.fetch?t=window.fetch:t=fetch),typeof Fs<"u"&&(typeof window>"u"||typeof window.document>"u")){var s=t||$s();s.default&&(s=s.default),e.default=s,r.exports=e.default}})(Be,Be.exports);var bt=Be.exports;const xt=ht(bt),it=ls({__proto__:null,default:xt},[bt]);function Pe(r){"@babel/helpers - typeof";return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(r)}var W;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?W=global.fetch:typeof window<"u"&&window.fetch?W=window.fetch:W=fetch);var fe;yt()&&(typeof global<"u"&&global.XMLHttpRequest?fe=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(fe=window.XMLHttpRequest));var Ie;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Ie=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Ie=window.ActiveXObject));!W&&it&&!fe&&!Ie&&(W=xt||it);typeof W!="function"&&(W=void 0);var qe=function(e,t){if(t&&Pe(t)==="object"){var s="";for(var n in t)s+="&"+encodeURIComponent(n)+"="+encodeURIComponent(t[n]);if(!s)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+s.slice(1)}return e},ot=function(e,t,s){var n=function(o){if(!o.ok)return s(o.statusText||"Error",{status:o.status});o.text().then(function(a){s(null,{status:o.status,data:a})}).catch(s)};typeof fetch=="function"?fetch(e,t).then(n).catch(s):W(e,t).then(n).catch(s)},at=!1,_s=function(e,t,s,n){e.queryStringParams&&(t=qe(t,e.queryStringParams));var i=Ue({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),s&&(i["Content-Type"]="application/json");var o=typeof e.requestOptions=="function"?e.requestOptions(s):e.requestOptions,a=Ue({method:s?"POST":"GET",body:s?e.stringify(s):void 0,headers:i},at?{}:o);try{ot(t,a,n)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return n(l);try{Object.keys(o).forEach(function(c){delete a[c]}),ot(t,a,n),at=!0}catch(c){n(c)}}},ks=function(e,t,s,n){s&&Pe(s)==="object"&&(s=qe("",s).slice(1)),e.queryStringParams&&(t=qe(t,e.queryStringParams));try{var i;fe?i=new fe:i=new Ie("MSXML2.XMLHTTP.3.0"),i.open(s?"POST":"GET",t,1),e.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!e.withCredentials,s&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=e.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&n(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(s)}catch(l){console&&console.log(l)}},Us=function(e,t,s,n){if(typeof s=="function"&&(n=s,s=void 0),n=n||function(){},W&&t.indexOf("file:")!==0)return _s(e,t,s,n);if(yt()||typeof ActiveXObject=="function")return ks(e,t,s,n);n(new Error("No fetch and no xhr implementation found!"))};function de(r){"@babel/helpers - typeof";return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(r)}function Bs(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function lt(r,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,St(s.key),s)}}function qs(r,e,t){return e&<(r.prototype,e),t&<(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function Vs(r,e,t){return e=St(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function St(r){var e=Ms(r,"string");return de(e)==="symbol"?e:String(e)}function Ms(r,e){if(de(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var s=t.call(r,e||"default");if(de(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Hs=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,s,n){return Vs({},s,n||"")},parseLoadPayload:function(t,s){},request:Us,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},vt=function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bs(this,r),this.services=e,this.options=t,this.allOptions=s,this.type="backend",this.init(e,t,s)}return qs(r,[{key:"init",value:function(t){var s=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Ue(n,this.options||{},Hs()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return s.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,s,n){this._readAny(t,t,s,s,n)}},{key:"read",value:function(t,s,n){this._readAny([t],t,[s],s,n)}},{key:"_readAny",value:function(t,s,n,i,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(t,n)),l=As(l),l.then(function(c){if(!c)return o(null,{});var f=a.services.interpolator.interpolate(c,{lng:t.join("+"),ns:n.join("+")});a.loadUrl(f,o,s,i)})}},{key:"loadUrl",value:function(t,s,n,i){var o=this,a=typeof n=="string"?[n]:n,l=typeof i=="string"?[i]:i,c=this.options.parseLoadPayload(a,l);this.options.request(this.options,t,c,function(f,d){if(d&&(d.status>=500&&d.status<600||!d.status))return s("failed loading "+t+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return s("failed loading "+t+"; status code: "+d.status,!1);if(!d&&f&&f.message&&f.message.indexOf("Failed to fetch")>-1)return s("failed loading "+t+": "+f.message,!0);if(f)return s(f,!1);var u,p;try{typeof d.data=="string"?u=o.options.parse(d.data,n,i):u=d.data}catch{p="failed parsing "+t+" to json"}if(p)return s(p,!1);s(null,u)})}},{key:"create",value:function(t,s,n,i,o){var a=this;if(this.options.addPath){typeof t=="string"&&(t=[t]);var l=this.options.parsePayload(s,n,i),c=0,f=[],d=[];t.forEach(function(u){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(u,s));var g=a.services.interpolator.interpolate(p,{lng:u,ns:s});a.options.request(a.options,g,l,function(b,x){c+=1,f.push(b),d.push(x),c===t.length&&typeof o=="function"&&o(f,d)})})}}},{key:"reload",value:function(){var t=this,s=this.services,n=s.backendConnector,i=s.languageUtils,o=s.logger,a=n.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],c=function(d){var u=i.toResolveHierarchy(d);u.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};c(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return c(f)}),l.forEach(function(f){t.allOptions.ns.forEach(function(d){n.read(f,d,"read",null,null,function(u,p){u&&o.warn("loading namespace ".concat(d," for language ").concat(f," failed"),u),!u&&p&&o.log("loaded namespace ".concat(d," for language ").concat(f),p),n.loaded("".concat(f,"|").concat(d),u,p)})})})}}}]),r}();vt.type="backend";F.use(vt).use(ts).init({backend:{loadPath:(r,e)=>e.map(s=>s==="common"?"/i18n":`/${s}/i18n`),parse:r=>JSON.parse(r)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});var Ks=function(){return null},wt,ut=ss;wt=ut.createRoot,ut.hydrateRoot;const ee=document.querySelector("[data-explorer-config]");let ct;function zs(){var r;if((r=ee==null?void 0:ee.dataset)!=null&&r.explorerConfig){const{explorerConfig:e}=ee.dataset;try{const t=JSON.parse(e);ct=Object.assign({},t)}catch(t){console.error("[Explorer Config] could not parse app params from root data attributes:",ee==null?void 0:ee.dataset,t)}}return ct}const ft=r=>{let e;const t=new Set,s=(l,c)=>{const f=typeof l=="function"?l(e):l;if(!Object.is(f,e)){const d=e;e=c??typeof f!="object"?f:Object.assign({},e,f),t.forEach(u=>u(e,d))}},n=()=>e,a={setState:s,getState:n,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{t.clear()}};return e=r(s,n,a),a},Qs=r=>r?ft(r):ft;var Ot={exports:{}},Rt={},Pt={exports:{}},It={};/**
|
|
222
3
|
* @license React
|
|
223
4
|
* use-sync-external-store-shim.production.min.js
|
|
224
5
|
*
|
|
@@ -226,7 +7,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
226
7
|
*
|
|
227
8
|
* This source code is licensed under the MIT license found in the
|
|
228
9
|
* LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/var
|
|
10
|
+
*/var ie=v;function Js(r,e){return r===e&&(r!==0||1/r===1/e)||r!==r&&e!==e}var Ws=typeof Object.is=="function"?Object.is:Js,Xs=ie.useState,Gs=ie.useEffect,Ys=ie.useLayoutEffect,Zs=ie.useDebugValue;function er(r,e){var t=e(),s=Xs({inst:{value:t,getSnapshot:e}}),n=s[0].inst,i=s[1];return Ys(function(){n.value=t,n.getSnapshot=e,_e(n)&&i({inst:n})},[r,t,e]),Gs(function(){return _e(n)&&i({inst:n}),r(function(){_e(n)&&i({inst:n})})},[r]),Zs(t),t}function _e(r){var e=r.getSnapshot;r=r.value;try{var t=e();return!Ws(r,t)}catch{return!0}}function tr(r,e){return e()}var sr=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tr:er;It.useSyncExternalStore=ie.useSyncExternalStore!==void 0?ie.useSyncExternalStore:sr;Pt.exports=It;var rr=Pt.exports;/**
|
|
230
11
|
* @license React
|
|
231
12
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
232
13
|
*
|
|
@@ -234,4 +15,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
234
15
|
*
|
|
235
16
|
* This source code is licensed under the MIT license found in the
|
|
236
17
|
* LICENSE file in the root directory of this source tree.
|
|
237
|
-
*/var Pd=S,q6=H6;function W6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var G6=typeof Object.is=="function"?Object.is:W6,Q6=q6.useSyncExternalStore,K6=Pd.useRef,X6=Pd.useEffect,Y6=Pd.useMemo,J6=Pd.useDebugValue;HE.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=K6(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Y6(function(){function a(h){if(!u){if(u=!0,c=h,h=r(h),s!==void 0&&o.hasValue){var y=o.value;if(s(y,h))return f=y}return f=h}if(y=f,G6(c,h))return y;var w=r(h);return s!==void 0&&s(y,w)?y:(c=h,f=w)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return a(t())},p===null?void 0:function(){return a(p())}]},[t,n,r,s]);var l=Q6(e,i[0],i[1]);return X6(function(){o.hasValue=!0,o.value=l},[l]),J6(l),l};UE.exports=HE;var Z6=UE.exports;const e_=il(Z6),{useDebugValue:t_}=ee,{useSyncExternalStoreWithSelector:n_}=e_;function r_(e,t=e.getState,n){const r=n_(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return t_(r),r}const G0=e=>{const t=typeof e=="function"?_6(e):e,n=(r,s)=>r_(t,r,s);return Object.assign(n,t),n},s_=e=>e?G0(e):G0,GE=async e=>{const t=await ae.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},i_=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await ae.resource(e.app).createFolder(r)},o_=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await ae.resource(t.app).updateFolder(s)},a_=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ae.resource(e.app).trashAll(s,n)},l_=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await ae.resource(e.app).deleteAll(s,n)},u_=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await ae.resource(e.app).restoreAll(s,r)},c_=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await ae.resource(e.app).moveToFolder(i,s)},d_=async({app:e,resourceId:t,rights:n})=>await ae.share().saveRights(e,t,n),f_=async({app:e,params:t})=>await ae.resource(e).update(t),p_=async e=>await ae.rights().sessionHasWorkflowRights(e),h_=({searchParams:e,assetId:t})=>ae.resource(e.app).gotoView(t),m_=({searchParams:e,params:t})=>ae.resource(e.app).create(t),g_=({searchParams:e,assetId:t})=>ae.resource(e.app).gotoPrint(t);function Pg(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Wa(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=Wa(e,i),n===void 0))),n)}function v_(e,t){var r;const n=Wa(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Mt.BIN?[Mt.BIN]:[Mt.DEFAULT]}function QE(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>QE(t.id,n)):!1}function El(e,t){return KE(e,t)||e}function KE(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const l=KE(o,t,r);l&&i.push(l)}return{...r,children:i}}return r}class Od{constructor(t){ei(this,"id");ei(this,"name");ei(this,"childNumber");ei(this,"section",!1);ei(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const XE=(e,t,n)=>El(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new Od(s))),r)),Ye=s_()((e,t)=>({config:null,searchConfig:{minLength:1},searchParams:{app:"",types:[],filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:Mt.DEFAULT,name:Pt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setConfig:n=>e({config:n}),setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...n}}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();h_({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);g_({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,l=v_(n,i),a=Pg([...l,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:a,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Mt.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!QE(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await GE({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(l=>{var a;return{...l,treeData:XE(s,(a=o==null?void 0:o.pages[0])==null?void 0:a.folders,n||Mt.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=Wa(n,r);bS()(),e(l=>({...l,searchParams:{...l.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=Wa(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Mt.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Mt.BIN},trashed:!0},currentFolder:{id:Mt.BIN}}))}})),Rt=()=>Ye(e=>e.searchParams),Og=()=>Ye(e=>e.selectedNodesIds),go=()=>Ye(e=>e.treeData),u7=()=>Ye(e=>e.selectedFolders),c7=()=>Ye(e=>e.selectedResources),y_=()=>Ye(e=>e.searchConfig),Rd=()=>Ye(e=>e.folderIds),Nd=()=>Ye(e=>e.resourceIds),Ad=()=>Ye(e=>e.selectedResources.map(t=>t.assetId)),Id=()=>Ye(e=>e.selectedResources.filter(t=>t.assetId===t.id)),Cl=()=>Ye(e=>e.currentFolder),mt=()=>Ye(e=>e.updaters),Rg=()=>{const e=Cl();return(e==null?void 0:e.id)===Mt.BIN},w_=()=>Ye(e=>e.resourceIsTrash),x_=()=>Ye(e=>e.resourceActionDisable),b_=()=>{const e=Cl();return(e==null?void 0:e.id)==="default"},S_=()=>Og().length>1,E_=()=>Ye(e=>e.status),YE=()=>{const e=Rt(),[t,n]=S.useState(""),r=y_(),s=E_(),i=S.useRef(null),{setSearchParams:o}=mt(),l=c=>{const f=c.target.value;n(f.toString())},a=c=>{(c.key==="Enter"||c.key==="Return")&&(c.preventDefault(),o({search:t||void 0}))},u=c=>{c.preventDefault(),o({search:t||void 0})};return S.useEffect(()=>{const f=t.length==0||t.length>=r.minLength?{search:t||void 0}:{};o({...e,...f})},[t,r.minLength]),S.useEffect(()=>{s==="select"&&n("")},[s]),S.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{formRef:i,inputSearch:t,handleInputSearchChange:l,handleKeyPress:a,handleSearchSubmit:u}};function C_(){const{appCode:e}=Te(),{gotoPreviousFolder:t}=mt(),{t:n}=ue(),{inputSearch:r}=YE(),s=Og(),i=Rg(),o=Cl(),l=n("explorer.tree.trash"),a=n("explorer.tree.search"),u=n("explorer.filters.mine",{ns:e}),c=(o==null?void 0:o.name)||u;return d.jsx("div",{className:"py-16",children:s.length>1&&!i?d.jsxs("div",{className:"d-flex align-items-center gap-8",children:[d.jsx(hr,{icon:d.jsx(bT,{}),variant:"ghost",color:"tertiary","aria-label":n("back"),className:"ms-n16",onClick:t}),d.jsx("p",{className:"body py-8 text-truncate",children:d.jsx("strong",{children:c})})]}):d.jsx("h2",{className:"body py-8 fw-bold",children:r.length!==0?a:i?l:u})})}const k_=()=>{const e=x_(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=mt();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},T_=()=>{const e=w_(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=mt();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}};function j_(e,{parentId:t,newFolder:n}){return El(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=Pg([...i,r.id]);return{...r,children:[...r.children||[],new Od({...n,ancestors:o})]}}else return r})}function P_(e,{folders:t}){return El(e,n=>{if(!t.includes(n.id))return n})}function O_(e,{destinationId:t,folders:n}){return El(e,(r,s)=>{var i,o;if(t===r.id){const l=[...((i=r.folder)==null?void 0:i.ancestors)||[]],a=Pg([...l,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(p=>p.id))||[];for(const p of n)if(!c.includes(p)){const h=Wa(p,e);h&&u.push({...h,folder:{...h==null?void 0:h.folder,ancestors:a}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function R_(e,{folderId:t,newFolder:n}){return El(e,r=>r.id===t?new Od(n):r)}const N_=()=>{const e=Ye(t=>t.config);return Ih({queryKey:["actions"],queryFn:async()=>{const t=e.actions.map(r=>r.workflow);return await p_(t)},select:t=>e.actions.map(n=>({...n,available:t[n.workflow]})),staleTime:1/0,enabled:!!e})},A_=()=>{const e=Ye(o=>o.config),t=Rt(),{filters:n,trashed:r,search:s}=t,i=["context",{folderId:n.folder,filters:n,trashed:r,search:s}];return Y4({queryKey:i,queryFn:async({pageParam:o})=>await GE({...t,app:e==null?void 0:e.app,types:e==null?void 0:e.types,pagination:{...t.pagination,startIdx:o}}),initialPageParam:0,enabled:!!e,retry:!1,getNextPageParam:o=>o.pagination.startIdx+o.pagination.pageSize})},d7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),s=Rd(),i=Ad(),o=Nd(),l=Id().length>0,a=l?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:f,setSearchParams:p}=mt(),{filters:h,trashed:y}=n,w=["context",{folderId:h.folder,filters:h,trashed:y}];return mr({mutationFn:async()=>await a_({searchParams:n,folderIds:s,resourceIds:a,useAssetIds:l}),onError(x){typeof x=="string"&&e.error(Pt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:w}),t.getQueryData(w))return e.success(Pt("explorer.trash.title")),t.setQueryData(w,m=>{var v;if(m){const b={...m,pages:m==null?void 0:m.pages.map(T=>{var C;return{...T,folders:T.folders.filter(R=>!s.includes(R.id)),pagination:{...T.pagination,maxIdx:((C=T==null?void 0:T.pagination)==null?void 0:C.maxIdx)-x.resources.length},resources:T.resources.filter(R=>l?!i.includes(R.assetId):!a.includes(R.id))}})},E=P_(r,{folders:s});return f(E),p({...n,pagination:{...n.pagination,maxIdx:((v=n.pagination)==null?void 0:v.maxIdx)-x.resources.length}}),b}})},onSettled:()=>{u(),c()}})},f7=()=>{const e=ht(),t=pn(),n=Rt(),r=Rd(),s=Ad(),i=Nd(),o=Id().length>0,l=o?s:i,{setFolderIds:a,setResourceIds:u,setSelectedResources:c,setSelectedFolders:f}=mt(),{filters:p,trashed:h}=n,y=["context",{folderId:p.folder,filters:p,trashed:h}];return mr({mutationFn:async()=>await u_({searchParams:n,folderIds:r,resourceIds:l,useAssetIds:o}),onError(w){typeof w=="string"&&e.error(Pt(w))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return e.success(Pt("explorer.trash.toast")),t.setQueryData(y,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(g=>({...g,folders:g.folders.filter(m=>!r.includes(m.id)),resources:g.resources.filter(m=>o?!s.includes(m.assetId):!l.includes(m.id))}))}})},onSettled:()=>{u([]),c([]),a([]),f([])}})},p7=()=>{const e=ht(),t=pn(),n=Rt(),r=Rd(),s=Ad(),i=Nd(),o=Id().length>0,l=o?s:i,{clearSelectedItems:a,clearSelectedIds:u}=mt(),{filters:c,trashed:f}=n,p=["context",{folderId:c.folder,filters:c,trashed:f}];return mr({mutationFn:async()=>await l_({searchParams:n,folderIds:r,resourceIds:l,useAssetIds:o}),onError(h){typeof h=="string"&&e.error(Pt(h))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return e.success(Pt("explorer.removed.from.trash")),t.setQueryData(p,y=>{if(y)return{...y,pages:y==null?void 0:y.pages.map(x=>({...x,folders:x.folders.filter(g=>!r.includes(g.id)),resources:x.resources.filter(g=>o?!s.includes(g.assetId):!l.includes(g.id))}))}})},onSettled:()=>{a(),u()}})},h7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),s=Rd(),i=Ad(),o=Nd(),l=Id().length>0,a=l?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:f,setSearchParams:p}=mt(),{filters:h,trashed:y}=n,w=["context",{folderId:h.folder,filters:h,trashed:y}];return mr({mutationFn:async x=>await c_({searchParams:n,folderId:x,folderIds:s,resourceIds:a,useAssetIds:l}),onError(x){typeof x=="string"&&e.error(Pt(x))},onSuccess:async(x,g)=>{if(t.getQueryData(w))return t.setQueryData(w,v=>{var b;if(v){const E=O_(r,{destinationId:g,folders:s}),T={...v,pages:v==null?void 0:v.pages.map(C=>{var R;return{...C,folders:C.folders.filter(j=>!s.includes(j.id)),pagination:{...C.pagination,maxIdx:((R=C.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:C.resources.filter(j=>l?!i.includes(j.assetId):!a.includes(j.id))}})};return f(E),p({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-x.resources.length}}),T}})},onSettled:()=>{c(),u()}})},m7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),{setTreeData:s}=mt(),{filters:i,trashed:o}=n,l=["context",{folderId:i.folder,filters:i,trashed:o}];return mr({mutationFn:async({name:a,parentId:u})=>await i_({searchParams:n,name:a,parentId:u}),onError(a){typeof a=="string"&&e.error(Pt(a))},onSuccess:async(a,u)=>{await t.cancelQueries({queryKey:l});const c=t.getQueryData(l),f={...a,parentId:u.parentId,children:[],rights:[`creator:${a==null?void 0:a.creator_id}`]};if(c)return t.setQueryData(l,p=>{if(p){const h={...p,pages:p==null?void 0:p.pages.map(w=>({...w,folders:[...w.folders,f]}))},y=j_(r,{parentId:u.parentId,newFolder:f});return s(y),h}})}})},g7=()=>{const e=ht(),t=pn(),n=Rt(),r=go(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=mt(),{filters:l,trashed:a}=n,u=["context",{folderId:l.folder,filters:l,trashed:a}];return mr({mutationFn:async({folderId:c,name:f,parentId:p})=>await o_({searchParams:n,folderId:c,parentId:p,name:f}),onError(c){typeof c=="string"&&e.error(Pt(c))},onSuccess:async(c,f)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,h=>{if(h){const y={...h,pages:h==null?void 0:h.pages.map(x=>({...x,folders:x.folders.map(g=>g.id===c.id?{...c,parentId:f.parentId,rights:g.rights}:g)}))},w=R_(r,{folderId:f.folderId,newFolder:c});return o(w),y}})},onSettled:()=>{s([]),i([])}})},v7=()=>{const e=ht(),t=pn(),n=Rt(),{setResourceIds:r,setSelectedResources:s}=mt(),{filters:i,trashed:o,app:l}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return mr({mutationFn:async({resourceId:u,rights:c})=>await d_({app:l,resourceId:u,rights:c}),onError(u){typeof u=="string"&&e.error(Pt("explorer.shared.status.error"))},onSuccess:async(u,c)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return e.success(Pt("explorer.shared.status.saved")),t.setQueryData(a,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(h=>({...h,resources:h.resources.map(y=>{if(y.assetId===(c==null?void 0:c.resourceId)){let w=[`creator:${y.creatorId}`];return(c==null?void 0:c.rights.length)>=1&&(w=[...w,...c.rights.flatMap(x=>x.actions.map(g=>`${x.type}:${x.id}:${g.id}`))]),{...y,rights:w}}else return y})}))}})},onSettled:()=>{r([]),s([])}})},y7=()=>{const e=ht(),t=pn(),n=Rt(),{filters:r,trashed:s,app:i}=n,o=["context",{folderId:r.folder,filters:r,trashed:s}];return mr({mutationFn:async l=>await f_({app:i,params:l}),onError(l){typeof l=="string"&&e.error(Pt(l))},onSuccess:async(l,a)=>{if(await t.cancelQueries({queryKey:o}),t.getQueryData(o))return t.setQueryData(o,c=>{if(c)return{...c,pages:c==null?void 0:c.pages.map(f=>({...f,resources:f.resources.map(p=>{if(p.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:y,public:w,description:x,slug:g,...m}=a;return{...p,...m,name:h,thumbnail:typeof y=="string"?y:URL.createObjectURL(y),public:w,description:x,slug:g}}else return p})}))}})}})},w7=()=>{const e=ht(),t=pn(),n=Rt(),{user:r}=Ed(),{appCode:s}=Te(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return mr({mutationFn:async o=>await m_({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Pt(o))},onSuccess:async(o,l)=>{var f,p,h;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),{thumbnail:u}=l,c={...l,thumbnail:u?URL.createObjectURL(u):"",application:s,assetId:o._id||o.entId||"",id:o._id||o.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:l.slug||"",modifiedAt:((f=o.modified)==null?void 0:f.$date)||"",modifierId:((p=o.author)==null?void 0:p.userId)||"",modifierName:((h=o.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,y=>{if(y)return{...y,pages:y==null?void 0:y.pages.map(w=>({...w,resources:[c,...w.resources]}))}})}})},I_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenApp.js"),[])),__=S.lazy(async()=>await Ot(()=>import("./EmptyScreenSearch.js"),[])),M_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenError.js"),[])),L_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenNoContentInFolder.js"),[])),D_=S.lazy(async()=>await Ot(()=>import("./EmptyScreenTrash.js"),[])),F_=S.lazy(async()=>await Ot(()=>import("./FoldersList.js"),[])),$_=S.lazy(async()=>await Ot(()=>import("./ResourcesList.js"),[])),z_=()=>{const e=b_(),t=Rg(),n=S_(),r=Rt(),s=Cl(),i=go(),o=ht(),{appCode:l}=Te(),{t:a}=ue(),{setSearchParams:u,setSearchConfig:c,setTreeData:f}=mt(),{data:p,isError:h,error:y,isLoading:w,isFetching:x,fetchNextPage:g}=A_(),m=(p==null?void 0:p.pages[0].folders.length)===0,v=(p==null?void 0:p.pages[0].resources.length)===0,b=m&&v;return S.useEffect(()=>{var E,T,C;if(p){const R=[...((E=p==null?void 0:p.pages[0])==null?void 0:E.folders)??[]];(T=p==null?void 0:p.pages[0])!=null&&T.searchConfig&&c(p.pages[0].searchConfig),r.search||((s==null?void 0:s.id)==="default"?f({id:Mt.DEFAULT,section:!0,children:R.map(j=>new Od(j)),name:a("explorer.filters.mine",{ns:l})}):f(XE(i,R,r.filters.folder||Mt.DEFAULT))),u({...r,pagination:(C=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:C.pagination})}},[p]),S.useEffect(()=>{y&&typeof y=="string"&&o.error(a(y))},[y]),w?d.jsx(_t,{}):h?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(M_,{})}):r.search&&b?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(__,{})}):e&&b?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(I_,{})}):n&&b&&!t?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(L_,{})}):t&&(p==null?void 0:p.pages[0].resources.length)===0?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(D_,{})}):d.jsxs(S.Suspense,{fallback:d.jsx(_t,{}),children:[d.jsx(F_,{data:p,isFetching:x}),d.jsx($_,{data:p,isFetching:x,fetchNextPage:g})]})},B_=()=>{const{appCode:e,currentApp:t}=Te(),{t:n}=ue(),[r,s]=S.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=Cl(),l=Rt(),{setSearchParams:a}=mt();S.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,f=()=>r.includes("2")?!0:void 0,p=()=>r.includes("7")?!0:void 0;a({...l,filters:{owner:c(),public:p(),shared:f(),folder:o?o.id:"default"}})},[o,a,r]);const u=[{label:n("explorer.filter.all",{ns:e}),value:"0"},{label:n("explorer.filter.owner",{ns:e}),value:"1"},{label:n("explorer.filter.shared",{ns:e}),value:"2"},...(t==null?void 0:t.displayName)==Ho.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==Ho.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(t==null?void 0:t.displayName)==Ho.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},V_=()=>{const{appCode:e}=Te(),{t}=ue(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=B_(),{formRef:i,inputSearch:o,handleInputSearchChange:l,handleKeyPress:a,handleSearchSubmit:u}=YE(),c=n.length>0?n.length:void 0;return d.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",ref:i,children:[d.jsxs(Qe,{id:"search",className:"input-group",children:[d.jsx(rs,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:o,onChange:l,onKeyDown:a}),d.jsx(bg,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:u})]}),d.jsxs(Ee,{placement:"bottom-end",children:[d.jsx(Ee.Trigger,{label:t("explorer.filters"),icon:d.jsx(DT,{width:20}),variant:"ghost",badgeContent:c}),d.jsx(Ee.Menu,{children:r.map(f=>f.value==="0"?d.jsxs(S.Fragment,{children:[d.jsx(Ee.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label}),d.jsx(Ee.Separator,{})]},"0"):d.jsx(Ee.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label},f.value))})]})]})},U_=({id:e,selected:t,onSelect:n})=>{const{t:r}=ue();return d.jsx("div",{className:"treeview",children:d.jsx("ul",{role:"tree",className:"m-0 p-0",children:d.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:d.jsx("div",{children:d.jsx("div",{className:"action-container",children:d.jsx("div",{onClick:n,role:"button",tabIndex:0,children:d.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[d.jsx(ab,{width:"20",height:"20"}),d.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},H_=S.lazy(async()=>await Ot(()=>import("./FolderModal.js"),[])),q_=()=>{const e=pn(),[t,n]=yg(),r=go(),s=Rg(),i=Og(),{appCode:o}=Te(),{t:l}=ue(["common",o]),{goToTrash:a,selectTreeItem:u,unfoldTreeItem:c,foldTreeItem:f,clearSelectedItems:p,clearSelectedIds:h}=mt(),y=async x=>{await c(x,e)},w=()=>{p(),h(),n()};return d.jsxs(d.Fragment,{children:[d.jsx(IE,{data:r,selectedNodesIds:i,onTreeItemSelect:u,onTreeItemFold:f,onTreeItemUnfold:y}),d.jsx(U_,{id:Mt.BIN,selected:s,onSelect:a}),d.jsx("div",{className:"d-grid my-16",children:d.jsx(ze,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:d.jsx(GT,{}),onClick:w,children:l("explorer.folder.new")})}),d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:t&&d.jsx(H_,{edit:!1,isOpen:t,onSuccess:n,onCancel:n})})]})};const W_=S.lazy(async()=>({default:(await Ot(()=>Promise.resolve().then(()=>N6),void 0)).OnboardingModal})),G_=S.lazy(async()=>await Ot(()=>import("./AppAction.js"),[])),Q_=S.lazy(async()=>await Ot(()=>import("./Library.js"),[])),K_=S.lazy(async()=>await Ot(()=>import("./ActionBarContainer.js"),[])),X_=S.lazy(async()=>await Ot(()=>import("./DisableModal.js"),[])),Y_=S.lazy(async()=>await Ot(()=>import("./TrashModal.js"),[])),J_=({config:e})=>{const t=Rt(),{setConfig:n,setSearchParams:r}=mt();S.useEffect(()=>{n(e||{}),r({...t,app:e.app,types:e.types})},[e]);const{currentApp:s}=Te(),{data:i}=N_(),{isTrashedModalOpen:o,onTrashedCancel:l}=T_(),{isActionDisableModalOpen:a,onActionDisableCancel:u}=k_();kS();const c=Ac("publish",i),f=Ac("create",i);return e&&d.jsxs(d.Fragment,{children:[d.jsx(cS,{render:()=>f?d.jsx(S.Suspense,{fallback:d.jsx(_t,{}),children:d.jsx(G_,{})}):null,children:d.jsx(FS,{app:s})}),d.jsxs(Ri,{className:"flex-grow-1",children:[d.jsx(Ri.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:d.jsxs(S.Suspense,{fallback:d.jsx(_t,{}),children:[d.jsx(q_,{}),c&&d.jsx(Q_,{})]})}),d.jsxs(Ri.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[d.jsx(V_,{}),d.jsx(C_,{}),d.jsx(z_,{})]}),d.jsxs(S.Suspense,{fallback:d.jsx(_t,{}),children:[d.jsx(K_,{}),d.jsx(W_,{id:"showOnboardingTrash",items:[{src:"onboarding/illu-trash-menu.svg",alt:"explorer.modal.onboarding.trash.screen1.alt",text:"explorer.modal.onboarding.trash.screen1.title"},{src:"onboarding/illu-trash-notif.svg",alt:"explorer.modal.onboarding.trash.screen2.alt",text:"explorer.modal.onboarding.trash.screen2.alt"},{src:"onboarding/illu-trash-delete.svg",alt:"explorer.modal.onboarding.trash.screen3.alt",text:"explorer.modal.onboarding.trash.screen3.title"}],modalOptions:{title:"explorer.modal.onboarding.trash.title",prevText:"explorer.modal.onboarding.trash.prev",nextText:"explorer.modal.onboarding.trash.next",closeText:"explorer.modal.onboarding.trash.close"}}),o&&d.jsx(Y_,{isOpen:o,onCancel:l}),a&&d.jsx(X_,{isOpen:a,onCancel:u})]})]})]})};function Z_(){const{init:e}=Te(),t=I6();return e?d.jsx(zE,{children:d.jsx(J_,{config:t})}):d.jsx(_t,{position:!1})}const e7=document.getElementById("root"),t7=new _4({queryCache:new Ay({onError:e=>{typeof e=="string"&&e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});VE(e7).render(d.jsx(S.StrictMode,{children:d.jsxs($4,{client:t7,children:[d.jsx(fS,{params:{app:"blog"},children:d.jsx(pS,{children:d.jsx(Z_,{})})}),d.jsx(A6,{initialIsOpen:!1})]})}));export{Qe as $,nI as A,ze as B,vr as C,gI as D,OI as E,i7 as F,l7 as G,bS as H,ho as I,qs as J,Ws as K,_t as L,Re as M,p2 as N,a7 as O,o7 as P,lt as Q,il as R,GT as S,OE as T,Rt as U,J as V,ee as W,m7 as X,g7 as Y,sb as Z,Ot as _,Te as a,_s as a0,rs as a1,p7 as a2,d7 as a3,h7 as a4,pn as a5,go as a6,IE as a7,N6 as a8,ue as b,mt as c,N_ as d,Cl as e,w7 as f,bd as g,oI as h,RI as i,d as j,Ys as k,Ed as l,Rg as m,Ye as n,Nd as o,c7 as p,u7 as q,S as r,Rd as s,f7 as t,yg as u,w_ as v,v7 as w,y7 as x,n2 as y,vh as z};
|
|
18
|
+
*/var Le=v,nr=rr;function ir(r,e){return r===e&&(r!==0||1/r===1/e)||r!==r&&e!==e}var or=typeof Object.is=="function"?Object.is:ir,ar=nr.useSyncExternalStore,lr=Le.useRef,ur=Le.useEffect,cr=Le.useMemo,fr=Le.useDebugValue;Rt.useSyncExternalStoreWithSelector=function(r,e,t,s,n){var i=lr(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=cr(function(){function l(p){if(!c){if(c=!0,f=p,p=s(p),n!==void 0&&o.hasValue){var g=o.value;if(n(g,p))return d=g}return d=p}if(g=d,or(f,p))return g;var b=s(p);return n!==void 0&&n(g,b)?g:(f=p,d=b)}var c=!1,f,d,u=t===void 0?null:t;return[function(){return l(e())},u===null?void 0:function(){return l(u())}]},[e,t,s,n]);var a=ar(r,i[0],i[1]);return ur(function(){o.hasValue=!0,o.value=a},[a]),fr(a),a};Ot.exports=Rt;var dr=Ot.exports;const hr=ht(dr),{useDebugValue:pr}=rs,{useSyncExternalStoreWithSelector:gr}=hr;function mr(r,e=r.getState,t){const s=gr(r.subscribe,r.getState,r.getServerState||r.getState,e,t);return pr(s),s}const dt=r=>{const e=typeof r=="function"?Qs(r):r,t=(s,n)=>mr(e,s,n);return Object.assign(t,e),t},yr=r=>r?dt(r):dt,Et=async r=>{const e=await V.resource(r.application).searchContext(r);return{...e,folders:e.folders.filter(t=>!t.trashed)}},br=async({searchParams:r,name:e,parentId:t})=>{const s={name:e,parentId:t,application:r.application,type:r.types[0]};return await V.resource(r.application).createFolder(s)},xr=async({folderId:r,searchParams:e,parentId:t,name:s})=>{const n={folderId:r,name:s,parentId:t,application:e.application,type:e.types[0]};return await V.resource(e.application).updateFolder(n)},Sr=async({searchParams:r,resourceIds:e,useAssetIds:t,folderIds:s})=>{const n={application:r.application,resourceType:r.types[0],resourceIds:e,folderIds:s};return await V.resource(r.application).trashAll(n,t)},vr=async({searchParams:r,resourceIds:e,useAssetIds:t,folderIds:s})=>{const n={application:r.application,resourceType:r.types[0],resourceIds:e,folderIds:s};return await V.resource(r.application).deleteAll(n,t)},wr=async({searchParams:r,resourceIds:e,folderIds:t,useAssetIds:s})=>{const n={application:r.application,resourceType:r.types[0],resourceIds:e,folderIds:t};return await V.resource(r.application).restoreAll(n,s)},Or=async({searchParams:r,resourceIds:e,folderId:t,folderIds:s,useAssetIds:n})=>{const i={application:r.application,folderId:t,resourceIds:e,folderIds:s};return await V.resource(r.application).moveToFolder(i,n)},Rr=async({searchParams:r,resourceId:e,rights:t})=>await V.share().saveRights(r.application,e,t),Pr=async({searchParams:r,params:e})=>await V.resource(r.application).update(e),Ir=async r=>await V.rights().sessionHasWorkflowRights(r),Er=({searchParams:r,assetId:e})=>{const t=V.resource(r.application).getViewUrl(e);window.open(t,"_self")},Lr=({searchParams:r,params:e})=>V.resource(r.application).create(e),jr=({searchParams:r,assetId:e})=>{const t=V.resource(r.application).getPrintUrl(e);return window.open(t,"_blank")};function Me(r){return r.filter((e,t)=>r.indexOf(e)===t)}function he(r,e){var s,n;let t;return(e==null?void 0:e.id)===r?e:((s=e==null?void 0:e.children)!=null&&s.length&&((n=e==null?void 0:e.children)==null||n.every(i=>(t=he(r,i),t===void 0))),t)}function Cr(r,e){var s;const t=he(r,e);return(s=t==null?void 0:t.folder)!=null&&s.ancestors?[...(t==null?void 0:t.folder.ancestors)||[],r]:r===q.BIN?[q.BIN]:[q.DEFAULT]}function Lt(r,e){return e.id===r&&e.children?e.children.length>0:e.children?e.children.some(t=>Lt(e.id,t)):!1}function pe(r,e){return jt(r,e)||r}function jt(r,e,t){var n;const s=e(r,t);if((n=s==null?void 0:s.children)!=null&&n.length){const i=[];for(const o of(s==null?void 0:s.children)||[]){const a=jt(o,e,s);a&&i.push(a)}return{...s,children:i}}return s}class je{constructor(e){te(this,"id");te(this,"name");te(this,"childNumber");te(this,"section",!1);te(this,"children",[]);this.folder=e,this.id=e.id,this.name=e.name,this.childNumber=e.childNumber}}const Ct=(r,e,t)=>pe(r,s=>(s.id===t&&(s.children=e==null?void 0:e.map(n=>new je(n))),s)),A=yr()((r,e)=>({config:null,searchConfig:{minLength:1},searchParams:{filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},application:"",types:[],pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:q.DEFAULT,name:_("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setConfig:t=>r({config:t}),setSearchConfig:t=>r(s=>({searchConfig:{...s.searchConfig,...t}})),setTreeData:t=>r(()=>({treeData:t})),setSearchParams:t=>{r(s=>{const{searchParams:n}=s;return n.search!==t.search?t.search?{...s,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...n,...t,trashed:!1,filters:{...n.filters,folder:void 0}}}:{...s,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...n,...t,trashed:!1,filters:{...n.filters}}}:{searchParams:{...n,...t}}})},setSelectedFolders:t=>r(()=>({selectedFolders:t})),setSelectedResources:t=>r(()=>({selectedResources:t})),setFolderIds:t=>r(()=>({folderIds:t})),setResourceIds:t=>r(()=>({resourceIds:t})),setResourceIsTrash:t=>r(()=>({resourceIsTrash:t})),setResourceActionDisable:t=>r(()=>({resourceActionDisable:t})),setCurrentFolder:t=>r(()=>({currentFolder:t})),clearSelectedItems:()=>r(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>r(()=>({resourceIds:[],folderIds:[]})),openResource:t=>{try{const{searchParams:s}=e();Er({searchParams:s,assetId:t.assetId})}catch(s){console.error("explorer open failed: ",s)}},printSelectedResource:()=>{try{const{searchParams:t,selectedResources:s,resourceIds:n}=e();if(s.length!==1)throw new Error("Cannot open more than 1 resource");const i=s.find(o=>o.id===n[0]);jr({searchParams:t,assetId:i.assetId})}catch(t){console.error("explorer print failed: ",t)}},openFolder:({folderId:t,folder:s})=>{const{searchParams:n,treeData:i}=e(),o=n.filters.folder,a=Cr(t,i),l=Me([...a,t]);o!==t&&r(c=>({...c,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:s||{id:t},searchParams:{...n,search:void 0,filters:{...n.filters,folder:t},trashed:t===q.BIN}}))},foldTreeItem:()=>r(t=>({...t,status:"fold"})),unfoldTreeItem:async(t,s)=>{const{treeData:n,searchParams:i}=e();if(r(o=>({...o,status:"unfold"})),!Lt(t,n)){await s.prefetchInfiniteQuery({initialPageParam:0,queryKey:["prefetchContext",{folderId:t,trashed:!1}],queryFn:async()=>await Et({...i,filters:{...i.filters,folder:t}})});const o=s.getQueryData(["prefetchContext",{folderId:t,trashed:!1}]);r(a=>{var l;return{...a,treeData:Ct(n,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,t||q.DEFAULT)}})}},selectTreeItem:t=>{const{treeData:s}=e(),{openFolder:n}=e().updaters,i=he(t,s);Ft()(),r(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),n({folder:i,folderId:t})},gotoPreviousFolder:()=>{const{selectedNodesIds:t,treeData:s}=e(),{openFolder:n}=e().updaters,i=t.length;if(i<2)return;const o=he(t[i-2],s);n({folder:o,folderId:(o==null?void 0:o.id)||q.DEFAULT})},goToTrash:()=>r(t=>({...t,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...t.searchParams,search:void 0,filters:{folder:q.BIN},trashed:!0},currentFolder:{id:q.BIN}}))}})),U=()=>A(r=>r.searchParams),He=()=>A(r=>r.selectedNodesIds),ae=()=>A(r=>r.treeData),vn=()=>A(r=>r.selectedFolders),wn=()=>A(r=>r.selectedResources),Dr=()=>A(r=>r.searchConfig),Ce=()=>A(r=>r.folderIds),De=()=>A(r=>r.resourceIds),Te=()=>A(r=>r.selectedResources.map(e=>e.assetId)),Ne=()=>A(r=>r.selectedResources.filter(e=>e.assetId===e.id)),ge=()=>A(r=>r.currentFolder),$=()=>A(r=>r.updaters),Ke=()=>{const r=ge();return(r==null?void 0:r.id)===q.BIN},Tr=()=>A(r=>r.resourceIsTrash),Nr=()=>A(r=>r.resourceActionDisable),Ar=()=>{const r=ge();return(r==null?void 0:r.id)==="default"},Fr=()=>He().length>1,$r=()=>A(r=>r.status),Dt=()=>{const r=U(),[e,t]=v.useState(""),s=Dr(),n=$r(),i=v.useRef(null),{setSearchParams:o}=$(),a=f=>{const d=f.target.value;t(d.toString())},l=f=>{(f.key==="Enter"||f.key==="Return")&&(f.preventDefault(),o({search:e||void 0}))},c=f=>{f.preventDefault(),o({search:e||void 0})};return v.useEffect(()=>{const d=e.length==0||e.length>=s.minLength?{search:e||void 0}:{};o({...r,...d})},[e,s.minLength]),v.useEffect(()=>{n==="select"&&t("")},[n]),v.useEffect(()=>{t(()=>{var f;return((f=r.search)==null?void 0:f.toString())??""})},[r]),{formRef:i,inputSearch:e,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:c}};function _r(){const{appCode:r}=G(),{gotoPreviousFolder:e}=$(),{t}=oe(),{inputSearch:s}=Dt(),n=He(),i=Ke(),o=ge(),a=t("explorer.tree.trash"),l=t("explorer.tree.search"),c=t("explorer.filters.mine",{ns:r}),f=(o==null?void 0:o.name)||c;return m.jsx("div",{className:"py-16",children:n.length>1&&!i?m.jsxs("div",{className:"d-flex align-items-center gap-8",children:[m.jsx($t,{icon:m.jsx(ns,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:e}),m.jsx("p",{className:"body py-8 text-truncate",children:m.jsx("strong",{children:f})})]}):m.jsx("h2",{className:"body py-8 fw-bold",children:s.length!==0?l:i?a:c})})}const kr=()=>{const r=Nr(),{clearSelectedIds:e,setResourceActionDisable:t,clearSelectedItems:s}=$();return{isActionDisableModalOpen:r,onActionDisableCancel:()=>{e(),s(),t(!1)}}},Ur=()=>{const r=Tr(),{clearSelectedIds:e,setResourceIsTrash:t,clearSelectedItems:s}=$();return{isTrashedModalOpen:r,onTrashedCancel:()=>{e(),s(),t(!1)}}};function Br(r,{parentId:e,newFolder:t}){return pe(r,s=>{var n;if(s.id===e){const i=[...((n=s.folder)==null?void 0:n.ancestors)||[]],o=Me([...i,s.id]);return{...s,children:[...s.children||[],new je({...t,ancestors:o})]}}else return s})}function qr(r,{folders:e}){return pe(r,t=>{if(!e.includes(t.id))return t})}function Vr(r,{destinationId:e,folders:t}){return pe(r,(s,n)=>{var i,o;if(e===s.id){const a=[...((i=s.folder)==null?void 0:i.ancestors)||[]],l=Me([...a,s.id]),c=[...s.children||[]],f=((o=s.children)==null?void 0:o.map(u=>u.id))||[];for(const u of t)if(!f.includes(u)){const p=he(u,r);p&&c.push({...p,folder:{...p==null?void 0:p.folder,ancestors:l}})}return{...s,children:c}}else return t.includes(s.id)&&e!==(n==null?void 0:n.id)?void 0:s})}function Mr(r,{folderId:e,newFolder:t}){return pe(r,s=>s.id===e?new je(t):s)}const Hr=()=>{const r=A(e=>e.config);return _t({queryKey:["actions"],queryFn:async()=>{const e=r==null?void 0:r.actions.map(s=>s.workflow);return await Ir(e)},select:e=>r==null?void 0:r.actions.map(t=>({...t,available:e[t.workflow]})),staleTime:1/0,enabled:!!r})},Kr=()=>{const r=A(o=>o.config),e=U(),{filters:t,trashed:s,search:n}=e,i=["context",{folderId:t.folder,filters:t,trashed:s,search:n}];return Ut({queryKey:i,queryFn:async({pageParam:o})=>await Et({...e,application:r==null?void 0:r.app,types:r==null?void 0:r.types,pagination:{...e.pagination,startIdx:o}}),initialPageParam:0,enabled:!!r,retry:!1,getNextPageParam:o=>o.pagination.startIdx+o.pagination.pageSize})},On=()=>{const r=z(),e=Q(),t=U(),s=ae(),n=Ce(),i=Te(),o=De(),a=Ne().length>0,l=a?i:o,{clearSelectedItems:c,clearSelectedIds:f,setTreeData:d,setSearchParams:u}=$(),{filters:p,trashed:g}=t,b=["context",{folderId:p.folder,filters:p,trashed:g}];return X({mutationFn:async()=>await Sr({searchParams:t,folderIds:n,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&r.error(_(x))},onSuccess:async x=>{if(await e.cancelQueries({queryKey:b}),e.getQueryData(b))return r.success(_("explorer.trash.title")),e.setQueryData(b,P=>{var D;if(P){const O={...P,pages:P==null?void 0:P.pages.map(L=>{var E;return{...L,folders:L.folders.filter(T=>!n.includes(T.id)),pagination:{...L.pagination,maxIdx:((E=L==null?void 0:L.pagination)==null?void 0:E.maxIdx)-x.resources.length},resources:L.resources.filter(T=>a?!i.includes(T.assetId):!l.includes(T.id))}})},C=qr(s,{folders:n});return d(C),u({...t,pagination:{...t.pagination,maxIdx:((D=t.pagination)==null?void 0:D.maxIdx)-x.resources.length}}),O}})},onSettled:()=>{c(),f()}})},Rn=()=>{const r=z(),e=Q(),t=U(),s=Ce(),n=Te(),i=De(),o=Ne().length>0,a=o?n:i,{setFolderIds:l,setResourceIds:c,setSelectedResources:f,setSelectedFolders:d}=$(),{filters:u,trashed:p}=t,g=["context",{folderId:u.folder,filters:u,trashed:p}];return X({mutationFn:async()=>await wr({searchParams:t,folderIds:s,resourceIds:a,useAssetIds:o}),onError(b){typeof b=="string"&&r.error(_(b))},onSuccess:async()=>{if(await e.cancelQueries({queryKey:g}),e.getQueryData(g))return r.success(_("explorer.trash.toast")),e.setQueryData(g,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(w=>({...w,folders:w.folders.filter(P=>!s.includes(P.id)),resources:w.resources.filter(P=>o?!n.includes(P.assetId):!a.includes(P.id))}))}})},onSettled:()=>{c([]),f([]),l([]),d([])}})},Pn=()=>{const r=z(),e=Q(),t=U(),s=Ce(),n=Te(),i=De(),o=Ne().length>0,a=o?n:i,{clearSelectedItems:l,clearSelectedIds:c}=$(),{filters:f,trashed:d}=t,u=["context",{folderId:f.folder,filters:f,trashed:d}];return X({mutationFn:async()=>await vr({searchParams:t,folderIds:s,resourceIds:a,useAssetIds:o}),onError(p){typeof p=="string"&&r.error(_(p))},onSuccess:async()=>{if(await e.cancelQueries({queryKey:u}),e.getQueryData(u))return r.success(_("explorer.removed.from.trash")),e.setQueryData(u,g=>{if(g)return{...g,pages:g==null?void 0:g.pages.map(x=>({...x,folders:x.folders.filter(w=>!s.includes(w.id)),resources:x.resources.filter(w=>o?!n.includes(w.assetId):!a.includes(w.id))}))}})},onSettled:()=>{l(),c()}})},In=()=>{const r=z(),e=Q(),t=U(),s=ae(),n=Ce(),i=Te(),o=De(),a=Ne().length>0,l=a?i:o,{clearSelectedIds:c,clearSelectedItems:f,setTreeData:d,setSearchParams:u}=$(),{filters:p,trashed:g}=t,b=["context",{folderId:p.folder,filters:p,trashed:g}];return X({mutationFn:async x=>await Or({searchParams:t,folderId:x,folderIds:n,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&r.error(_(x))},onSuccess:async(x,w)=>{if(e.getQueryData(b))return e.setQueryData(b,D=>{var O;if(D){const C=Vr(s,{destinationId:w,folders:n}),L={...D,pages:D==null?void 0:D.pages.map(E=>{var T;return{...E,folders:E.folders.filter(N=>!n.includes(N.id)),pagination:{...E.pagination,maxIdx:((T=E.pagination)==null?void 0:T.maxIdx)-x.resources.length},resources:E.resources.filter(N=>a?!i.includes(N.assetId):!l.includes(N.id))}})};return d(C),u({...t,pagination:{...t.pagination,maxIdx:((O=t.pagination)==null?void 0:O.maxIdx)-x.resources.length}}),L}})},onSettled:()=>{f(),c()}})},En=()=>{const r=z(),e=Q(),t=U(),s=ae(),{setTreeData:n}=$(),{filters:i,trashed:o}=t,a=["context",{folderId:i.folder,filters:i,trashed:o}];return X({mutationFn:async({name:l,parentId:c})=>await br({searchParams:t,name:l,parentId:c}),onError(l){typeof l=="string"&&r.error(_(l))},onSuccess:async(l,c)=>{await e.cancelQueries({queryKey:a});const f=e.getQueryData(a),d={...l,parentId:c.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(f)return e.setQueryData(a,u=>{if(u){const p={...u,pages:u==null?void 0:u.pages.map(b=>({...b,folders:[...b.folders,d]}))},g=Br(s,{parentId:c.parentId,newFolder:d});return n(g),p}})}})},Ln=()=>{const r=z(),e=Q(),t=U(),s=ae(),{setFolderIds:n,setSelectedFolders:i,setTreeData:o}=$(),{filters:a,trashed:l}=t,c=["context",{folderId:a.folder,filters:a,trashed:l}];return X({mutationFn:async({folderId:f,name:d,parentId:u})=>await xr({searchParams:t,folderId:f,parentId:u,name:d}),onError(f){typeof f=="string"&&r.error(_(f))},onSuccess:async(f,d)=>{if(await e.cancelQueries({queryKey:c}),e.getQueryData(c))return e.setQueryData(c,p=>{if(p){const g={...p,pages:p==null?void 0:p.pages.map(x=>({...x,folders:x.folders.map(w=>w.id===f.id?{...f,parentId:d.parentId,rights:w.rights}:w)}))},b=Mr(s,{folderId:d.folderId,newFolder:f});return o(b),g}})},onSettled:()=>{n([]),i([])}})},jn=()=>{const r=z(),e=Q(),t=U(),{setResourceIds:s,setSelectedResources:n}=$(),{filters:i,trashed:o}=t,a=["context",{folderId:i.folder,filters:i,trashed:o}];return X({mutationFn:async({resourceId:l,rights:c})=>await Rr({searchParams:t,resourceId:l,rights:c}),onError(l){typeof l=="string"&&r.error(_("explorer.shared.status.error"))},onSuccess:async(l,c)=>{if(await e.cancelQueries({queryKey:a}),e.getQueryData(a))return r.success(_("explorer.shared.status.saved")),e.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(u=>({...u,resources:u.resources.map(p=>{if(p.assetId===(c==null?void 0:c.resourceId)){let g=[`creator:${p.creatorId}`];return(c==null?void 0:c.rights.length)>=1&&(g=[...g,...c.rights.flatMap(b=>b.actions.map(x=>`${b.type}:${b.id}:${x.id}`))]),{...p,rights:g}}else return p})}))}})},onSettled:()=>{s([]),n([])}})},Cn=()=>{const r=z(),e=Q(),t=U(),{filters:s,trashed:n}=t,i=["context",{folderId:s.folder,filters:s,trashed:n}];return X({mutationFn:async o=>await Pr({searchParams:t,params:o}),onError(o){typeof o=="string"&&r.error(_(o))},onSuccess:async(o,a)=>{if(await e.cancelQueries({queryKey:i}),e.getQueryData(i))return e.setQueryData(i,c=>{if(c)return{...c,pages:c==null?void 0:c.pages.map(f=>({...f,resources:f.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:u,thumbnail:p,public:g,description:b,slug:x,...w}=a;return{...d,...w,name:u,thumbnail:typeof p=="string"?p:URL.createObjectURL(p),public:g,description:b,slug:x}}else return d})}))}})}})},Dn=()=>{const r=z(),e=Q(),t=U(),{user:s}=kt(),{appCode:n}=G(),i=["context",{folderId:t.filters.folder,filters:t.filters,trashed:t.trashed}];return X({mutationFn:async o=>await Lr({searchParams:t,params:o}),onError(o){typeof o=="string"&&r.error(_(o))},onSuccess:async(o,a)=>{var d,u,p;await e.cancelQueries({queryKey:i});const l=e.getQueryData(i),{thumbnail:c}=a,f={...a,thumbnail:c?URL.createObjectURL(c):"",application:n,assetId:o._id||o.entId||"",id:o._id||o.entId||"",creatorId:s==null?void 0:s.userId,creatorName:s==null?void 0:s.username,createdAt:Date.now(),slug:a.slug||"",modifiedAt:((d=o.modified)==null?void 0:d.$date)||"",modifierId:((u=o.author)==null?void 0:u.userId)||"",modifierName:((p=o.author)==null?void 0:p.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${s==null?void 0:s.userId}`]};if(l)return e.setQueryData(i,g=>{if(g)return{...g,pages:g==null?void 0:g.pages.map(b=>({...b,resources:[f,...b.resources]}))}})}})},zr=v.lazy(async()=>await k(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","edifice-react.js","react.js","edifice-icons.js"])),Qr=v.lazy(async()=>await k(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","edifice-react.js","react.js","edifice-icons.js"])),Jr=v.lazy(async()=>await k(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","edifice-react.js","react.js","edifice-icons.js"])),Wr=v.lazy(async()=>await k(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","edifice-react.js","react.js","edifice-icons.js"])),Xr=v.lazy(async()=>await k(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","edifice-react.js","react.js","edifice-icons.js"])),Gr=v.lazy(async()=>await k(()=>import("./FoldersList.js"),["FoldersList.js","edifice-react.js","react.js","edifice-icons.js"])),Yr=v.lazy(async()=>await k(()=>import("./ResourcesList.js"),["ResourcesList.js","edifice-react.js","react.js","edifice-icons.js"])),Zr=()=>{const r=Ar(),e=Ke(),t=Fr(),s=U(),n=ge(),i=ae(),o=z(),{appCode:a}=G(),{t:l}=oe(),{setSearchParams:c,setSearchConfig:f,setTreeData:d}=$(),{data:u,isError:p,error:g,isLoading:b,isFetching:x,fetchNextPage:w}=Kr(),P=(u==null?void 0:u.pages[0].folders.length)===0,D=(u==null?void 0:u.pages[0].resources.length)===0,O=P&&D;return v.useEffect(()=>{var C,L,E;if(u){const T=[...((C=u==null?void 0:u.pages[0])==null?void 0:C.folders)??[]];(L=u==null?void 0:u.pages[0])!=null&&L.searchConfig&&f(u.pages[0].searchConfig),s.search||((n==null?void 0:n.id)==="default"?d({id:q.DEFAULT,section:!0,children:T.map(N=>new je(N)),name:l("explorer.filters.mine",{ns:a})}):d(Ct(i,T,s.filters.folder||q.DEFAULT))),c({...s,pagination:(E=u==null?void 0:u.pages[(u==null?void 0:u.pages.length)-1])==null?void 0:E.pagination})}},[u]),v.useEffect(()=>{g&&typeof g=="string"&&o.error(l(g))},[g]),b?m.jsx(H,{}):p?m.jsx(v.Suspense,{fallback:m.jsx(H,{}),children:m.jsx(Jr,{})}):s.search&&O?m.jsx(v.Suspense,{fallback:m.jsx(H,{}),children:m.jsx(Qr,{})}):r&&O?m.jsx(v.Suspense,{fallback:m.jsx(H,{}),children:m.jsx(zr,{})}):t&&O&&!e?m.jsx(v.Suspense,{fallback:m.jsx(H,{}),children:m.jsx(Wr,{})}):e&&(u==null?void 0:u.pages[0].resources.length)===0?m.jsx(v.Suspense,{fallback:m.jsx(H,{}),children:m.jsx(Xr,{})}):m.jsxs(v.Suspense,{fallback:m.jsx(H,{}),children:[m.jsx(Gr,{data:u,isFetching:x}),m.jsx(Yr,{data:u,isFetching:x,fetchNextPage:w})]})},en=()=>{const{appCode:r,currentApp:e}=G(),{t}=oe(),[s,n]=v.useState(""),i=f=>{if(f==="0"){n("");return}n(f)},o=ge(),a=U(),{setSearchParams:l}=$();v.useEffect(()=>{const f=()=>s.includes("1")?!0:void 0,d=()=>s.includes("2")?!0:void 0,u=()=>s.includes("7")?!0:void 0;l({...a,filters:{owner:f(),public:u(),shared:d(),folder:o?o.id:"default"}})},[o,l,s]);const c=[{label:t("explorer.filter.all",{ns:r}),value:"0"},{label:t("explorer.filter.owner",{ns:r}),value:"1"},{label:t("explorer.filter.shared",{ns:r}),value:"2"},...(e==null?void 0:e.displayName)==Fe.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(e==null?void 0:e.displayName)==Fe.EXERCIZER?[{label:"Exercices à rendre",value:"4"}]:[],...(e==null?void 0:e.displayName)=="pages"?[{label:"Projets publics",value:"5"}]:[],...(e==null?void 0:e.displayName)=="pages"?[{label:"Projets internes",value:"6"}]:[],...(e==null?void 0:e.displayName)==Fe.BLOG?[{label:t("explorer.filter.public",{ns:r}),value:"7"}]:[]];return{selectedFilters:s,options:c,handleOnSelectFilter:i}},tn=()=>{const{appCode:r}=G(),{t:e}=oe(),{selectedFilters:t,options:s,handleOnSelectFilter:n}=en(),{formRef:i,inputSearch:o,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:c}=Dt(),f=t.length>0?t.length:void 0;return m.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",ref:i,children:[m.jsxs(Bt,{id:"search",className:"input-group",children:[m.jsx(qt,{type:"search",placeholder:e("explorer.label.search",{ns:r}),size:"lg",noValidationIcon:!0,value:o,onChange:a,onKeyDown:l}),m.jsx(Vt,{type:"submit","aria-label":e("explorer.label.search",{ns:r}),onClick:c})]}),m.jsxs(se,{placement:"bottom-end",children:[m.jsx(se.Trigger,{label:e("explorer.filters"),icon:m.jsx(is,{width:20}),variant:"ghost",badgeContent:f}),m.jsx(se.Menu,{children:s.map(d=>d.value==="0"?m.jsxs(v.Fragment,{children:[m.jsx(se.RadioItem,{value:d.value,model:t,onChange:()=>n(d.value),children:d.label}),m.jsx(se.Separator,{})]},"0"):m.jsx(se.RadioItem,{value:d.value,model:t,onChange:()=>n(d.value),children:d.label},d.value))})]})]})},sn=({id:r,selected:e,onSelect:t})=>{const{t:s}=oe();return m.jsx("div",{className:"treeview",children:m.jsx("ul",{role:"tree",className:"m-0 p-0",children:m.jsx("li",{id:r,role:"treeitem","aria-selected":e,children:m.jsx("div",{children:m.jsx("div",{className:"action-container",children:m.jsx("div",{onClick:t,role:"button",tabIndex:0,children:m.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[m.jsx(os,{width:"20",height:"20"}),m.jsx("span",{children:s("explorer.tree.trash")})]})})})})})})})},rn=v.lazy(async()=>await k(()=>import("./FolderModal.js"),["FolderModal.js","edifice-react.js","react.js","edifice-icons.js"])),nn=()=>{const r=Q(),[e,t]=Mt(),s=ae(),n=Ke(),i=He(),{appCode:o}=G(),{t:a}=oe(["common",o]),{goToTrash:l,selectTreeItem:c,unfoldTreeItem:f,foldTreeItem:d,clearSelectedItems:u,clearSelectedIds:p}=$(),g=async x=>{await f(x,r)},b=()=>{u(),p(),t()};return m.jsxs(m.Fragment,{children:[m.jsx(Ht,{data:s,selectedNodesIds:i,onTreeItemSelect:c,onTreeItemFold:d,onTreeItemUnfold:g}),m.jsx(sn,{id:q.BIN,selected:n,onSelect:l}),m.jsx("div",{className:"d-grid my-16",children:m.jsx(Kt,{disabled:n,type:"button",color:"primary",variant:"outline",leftIcon:m.jsx(as,{}),onClick:b,children:a("explorer.folder.new")})}),m.jsx(v.Suspense,{fallback:m.jsx(H,{}),children:e&&m.jsx(rn,{edit:!1,isOpen:e,onSuccess:t,onCancel:t})})]})},on=v.lazy(async()=>await k(()=>import("./AppAction.js"),["AppAction.js","edifice-react.js","react.js","edifice-icons.js"])),an=v.lazy(async()=>await k(()=>import("./Library.js"),["Library.js","edifice-react.js","react.js","edifice-icons.js"])),ln=v.lazy(async()=>await k(()=>import("./ActionBarContainer.js"),["ActionBarContainer.js","edifice-react.js","react.js","edifice-icons.js"])),un=v.lazy(async()=>await k(()=>import("./DisableModal.js"),["DisableModal.js","edifice-react.js","react.js","edifice-icons.js"])),cn=v.lazy(async()=>await k(()=>import("./TrashModal.js"),["TrashModal.js","edifice-react.js","react.js","edifice-icons.js"])),fn=v.lazy(async()=>await k(()=>import("./OnboardingModal.js"),["OnboardingModal.js","edifice-react.js","react.js","edifice-icons.js"])),dn=({config:r})=>{const e=U(),{setConfig:t,setSearchParams:s}=$();v.useEffect(()=>{t(r||{}),s({...e,application:r.app,types:r.types})},[r]);const{currentApp:n}=G(),{data:i}=Hr(),{isTrashedModalOpen:o,onTrashedCancel:a}=Ur(),{isActionDisableModalOpen:l,onActionDisableCancel:c}=kr();zt();const f=Qe("publish",i),d=Qe("create",i);return r&&m.jsxs(m.Fragment,{children:[m.jsx(Qt,{render:()=>d?m.jsx(v.Suspense,{fallback:m.jsx(H,{}),children:m.jsx(on,{})}):null,children:m.jsx(Jt,{app:n})}),m.jsxs(Ae,{className:"flex-grow-1",children:[m.jsx(Ae.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:m.jsxs(v.Suspense,{fallback:m.jsx(H,{}),children:[m.jsx(nn,{}),f&&m.jsx(an,{})]})}),m.jsxs(Ae.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[m.jsx(tn,{}),m.jsx(_r,{}),m.jsx(Zr,{})]}),m.jsxs(v.Suspense,{fallback:m.jsx(H,{}),children:[m.jsx(ln,{}),m.jsx(fn,{id:"showOnboardingTrash",items:[{src:"onboarding/illu-trash-menu.svg",alt:"explorer.modal.onboarding.trash.screen1.alt",text:"explorer.modal.onboarding.trash.screen1.title"},{src:"onboarding/illu-trash-notif.svg",alt:"explorer.modal.onboarding.trash.screen2.alt",text:"explorer.modal.onboarding.trash.screen2.alt"},{src:"onboarding/illu-trash-delete.svg",alt:"explorer.modal.onboarding.trash.screen3.alt",text:"explorer.modal.onboarding.trash.screen3.title"}],modalOptions:{title:"explorer.modal.onboarding.trash.title",prevText:"explorer.modal.onboarding.trash.prev",nextText:"explorer.modal.onboarding.trash.next",closeText:"explorer.modal.onboarding.trash.close"}}),o&&m.jsx(cn,{isOpen:o,onCancel:a}),l&&m.jsx(un,{isOpen:l,onCancel:c})]})]})]})};function hn(){const{init:r}=G(),e=zs();return r?m.jsx(Wt,{children:m.jsx(dn,{config:e})}):m.jsx(H,{position:!1})}const pn=document.getElementById("root"),gn=new Xt({queryCache:new Gt({onError:r=>{typeof r=="string"&&r==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});wt(pn).render(m.jsx(v.StrictMode,{children:m.jsxs(Yt,{client:gn,children:[m.jsx(Zt,{params:{app:"blog"},children:m.jsx(es,{children:m.jsx(hn,{})})}),m.jsx(Ks,{initialIsOpen:!1})]})}));export{k as _,Hr as a,ge as b,Dn as c,Ke as d,A as e,De as f,wn as g,vn as h,Ce as i,Rn as j,Tr as k,jn as l,Cn as m,U as n,En as o,Ln as p,Pn as q,On as r,In as s,ae as t,$ as u};
|