@mui-toolpad-extended-tuni/core 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var cT=Object.defineProperty;var fT=(e,t,n)=>t in e?cT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var an=(e,t,n)=>fT(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),co=require("zustand"),dT=require("react-router-dom"),me=require("@mui/material"),pT=require("@emotion/styled"),gu=require("@emotion/react"),fi=require("react-dom"),af=require("notistack");function Gg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const oe=Gg(j),hT=Gg(fi),li=class li{constructor(){an(this,"subscribers",new Set);an(this,"events",new Map)}static getInstance(){return li.instance||(li.instance=new li),li.instance}subscribe(t){return this.subscribers.add(t),t(Array.from(this.events.values())),()=>{this.subscribers.delete(t)}}publish(t,n){Array.from(this.events.keys()).filter(s=>s.startsWith(`${t}:`)).forEach(s=>this.events.delete(s)),n.forEach(s=>{this.events.set(`${t}:${s.id}`,s)});const i=Array.from(this.events.values());this.subscribers.forEach(s=>s(i))}removeSource(t){Array.from(this.events.keys()).filter(s=>s.startsWith(`${t}:`)).forEach(s=>this.events.delete(s));const i=Array.from(this.events.values());this.subscribers.forEach(s=>s(i))}getAllEvents(){return Array.from(this.events.values())}clear(){this.events.clear(),this.subscribers.forEach(t=>t([]))}};an(li,"instance");let Ga=li;const mT=Ga.getInstance(),ci=class ci{constructor(){an(this,"subscribers",new Set);an(this,"currentUser",null);an(this,"lastEvent",null);an(this,"storeConfig",null)}configureStore(t){this.storeConfig=t}getStoreConfig(){if(!this.storeConfig)throw new Error("UserBus store not configured. Call configureStore() first.");return this.storeConfig}static getInstance(){return ci.instance||(ci.instance=new ci),ci.instance}subscribe(t){return this.subscribers.add(t),this.lastEvent&&t(this.lastEvent),()=>{this.subscribers.delete(t)}}publish(t){this.lastEvent=t,t.user?this.currentUser=t.user:t.type==="user:loggedOut"&&(this.currentUser=null),this.subscribers.forEach(n=>n(t))}getCurrentUser(){return this.currentUser}getCurrentUserSync(){return this.currentUser}subscribeToUser(t){return t(this.currentUser),this.subscribe(n=>{t(n.user)})}getLastEvent(){return this.lastEvent}clear(){this.currentUser=null,this.lastEvent=null,this.subscribers.forEach(t=>t({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()}))}initializeFromStore(){const t=this.getStoreConfig().getState();t.user&&!this.currentUser&&(this.currentUser=t.user,this.publish({type:"user:loggedIn",user:t.user,timestamp:new Date().toISOString()}))}async getUser(){await this.getStoreConfig().getUser()}async updateUser(t){const n=this.getStoreConfig(),s=n.getState().user,a=await n.updateUser(t);return this.publish({type:"user:updated",user:a,timestamp:new Date().toISOString(),metadata:{previousUser:s}}),a}setUserToUpdate(t){this.getStoreConfig().setUserToUpdate(t)}async fetchCourseUsers(t){await this.getStoreConfig().fetchCourseUsers(t)}getCourseUsers(){return this.getStoreConfig().getState().courseUsers}async logout(){await this.getStoreConfig().logout(),this.publish({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()})}};an(ci,"instance");let Ya=ci;const Yt=Ya.getInstance(),Yg=()=>{const[e,t]=j.useState(()=>Yt.getCurrentUserSync()),[n,i]=j.useState(!1);return j.useEffect(()=>{const s=Yt.subscribeToUser(a=>{t(a),i(!1)});return e||(i(!0),Yt.initializeFromStore(),Yt.getCurrentUserSync()||Yt.getUser().finally(()=>i(!1))),s},[]),{user:e,isLoading:n}},gT=()=>{const[e,t]=j.useState(()=>{const n=Yt.getCurrentUserSync();return(n==null?void 0:n.preferences)||null});return j.useEffect(()=>Yt.subscribeToUser(i=>{t((i==null?void 0:i.preferences)||null)}),[]),{preferences:e}},Zg=()=>{const e=j.useCallback(async u=>await Yt.updateUser(u),[]),t=j.useCallback(u=>{Yt.setUserToUpdate(u)},[]),n=j.useCallback(async u=>await Yt.fetchCourseUsers(u),[]),i=j.useCallback(async()=>await Yt.getUser(),[]),s=j.useCallback(async()=>await Yt.logout(),[]),a=j.useCallback(()=>Yt.getCourseUsers(),[]);return{updateUser:e,setUserToUpdate:t,fetchCourseUsers:n,getUser:i,logout:s,getCourseUsers:a}};var wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xg(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var xa={exports:{}},ko={};/**
1
+ "use strict";var fT=Object.defineProperty;var dT=(e,t,n)=>t in e?fT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var an=(e,t,n)=>dT(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),fo=require("zustand"),pT=require("react-router-dom"),me=require("@mui/material"),hT=require("@emotion/styled"),yu=require("@emotion/react"),fi=require("react-dom"),uf=require("notistack");function Yg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const oe=Yg(B),mT=Yg(fi),li=class li{constructor(){an(this,"subscribers",new Set);an(this,"events",new Map)}static getInstance(){return li.instance||(li.instance=new li),li.instance}subscribe(t){return this.subscribers.add(t),t(Array.from(this.events.values())),()=>{this.subscribers.delete(t)}}publish(t,n){Array.from(this.events.keys()).filter(s=>s.startsWith(`${t}:`)).forEach(s=>this.events.delete(s)),n.forEach(s=>{this.events.set(`${t}:${s.id}`,s)});const i=Array.from(this.events.values());this.subscribers.forEach(s=>s(i))}removeSource(t){Array.from(this.events.keys()).filter(s=>s.startsWith(`${t}:`)).forEach(s=>this.events.delete(s));const i=Array.from(this.events.values());this.subscribers.forEach(s=>s(i))}getAllEvents(){return Array.from(this.events.values())}clear(){this.events.clear(),this.subscribers.forEach(t=>t([]))}};an(li,"instance");let Za=li;const gT=Za.getInstance(),ci=class ci{constructor(){an(this,"subscribers",new Set);an(this,"currentUser",null);an(this,"lastEvent",null);an(this,"storeConfig",null)}configureStore(t){this.storeConfig=t}getStoreConfig(){if(!this.storeConfig)throw new Error("UserBus store not configured. Call configureStore() first.");return this.storeConfig}static getInstance(){return ci.instance||(ci.instance=new ci),ci.instance}subscribe(t){return this.subscribers.add(t),this.lastEvent&&t(this.lastEvent),()=>{this.subscribers.delete(t)}}publish(t){this.lastEvent=t,t.user?this.currentUser=t.user:t.type==="user:loggedOut"&&(this.currentUser=null),this.subscribers.forEach(n=>n(t))}getCurrentUser(){return this.currentUser}getCurrentUserSync(){return this.currentUser}subscribeToUser(t){return t(this.currentUser),this.subscribe(n=>{t(n.user)})}getLastEvent(){return this.lastEvent}clear(){this.currentUser=null,this.lastEvent=null,this.subscribers.forEach(t=>t({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()}))}initializeFromStore(){const t=this.getStoreConfig().getState();t.user&&!this.currentUser&&(this.currentUser=t.user,this.publish({type:"user:loggedIn",user:t.user,timestamp:new Date().toISOString()}))}async getUser(){await this.getStoreConfig().getUser()}async updateUser(t){const n=this.getStoreConfig(),s=n.getState().user,a=await n.updateUser(t);return this.publish({type:"user:updated",user:a,timestamp:new Date().toISOString(),metadata:{previousUser:s}}),a}setUserToUpdate(t){this.getStoreConfig().setUserToUpdate(t)}async fetchCourseUsers(t){await this.getStoreConfig().fetchCourseUsers(t)}getCourseUsers(){return this.getStoreConfig().getState().courseUsers}async logout(){await this.getStoreConfig().logout(),this.publish({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()})}};an(ci,"instance");let Xa=ci;const Yt=Xa.getInstance(),Zg=()=>{const[e,t]=B.useState(()=>Yt.getCurrentUserSync()),[n,i]=B.useState(!1);return B.useEffect(()=>{const s=Yt.subscribeToUser(a=>{t(a),i(!1)});return e||(i(!0),Yt.initializeFromStore(),Yt.getCurrentUserSync()||Yt.getUser().finally(()=>i(!1))),s},[]),{user:e,isLoading:n}},yT=()=>{const[e,t]=B.useState(()=>{const n=Yt.getCurrentUserSync();return(n==null?void 0:n.preferences)||null});return B.useEffect(()=>Yt.subscribeToUser(i=>{t((i==null?void 0:i.preferences)||null)}),[]),{preferences:e}},Xg=()=>{const e=B.useCallback(async u=>await Yt.updateUser(u),[]),t=B.useCallback(u=>{Yt.setUserToUpdate(u)},[]),n=B.useCallback(async u=>await Yt.fetchCourseUsers(u),[]),i=B.useCallback(async()=>await Yt.getUser(),[]),s=B.useCallback(async()=>await Yt.logout(),[]),a=B.useCallback(()=>Yt.getCourseUsers(),[]);return{updateUser:e,setUserToUpdate:t,fetchCourseUsers:n,getUser:i,logout:s,getCourseUsers:a}};var xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jg(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var Sa={exports:{}},$o={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Sh;function vT(){if(Sh)return ko;Sh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,a){var u=null;if(a!==void 0&&(u=""+a),s.key!==void 0&&(u=""+s.key),"key"in s){a={};for(var c in s)c!=="key"&&(a[c]=s[c])}else a=s;return s=a.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:a}}return ko.Fragment=t,ko.jsx=n,ko.jsxs=n,ko}var $o={};/**
9
+ */var Eh;function bT(){if(Eh)return $o;Eh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,a){var u=null;if(a!==void 0&&(u=""+a),s.key!==void 0&&(u=""+s.key),"key"in s){a={};for(var c in s)c!=="key"&&(a[c]=s[c])}else a=s;return s=a.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:a}}return $o.Fragment=t,$o.jsx=n,$o.jsxs=n,$o}var Lo={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,24 +14,24 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Eh;function bT(){return Eh||(Eh=1,process.env.NODE_ENV!=="production"&&function(){function e($){if($==null)return null;if(typeof $=="function")return $.$$typeof===Z?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case v:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case J:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case y:return"Portal";case E:return $.displayName||"Context";case S:return($._context.displayName||"Context")+".Consumer";case T:var ue=$.render;return $=$.displayName,$||($=ue.displayName||ue.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case A:return ue=$.displayName||null,ue!==null?ue:e($.type)||"Memo";case z:ue=$._payload,$=$._init;try{return e($(ue))}catch{}}return null}function t($){return""+$}function n($){try{t($);var ue=!1}catch{ue=!0}if(ue){ue=console;var ye=ue.error,pe=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return ye.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",pe),t($)}}function i($){if($===v)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===z)return"<...>";try{var ue=e($);return ue?"<"+ue+">":"<...>"}catch{return"<...>"}}function s(){var $=_.A;return $===null?null:$.getOwner()}function a(){return Error("react-stack-top-frame")}function u($){if(H.call($,"key")){var ue=Object.getOwnPropertyDescriptor($,"key").get;if(ue&&ue.isReactWarning)return!1}return $.key!==void 0}function c($,ue){function ye(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}ye.isReactWarning=!0,Object.defineProperty($,"key",{get:ye,configurable:!0})}function f(){var $=e(this.type);return X[$]||(X[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function p($,ue,ye,pe,Oe,Te){var ve=ye.ref;return $={$$typeof:C,type:$,key:ue,props:ye,_owner:pe},(ve!==void 0?ve:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:f}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function h($,ue,ye,pe,Oe,Te){var ve=ue.children;if(ve!==void 0)if(pe)if(B(ve)){for(pe=0;pe<ve.length;pe++)x(ve[pe]);Object.freeze&&Object.freeze(ve)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(ve);if(H.call(ue,"key")){ve=e($);var ee=Object.keys(ue).filter(function(Ee){return Ee!=="key"});pe=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",Y[ve+pe]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Oh;function wT(){return Oh||(Oh=1,process.env.NODE_ENV!=="production"&&function(){function e($){if($==null)return null;if(typeof $=="function")return $.$$typeof===Z?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case v:return"Fragment";case m:return"Profiler";case g:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case J:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case y:return"Portal";case E:return $.displayName||"Context";case S:return($._context.displayName||"Context")+".Consumer";case C:var ue=$.render;return $=$.displayName,$||($=ue.displayName||ue.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case A:return ue=$.displayName||null,ue!==null?ue:e($.type)||"Memo";case z:ue=$._payload,$=$._init;try{return e($(ue))}catch{}}return null}function t($){return""+$}function n($){try{t($);var ue=!1}catch{ue=!0}if(ue){ue=console;var ye=ue.error,pe=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return ye.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",pe),t($)}}function i($){if($===v)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===z)return"<...>";try{var ue=e($);return ue?"<"+ue+">":"<...>"}catch{return"<...>"}}function s(){var $=_.A;return $===null?null:$.getOwner()}function a(){return Error("react-stack-top-frame")}function u($){if(H.call($,"key")){var ue=Object.getOwnPropertyDescriptor($,"key").get;if(ue&&ue.isReactWarning)return!1}return $.key!==void 0}function c($,ue){function ye(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}ye.isReactWarning=!0,Object.defineProperty($,"key",{get:ye,configurable:!0})}function f(){var $=e(this.type);return X[$]||(X[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function p($,ue,ye,pe,Oe,Te){var ve=ye.ref;return $={$$typeof:O,type:$,key:ue,props:ye,_owner:pe},(ve!==void 0?ve:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:f}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function h($,ue,ye,pe,Oe,Te){var ve=ue.children;if(ve!==void 0)if(pe)if(U(ve)){for(pe=0;pe<ve.length;pe++)x(ve[pe]);Object.freeze&&Object.freeze(ve)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(ve);if(H.call(ue,"key")){ve=e($);var ee=Object.keys(ue).filter(function(Ee){return Ee!=="key"});pe=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",Y[ve+pe]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,pe,ve,ee,ve),Y[ve+pe]=!0)}if(ve=null,ye!==void 0&&(n(ye),ve=""+ye),u(ue)&&(n(ue.key),ve=""+ue.key),"key"in ue){ye={};for(var ce in ue)ce!=="key"&&(ye[ce]=ue[ce])}else ye=ue;return ve&&c(ye,typeof $=="function"?$.displayName||$.name||"Unknown":$),p($,ve,ye,s(),Oe,Te)}function x($){R($)?$._store&&($._store.validated=1):typeof $=="object"&&$!==null&&$.$$typeof===z&&($._payload.status==="fulfilled"?R($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function R($){return typeof $=="object"&&$!==null&&$.$$typeof===C}var w=j,C=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),_=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,B=Array.isArray,K=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function($){return $()}};var q,X={},fe=w.react_stack_bottom_frame.bind(w,a)(),ae=K(i(a)),Y={};$o.Fragment=v,$o.jsx=function($,ue,ye){var pe=1e4>_.recentlyCreatedOwnerStacks++;return h($,ue,ye,!1,pe?Error("react-stack-top-frame"):fe,pe?K(i($)):ae)},$o.jsxs=function($,ue,ye){var pe=1e4>_.recentlyCreatedOwnerStacks++;return h($,ue,ye,!0,pe?Error("react-stack-top-frame"):fe,pe?K(i($)):ae)}}()),$o}var Oh;function wT(){return Oh||(Oh=1,process.env.NODE_ENV==="production"?xa.exports=vT():xa.exports=bT()),xa.exports}var F=wT();function xT(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}const Th=[],uf=(e,t,n)=>{let i=[];return t.forEach(s=>{if(!n[s])return;const a=e[s];a&&(i.length>0&&i.push({kind:"divider"}),i.push(a.header),a.pageOrder.forEach(u=>{const c=a.pages[u];i.push(c)}))}),Th.length>0&&(i.length>0&&i.push({kind:"divider"}),i=[...i,...Th]),i},Jg=e=>[...e.allMicroserviceNavigation,...e.externalMicroservices],ST=(e,t)=>{var c;if(!((c=e.metadata)!=null&&c.microservices))return null;const n=(e.children||[]).filter(f=>!t.some(p=>p.segment===f.segment)),i=t.filter(f=>e.metadata.microservices.includes(f.segment)),s=[...n,...i],a=e.children||[];return a.length!==s.length||!a.every((f,p)=>{var h;return f.segment===((h=s[p])==null?void 0:h.segment)})?{...e,children:s}:null},ET=(e,t)=>{var n,i;if((n=e.metadata)!=null&&n.microservices){const s=((i=e.children)==null?void 0:i.filter(p=>!t.some(h=>h.segment===p.segment)))||[],a=t.filter(p=>e.metadata.microservices.includes(p.segment)),u=[...s,...a],c=e.children||[];return JSON.stringify(c)!==JSON.stringify(u)?{...e,children:u}:null}if(e.children&&e.children.length>0){let s=!1;const a=e.children.map(u=>{const c=ST(u,t);return c?(s=!0,c):{...u}});return s?{...e,children:a}:{...e,children:[...a]}}return null},OT=(e,t)=>{const n={...e,pages:Object.keys(e.pages).reduce((s,a)=>{var c;const u=e.pages[a];return s[a]={...u,children:(c=u.children)==null?void 0:c.map(f=>({...f,children:f.children?[...f.children]:void 0}))},s},{})};let i=!1;return Object.keys(n.pages).forEach(s=>{const a=n.pages[s],u=ET(a,t);u&&(n.pages[s]=u,i=!0)}),i?n:null},Kg=e=>{try{const t=Jg(e);if(t.length===0)return null;const n={...e.sections};let i=!1;if(Object.keys(n).forEach(a=>{const u=n[a],c=OT(u,t);c&&(n[a]=c,i=!0)}),!i)return null;const s=uf(n,e.sectionOrder,e.visibleSections);return{sections:n,navigation:s}}catch(t){throw console.error("[updateMicroserviceNavigationForSections] Error:",t),t}},TT=[],gr=co.create((e,t)=>({navigation:TT,sections:{},sectionOrder:[],allMicroserviceNavigation:[],externalMicroservices:[],visibleSections:{},collapsedSections:{},setVisibleSections:n=>{e({visibleSections:n}),t().recalculateNavigation()},setCollapsedSections:n=>{e({collapsedSections:n})},toggleSectionCollapse:n=>{e(i=>({collapsedSections:{...i.collapsedSections,[n]:!i.collapsedSections[n]}}))},addSection:({underHeader:n,pages:i,keepVisible:s})=>e(a=>{const u=n,c={...a.sections},f={...a.visibleSections};s?f[u]=!0:u in f||(f[u]=!1),c[u]||(c[u]={header:{kind:"header",title:n},pages:{},pageOrder:[]}),i.forEach(h=>{const{segment:x,title:R,Icon:w,description:C,instances:y,microservices:v,actionFC:g}=h,m=y==null?void 0:y.map(E=>({kind:"page",segment:E,title:E,metadata:{description:C,forRoles:["student","teacher"],microservices:v},children:[]})),S={kind:"page",segment:x,title:R,iconFC:w,actionFC:g,metadata:{description:C,forRoles:["student","teacher"],isRootTool:!0,underHeader:n,microservices:y?void 0:v},...m&&m.length>0?{children:m}:{}};c[u].pages[x]=S,c[u].pageOrder.includes(x)||c[u].pageOrder.push(x)});const p=a.sections[u]?a.sectionOrder:[...a.sectionOrder,u];return{sections:c,sectionOrder:p,visibleSections:f}}),recalculateNavigation:()=>{const n=t(),i=uf(n.sections,n.sectionOrder,n.visibleSections);JSON.stringify(n.navigation)!==JSON.stringify(i)&&e({navigation:i})},addMicroserviceNavigation:n=>e(i=>i.allMicroserviceNavigation.find(a=>a.segment===n.segment)?i:{allMicroserviceNavigation:[...i.allMicroserviceNavigation,n]}),updateMicroserviceNavigationForSections:()=>{const n=t(),i=Kg(n);i&&e(i)},addStandaloneNavigation:n=>e(i=>{let s=[...i.navigation];if(!s.find(u=>u.kind==="page"&&u.segment===n.segment)){const u=s.findIndex(c=>c.kind==="divider"||c.kind==="header");return u!==-1?s.splice(u,0,n):s.push(n),{navigation:s}}return i}),removeHeader:n=>e(i=>{const s={...i.sections};s[n]&&delete s[n];const a=i.sectionOrder.filter(u=>u!==n);return{sections:s,sectionOrder:a}}),setExternalMicroservices:n=>{e({externalMicroservices:n}),t().updateMicroserviceNavigationForSections()}})),CT=e=>({teacher:[],student:[],guest:[]})[e]||[],Qg="navigation-filter-preferences",Ch=()=>{try{const e=localStorage.getItem(Qg);if(e)return JSON.parse(e)}catch(e){console.warn("Failed to load navigation filter preferences from localStorage:",e)}return null},_h=e=>{try{localStorage.setItem(Qg,JSON.stringify(e))}catch(t){console.warn("Failed to save navigation filter preferences to localStorage:",t),t instanceof DOMException&&t.code===22&&console.error("localStorage quota exceeded. Consider clearing old data.")}},Br=co.create((e,t)=>({filterOptions:Ch()||{},setFilterOptions:n=>e(i=>{const s=typeof n=="function"?n(i.filterOptions):n;return _h(s),{filterOptions:s}}),initializeFilters:()=>{const{sectionOrder:n}=gr.getState(),i=t().filterOptions,s=Object.keys(i).length>0?i:Ch()||{},a=n.reduce((f,p)=>(p in s||(f[p]=p==="Courses"),f),{}),u={...s,...a};Object.keys(a).length>0&&(e({filterOptions:u}),_h(u))}})),un=new Map,Wi=new Map,Rh=()=>{const e=gr.getState(),{setFilterOptions:t}=Br.getState(),n={};un.forEach((i,s)=>{var u,c;if(!((u=i.metadata)!=null&&u.showInNavigation))return;const a=i.category||"Microservices";n[a]||(n[a]=[]),n[a].push({segment:s,title:i.name,Icon:i.iconComponent,description:i.description}),(c=i.metadata)!=null&&c.keepVisible&&t(f=>({...f,[a]:!0}))}),Object.entries(n).forEach(([i,s])=>{e.addSection({underHeader:i,pages:s})}),e.recalculateNavigation()},ys=co.create(e=>({microservices:un,routeProviders:Wi,lastUpdate:Date.now(),registerMicroservice:(t,n)=>{un.set(t,n),e({microservices:new Map(un),lastUpdate:Date.now()}),Rh()},unregisterMicroservice:t=>{un.has(t)&&(un.delete(t),e({microservices:new Map(un),lastUpdate:Date.now()}),Rh())},registerRouteProvider:(t,n)=>{Wi.set(t,n),e({routeProviders:new Map(Wi),lastUpdate:Date.now()})},unregisterRouteProvider:t=>{Wi.has(t)&&(Wi.delete(t),e({routeProviders:new Map(Wi),lastUpdate:Date.now()}))},getRoutes:()=>{const t=[];return un.forEach(n=>{var i;if((i=n.metadata)!=null&&i.route){const s=n.Component;t.push({path:n.metadata.route.path,element:n.metadata.route.element||F.jsx(s,{...n.props}),index:n.metadata.route.index})}}),t}})),lf=()=>ys(e=>({microservices:e.microservices,routeProviders:e.routeProviders,lastUpdate:e.lastUpdate}),xT);function _T(e,t,n){if(un.has(e))return;const i={Component:t,props:n==null?void 0:n.props,name:(n==null?void 0:n.name)||e,description:n==null?void 0:n.description,category:n==null?void 0:n.category,iconComponent:n==null?void 0:n.iconComponent,metadata:n==null?void 0:n.metadata};ys.getState().registerMicroservice(e,i)}function RT(e){ys.getState().unregisterMicroservice(e)}function DT(e){return un.get(e)}function ey(){return new Map(un)}function MT(){return Array.from(un.keys())}function PT(e){return un.has(e)}function IT(e,t){ys.getState().registerRouteProvider(e,t)}function NT(e){ys.getState().unregisterRouteProvider(e)}const AT=()=>{const{lastUpdate:e,microservices:t,routeProviders:n}=lf();return j.useMemo(()=>{const i=[];return t.forEach(s=>{var a;if((a=s.metadata)!=null&&a.route){const u=s.Component;i.push(F.jsx(dT.Route,{path:s.metadata.route.path,element:s.metadata.route.element||F.jsx(u,{...s.props}),index:s.metadata.route.index},s.metadata.route.path))}}),n.forEach((s,a)=>{try{const u=s();i.push(...u)}catch(u){console.error(`Error getting routes from route provider "${a}":`,u)}}),i},[t,n,e])},kT=()=>{const{addSection:e,recalculateNavigation:t,setVisibleSections:n}=gr(),{setFilterOptions:i,initializeFilters:s}=Br(),{lastUpdate:a}=lf();return j.useEffect(()=>{const u=ey(),c={};u.forEach((p,h)=>{var R;const x=p.category||"Microservices";c[x]||(c[x]=[]),c[x].push({segment:h,title:p.name,Icon:p.iconComponent,description:p.description}),(R=p.metadata)!=null&&R.keepVisible&&i(w=>({...w,[x]:!0}))}),Object.entries(c).forEach(([p,h])=>{e({underHeader:p,pages:h})}),s();const f=Br.getState().filterOptions;n(f),t()},[a,n]),null},$T=()=>{const{addSection:e,recalculateNavigation:t,sectionOrder:n,setVisibleSections:i}=gr(),{setFilterOptions:s,initializeFilters:a}=Br();return j.useEffect(()=>{if(n.length>0){a();const c=Br.getState().filterOptions;i(c),t()}},[n,a,t,i]),{addDynamicSection:j.useCallback(c=>{e({underHeader:c.header,keepVisible:c.keepVisible,pages:c.pages||[]}),c.keepVisible&&s(f=>({...f,[c.header]:!0}))},[e,s])}};var Jo={exports:{}};/**
22
+ <%s key={someKey} {...props} />`,pe,ve,ee,ve),Y[ve+pe]=!0)}if(ve=null,ye!==void 0&&(n(ye),ve=""+ye),u(ue)&&(n(ue.key),ve=""+ue.key),"key"in ue){ye={};for(var ce in ue)ce!=="key"&&(ye[ce]=ue[ce])}else ye=ue;return ve&&c(ye,typeof $=="function"?$.displayName||$.name||"Unknown":$),p($,ve,ye,s(),Oe,Te)}function x($){R($)?$._store&&($._store.validated=1):typeof $=="object"&&$!==null&&$.$$typeof===z&&($._payload.status==="fulfilled"?R($._payload.value)&&$._payload.value._store&&($._payload.value._store.validated=1):$._store&&($._store.validated=1))}function R($){return typeof $=="object"&&$!==null&&$.$$typeof===O}var w=B,O=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),_=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,U=Array.isArray,K=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function($){return $()}};var V,X={},fe=w.react_stack_bottom_frame.bind(w,a)(),ae=K(i(a)),Y={};Lo.Fragment=v,Lo.jsx=function($,ue,ye){var pe=1e4>_.recentlyCreatedOwnerStacks++;return h($,ue,ye,!1,pe?Error("react-stack-top-frame"):fe,pe?K(i($)):ae)},Lo.jsxs=function($,ue,ye){var pe=1e4>_.recentlyCreatedOwnerStacks++;return h($,ue,ye,!0,pe?Error("react-stack-top-frame"):fe,pe?K(i($)):ae)}}()),Lo}var Th;function xT(){return Th||(Th=1,process.env.NODE_ENV==="production"?Sa.exports=bT():Sa.exports=wT()),Sa.exports}var F=xT();function ST(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}const Ch=[],lf=(e,t,n)=>{let i=[];return t.forEach(s=>{if(!n[s])return;const a=e[s];a&&(i.length>0&&i.push({kind:"divider"}),i.push(a.header),a.pageOrder.forEach(u=>{const c=a.pages[u];i.push(c)}))}),Ch.length>0&&(i.length>0&&i.push({kind:"divider"}),i=[...i,...Ch]),i},Kg=e=>[...e.allMicroserviceNavigation,...e.externalMicroservices],ET=(e,t)=>{var c;if(!((c=e.metadata)!=null&&c.microservices))return null;const n=(e.children||[]).filter(f=>!t.some(p=>p.segment===f.segment)),i=t.filter(f=>e.metadata.microservices.includes(f.segment)),s=[...n,...i],a=e.children||[];return a.length!==s.length||!a.every((f,p)=>{var h;return f.segment===((h=s[p])==null?void 0:h.segment)})?{...e,children:s}:null},OT=(e,t)=>{var n,i;if((n=e.metadata)!=null&&n.microservices){const s=((i=e.children)==null?void 0:i.filter(p=>!t.some(h=>h.segment===p.segment)))||[],a=t.filter(p=>e.metadata.microservices.includes(p.segment)),u=[...s,...a],c=e.children||[];return JSON.stringify(c)!==JSON.stringify(u)?{...e,children:u}:null}if(e.children&&e.children.length>0){let s=!1;const a=e.children.map(u=>{const c=ET(u,t);return c?(s=!0,c):{...u}});return s?{...e,children:a}:{...e,children:[...a]}}return null},TT=(e,t)=>{const n={...e,pages:Object.keys(e.pages).reduce((s,a)=>{var c;const u=e.pages[a];return s[a]={...u,children:(c=u.children)==null?void 0:c.map(f=>({...f,children:f.children?[...f.children]:void 0}))},s},{})};let i=!1;return Object.keys(n.pages).forEach(s=>{const a=n.pages[s],u=OT(a,t);u&&(n.pages[s]=u,i=!0)}),i?n:null},Qg=e=>{try{const t=Kg(e);if(t.length===0)return null;const n={...e.sections};let i=!1;if(Object.keys(n).forEach(a=>{const u=n[a],c=TT(u,t);c&&(n[a]=c,i=!0)}),!i)return null;const s=lf(n,e.sectionOrder,e.visibleSections);return{sections:n,navigation:s}}catch(t){throw console.error("[updateMicroserviceNavigationForSections] Error:",t),t}},CT=[],Jn=fo.create((e,t)=>({navigation:CT,sections:{},sectionOrder:[],allMicroserviceNavigation:[],externalMicroservices:[],visibleSections:{},collapsedSections:{},setVisibleSections:n=>{e(i=>({visibleSections:{...i.visibleSections,...n}})),t().recalculateNavigation()},setCollapsedSections:n=>{e({collapsedSections:n})},toggleSectionCollapse:n=>{e(i=>({collapsedSections:{...i.collapsedSections,[n]:!i.collapsedSections[n]}}))},addSection:({underHeader:n,pages:i,keepVisible:s})=>e(a=>{const u=n,c={...a.sections},f={...a.visibleSections};s?f[u]=!0:u in f||(f[u]=!1),c[u]||(c[u]={header:{kind:"header",title:n},pages:{},pageOrder:[]}),i.forEach(h=>{const{segment:x,title:R,Icon:w,description:O,instances:y,microservices:v,actionFC:g}=h,m=y==null?void 0:y.map(E=>({kind:"page",segment:E,title:E,metadata:{description:O,forRoles:["student","teacher"],microservices:v},children:[]})),S={kind:"page",segment:x,title:R,iconFC:w,actionFC:g,metadata:{description:O,forRoles:["student","teacher"],isRootTool:!0,underHeader:n,microservices:y?void 0:v},...m&&m.length>0?{children:m}:{}};c[u].pages[x]=S,c[u].pageOrder.includes(x)||c[u].pageOrder.push(x)});const p=a.sections[u]?a.sectionOrder:[...a.sectionOrder,u];return{sections:c,sectionOrder:p,visibleSections:f}}),recalculateNavigation:()=>{const n=t(),i=lf(n.sections,n.sectionOrder,n.visibleSections);JSON.stringify(n.navigation)!==JSON.stringify(i)&&e({navigation:i})},addMicroserviceNavigation:n=>e(i=>i.allMicroserviceNavigation.find(a=>a.segment===n.segment)?i:{allMicroserviceNavigation:[...i.allMicroserviceNavigation,n]}),updateMicroserviceNavigationForSections:()=>{const n=t(),i=Qg(n);i&&e(i)},addStandaloneNavigation:n=>e(i=>{let s=[...i.navigation];if(!s.find(u=>u.kind==="page"&&u.segment===n.segment)){const u=s.findIndex(c=>c.kind==="divider"||c.kind==="header");return u!==-1?s.splice(u,0,n):s.push(n),{navigation:s}}return i}),removeHeader:n=>e(i=>{const s={...i.sections};s[n]&&delete s[n];const a=i.sectionOrder.filter(u=>u!==n);return{sections:s,sectionOrder:a}}),setExternalMicroservices:n=>{e({externalMicroservices:n}),t().updateMicroserviceNavigationForSections()}})),_T=e=>({teacher:[],student:[],guest:[]})[e]||[],ey="navigation-filter-preferences",_h=()=>{try{const e=localStorage.getItem(ey);if(e)return JSON.parse(e)}catch(e){console.warn("Failed to load navigation filter preferences from localStorage:",e)}return null},Rh=e=>{try{localStorage.setItem(ey,JSON.stringify(e))}catch(t){console.warn("Failed to save navigation filter preferences to localStorage:",t),t instanceof DOMException&&t.code===22&&console.error("localStorage quota exceeded. Consider clearing old data.")}},Br=fo.create((e,t)=>({filterOptions:_h()||{},setFilterOptions:n=>e(i=>{const s=typeof n=="function"?n(i.filterOptions):n;return Rh(s),{filterOptions:s}}),initializeFilters:()=>{const{sectionOrder:n,visibleSections:i}=Jn.getState(),s=t().filterOptions,a=Object.keys(s).length>0?s:_h()||{},u=n.reduce((p,h)=>{if(!(h in a)){const x=i[h]===!0;p[h]=x||h==="Courses"}return p},{}),c={...a,...u};Object.keys(u).length>0&&(e({filterOptions:c}),Rh(c))}})),un=new Map,Wi=new Map,Dh=()=>{const e=Jn.getState(),{setFilterOptions:t}=Br.getState(),n={};un.forEach((i,s)=>{var u,c;if(!((u=i.metadata)!=null&&u.showInNavigation))return;const a=i.category||"Microservices";n[a]||(n[a]=[]),n[a].push({segment:s,title:i.name,Icon:i.iconComponent,description:i.description}),(c=i.metadata)!=null&&c.keepVisible&&t(f=>({...f,[a]:!0}))}),Object.entries(n).forEach(([i,s])=>{e.addSection({underHeader:i,pages:s})}),e.recalculateNavigation()},vs=fo.create(e=>({microservices:un,routeProviders:Wi,lastUpdate:Date.now(),registerMicroservice:(t,n)=>{un.set(t,n),e({microservices:new Map(un),lastUpdate:Date.now()}),Dh()},unregisterMicroservice:t=>{un.has(t)&&(un.delete(t),e({microservices:new Map(un),lastUpdate:Date.now()}),Dh())},registerRouteProvider:(t,n)=>{Wi.set(t,n),e({routeProviders:new Map(Wi),lastUpdate:Date.now()})},unregisterRouteProvider:t=>{Wi.has(t)&&(Wi.delete(t),e({routeProviders:new Map(Wi),lastUpdate:Date.now()}))},getRoutes:()=>{const t=[];return un.forEach(n=>{var i;if((i=n.metadata)!=null&&i.route){const s=n.Component;t.push({path:n.metadata.route.path,element:n.metadata.route.element||F.jsx(s,{...n.props}),index:n.metadata.route.index})}}),t}})),cf=()=>vs(e=>({microservices:e.microservices,routeProviders:e.routeProviders,lastUpdate:e.lastUpdate}),ST);function RT(e,t,n){if(un.has(e))return;const i={Component:t,props:n==null?void 0:n.props,name:(n==null?void 0:n.name)||e,description:n==null?void 0:n.description,category:n==null?void 0:n.category,iconComponent:n==null?void 0:n.iconComponent,metadata:n==null?void 0:n.metadata};vs.getState().registerMicroservice(e,i)}function DT(e){vs.getState().unregisterMicroservice(e)}function MT(e){return un.get(e)}function ty(){return new Map(un)}function PT(){return Array.from(un.keys())}function IT(e){return un.has(e)}function NT(e,t){vs.getState().registerRouteProvider(e,t)}function AT(e){vs.getState().unregisterRouteProvider(e)}const kT=()=>{const{lastUpdate:e,microservices:t,routeProviders:n}=cf();return B.useMemo(()=>{const i=[];return t.forEach(s=>{var a;if((a=s.metadata)!=null&&a.route){const u=s.Component;i.push(F.jsx(pT.Route,{path:s.metadata.route.path,element:s.metadata.route.element||F.jsx(u,{...s.props}),index:s.metadata.route.index},s.metadata.route.path))}}),n.forEach((s,a)=>{try{const u=s();i.push(...u)}catch(u){console.error(`Error getting routes from route provider "${a}":`,u)}}),i},[t,n,e])},$T=()=>{const{addSection:e,recalculateNavigation:t,setVisibleSections:n}=Jn(),{setFilterOptions:i,initializeFilters:s}=Br(),{lastUpdate:a}=cf();return B.useEffect(()=>{const u=ty(),c={};u.forEach((p,h)=>{var R;const x=p.category||"Microservices";c[x]||(c[x]=[]),c[x].push({segment:h,title:p.name,Icon:p.iconComponent,description:p.description}),(R=p.metadata)!=null&&R.keepVisible&&i(w=>({...w,[x]:!0}))}),Object.entries(c).forEach(([p,h])=>{e({underHeader:p,pages:h})}),s();const f=Br.getState().filterOptions;n(f),t()},[a,n]),null},LT=()=>{const{addSection:e,recalculateNavigation:t,sectionOrder:n,setVisibleSections:i}=Jn(),{setFilterOptions:s,initializeFilters:a}=Br();return B.useEffect(()=>{if(n.length>0){a();const c=Br.getState().filterOptions;i(c),t()}},[n,a,t,i]),{addDynamicSection:B.useCallback(c=>{e({underHeader:c.header,keepVisible:c.keepVisible,pages:c.pages||[]}),c.keepVisible&&s(f=>({...f,[c.header]:!0}))},[e,s])}};var Ko={exports:{}};/**
23
23
  * @license
24
24
  * Lodash <https://lodash.com/>
25
25
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
26
26
  * Released under MIT license <https://lodash.com/license>
27
27
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
28
28
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
29
- */var LT=Jo.exports,Dh;function zT(){return Dh||(Dh=1,function(e,t){(function(){var n,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",x=1,R=2,w=4,C=1,y=2,v=1,g=2,m=4,S=8,E=16,T=32,M=64,D=128,A=256,z=512,J=30,Z="...",_=800,H=16,B=1,K=2,q=3,X=1/0,fe=9007199254740991,ae=17976931348623157e292,Y=NaN,$=4294967295,ue=$-1,ye=$>>>1,pe=[["ary",D],["bind",v],["bindKey",g],["curry",S],["curryRight",E],["flip",z],["partial",T],["partialRight",M],["rearg",A]],Oe="[object Arguments]",Te="[object Array]",ve="[object AsyncFunction]",ee="[object Boolean]",ce="[object Date]",Ee="[object DOMException]",Re="[object Error]",N="[object Function]",W="[object GeneratorFunction]",G="[object Map]",le="[object Number]",be="[object Null]",ge="[object Object]",te="[object Promise]",he="[object Proxy]",we="[object RegExp]",Ne="[object Set]",_e="[object String]",Ve="[object Symbol]",_t="[object Undefined]",Et="[object WeakMap]",Jt="[object WeakSet]",Pt="[object ArrayBuffer]",Kt="[object DataView]",Rt="[object Float32Array]",Vr="[object Float64Array]",It="[object Int8Array]",tr="[object Int16Array]",Pn="[object Int32Array]",zt="[object Uint8Array]",vo="[object Uint8ClampedArray]",Gr="[object Uint16Array]",bo="[object Uint32Array]",Ti=/\b__p \+= '';/g,ju=/\b(__p \+=) '' \+/g,Hu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ds=/&(?:amp|lt|gt|quot|#39);/g,Ms=/[&<>"']/g,qu=RegExp(Ds.source),Vu=RegExp(Ms.source),Gu=/<%-([\s\S]+?)%>/g,Yu=/<%([\s\S]+?)%>/g,$e=/<%=([\s\S]+?)%>/g,Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ps=/^\w*$/,W0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zu=/[\\^$.*+?()[\]{}|]/g,B0=RegExp(Zu.source),Xu=/^\s+/,U0=/\s/,j0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,H0=/\{\n\/\* \[wrapped with (.+)\] \*/,q0=/,? & /,V0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G0=/[()=,{}\[\]\/\s]/,Y0=/\\(\\)?/g,Z0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xf=/\w*$/,X0=/^[-+]0x[0-9a-f]+$/i,J0=/^0b[01]+$/i,K0=/^\[object .+?Constructor\]$/,Q0=/^0o[0-7]+$/i,eb=/^(?:0|[1-9]\d*)$/,tb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Is=/($^)/,nb=/['\n\r\u2028\u2029\\]/g,Ns="\\ud800-\\udfff",rb="\\u0300-\\u036f",ib="\\ufe20-\\ufe2f",ob="\\u20d0-\\u20ff",Jf=rb+ib+ob,Kf="\\u2700-\\u27bf",Qf="a-z\\xdf-\\xf6\\xf8-\\xff",sb="\\xac\\xb1\\xd7\\xf7",ab="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ub="\\u2000-\\u206f",lb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ed="A-Z\\xc0-\\xd6\\xd8-\\xde",td="\\ufe0e\\ufe0f",nd=sb+ab+ub+lb,Ju="['’]",cb="["+Ns+"]",rd="["+nd+"]",As="["+Jf+"]",id="\\d+",fb="["+Kf+"]",od="["+Qf+"]",sd="[^"+Ns+nd+id+Kf+Qf+ed+"]",Ku="\\ud83c[\\udffb-\\udfff]",db="(?:"+As+"|"+Ku+")",ad="[^"+Ns+"]",Qu="(?:\\ud83c[\\udde6-\\uddff]){2}",el="[\\ud800-\\udbff][\\udc00-\\udfff]",Ci="["+ed+"]",ud="\\u200d",ld="(?:"+od+"|"+sd+")",pb="(?:"+Ci+"|"+sd+")",cd="(?:"+Ju+"(?:d|ll|m|re|s|t|ve))?",fd="(?:"+Ju+"(?:D|LL|M|RE|S|T|VE))?",dd=db+"?",pd="["+td+"]?",hb="(?:"+ud+"(?:"+[ad,Qu,el].join("|")+")"+pd+dd+")*",mb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hd=pd+dd+hb,yb="(?:"+[fb,Qu,el].join("|")+")"+hd,vb="(?:"+[ad+As+"?",As,Qu,el,cb].join("|")+")",bb=RegExp(Ju,"g"),wb=RegExp(As,"g"),tl=RegExp(Ku+"(?="+Ku+")|"+vb+hd,"g"),xb=RegExp([Ci+"?"+od+"+"+cd+"(?="+[rd,Ci,"$"].join("|")+")",pb+"+"+fd+"(?="+[rd,Ci+ld,"$"].join("|")+")",Ci+"?"+ld+"+"+cd,Ci+"+"+fd,gb,mb,id,yb].join("|"),"g"),Sb=RegExp("["+ud+Ns+Jf+td+"]"),Eb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ob=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tb=-1,ut={};ut[Rt]=ut[Vr]=ut[It]=ut[tr]=ut[Pn]=ut[zt]=ut[vo]=ut[Gr]=ut[bo]=!0,ut[Oe]=ut[Te]=ut[Pt]=ut[ee]=ut[Kt]=ut[ce]=ut[Re]=ut[N]=ut[G]=ut[le]=ut[ge]=ut[we]=ut[Ne]=ut[_e]=ut[Et]=!1;var st={};st[Oe]=st[Te]=st[Pt]=st[Kt]=st[ee]=st[ce]=st[Rt]=st[Vr]=st[It]=st[tr]=st[Pn]=st[G]=st[le]=st[ge]=st[we]=st[Ne]=st[_e]=st[Ve]=st[zt]=st[vo]=st[Gr]=st[bo]=!0,st[Re]=st[N]=st[Et]=!1;var Cb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Db={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mb=parseFloat,Pb=parseInt,md=typeof wa=="object"&&wa&&wa.Object===Object&&wa,Ib=typeof self=="object"&&self&&self.Object===Object&&self,Dt=md||Ib||Function("return this")(),nl=t&&!t.nodeType&&t,Yr=nl&&!0&&e&&!e.nodeType&&e,gd=Yr&&Yr.exports===nl,rl=gd&&md.process,pn=function(){try{var U=Yr&&Yr.require&&Yr.require("util").types;return U||rl&&rl.binding&&rl.binding("util")}catch{}}(),yd=pn&&pn.isArrayBuffer,vd=pn&&pn.isDate,bd=pn&&pn.isMap,wd=pn&&pn.isRegExp,xd=pn&&pn.isSet,Sd=pn&&pn.isTypedArray;function en(U,re,Q){switch(Q.length){case 0:return U.call(re);case 1:return U.call(re,Q[0]);case 2:return U.call(re,Q[0],Q[1]);case 3:return U.call(re,Q[0],Q[1],Q[2])}return U.apply(re,Q)}function Nb(U,re,Q,Ce){for(var Le=-1,Ye=U==null?0:U.length;++Le<Ye;){var Ot=U[Le];re(Ce,Ot,Q(Ot),U)}return Ce}function hn(U,re){for(var Q=-1,Ce=U==null?0:U.length;++Q<Ce&&re(U[Q],Q,U)!==!1;);return U}function Ab(U,re){for(var Q=U==null?0:U.length;Q--&&re(U[Q],Q,U)!==!1;);return U}function Ed(U,re){for(var Q=-1,Ce=U==null?0:U.length;++Q<Ce;)if(!re(U[Q],Q,U))return!1;return!0}function Sr(U,re){for(var Q=-1,Ce=U==null?0:U.length,Le=0,Ye=[];++Q<Ce;){var Ot=U[Q];re(Ot,Q,U)&&(Ye[Le++]=Ot)}return Ye}function ks(U,re){var Q=U==null?0:U.length;return!!Q&&_i(U,re,0)>-1}function il(U,re,Q){for(var Ce=-1,Le=U==null?0:U.length;++Ce<Le;)if(Q(re,U[Ce]))return!0;return!1}function lt(U,re){for(var Q=-1,Ce=U==null?0:U.length,Le=Array(Ce);++Q<Ce;)Le[Q]=re(U[Q],Q,U);return Le}function Er(U,re){for(var Q=-1,Ce=re.length,Le=U.length;++Q<Ce;)U[Le+Q]=re[Q];return U}function ol(U,re,Q,Ce){var Le=-1,Ye=U==null?0:U.length;for(Ce&&Ye&&(Q=U[++Le]);++Le<Ye;)Q=re(Q,U[Le],Le,U);return Q}function kb(U,re,Q,Ce){var Le=U==null?0:U.length;for(Ce&&Le&&(Q=U[--Le]);Le--;)Q=re(Q,U[Le],Le,U);return Q}function sl(U,re){for(var Q=-1,Ce=U==null?0:U.length;++Q<Ce;)if(re(U[Q],Q,U))return!0;return!1}var $b=al("length");function Lb(U){return U.split("")}function zb(U){return U.match(V0)||[]}function Od(U,re,Q){var Ce;return Q(U,function(Le,Ye,Ot){if(re(Le,Ye,Ot))return Ce=Ye,!1}),Ce}function $s(U,re,Q,Ce){for(var Le=U.length,Ye=Q+(Ce?1:-1);Ce?Ye--:++Ye<Le;)if(re(U[Ye],Ye,U))return Ye;return-1}function _i(U,re,Q){return re===re?Xb(U,re,Q):$s(U,Td,Q)}function Fb(U,re,Q,Ce){for(var Le=Q-1,Ye=U.length;++Le<Ye;)if(Ce(U[Le],re))return Le;return-1}function Td(U){return U!==U}function Cd(U,re){var Q=U==null?0:U.length;return Q?ll(U,re)/Q:Y}function al(U){return function(re){return re==null?n:re[U]}}function ul(U){return function(re){return U==null?n:U[re]}}function _d(U,re,Q,Ce,Le){return Le(U,function(Ye,Ot,ot){Q=Ce?(Ce=!1,Ye):re(Q,Ye,Ot,ot)}),Q}function Wb(U,re){var Q=U.length;for(U.sort(re);Q--;)U[Q]=U[Q].value;return U}function ll(U,re){for(var Q,Ce=-1,Le=U.length;++Ce<Le;){var Ye=re(U[Ce]);Ye!==n&&(Q=Q===n?Ye:Q+Ye)}return Q}function cl(U,re){for(var Q=-1,Ce=Array(U);++Q<U;)Ce[Q]=re(Q);return Ce}function Bb(U,re){return lt(re,function(Q){return[Q,U[Q]]})}function Rd(U){return U&&U.slice(0,Id(U)+1).replace(Xu,"")}function tn(U){return function(re){return U(re)}}function fl(U,re){return lt(re,function(Q){return U[Q]})}function wo(U,re){return U.has(re)}function Dd(U,re){for(var Q=-1,Ce=U.length;++Q<Ce&&_i(re,U[Q],0)>-1;);return Q}function Md(U,re){for(var Q=U.length;Q--&&_i(re,U[Q],0)>-1;);return Q}function Ub(U,re){for(var Q=U.length,Ce=0;Q--;)U[Q]===re&&++Ce;return Ce}var jb=ul(Cb),Hb=ul(_b);function qb(U){return"\\"+Db[U]}function Vb(U,re){return U==null?n:U[re]}function Ri(U){return Sb.test(U)}function Gb(U){return Eb.test(U)}function Yb(U){for(var re,Q=[];!(re=U.next()).done;)Q.push(re.value);return Q}function dl(U){var re=-1,Q=Array(U.size);return U.forEach(function(Ce,Le){Q[++re]=[Le,Ce]}),Q}function Pd(U,re){return function(Q){return U(re(Q))}}function Or(U,re){for(var Q=-1,Ce=U.length,Le=0,Ye=[];++Q<Ce;){var Ot=U[Q];(Ot===re||Ot===h)&&(U[Q]=h,Ye[Le++]=Q)}return Ye}function Ls(U){var re=-1,Q=Array(U.size);return U.forEach(function(Ce){Q[++re]=Ce}),Q}function Zb(U){var re=-1,Q=Array(U.size);return U.forEach(function(Ce){Q[++re]=[Ce,Ce]}),Q}function Xb(U,re,Q){for(var Ce=Q-1,Le=U.length;++Ce<Le;)if(U[Ce]===re)return Ce;return-1}function Jb(U,re,Q){for(var Ce=Q+1;Ce--;)if(U[Ce]===re)return Ce;return Ce}function Di(U){return Ri(U)?Qb(U):$b(U)}function In(U){return Ri(U)?ew(U):Lb(U)}function Id(U){for(var re=U.length;re--&&U0.test(U.charAt(re)););return re}var Kb=ul(Rb);function Qb(U){for(var re=tl.lastIndex=0;tl.test(U);)++re;return re}function ew(U){return U.match(tl)||[]}function tw(U){return U.match(xb)||[]}var nw=function U(re){re=re==null?Dt:Mi.defaults(Dt.Object(),re,Mi.pick(Dt,Ob));var Q=re.Array,Ce=re.Date,Le=re.Error,Ye=re.Function,Ot=re.Math,ot=re.Object,pl=re.RegExp,rw=re.String,mn=re.TypeError,zs=Q.prototype,iw=Ye.prototype,Pi=ot.prototype,Fs=re["__core-js_shared__"],Ws=iw.toString,et=Pi.hasOwnProperty,ow=0,Nd=function(){var r=/[^.]+$/.exec(Fs&&Fs.keys&&Fs.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Bs=Pi.toString,sw=Ws.call(ot),aw=Dt._,uw=pl("^"+Ws.call(et).replace(Zu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Us=gd?re.Buffer:n,Tr=re.Symbol,js=re.Uint8Array,Ad=Us?Us.allocUnsafe:n,Hs=Pd(ot.getPrototypeOf,ot),kd=ot.create,$d=Pi.propertyIsEnumerable,qs=zs.splice,Ld=Tr?Tr.isConcatSpreadable:n,xo=Tr?Tr.iterator:n,Zr=Tr?Tr.toStringTag:n,Vs=function(){try{var r=ei(ot,"defineProperty");return r({},"",{}),r}catch{}}(),lw=re.clearTimeout!==Dt.clearTimeout&&re.clearTimeout,cw=Ce&&Ce.now!==Dt.Date.now&&Ce.now,fw=re.setTimeout!==Dt.setTimeout&&re.setTimeout,Gs=Ot.ceil,Ys=Ot.floor,hl=ot.getOwnPropertySymbols,dw=Us?Us.isBuffer:n,zd=re.isFinite,pw=zs.join,hw=Pd(ot.keys,ot),Tt=Ot.max,Nt=Ot.min,mw=Ce.now,gw=re.parseInt,Fd=Ot.random,yw=zs.reverse,ml=ei(re,"DataView"),So=ei(re,"Map"),gl=ei(re,"Promise"),Ii=ei(re,"Set"),Eo=ei(re,"WeakMap"),Oo=ei(ot,"create"),Zs=Eo&&new Eo,Ni={},vw=ti(ml),bw=ti(So),ww=ti(gl),xw=ti(Ii),Sw=ti(Eo),Xs=Tr?Tr.prototype:n,To=Xs?Xs.valueOf:n,Wd=Xs?Xs.toString:n;function P(r){if(dt(r)&&!ze(r)&&!(r instanceof je)){if(r instanceof gn)return r;if(et.call(r,"__wrapped__"))return Bp(r)}return new gn(r)}var Ai=function(){function r(){}return function(o){if(!ft(o))return{};if(kd)return kd(o);r.prototype=o;var l=new r;return r.prototype=n,l}}();function Js(){}function gn(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}P.templateSettings={escape:Gu,evaluate:Yu,interpolate:$e,variable:"",imports:{_:P}},P.prototype=Js.prototype,P.prototype.constructor=P,gn.prototype=Ai(Js.prototype),gn.prototype.constructor=gn;function je(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Ew(){var r=new je(this.__wrapped__);return r.__actions__=Ht(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Ht(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Ht(this.__views__),r}function Ow(){if(this.__filtered__){var r=new je(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Tw(){var r=this.__wrapped__.value(),o=this.__dir__,l=ze(r),d=o<0,O=l?r.length:0,I=Lx(0,O,this.__views__),k=I.start,L=I.end,V=L-k,ie=d?L:k-1,se=this.__iteratees__,de=se.length,xe=0,De=Nt(V,this.__takeCount__);if(!l||!d&&O==V&&De==V)return cp(r,this.__actions__);var Pe=[];e:for(;V--&&xe<De;){ie+=o;for(var We=-1,Ie=r[ie];++We<de;){var Ue=se[We],He=Ue.iteratee,on=Ue.type,Bt=He(Ie);if(on==K)Ie=Bt;else if(!Bt){if(on==B)continue e;break e}}Pe[xe++]=Ie}return Pe}je.prototype=Ai(Js.prototype),je.prototype.constructor=je;function Xr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function Cw(){this.__data__=Oo?Oo(null):{},this.size=0}function _w(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function Rw(r){var o=this.__data__;if(Oo){var l=o[r];return l===f?n:l}return et.call(o,r)?o[r]:n}function Dw(r){var o=this.__data__;return Oo?o[r]!==n:et.call(o,r)}function Mw(r,o){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=Oo&&o===n?f:o,this}Xr.prototype.clear=Cw,Xr.prototype.delete=_w,Xr.prototype.get=Rw,Xr.prototype.has=Dw,Xr.prototype.set=Mw;function nr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function Pw(){this.__data__=[],this.size=0}function Iw(r){var o=this.__data__,l=Ks(o,r);if(l<0)return!1;var d=o.length-1;return l==d?o.pop():qs.call(o,l,1),--this.size,!0}function Nw(r){var o=this.__data__,l=Ks(o,r);return l<0?n:o[l][1]}function Aw(r){return Ks(this.__data__,r)>-1}function kw(r,o){var l=this.__data__,d=Ks(l,r);return d<0?(++this.size,l.push([r,o])):l[d][1]=o,this}nr.prototype.clear=Pw,nr.prototype.delete=Iw,nr.prototype.get=Nw,nr.prototype.has=Aw,nr.prototype.set=kw;function rr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function $w(){this.size=0,this.__data__={hash:new Xr,map:new(So||nr),string:new Xr}}function Lw(r){var o=ca(this,r).delete(r);return this.size-=o?1:0,o}function zw(r){return ca(this,r).get(r)}function Fw(r){return ca(this,r).has(r)}function Ww(r,o){var l=ca(this,r),d=l.size;return l.set(r,o),this.size+=l.size==d?0:1,this}rr.prototype.clear=$w,rr.prototype.delete=Lw,rr.prototype.get=zw,rr.prototype.has=Fw,rr.prototype.set=Ww;function Jr(r){var o=-1,l=r==null?0:r.length;for(this.__data__=new rr;++o<l;)this.add(r[o])}function Bw(r){return this.__data__.set(r,f),this}function Uw(r){return this.__data__.has(r)}Jr.prototype.add=Jr.prototype.push=Bw,Jr.prototype.has=Uw;function Nn(r){var o=this.__data__=new nr(r);this.size=o.size}function jw(){this.__data__=new nr,this.size=0}function Hw(r){var o=this.__data__,l=o.delete(r);return this.size=o.size,l}function qw(r){return this.__data__.get(r)}function Vw(r){return this.__data__.has(r)}function Gw(r,o){var l=this.__data__;if(l instanceof nr){var d=l.__data__;if(!So||d.length<s-1)return d.push([r,o]),this.size=++l.size,this;l=this.__data__=new rr(d)}return l.set(r,o),this.size=l.size,this}Nn.prototype.clear=jw,Nn.prototype.delete=Hw,Nn.prototype.get=qw,Nn.prototype.has=Vw,Nn.prototype.set=Gw;function Bd(r,o){var l=ze(r),d=!l&&ni(r),O=!l&&!d&&Mr(r),I=!l&&!d&&!O&&zi(r),k=l||d||O||I,L=k?cl(r.length,rw):[],V=L.length;for(var ie in r)(o||et.call(r,ie))&&!(k&&(ie=="length"||O&&(ie=="offset"||ie=="parent")||I&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||ar(ie,V)))&&L.push(ie);return L}function Ud(r){var o=r.length;return o?r[_l(0,o-1)]:n}function Yw(r,o){return fa(Ht(r),Kr(o,0,r.length))}function Zw(r){return fa(Ht(r))}function yl(r,o,l){(l!==n&&!An(r[o],l)||l===n&&!(o in r))&&ir(r,o,l)}function Co(r,o,l){var d=r[o];(!(et.call(r,o)&&An(d,l))||l===n&&!(o in r))&&ir(r,o,l)}function Ks(r,o){for(var l=r.length;l--;)if(An(r[l][0],o))return l;return-1}function Xw(r,o,l,d){return Cr(r,function(O,I,k){o(d,O,l(O),k)}),d}function jd(r,o){return r&&jn(o,Ct(o),r)}function Jw(r,o){return r&&jn(o,Vt(o),r)}function ir(r,o,l){o=="__proto__"&&Vs?Vs(r,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[o]=l}function vl(r,o){for(var l=-1,d=o.length,O=Q(d),I=r==null;++l<d;)O[l]=I?n:Kl(r,o[l]);return O}function Kr(r,o,l){return r===r&&(l!==n&&(r=r<=l?r:l),o!==n&&(r=r>=o?r:o)),r}function yn(r,o,l,d,O,I){var k,L=o&x,V=o&R,ie=o&w;if(l&&(k=O?l(r,d,O,I):l(r)),k!==n)return k;if(!ft(r))return r;var se=ze(r);if(se){if(k=Fx(r),!L)return Ht(r,k)}else{var de=At(r),xe=de==N||de==W;if(Mr(r))return pp(r,L);if(de==ge||de==Oe||xe&&!O){if(k=V||xe?{}:Ip(r),!L)return V?Rx(r,Jw(k,r)):_x(r,jd(k,r))}else{if(!st[de])return O?r:{};k=Wx(r,de,L)}}I||(I=new Nn);var De=I.get(r);if(De)return De;I.set(r,k),ah(r)?r.forEach(function(Ie){k.add(yn(Ie,o,l,Ie,r,I))}):oh(r)&&r.forEach(function(Ie,Ue){k.set(Ue,yn(Ie,o,l,Ue,r,I))});var Pe=ie?V?zl:Ll:V?Vt:Ct,We=se?n:Pe(r);return hn(We||r,function(Ie,Ue){We&&(Ue=Ie,Ie=r[Ue]),Co(k,Ue,yn(Ie,o,l,Ue,r,I))}),k}function Kw(r){var o=Ct(r);return function(l){return Hd(l,r,o)}}function Hd(r,o,l){var d=l.length;if(r==null)return!d;for(r=ot(r);d--;){var O=l[d],I=o[O],k=r[O];if(k===n&&!(O in r)||!I(k))return!1}return!0}function qd(r,o,l){if(typeof r!="function")throw new mn(u);return No(function(){r.apply(n,l)},o)}function _o(r,o,l,d){var O=-1,I=ks,k=!0,L=r.length,V=[],ie=o.length;if(!L)return V;l&&(o=lt(o,tn(l))),d?(I=il,k=!1):o.length>=s&&(I=wo,k=!1,o=new Jr(o));e:for(;++O<L;){var se=r[O],de=l==null?se:l(se);if(se=d||se!==0?se:0,k&&de===de){for(var xe=ie;xe--;)if(o[xe]===de)continue e;V.push(se)}else I(o,de,d)||V.push(se)}return V}var Cr=vp(Un),Vd=vp(wl,!0);function Qw(r,o){var l=!0;return Cr(r,function(d,O,I){return l=!!o(d,O,I),l}),l}function Qs(r,o,l){for(var d=-1,O=r.length;++d<O;){var I=r[d],k=o(I);if(k!=null&&(L===n?k===k&&!rn(k):l(k,L)))var L=k,V=I}return V}function ex(r,o,l,d){var O=r.length;for(l=Fe(l),l<0&&(l=-l>O?0:O+l),d=d===n||d>O?O:Fe(d),d<0&&(d+=O),d=l>d?0:lh(d);l<d;)r[l++]=o;return r}function Gd(r,o){var l=[];return Cr(r,function(d,O,I){o(d,O,I)&&l.push(d)}),l}function Mt(r,o,l,d,O){var I=-1,k=r.length;for(l||(l=Ux),O||(O=[]);++I<k;){var L=r[I];o>0&&l(L)?o>1?Mt(L,o-1,l,d,O):Er(O,L):d||(O[O.length]=L)}return O}var bl=bp(),Yd=bp(!0);function Un(r,o){return r&&bl(r,o,Ct)}function wl(r,o){return r&&Yd(r,o,Ct)}function ea(r,o){return Sr(o,function(l){return ur(r[l])})}function Qr(r,o){o=Rr(o,r);for(var l=0,d=o.length;r!=null&&l<d;)r=r[Hn(o[l++])];return l&&l==d?r:n}function Zd(r,o,l){var d=o(r);return ze(r)?d:Er(d,l(r))}function Ft(r){return r==null?r===n?_t:be:Zr&&Zr in ot(r)?$x(r):Zx(r)}function xl(r,o){return r>o}function tx(r,o){return r!=null&&et.call(r,o)}function nx(r,o){return r!=null&&o in ot(r)}function rx(r,o,l){return r>=Nt(o,l)&&r<Tt(o,l)}function Sl(r,o,l){for(var d=l?il:ks,O=r[0].length,I=r.length,k=I,L=Q(I),V=1/0,ie=[];k--;){var se=r[k];k&&o&&(se=lt(se,tn(o))),V=Nt(se.length,V),L[k]=!l&&(o||O>=120&&se.length>=120)?new Jr(k&&se):n}se=r[0];var de=-1,xe=L[0];e:for(;++de<O&&ie.length<V;){var De=se[de],Pe=o?o(De):De;if(De=l||De!==0?De:0,!(xe?wo(xe,Pe):d(ie,Pe,l))){for(k=I;--k;){var We=L[k];if(!(We?wo(We,Pe):d(r[k],Pe,l)))continue e}xe&&xe.push(Pe),ie.push(De)}}return ie}function ix(r,o,l,d){return Un(r,function(O,I,k){o(d,l(O),I,k)}),d}function Ro(r,o,l){o=Rr(o,r),r=$p(r,o);var d=r==null?r:r[Hn(bn(o))];return d==null?n:en(d,r,l)}function Xd(r){return dt(r)&&Ft(r)==Oe}function ox(r){return dt(r)&&Ft(r)==Pt}function sx(r){return dt(r)&&Ft(r)==ce}function Do(r,o,l,d,O){return r===o?!0:r==null||o==null||!dt(r)&&!dt(o)?r!==r&&o!==o:ax(r,o,l,d,Do,O)}function ax(r,o,l,d,O,I){var k=ze(r),L=ze(o),V=k?Te:At(r),ie=L?Te:At(o);V=V==Oe?ge:V,ie=ie==Oe?ge:ie;var se=V==ge,de=ie==ge,xe=V==ie;if(xe&&Mr(r)){if(!Mr(o))return!1;k=!0,se=!1}if(xe&&!se)return I||(I=new Nn),k||zi(r)?Dp(r,o,l,d,O,I):Ax(r,o,V,l,d,O,I);if(!(l&C)){var De=se&&et.call(r,"__wrapped__"),Pe=de&&et.call(o,"__wrapped__");if(De||Pe){var We=De?r.value():r,Ie=Pe?o.value():o;return I||(I=new Nn),O(We,Ie,l,d,I)}}return xe?(I||(I=new Nn),kx(r,o,l,d,O,I)):!1}function ux(r){return dt(r)&&At(r)==G}function El(r,o,l,d){var O=l.length,I=O,k=!d;if(r==null)return!I;for(r=ot(r);O--;){var L=l[O];if(k&&L[2]?L[1]!==r[L[0]]:!(L[0]in r))return!1}for(;++O<I;){L=l[O];var V=L[0],ie=r[V],se=L[1];if(k&&L[2]){if(ie===n&&!(V in r))return!1}else{var de=new Nn;if(d)var xe=d(ie,se,V,r,o,de);if(!(xe===n?Do(se,ie,C|y,d,de):xe))return!1}}return!0}function Jd(r){if(!ft(r)||Hx(r))return!1;var o=ur(r)?uw:K0;return o.test(ti(r))}function lx(r){return dt(r)&&Ft(r)==we}function cx(r){return dt(r)&&At(r)==Ne}function fx(r){return dt(r)&&ya(r.length)&&!!ut[Ft(r)]}function Kd(r){return typeof r=="function"?r:r==null?Gt:typeof r=="object"?ze(r)?tp(r[0],r[1]):ep(r):wh(r)}function Ol(r){if(!Io(r))return hw(r);var o=[];for(var l in ot(r))et.call(r,l)&&l!="constructor"&&o.push(l);return o}function dx(r){if(!ft(r))return Yx(r);var o=Io(r),l=[];for(var d in r)d=="constructor"&&(o||!et.call(r,d))||l.push(d);return l}function Tl(r,o){return r<o}function Qd(r,o){var l=-1,d=qt(r)?Q(r.length):[];return Cr(r,function(O,I,k){d[++l]=o(O,I,k)}),d}function ep(r){var o=Wl(r);return o.length==1&&o[0][2]?Ap(o[0][0],o[0][1]):function(l){return l===r||El(l,r,o)}}function tp(r,o){return Ul(r)&&Np(o)?Ap(Hn(r),o):function(l){var d=Kl(l,r);return d===n&&d===o?Ql(l,r):Do(o,d,C|y)}}function ta(r,o,l,d,O){r!==o&&bl(o,function(I,k){if(O||(O=new Nn),ft(I))px(r,o,k,l,ta,d,O);else{var L=d?d(Hl(r,k),I,k+"",r,o,O):n;L===n&&(L=I),yl(r,k,L)}},Vt)}function px(r,o,l,d,O,I,k){var L=Hl(r,l),V=Hl(o,l),ie=k.get(V);if(ie){yl(r,l,ie);return}var se=I?I(L,V,l+"",r,o,k):n,de=se===n;if(de){var xe=ze(V),De=!xe&&Mr(V),Pe=!xe&&!De&&zi(V);se=V,xe||De||Pe?ze(L)?se=L:vt(L)?se=Ht(L):De?(de=!1,se=pp(V,!0)):Pe?(de=!1,se=hp(V,!0)):se=[]:Ao(V)||ni(V)?(se=L,ni(L)?se=ch(L):(!ft(L)||ur(L))&&(se=Ip(V))):de=!1}de&&(k.set(V,se),O(se,V,d,I,k),k.delete(V)),yl(r,l,se)}function np(r,o){var l=r.length;if(l)return o+=o<0?l:0,ar(o,l)?r[o]:n}function rp(r,o,l){o.length?o=lt(o,function(I){return ze(I)?function(k){return Qr(k,I.length===1?I[0]:I)}:I}):o=[Gt];var d=-1;o=lt(o,tn(Me()));var O=Qd(r,function(I,k,L){var V=lt(o,function(ie){return ie(I)});return{criteria:V,index:++d,value:I}});return Wb(O,function(I,k){return Cx(I,k,l)})}function hx(r,o){return ip(r,o,function(l,d){return Ql(r,d)})}function ip(r,o,l){for(var d=-1,O=o.length,I={};++d<O;){var k=o[d],L=Qr(r,k);l(L,k)&&Mo(I,Rr(k,r),L)}return I}function mx(r){return function(o){return Qr(o,r)}}function Cl(r,o,l,d){var O=d?Fb:_i,I=-1,k=o.length,L=r;for(r===o&&(o=Ht(o)),l&&(L=lt(r,tn(l)));++I<k;)for(var V=0,ie=o[I],se=l?l(ie):ie;(V=O(L,se,V,d))>-1;)L!==r&&qs.call(L,V,1),qs.call(r,V,1);return r}function op(r,o){for(var l=r?o.length:0,d=l-1;l--;){var O=o[l];if(l==d||O!==I){var I=O;ar(O)?qs.call(r,O,1):Ml(r,O)}}return r}function _l(r,o){return r+Ys(Fd()*(o-r+1))}function gx(r,o,l,d){for(var O=-1,I=Tt(Gs((o-r)/(l||1)),0),k=Q(I);I--;)k[d?I:++O]=r,r+=l;return k}function Rl(r,o){var l="";if(!r||o<1||o>fe)return l;do o%2&&(l+=r),o=Ys(o/2),o&&(r+=r);while(o);return l}function Be(r,o){return ql(kp(r,o,Gt),r+"")}function yx(r){return Ud(Fi(r))}function vx(r,o){var l=Fi(r);return fa(l,Kr(o,0,l.length))}function Mo(r,o,l,d){if(!ft(r))return r;o=Rr(o,r);for(var O=-1,I=o.length,k=I-1,L=r;L!=null&&++O<I;){var V=Hn(o[O]),ie=l;if(V==="__proto__"||V==="constructor"||V==="prototype")return r;if(O!=k){var se=L[V];ie=d?d(se,V,L):n,ie===n&&(ie=ft(se)?se:ar(o[O+1])?[]:{})}Co(L,V,ie),L=L[V]}return r}var sp=Zs?function(r,o){return Zs.set(r,o),r}:Gt,bx=Vs?function(r,o){return Vs(r,"toString",{configurable:!0,enumerable:!1,value:tc(o),writable:!0})}:Gt;function wx(r){return fa(Fi(r))}function vn(r,o,l){var d=-1,O=r.length;o<0&&(o=-o>O?0:O+o),l=l>O?O:l,l<0&&(l+=O),O=o>l?0:l-o>>>0,o>>>=0;for(var I=Q(O);++d<O;)I[d]=r[d+o];return I}function xx(r,o){var l;return Cr(r,function(d,O,I){return l=o(d,O,I),!l}),!!l}function na(r,o,l){var d=0,O=r==null?d:r.length;if(typeof o=="number"&&o===o&&O<=ye){for(;d<O;){var I=d+O>>>1,k=r[I];k!==null&&!rn(k)&&(l?k<=o:k<o)?d=I+1:O=I}return O}return Dl(r,o,Gt,l)}function Dl(r,o,l,d){var O=0,I=r==null?0:r.length;if(I===0)return 0;o=l(o);for(var k=o!==o,L=o===null,V=rn(o),ie=o===n;O<I;){var se=Ys((O+I)/2),de=l(r[se]),xe=de!==n,De=de===null,Pe=de===de,We=rn(de);if(k)var Ie=d||Pe;else ie?Ie=Pe&&(d||xe):L?Ie=Pe&&xe&&(d||!De):V?Ie=Pe&&xe&&!De&&(d||!We):De||We?Ie=!1:Ie=d?de<=o:de<o;Ie?O=se+1:I=se}return Nt(I,ue)}function ap(r,o){for(var l=-1,d=r.length,O=0,I=[];++l<d;){var k=r[l],L=o?o(k):k;if(!l||!An(L,V)){var V=L;I[O++]=k===0?0:k}}return I}function up(r){return typeof r=="number"?r:rn(r)?Y:+r}function nn(r){if(typeof r=="string")return r;if(ze(r))return lt(r,nn)+"";if(rn(r))return Wd?Wd.call(r):"";var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function _r(r,o,l){var d=-1,O=ks,I=r.length,k=!0,L=[],V=L;if(l)k=!1,O=il;else if(I>=s){var ie=o?null:Ix(r);if(ie)return Ls(ie);k=!1,O=wo,V=new Jr}else V=o?[]:L;e:for(;++d<I;){var se=r[d],de=o?o(se):se;if(se=l||se!==0?se:0,k&&de===de){for(var xe=V.length;xe--;)if(V[xe]===de)continue e;o&&V.push(de),L.push(se)}else O(V,de,l)||(V!==L&&V.push(de),L.push(se))}return L}function Ml(r,o){return o=Rr(o,r),r=$p(r,o),r==null||delete r[Hn(bn(o))]}function lp(r,o,l,d){return Mo(r,o,l(Qr(r,o)),d)}function ra(r,o,l,d){for(var O=r.length,I=d?O:-1;(d?I--:++I<O)&&o(r[I],I,r););return l?vn(r,d?0:I,d?I+1:O):vn(r,d?I+1:0,d?O:I)}function cp(r,o){var l=r;return l instanceof je&&(l=l.value()),ol(o,function(d,O){return O.func.apply(O.thisArg,Er([d],O.args))},l)}function Pl(r,o,l){var d=r.length;if(d<2)return d?_r(r[0]):[];for(var O=-1,I=Q(d);++O<d;)for(var k=r[O],L=-1;++L<d;)L!=O&&(I[O]=_o(I[O]||k,r[L],o,l));return _r(Mt(I,1),o,l)}function fp(r,o,l){for(var d=-1,O=r.length,I=o.length,k={};++d<O;){var L=d<I?o[d]:n;l(k,r[d],L)}return k}function Il(r){return vt(r)?r:[]}function Nl(r){return typeof r=="function"?r:Gt}function Rr(r,o){return ze(r)?r:Ul(r,o)?[r]:Wp(Xe(r))}var Sx=Be;function Dr(r,o,l){var d=r.length;return l=l===n?d:l,!o&&l>=d?r:vn(r,o,l)}var dp=lw||function(r){return Dt.clearTimeout(r)};function pp(r,o){if(o)return r.slice();var l=r.length,d=Ad?Ad(l):new r.constructor(l);return r.copy(d),d}function Al(r){var o=new r.constructor(r.byteLength);return new js(o).set(new js(r)),o}function Ex(r,o){var l=o?Al(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function Ox(r){var o=new r.constructor(r.source,Xf.exec(r));return o.lastIndex=r.lastIndex,o}function Tx(r){return To?ot(To.call(r)):{}}function hp(r,o){var l=o?Al(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function mp(r,o){if(r!==o){var l=r!==n,d=r===null,O=r===r,I=rn(r),k=o!==n,L=o===null,V=o===o,ie=rn(o);if(!L&&!ie&&!I&&r>o||I&&k&&V&&!L&&!ie||d&&k&&V||!l&&V||!O)return 1;if(!d&&!I&&!ie&&r<o||ie&&l&&O&&!d&&!I||L&&l&&O||!k&&O||!V)return-1}return 0}function Cx(r,o,l){for(var d=-1,O=r.criteria,I=o.criteria,k=O.length,L=l.length;++d<k;){var V=mp(O[d],I[d]);if(V){if(d>=L)return V;var ie=l[d];return V*(ie=="desc"?-1:1)}}return r.index-o.index}function gp(r,o,l,d){for(var O=-1,I=r.length,k=l.length,L=-1,V=o.length,ie=Tt(I-k,0),se=Q(V+ie),de=!d;++L<V;)se[L]=o[L];for(;++O<k;)(de||O<I)&&(se[l[O]]=r[O]);for(;ie--;)se[L++]=r[O++];return se}function yp(r,o,l,d){for(var O=-1,I=r.length,k=-1,L=l.length,V=-1,ie=o.length,se=Tt(I-L,0),de=Q(se+ie),xe=!d;++O<se;)de[O]=r[O];for(var De=O;++V<ie;)de[De+V]=o[V];for(;++k<L;)(xe||O<I)&&(de[De+l[k]]=r[O++]);return de}function Ht(r,o){var l=-1,d=r.length;for(o||(o=Q(d));++l<d;)o[l]=r[l];return o}function jn(r,o,l,d){var O=!l;l||(l={});for(var I=-1,k=o.length;++I<k;){var L=o[I],V=d?d(l[L],r[L],L,l,r):n;V===n&&(V=r[L]),O?ir(l,L,V):Co(l,L,V)}return l}function _x(r,o){return jn(r,Bl(r),o)}function Rx(r,o){return jn(r,Mp(r),o)}function ia(r,o){return function(l,d){var O=ze(l)?Nb:Xw,I=o?o():{};return O(l,r,Me(d,2),I)}}function ki(r){return Be(function(o,l){var d=-1,O=l.length,I=O>1?l[O-1]:n,k=O>2?l[2]:n;for(I=r.length>3&&typeof I=="function"?(O--,I):n,k&&Wt(l[0],l[1],k)&&(I=O<3?n:I,O=1),o=ot(o);++d<O;){var L=l[d];L&&r(o,L,d,I)}return o})}function vp(r,o){return function(l,d){if(l==null)return l;if(!qt(l))return r(l,d);for(var O=l.length,I=o?O:-1,k=ot(l);(o?I--:++I<O)&&d(k[I],I,k)!==!1;);return l}}function bp(r){return function(o,l,d){for(var O=-1,I=ot(o),k=d(o),L=k.length;L--;){var V=k[r?L:++O];if(l(I[V],V,I)===!1)break}return o}}function Dx(r,o,l){var d=o&v,O=Po(r);function I(){var k=this&&this!==Dt&&this instanceof I?O:r;return k.apply(d?l:this,arguments)}return I}function wp(r){return function(o){o=Xe(o);var l=Ri(o)?In(o):n,d=l?l[0]:o.charAt(0),O=l?Dr(l,1).join(""):o.slice(1);return d[r]()+O}}function $i(r){return function(o){return ol(vh(yh(o).replace(bb,"")),r,"")}}function Po(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var l=Ai(r.prototype),d=r.apply(l,o);return ft(d)?d:l}}function Mx(r,o,l){var d=Po(r);function O(){for(var I=arguments.length,k=Q(I),L=I,V=Li(O);L--;)k[L]=arguments[L];var ie=I<3&&k[0]!==V&&k[I-1]!==V?[]:Or(k,V);if(I-=ie.length,I<l)return Tp(r,o,oa,O.placeholder,n,k,ie,n,n,l-I);var se=this&&this!==Dt&&this instanceof O?d:r;return en(se,this,k)}return O}function xp(r){return function(o,l,d){var O=ot(o);if(!qt(o)){var I=Me(l,3);o=Ct(o),l=function(L){return I(O[L],L,O)}}var k=r(o,l,d);return k>-1?O[I?o[k]:k]:n}}function Sp(r){return sr(function(o){var l=o.length,d=l,O=gn.prototype.thru;for(r&&o.reverse();d--;){var I=o[d];if(typeof I!="function")throw new mn(u);if(O&&!k&&la(I)=="wrapper")var k=new gn([],!0)}for(d=k?d:l;++d<l;){I=o[d];var L=la(I),V=L=="wrapper"?Fl(I):n;V&&jl(V[0])&&V[1]==(D|S|T|A)&&!V[4].length&&V[9]==1?k=k[la(V[0])].apply(k,V[3]):k=I.length==1&&jl(I)?k[L]():k.thru(I)}return function(){var ie=arguments,se=ie[0];if(k&&ie.length==1&&ze(se))return k.plant(se).value();for(var de=0,xe=l?o[de].apply(this,ie):se;++de<l;)xe=o[de].call(this,xe);return xe}})}function oa(r,o,l,d,O,I,k,L,V,ie){var se=o&D,de=o&v,xe=o&g,De=o&(S|E),Pe=o&z,We=xe?n:Po(r);function Ie(){for(var Ue=arguments.length,He=Q(Ue),on=Ue;on--;)He[on]=arguments[on];if(De)var Bt=Li(Ie),sn=Ub(He,Bt);if(d&&(He=gp(He,d,O,De)),I&&(He=yp(He,I,k,De)),Ue-=sn,De&&Ue<ie){var bt=Or(He,Bt);return Tp(r,o,oa,Ie.placeholder,l,He,bt,L,V,ie-Ue)}var kn=de?l:this,cr=xe?kn[r]:r;return Ue=He.length,L?He=Xx(He,L):Pe&&Ue>1&&He.reverse(),se&&V<Ue&&(He.length=V),this&&this!==Dt&&this instanceof Ie&&(cr=We||Po(cr)),cr.apply(kn,He)}return Ie}function Ep(r,o){return function(l,d){return ix(l,r,o(d),{})}}function sa(r,o){return function(l,d){var O;if(l===n&&d===n)return o;if(l!==n&&(O=l),d!==n){if(O===n)return d;typeof l=="string"||typeof d=="string"?(l=nn(l),d=nn(d)):(l=up(l),d=up(d)),O=r(l,d)}return O}}function kl(r){return sr(function(o){return o=lt(o,tn(Me())),Be(function(l){var d=this;return r(o,function(O){return en(O,d,l)})})})}function aa(r,o){o=o===n?" ":nn(o);var l=o.length;if(l<2)return l?Rl(o,r):o;var d=Rl(o,Gs(r/Di(o)));return Ri(o)?Dr(In(d),0,r).join(""):d.slice(0,r)}function Px(r,o,l,d){var O=o&v,I=Po(r);function k(){for(var L=-1,V=arguments.length,ie=-1,se=d.length,de=Q(se+V),xe=this&&this!==Dt&&this instanceof k?I:r;++ie<se;)de[ie]=d[ie];for(;V--;)de[ie++]=arguments[++L];return en(xe,O?l:this,de)}return k}function Op(r){return function(o,l,d){return d&&typeof d!="number"&&Wt(o,l,d)&&(l=d=n),o=lr(o),l===n?(l=o,o=0):l=lr(l),d=d===n?o<l?1:-1:lr(d),gx(o,l,d,r)}}function ua(r){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=wn(o),l=wn(l)),r(o,l)}}function Tp(r,o,l,d,O,I,k,L,V,ie){var se=o&S,de=se?k:n,xe=se?n:k,De=se?I:n,Pe=se?n:I;o|=se?T:M,o&=~(se?M:T),o&m||(o&=-4);var We=[r,o,O,De,de,Pe,xe,L,V,ie],Ie=l.apply(n,We);return jl(r)&&Lp(Ie,We),Ie.placeholder=d,zp(Ie,r,o)}function $l(r){var o=Ot[r];return function(l,d){if(l=wn(l),d=d==null?0:Nt(Fe(d),292),d&&zd(l)){var O=(Xe(l)+"e").split("e"),I=o(O[0]+"e"+(+O[1]+d));return O=(Xe(I)+"e").split("e"),+(O[0]+"e"+(+O[1]-d))}return o(l)}}var Ix=Ii&&1/Ls(new Ii([,-0]))[1]==X?function(r){return new Ii(r)}:ic;function Cp(r){return function(o){var l=At(o);return l==G?dl(o):l==Ne?Zb(o):Bb(o,r(o))}}function or(r,o,l,d,O,I,k,L){var V=o&g;if(!V&&typeof r!="function")throw new mn(u);var ie=d?d.length:0;if(ie||(o&=-97,d=O=n),k=k===n?k:Tt(Fe(k),0),L=L===n?L:Fe(L),ie-=O?O.length:0,o&M){var se=d,de=O;d=O=n}var xe=V?n:Fl(r),De=[r,o,l,d,O,se,de,I,k,L];if(xe&&Gx(De,xe),r=De[0],o=De[1],l=De[2],d=De[3],O=De[4],L=De[9]=De[9]===n?V?0:r.length:Tt(De[9]-ie,0),!L&&o&(S|E)&&(o&=-25),!o||o==v)var Pe=Dx(r,o,l);else o==S||o==E?Pe=Mx(r,o,L):(o==T||o==(v|T))&&!O.length?Pe=Px(r,o,l,d):Pe=oa.apply(n,De);var We=xe?sp:Lp;return zp(We(Pe,De),r,o)}function _p(r,o,l,d){return r===n||An(r,Pi[l])&&!et.call(d,l)?o:r}function Rp(r,o,l,d,O,I){return ft(r)&&ft(o)&&(I.set(o,r),ta(r,o,n,Rp,I),I.delete(o)),r}function Nx(r){return Ao(r)?n:r}function Dp(r,o,l,d,O,I){var k=l&C,L=r.length,V=o.length;if(L!=V&&!(k&&V>L))return!1;var ie=I.get(r),se=I.get(o);if(ie&&se)return ie==o&&se==r;var de=-1,xe=!0,De=l&y?new Jr:n;for(I.set(r,o),I.set(o,r);++de<L;){var Pe=r[de],We=o[de];if(d)var Ie=k?d(We,Pe,de,o,r,I):d(Pe,We,de,r,o,I);if(Ie!==n){if(Ie)continue;xe=!1;break}if(De){if(!sl(o,function(Ue,He){if(!wo(De,He)&&(Pe===Ue||O(Pe,Ue,l,d,I)))return De.push(He)})){xe=!1;break}}else if(!(Pe===We||O(Pe,We,l,d,I))){xe=!1;break}}return I.delete(r),I.delete(o),xe}function Ax(r,o,l,d,O,I,k){switch(l){case Kt:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Pt:return!(r.byteLength!=o.byteLength||!I(new js(r),new js(o)));case ee:case ce:case le:return An(+r,+o);case Re:return r.name==o.name&&r.message==o.message;case we:case _e:return r==o+"";case G:var L=dl;case Ne:var V=d&C;if(L||(L=Ls),r.size!=o.size&&!V)return!1;var ie=k.get(r);if(ie)return ie==o;d|=y,k.set(r,o);var se=Dp(L(r),L(o),d,O,I,k);return k.delete(r),se;case Ve:if(To)return To.call(r)==To.call(o)}return!1}function kx(r,o,l,d,O,I){var k=l&C,L=Ll(r),V=L.length,ie=Ll(o),se=ie.length;if(V!=se&&!k)return!1;for(var de=V;de--;){var xe=L[de];if(!(k?xe in o:et.call(o,xe)))return!1}var De=I.get(r),Pe=I.get(o);if(De&&Pe)return De==o&&Pe==r;var We=!0;I.set(r,o),I.set(o,r);for(var Ie=k;++de<V;){xe=L[de];var Ue=r[xe],He=o[xe];if(d)var on=k?d(He,Ue,xe,o,r,I):d(Ue,He,xe,r,o,I);if(!(on===n?Ue===He||O(Ue,He,l,d,I):on)){We=!1;break}Ie||(Ie=xe=="constructor")}if(We&&!Ie){var Bt=r.constructor,sn=o.constructor;Bt!=sn&&"constructor"in r&&"constructor"in o&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof sn=="function"&&sn instanceof sn)&&(We=!1)}return I.delete(r),I.delete(o),We}function sr(r){return ql(kp(r,n,Hp),r+"")}function Ll(r){return Zd(r,Ct,Bl)}function zl(r){return Zd(r,Vt,Mp)}var Fl=Zs?function(r){return Zs.get(r)}:ic;function la(r){for(var o=r.name+"",l=Ni[o],d=et.call(Ni,o)?l.length:0;d--;){var O=l[d],I=O.func;if(I==null||I==r)return O.name}return o}function Li(r){var o=et.call(P,"placeholder")?P:r;return o.placeholder}function Me(){var r=P.iteratee||nc;return r=r===nc?Kd:r,arguments.length?r(arguments[0],arguments[1]):r}function ca(r,o){var l=r.__data__;return jx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function Wl(r){for(var o=Ct(r),l=o.length;l--;){var d=o[l],O=r[d];o[l]=[d,O,Np(O)]}return o}function ei(r,o){var l=Vb(r,o);return Jd(l)?l:n}function $x(r){var o=et.call(r,Zr),l=r[Zr];try{r[Zr]=n;var d=!0}catch{}var O=Bs.call(r);return d&&(o?r[Zr]=l:delete r[Zr]),O}var Bl=hl?function(r){return r==null?[]:(r=ot(r),Sr(hl(r),function(o){return $d.call(r,o)}))}:oc,Mp=hl?function(r){for(var o=[];r;)Er(o,Bl(r)),r=Hs(r);return o}:oc,At=Ft;(ml&&At(new ml(new ArrayBuffer(1)))!=Kt||So&&At(new So)!=G||gl&&At(gl.resolve())!=te||Ii&&At(new Ii)!=Ne||Eo&&At(new Eo)!=Et)&&(At=function(r){var o=Ft(r),l=o==ge?r.constructor:n,d=l?ti(l):"";if(d)switch(d){case vw:return Kt;case bw:return G;case ww:return te;case xw:return Ne;case Sw:return Et}return o});function Lx(r,o,l){for(var d=-1,O=l.length;++d<O;){var I=l[d],k=I.size;switch(I.type){case"drop":r+=k;break;case"dropRight":o-=k;break;case"take":o=Nt(o,r+k);break;case"takeRight":r=Tt(r,o-k);break}}return{start:r,end:o}}function zx(r){var o=r.match(H0);return o?o[1].split(q0):[]}function Pp(r,o,l){o=Rr(o,r);for(var d=-1,O=o.length,I=!1;++d<O;){var k=Hn(o[d]);if(!(I=r!=null&&l(r,k)))break;r=r[k]}return I||++d!=O?I:(O=r==null?0:r.length,!!O&&ya(O)&&ar(k,O)&&(ze(r)||ni(r)))}function Fx(r){var o=r.length,l=new r.constructor(o);return o&&typeof r[0]=="string"&&et.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function Ip(r){return typeof r.constructor=="function"&&!Io(r)?Ai(Hs(r)):{}}function Wx(r,o,l){var d=r.constructor;switch(o){case Pt:return Al(r);case ee:case ce:return new d(+r);case Kt:return Ex(r,l);case Rt:case Vr:case It:case tr:case Pn:case zt:case vo:case Gr:case bo:return hp(r,l);case G:return new d;case le:case _e:return new d(r);case we:return Ox(r);case Ne:return new d;case Ve:return Tx(r)}}function Bx(r,o){var l=o.length;if(!l)return r;var d=l-1;return o[d]=(l>1?"& ":"")+o[d],o=o.join(l>2?", ":" "),r.replace(j0,`{
29
+ */var zT=Ko.exports,Mh;function FT(){return Mh||(Mh=1,function(e,t){(function(){var n,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",x=1,R=2,w=4,O=1,y=2,v=1,g=2,m=4,S=8,E=16,C=32,M=64,D=128,A=256,z=512,J=30,Z="...",_=800,H=16,U=1,K=2,V=3,X=1/0,fe=9007199254740991,ae=17976931348623157e292,Y=NaN,$=4294967295,ue=$-1,ye=$>>>1,pe=[["ary",D],["bind",v],["bindKey",g],["curry",S],["curryRight",E],["flip",z],["partial",C],["partialRight",M],["rearg",A]],Oe="[object Arguments]",Te="[object Array]",ve="[object AsyncFunction]",ee="[object Boolean]",ce="[object Date]",Ee="[object DOMException]",Re="[object Error]",N="[object Function]",W="[object GeneratorFunction]",G="[object Map]",le="[object Number]",be="[object Null]",ge="[object Object]",te="[object Promise]",he="[object Proxy]",we="[object RegExp]",Ne="[object Set]",_e="[object String]",qe="[object Symbol]",_t="[object Undefined]",Et="[object WeakMap]",Jt="[object WeakSet]",Pt="[object ArrayBuffer]",Kt="[object DataView]",Rt="[object Float32Array]",qr="[object Float64Array]",It="[object Int8Array]",nr="[object Int16Array]",Pn="[object Int32Array]",zt="[object Uint8Array]",bo="[object Uint8ClampedArray]",Gr="[object Uint16Array]",wo="[object Uint32Array]",Ti=/\b__p \+= '';/g,Hu=/\b(__p \+=) '' \+/g,Vu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ms=/&(?:amp|lt|gt|quot|#39);/g,Ps=/[&<>"']/g,qu=RegExp(Ms.source),Gu=RegExp(Ps.source),Yu=/<%-([\s\S]+?)%>/g,Zu=/<%([\s\S]+?)%>/g,$e=/<%=([\s\S]+?)%>/g,Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Is=/^\w*$/,B0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xu=/[\\^$.*+?()[\]{}|]/g,U0=RegExp(Xu.source),Ju=/^\s+/,j0=/\s/,H0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,V0=/\{\n\/\* \[wrapped with (.+)\] \*/,q0=/,? & /,G0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y0=/[()=,{}\[\]\/\s]/,Z0=/\\(\\)?/g,X0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jf=/\w*$/,J0=/^[-+]0x[0-9a-f]+$/i,K0=/^0b[01]+$/i,Q0=/^\[object .+?Constructor\]$/,eb=/^0o[0-7]+$/i,tb=/^(?:0|[1-9]\d*)$/,nb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ns=/($^)/,rb=/['\n\r\u2028\u2029\\]/g,As="\\ud800-\\udfff",ib="\\u0300-\\u036f",ob="\\ufe20-\\ufe2f",sb="\\u20d0-\\u20ff",Kf=ib+ob+sb,Qf="\\u2700-\\u27bf",ed="a-z\\xdf-\\xf6\\xf8-\\xff",ab="\\xac\\xb1\\xd7\\xf7",ub="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lb="\\u2000-\\u206f",cb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",td="A-Z\\xc0-\\xd6\\xd8-\\xde",nd="\\ufe0e\\ufe0f",rd=ab+ub+lb+cb,Ku="['’]",fb="["+As+"]",id="["+rd+"]",ks="["+Kf+"]",od="\\d+",db="["+Qf+"]",sd="["+ed+"]",ad="[^"+As+rd+od+Qf+ed+td+"]",Qu="\\ud83c[\\udffb-\\udfff]",pb="(?:"+ks+"|"+Qu+")",ud="[^"+As+"]",el="(?:\\ud83c[\\udde6-\\uddff]){2}",tl="[\\ud800-\\udbff][\\udc00-\\udfff]",Ci="["+td+"]",ld="\\u200d",cd="(?:"+sd+"|"+ad+")",hb="(?:"+Ci+"|"+ad+")",fd="(?:"+Ku+"(?:d|ll|m|re|s|t|ve))?",dd="(?:"+Ku+"(?:D|LL|M|RE|S|T|VE))?",pd=pb+"?",hd="["+nd+"]?",mb="(?:"+ld+"(?:"+[ud,el,tl].join("|")+")"+hd+pd+")*",gb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",md=hd+pd+mb,vb="(?:"+[db,el,tl].join("|")+")"+md,bb="(?:"+[ud+ks+"?",ks,el,tl,fb].join("|")+")",wb=RegExp(Ku,"g"),xb=RegExp(ks,"g"),nl=RegExp(Qu+"(?="+Qu+")|"+bb+md,"g"),Sb=RegExp([Ci+"?"+sd+"+"+fd+"(?="+[id,Ci,"$"].join("|")+")",hb+"+"+dd+"(?="+[id,Ci+cd,"$"].join("|")+")",Ci+"?"+cd+"+"+fd,Ci+"+"+dd,yb,gb,od,vb].join("|"),"g"),Eb=RegExp("["+ld+As+Kf+nd+"]"),Ob=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Cb=-1,ut={};ut[Rt]=ut[qr]=ut[It]=ut[nr]=ut[Pn]=ut[zt]=ut[bo]=ut[Gr]=ut[wo]=!0,ut[Oe]=ut[Te]=ut[Pt]=ut[ee]=ut[Kt]=ut[ce]=ut[Re]=ut[N]=ut[G]=ut[le]=ut[ge]=ut[we]=ut[Ne]=ut[_e]=ut[Et]=!1;var st={};st[Oe]=st[Te]=st[Pt]=st[Kt]=st[ee]=st[ce]=st[Rt]=st[qr]=st[It]=st[nr]=st[Pn]=st[G]=st[le]=st[ge]=st[we]=st[Ne]=st[_e]=st[qe]=st[zt]=st[bo]=st[Gr]=st[wo]=!0,st[Re]=st[N]=st[Et]=!1;var _b={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Rb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Db={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Mb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pb=parseFloat,Ib=parseInt,gd=typeof xa=="object"&&xa&&xa.Object===Object&&xa,Nb=typeof self=="object"&&self&&self.Object===Object&&self,Dt=gd||Nb||Function("return this")(),rl=t&&!t.nodeType&&t,Yr=rl&&!0&&e&&!e.nodeType&&e,yd=Yr&&Yr.exports===rl,il=yd&&gd.process,pn=function(){try{var j=Yr&&Yr.require&&Yr.require("util").types;return j||il&&il.binding&&il.binding("util")}catch{}}(),vd=pn&&pn.isArrayBuffer,bd=pn&&pn.isDate,wd=pn&&pn.isMap,xd=pn&&pn.isRegExp,Sd=pn&&pn.isSet,Ed=pn&&pn.isTypedArray;function en(j,re,Q){switch(Q.length){case 0:return j.call(re);case 1:return j.call(re,Q[0]);case 2:return j.call(re,Q[0],Q[1]);case 3:return j.call(re,Q[0],Q[1],Q[2])}return j.apply(re,Q)}function Ab(j,re,Q,Ce){for(var Le=-1,Ye=j==null?0:j.length;++Le<Ye;){var Ot=j[Le];re(Ce,Ot,Q(Ot),j)}return Ce}function hn(j,re){for(var Q=-1,Ce=j==null?0:j.length;++Q<Ce&&re(j[Q],Q,j)!==!1;);return j}function kb(j,re){for(var Q=j==null?0:j.length;Q--&&re(j[Q],Q,j)!==!1;);return j}function Od(j,re){for(var Q=-1,Ce=j==null?0:j.length;++Q<Ce;)if(!re(j[Q],Q,j))return!1;return!0}function Sr(j,re){for(var Q=-1,Ce=j==null?0:j.length,Le=0,Ye=[];++Q<Ce;){var Ot=j[Q];re(Ot,Q,j)&&(Ye[Le++]=Ot)}return Ye}function $s(j,re){var Q=j==null?0:j.length;return!!Q&&_i(j,re,0)>-1}function ol(j,re,Q){for(var Ce=-1,Le=j==null?0:j.length;++Ce<Le;)if(Q(re,j[Ce]))return!0;return!1}function lt(j,re){for(var Q=-1,Ce=j==null?0:j.length,Le=Array(Ce);++Q<Ce;)Le[Q]=re(j[Q],Q,j);return Le}function Er(j,re){for(var Q=-1,Ce=re.length,Le=j.length;++Q<Ce;)j[Le+Q]=re[Q];return j}function sl(j,re,Q,Ce){var Le=-1,Ye=j==null?0:j.length;for(Ce&&Ye&&(Q=j[++Le]);++Le<Ye;)Q=re(Q,j[Le],Le,j);return Q}function $b(j,re,Q,Ce){var Le=j==null?0:j.length;for(Ce&&Le&&(Q=j[--Le]);Le--;)Q=re(Q,j[Le],Le,j);return Q}function al(j,re){for(var Q=-1,Ce=j==null?0:j.length;++Q<Ce;)if(re(j[Q],Q,j))return!0;return!1}var Lb=ul("length");function zb(j){return j.split("")}function Fb(j){return j.match(G0)||[]}function Td(j,re,Q){var Ce;return Q(j,function(Le,Ye,Ot){if(re(Le,Ye,Ot))return Ce=Ye,!1}),Ce}function Ls(j,re,Q,Ce){for(var Le=j.length,Ye=Q+(Ce?1:-1);Ce?Ye--:++Ye<Le;)if(re(j[Ye],Ye,j))return Ye;return-1}function _i(j,re,Q){return re===re?Jb(j,re,Q):Ls(j,Cd,Q)}function Wb(j,re,Q,Ce){for(var Le=Q-1,Ye=j.length;++Le<Ye;)if(Ce(j[Le],re))return Le;return-1}function Cd(j){return j!==j}function _d(j,re){var Q=j==null?0:j.length;return Q?cl(j,re)/Q:Y}function ul(j){return function(re){return re==null?n:re[j]}}function ll(j){return function(re){return j==null?n:j[re]}}function Rd(j,re,Q,Ce,Le){return Le(j,function(Ye,Ot,ot){Q=Ce?(Ce=!1,Ye):re(Q,Ye,Ot,ot)}),Q}function Bb(j,re){var Q=j.length;for(j.sort(re);Q--;)j[Q]=j[Q].value;return j}function cl(j,re){for(var Q,Ce=-1,Le=j.length;++Ce<Le;){var Ye=re(j[Ce]);Ye!==n&&(Q=Q===n?Ye:Q+Ye)}return Q}function fl(j,re){for(var Q=-1,Ce=Array(j);++Q<j;)Ce[Q]=re(Q);return Ce}function Ub(j,re){return lt(re,function(Q){return[Q,j[Q]]})}function Dd(j){return j&&j.slice(0,Nd(j)+1).replace(Ju,"")}function tn(j){return function(re){return j(re)}}function dl(j,re){return lt(re,function(Q){return j[Q]})}function xo(j,re){return j.has(re)}function Md(j,re){for(var Q=-1,Ce=j.length;++Q<Ce&&_i(re,j[Q],0)>-1;);return Q}function Pd(j,re){for(var Q=j.length;Q--&&_i(re,j[Q],0)>-1;);return Q}function jb(j,re){for(var Q=j.length,Ce=0;Q--;)j[Q]===re&&++Ce;return Ce}var Hb=ll(_b),Vb=ll(Rb);function qb(j){return"\\"+Mb[j]}function Gb(j,re){return j==null?n:j[re]}function Ri(j){return Eb.test(j)}function Yb(j){return Ob.test(j)}function Zb(j){for(var re,Q=[];!(re=j.next()).done;)Q.push(re.value);return Q}function pl(j){var re=-1,Q=Array(j.size);return j.forEach(function(Ce,Le){Q[++re]=[Le,Ce]}),Q}function Id(j,re){return function(Q){return j(re(Q))}}function Or(j,re){for(var Q=-1,Ce=j.length,Le=0,Ye=[];++Q<Ce;){var Ot=j[Q];(Ot===re||Ot===h)&&(j[Q]=h,Ye[Le++]=Q)}return Ye}function zs(j){var re=-1,Q=Array(j.size);return j.forEach(function(Ce){Q[++re]=Ce}),Q}function Xb(j){var re=-1,Q=Array(j.size);return j.forEach(function(Ce){Q[++re]=[Ce,Ce]}),Q}function Jb(j,re,Q){for(var Ce=Q-1,Le=j.length;++Ce<Le;)if(j[Ce]===re)return Ce;return-1}function Kb(j,re,Q){for(var Ce=Q+1;Ce--;)if(j[Ce]===re)return Ce;return Ce}function Di(j){return Ri(j)?ew(j):Lb(j)}function In(j){return Ri(j)?tw(j):zb(j)}function Nd(j){for(var re=j.length;re--&&j0.test(j.charAt(re)););return re}var Qb=ll(Db);function ew(j){for(var re=nl.lastIndex=0;nl.test(j);)++re;return re}function tw(j){return j.match(nl)||[]}function nw(j){return j.match(Sb)||[]}var rw=function j(re){re=re==null?Dt:Mi.defaults(Dt.Object(),re,Mi.pick(Dt,Tb));var Q=re.Array,Ce=re.Date,Le=re.Error,Ye=re.Function,Ot=re.Math,ot=re.Object,hl=re.RegExp,iw=re.String,mn=re.TypeError,Fs=Q.prototype,ow=Ye.prototype,Pi=ot.prototype,Ws=re["__core-js_shared__"],Bs=ow.toString,et=Pi.hasOwnProperty,sw=0,Ad=function(){var r=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Us=Pi.toString,aw=Bs.call(ot),uw=Dt._,lw=hl("^"+Bs.call(et).replace(Xu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),js=yd?re.Buffer:n,Tr=re.Symbol,Hs=re.Uint8Array,kd=js?js.allocUnsafe:n,Vs=Id(ot.getPrototypeOf,ot),$d=ot.create,Ld=Pi.propertyIsEnumerable,qs=Fs.splice,zd=Tr?Tr.isConcatSpreadable:n,So=Tr?Tr.iterator:n,Zr=Tr?Tr.toStringTag:n,Gs=function(){try{var r=ei(ot,"defineProperty");return r({},"",{}),r}catch{}}(),cw=re.clearTimeout!==Dt.clearTimeout&&re.clearTimeout,fw=Ce&&Ce.now!==Dt.Date.now&&Ce.now,dw=re.setTimeout!==Dt.setTimeout&&re.setTimeout,Ys=Ot.ceil,Zs=Ot.floor,ml=ot.getOwnPropertySymbols,pw=js?js.isBuffer:n,Fd=re.isFinite,hw=Fs.join,mw=Id(ot.keys,ot),Tt=Ot.max,Nt=Ot.min,gw=Ce.now,yw=re.parseInt,Wd=Ot.random,vw=Fs.reverse,gl=ei(re,"DataView"),Eo=ei(re,"Map"),yl=ei(re,"Promise"),Ii=ei(re,"Set"),Oo=ei(re,"WeakMap"),To=ei(ot,"create"),Xs=Oo&&new Oo,Ni={},bw=ti(gl),ww=ti(Eo),xw=ti(yl),Sw=ti(Ii),Ew=ti(Oo),Js=Tr?Tr.prototype:n,Co=Js?Js.valueOf:n,Bd=Js?Js.toString:n;function P(r){if(dt(r)&&!ze(r)&&!(r instanceof je)){if(r instanceof gn)return r;if(et.call(r,"__wrapped__"))return Up(r)}return new gn(r)}var Ai=function(){function r(){}return function(o){if(!ft(o))return{};if($d)return $d(o);r.prototype=o;var l=new r;return r.prototype=n,l}}();function Ks(){}function gn(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}P.templateSettings={escape:Yu,evaluate:Zu,interpolate:$e,variable:"",imports:{_:P}},P.prototype=Ks.prototype,P.prototype.constructor=P,gn.prototype=Ai(Ks.prototype),gn.prototype.constructor=gn;function je(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Ow(){var r=new je(this.__wrapped__);return r.__actions__=Ht(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Ht(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Ht(this.__views__),r}function Tw(){if(this.__filtered__){var r=new je(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Cw(){var r=this.__wrapped__.value(),o=this.__dir__,l=ze(r),d=o<0,T=l?r.length:0,I=zx(0,T,this.__views__),k=I.start,L=I.end,q=L-k,ie=d?L:k-1,se=this.__iteratees__,de=se.length,xe=0,De=Nt(q,this.__takeCount__);if(!l||!d&&T==q&&De==q)return fp(r,this.__actions__);var Pe=[];e:for(;q--&&xe<De;){ie+=o;for(var We=-1,Ie=r[ie];++We<de;){var Ue=se[We],He=Ue.iteratee,on=Ue.type,Bt=He(Ie);if(on==K)Ie=Bt;else if(!Bt){if(on==U)continue e;break e}}Pe[xe++]=Ie}return Pe}je.prototype=Ai(Ks.prototype),je.prototype.constructor=je;function Xr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function _w(){this.__data__=To?To(null):{},this.size=0}function Rw(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function Dw(r){var o=this.__data__;if(To){var l=o[r];return l===f?n:l}return et.call(o,r)?o[r]:n}function Mw(r){var o=this.__data__;return To?o[r]!==n:et.call(o,r)}function Pw(r,o){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=To&&o===n?f:o,this}Xr.prototype.clear=_w,Xr.prototype.delete=Rw,Xr.prototype.get=Dw,Xr.prototype.has=Mw,Xr.prototype.set=Pw;function rr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function Iw(){this.__data__=[],this.size=0}function Nw(r){var o=this.__data__,l=Qs(o,r);if(l<0)return!1;var d=o.length-1;return l==d?o.pop():qs.call(o,l,1),--this.size,!0}function Aw(r){var o=this.__data__,l=Qs(o,r);return l<0?n:o[l][1]}function kw(r){return Qs(this.__data__,r)>-1}function $w(r,o){var l=this.__data__,d=Qs(l,r);return d<0?(++this.size,l.push([r,o])):l[d][1]=o,this}rr.prototype.clear=Iw,rr.prototype.delete=Nw,rr.prototype.get=Aw,rr.prototype.has=kw,rr.prototype.set=$w;function ir(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var d=r[o];this.set(d[0],d[1])}}function Lw(){this.size=0,this.__data__={hash:new Xr,map:new(Eo||rr),string:new Xr}}function zw(r){var o=fa(this,r).delete(r);return this.size-=o?1:0,o}function Fw(r){return fa(this,r).get(r)}function Ww(r){return fa(this,r).has(r)}function Bw(r,o){var l=fa(this,r),d=l.size;return l.set(r,o),this.size+=l.size==d?0:1,this}ir.prototype.clear=Lw,ir.prototype.delete=zw,ir.prototype.get=Fw,ir.prototype.has=Ww,ir.prototype.set=Bw;function Jr(r){var o=-1,l=r==null?0:r.length;for(this.__data__=new ir;++o<l;)this.add(r[o])}function Uw(r){return this.__data__.set(r,f),this}function jw(r){return this.__data__.has(r)}Jr.prototype.add=Jr.prototype.push=Uw,Jr.prototype.has=jw;function Nn(r){var o=this.__data__=new rr(r);this.size=o.size}function Hw(){this.__data__=new rr,this.size=0}function Vw(r){var o=this.__data__,l=o.delete(r);return this.size=o.size,l}function qw(r){return this.__data__.get(r)}function Gw(r){return this.__data__.has(r)}function Yw(r,o){var l=this.__data__;if(l instanceof rr){var d=l.__data__;if(!Eo||d.length<s-1)return d.push([r,o]),this.size=++l.size,this;l=this.__data__=new ir(d)}return l.set(r,o),this.size=l.size,this}Nn.prototype.clear=Hw,Nn.prototype.delete=Vw,Nn.prototype.get=qw,Nn.prototype.has=Gw,Nn.prototype.set=Yw;function Ud(r,o){var l=ze(r),d=!l&&ni(r),T=!l&&!d&&Mr(r),I=!l&&!d&&!T&&zi(r),k=l||d||T||I,L=k?fl(r.length,iw):[],q=L.length;for(var ie in r)(o||et.call(r,ie))&&!(k&&(ie=="length"||T&&(ie=="offset"||ie=="parent")||I&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||ur(ie,q)))&&L.push(ie);return L}function jd(r){var o=r.length;return o?r[Rl(0,o-1)]:n}function Zw(r,o){return da(Ht(r),Kr(o,0,r.length))}function Xw(r){return da(Ht(r))}function vl(r,o,l){(l!==n&&!An(r[o],l)||l===n&&!(o in r))&&or(r,o,l)}function _o(r,o,l){var d=r[o];(!(et.call(r,o)&&An(d,l))||l===n&&!(o in r))&&or(r,o,l)}function Qs(r,o){for(var l=r.length;l--;)if(An(r[l][0],o))return l;return-1}function Jw(r,o,l,d){return Cr(r,function(T,I,k){o(d,T,l(T),k)}),d}function Hd(r,o){return r&&jn(o,Ct(o),r)}function Kw(r,o){return r&&jn(o,qt(o),r)}function or(r,o,l){o=="__proto__"&&Gs?Gs(r,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[o]=l}function bl(r,o){for(var l=-1,d=o.length,T=Q(d),I=r==null;++l<d;)T[l]=I?n:Ql(r,o[l]);return T}function Kr(r,o,l){return r===r&&(l!==n&&(r=r<=l?r:l),o!==n&&(r=r>=o?r:o)),r}function yn(r,o,l,d,T,I){var k,L=o&x,q=o&R,ie=o&w;if(l&&(k=T?l(r,d,T,I):l(r)),k!==n)return k;if(!ft(r))return r;var se=ze(r);if(se){if(k=Wx(r),!L)return Ht(r,k)}else{var de=At(r),xe=de==N||de==W;if(Mr(r))return hp(r,L);if(de==ge||de==Oe||xe&&!T){if(k=q||xe?{}:Np(r),!L)return q?Dx(r,Kw(k,r)):Rx(r,Hd(k,r))}else{if(!st[de])return T?r:{};k=Bx(r,de,L)}}I||(I=new Nn);var De=I.get(r);if(De)return De;I.set(r,k),uh(r)?r.forEach(function(Ie){k.add(yn(Ie,o,l,Ie,r,I))}):sh(r)&&r.forEach(function(Ie,Ue){k.set(Ue,yn(Ie,o,l,Ue,r,I))});var Pe=ie?q?Fl:zl:q?qt:Ct,We=se?n:Pe(r);return hn(We||r,function(Ie,Ue){We&&(Ue=Ie,Ie=r[Ue]),_o(k,Ue,yn(Ie,o,l,Ue,r,I))}),k}function Qw(r){var o=Ct(r);return function(l){return Vd(l,r,o)}}function Vd(r,o,l){var d=l.length;if(r==null)return!d;for(r=ot(r);d--;){var T=l[d],I=o[T],k=r[T];if(k===n&&!(T in r)||!I(k))return!1}return!0}function qd(r,o,l){if(typeof r!="function")throw new mn(u);return Ao(function(){r.apply(n,l)},o)}function Ro(r,o,l,d){var T=-1,I=$s,k=!0,L=r.length,q=[],ie=o.length;if(!L)return q;l&&(o=lt(o,tn(l))),d?(I=ol,k=!1):o.length>=s&&(I=xo,k=!1,o=new Jr(o));e:for(;++T<L;){var se=r[T],de=l==null?se:l(se);if(se=d||se!==0?se:0,k&&de===de){for(var xe=ie;xe--;)if(o[xe]===de)continue e;q.push(se)}else I(o,de,d)||q.push(se)}return q}var Cr=bp(Un),Gd=bp(xl,!0);function ex(r,o){var l=!0;return Cr(r,function(d,T,I){return l=!!o(d,T,I),l}),l}function ea(r,o,l){for(var d=-1,T=r.length;++d<T;){var I=r[d],k=o(I);if(k!=null&&(L===n?k===k&&!rn(k):l(k,L)))var L=k,q=I}return q}function tx(r,o,l,d){var T=r.length;for(l=Fe(l),l<0&&(l=-l>T?0:T+l),d=d===n||d>T?T:Fe(d),d<0&&(d+=T),d=l>d?0:ch(d);l<d;)r[l++]=o;return r}function Yd(r,o){var l=[];return Cr(r,function(d,T,I){o(d,T,I)&&l.push(d)}),l}function Mt(r,o,l,d,T){var I=-1,k=r.length;for(l||(l=jx),T||(T=[]);++I<k;){var L=r[I];o>0&&l(L)?o>1?Mt(L,o-1,l,d,T):Er(T,L):d||(T[T.length]=L)}return T}var wl=wp(),Zd=wp(!0);function Un(r,o){return r&&wl(r,o,Ct)}function xl(r,o){return r&&Zd(r,o,Ct)}function ta(r,o){return Sr(o,function(l){return lr(r[l])})}function Qr(r,o){o=Rr(o,r);for(var l=0,d=o.length;r!=null&&l<d;)r=r[Hn(o[l++])];return l&&l==d?r:n}function Xd(r,o,l){var d=o(r);return ze(r)?d:Er(d,l(r))}function Ft(r){return r==null?r===n?_t:be:Zr&&Zr in ot(r)?Lx(r):Xx(r)}function Sl(r,o){return r>o}function nx(r,o){return r!=null&&et.call(r,o)}function rx(r,o){return r!=null&&o in ot(r)}function ix(r,o,l){return r>=Nt(o,l)&&r<Tt(o,l)}function El(r,o,l){for(var d=l?ol:$s,T=r[0].length,I=r.length,k=I,L=Q(I),q=1/0,ie=[];k--;){var se=r[k];k&&o&&(se=lt(se,tn(o))),q=Nt(se.length,q),L[k]=!l&&(o||T>=120&&se.length>=120)?new Jr(k&&se):n}se=r[0];var de=-1,xe=L[0];e:for(;++de<T&&ie.length<q;){var De=se[de],Pe=o?o(De):De;if(De=l||De!==0?De:0,!(xe?xo(xe,Pe):d(ie,Pe,l))){for(k=I;--k;){var We=L[k];if(!(We?xo(We,Pe):d(r[k],Pe,l)))continue e}xe&&xe.push(Pe),ie.push(De)}}return ie}function ox(r,o,l,d){return Un(r,function(T,I,k){o(d,l(T),I,k)}),d}function Do(r,o,l){o=Rr(o,r),r=Lp(r,o);var d=r==null?r:r[Hn(bn(o))];return d==null?n:en(d,r,l)}function Jd(r){return dt(r)&&Ft(r)==Oe}function sx(r){return dt(r)&&Ft(r)==Pt}function ax(r){return dt(r)&&Ft(r)==ce}function Mo(r,o,l,d,T){return r===o?!0:r==null||o==null||!dt(r)&&!dt(o)?r!==r&&o!==o:ux(r,o,l,d,Mo,T)}function ux(r,o,l,d,T,I){var k=ze(r),L=ze(o),q=k?Te:At(r),ie=L?Te:At(o);q=q==Oe?ge:q,ie=ie==Oe?ge:ie;var se=q==ge,de=ie==ge,xe=q==ie;if(xe&&Mr(r)){if(!Mr(o))return!1;k=!0,se=!1}if(xe&&!se)return I||(I=new Nn),k||zi(r)?Mp(r,o,l,d,T,I):kx(r,o,q,l,d,T,I);if(!(l&O)){var De=se&&et.call(r,"__wrapped__"),Pe=de&&et.call(o,"__wrapped__");if(De||Pe){var We=De?r.value():r,Ie=Pe?o.value():o;return I||(I=new Nn),T(We,Ie,l,d,I)}}return xe?(I||(I=new Nn),$x(r,o,l,d,T,I)):!1}function lx(r){return dt(r)&&At(r)==G}function Ol(r,o,l,d){var T=l.length,I=T,k=!d;if(r==null)return!I;for(r=ot(r);T--;){var L=l[T];if(k&&L[2]?L[1]!==r[L[0]]:!(L[0]in r))return!1}for(;++T<I;){L=l[T];var q=L[0],ie=r[q],se=L[1];if(k&&L[2]){if(ie===n&&!(q in r))return!1}else{var de=new Nn;if(d)var xe=d(ie,se,q,r,o,de);if(!(xe===n?Mo(se,ie,O|y,d,de):xe))return!1}}return!0}function Kd(r){if(!ft(r)||Vx(r))return!1;var o=lr(r)?lw:Q0;return o.test(ti(r))}function cx(r){return dt(r)&&Ft(r)==we}function fx(r){return dt(r)&&At(r)==Ne}function dx(r){return dt(r)&&va(r.length)&&!!ut[Ft(r)]}function Qd(r){return typeof r=="function"?r:r==null?Gt:typeof r=="object"?ze(r)?np(r[0],r[1]):tp(r):xh(r)}function Tl(r){if(!No(r))return mw(r);var o=[];for(var l in ot(r))et.call(r,l)&&l!="constructor"&&o.push(l);return o}function px(r){if(!ft(r))return Zx(r);var o=No(r),l=[];for(var d in r)d=="constructor"&&(o||!et.call(r,d))||l.push(d);return l}function Cl(r,o){return r<o}function ep(r,o){var l=-1,d=Vt(r)?Q(r.length):[];return Cr(r,function(T,I,k){d[++l]=o(T,I,k)}),d}function tp(r){var o=Bl(r);return o.length==1&&o[0][2]?kp(o[0][0],o[0][1]):function(l){return l===r||Ol(l,r,o)}}function np(r,o){return jl(r)&&Ap(o)?kp(Hn(r),o):function(l){var d=Ql(l,r);return d===n&&d===o?ec(l,r):Mo(o,d,O|y)}}function na(r,o,l,d,T){r!==o&&wl(o,function(I,k){if(T||(T=new Nn),ft(I))hx(r,o,k,l,na,d,T);else{var L=d?d(Vl(r,k),I,k+"",r,o,T):n;L===n&&(L=I),vl(r,k,L)}},qt)}function hx(r,o,l,d,T,I,k){var L=Vl(r,l),q=Vl(o,l),ie=k.get(q);if(ie){vl(r,l,ie);return}var se=I?I(L,q,l+"",r,o,k):n,de=se===n;if(de){var xe=ze(q),De=!xe&&Mr(q),Pe=!xe&&!De&&zi(q);se=q,xe||De||Pe?ze(L)?se=L:vt(L)?se=Ht(L):De?(de=!1,se=hp(q,!0)):Pe?(de=!1,se=mp(q,!0)):se=[]:ko(q)||ni(q)?(se=L,ni(L)?se=fh(L):(!ft(L)||lr(L))&&(se=Np(q))):de=!1}de&&(k.set(q,se),T(se,q,d,I,k),k.delete(q)),vl(r,l,se)}function rp(r,o){var l=r.length;if(l)return o+=o<0?l:0,ur(o,l)?r[o]:n}function ip(r,o,l){o.length?o=lt(o,function(I){return ze(I)?function(k){return Qr(k,I.length===1?I[0]:I)}:I}):o=[Gt];var d=-1;o=lt(o,tn(Me()));var T=ep(r,function(I,k,L){var q=lt(o,function(ie){return ie(I)});return{criteria:q,index:++d,value:I}});return Bb(T,function(I,k){return _x(I,k,l)})}function mx(r,o){return op(r,o,function(l,d){return ec(r,d)})}function op(r,o,l){for(var d=-1,T=o.length,I={};++d<T;){var k=o[d],L=Qr(r,k);l(L,k)&&Po(I,Rr(k,r),L)}return I}function gx(r){return function(o){return Qr(o,r)}}function _l(r,o,l,d){var T=d?Wb:_i,I=-1,k=o.length,L=r;for(r===o&&(o=Ht(o)),l&&(L=lt(r,tn(l)));++I<k;)for(var q=0,ie=o[I],se=l?l(ie):ie;(q=T(L,se,q,d))>-1;)L!==r&&qs.call(L,q,1),qs.call(r,q,1);return r}function sp(r,o){for(var l=r?o.length:0,d=l-1;l--;){var T=o[l];if(l==d||T!==I){var I=T;ur(T)?qs.call(r,T,1):Pl(r,T)}}return r}function Rl(r,o){return r+Zs(Wd()*(o-r+1))}function yx(r,o,l,d){for(var T=-1,I=Tt(Ys((o-r)/(l||1)),0),k=Q(I);I--;)k[d?I:++T]=r,r+=l;return k}function Dl(r,o){var l="";if(!r||o<1||o>fe)return l;do o%2&&(l+=r),o=Zs(o/2),o&&(r+=r);while(o);return l}function Be(r,o){return ql($p(r,o,Gt),r+"")}function vx(r){return jd(Fi(r))}function bx(r,o){var l=Fi(r);return da(l,Kr(o,0,l.length))}function Po(r,o,l,d){if(!ft(r))return r;o=Rr(o,r);for(var T=-1,I=o.length,k=I-1,L=r;L!=null&&++T<I;){var q=Hn(o[T]),ie=l;if(q==="__proto__"||q==="constructor"||q==="prototype")return r;if(T!=k){var se=L[q];ie=d?d(se,q,L):n,ie===n&&(ie=ft(se)?se:ur(o[T+1])?[]:{})}_o(L,q,ie),L=L[q]}return r}var ap=Xs?function(r,o){return Xs.set(r,o),r}:Gt,wx=Gs?function(r,o){return Gs(r,"toString",{configurable:!0,enumerable:!1,value:nc(o),writable:!0})}:Gt;function xx(r){return da(Fi(r))}function vn(r,o,l){var d=-1,T=r.length;o<0&&(o=-o>T?0:T+o),l=l>T?T:l,l<0&&(l+=T),T=o>l?0:l-o>>>0,o>>>=0;for(var I=Q(T);++d<T;)I[d]=r[d+o];return I}function Sx(r,o){var l;return Cr(r,function(d,T,I){return l=o(d,T,I),!l}),!!l}function ra(r,o,l){var d=0,T=r==null?d:r.length;if(typeof o=="number"&&o===o&&T<=ye){for(;d<T;){var I=d+T>>>1,k=r[I];k!==null&&!rn(k)&&(l?k<=o:k<o)?d=I+1:T=I}return T}return Ml(r,o,Gt,l)}function Ml(r,o,l,d){var T=0,I=r==null?0:r.length;if(I===0)return 0;o=l(o);for(var k=o!==o,L=o===null,q=rn(o),ie=o===n;T<I;){var se=Zs((T+I)/2),de=l(r[se]),xe=de!==n,De=de===null,Pe=de===de,We=rn(de);if(k)var Ie=d||Pe;else ie?Ie=Pe&&(d||xe):L?Ie=Pe&&xe&&(d||!De):q?Ie=Pe&&xe&&!De&&(d||!We):De||We?Ie=!1:Ie=d?de<=o:de<o;Ie?T=se+1:I=se}return Nt(I,ue)}function up(r,o){for(var l=-1,d=r.length,T=0,I=[];++l<d;){var k=r[l],L=o?o(k):k;if(!l||!An(L,q)){var q=L;I[T++]=k===0?0:k}}return I}function lp(r){return typeof r=="number"?r:rn(r)?Y:+r}function nn(r){if(typeof r=="string")return r;if(ze(r))return lt(r,nn)+"";if(rn(r))return Bd?Bd.call(r):"";var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function _r(r,o,l){var d=-1,T=$s,I=r.length,k=!0,L=[],q=L;if(l)k=!1,T=ol;else if(I>=s){var ie=o?null:Nx(r);if(ie)return zs(ie);k=!1,T=xo,q=new Jr}else q=o?[]:L;e:for(;++d<I;){var se=r[d],de=o?o(se):se;if(se=l||se!==0?se:0,k&&de===de){for(var xe=q.length;xe--;)if(q[xe]===de)continue e;o&&q.push(de),L.push(se)}else T(q,de,l)||(q!==L&&q.push(de),L.push(se))}return L}function Pl(r,o){return o=Rr(o,r),r=Lp(r,o),r==null||delete r[Hn(bn(o))]}function cp(r,o,l,d){return Po(r,o,l(Qr(r,o)),d)}function ia(r,o,l,d){for(var T=r.length,I=d?T:-1;(d?I--:++I<T)&&o(r[I],I,r););return l?vn(r,d?0:I,d?I+1:T):vn(r,d?I+1:0,d?T:I)}function fp(r,o){var l=r;return l instanceof je&&(l=l.value()),sl(o,function(d,T){return T.func.apply(T.thisArg,Er([d],T.args))},l)}function Il(r,o,l){var d=r.length;if(d<2)return d?_r(r[0]):[];for(var T=-1,I=Q(d);++T<d;)for(var k=r[T],L=-1;++L<d;)L!=T&&(I[T]=Ro(I[T]||k,r[L],o,l));return _r(Mt(I,1),o,l)}function dp(r,o,l){for(var d=-1,T=r.length,I=o.length,k={};++d<T;){var L=d<I?o[d]:n;l(k,r[d],L)}return k}function Nl(r){return vt(r)?r:[]}function Al(r){return typeof r=="function"?r:Gt}function Rr(r,o){return ze(r)?r:jl(r,o)?[r]:Bp(Xe(r))}var Ex=Be;function Dr(r,o,l){var d=r.length;return l=l===n?d:l,!o&&l>=d?r:vn(r,o,l)}var pp=cw||function(r){return Dt.clearTimeout(r)};function hp(r,o){if(o)return r.slice();var l=r.length,d=kd?kd(l):new r.constructor(l);return r.copy(d),d}function kl(r){var o=new r.constructor(r.byteLength);return new Hs(o).set(new Hs(r)),o}function Ox(r,o){var l=o?kl(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function Tx(r){var o=new r.constructor(r.source,Jf.exec(r));return o.lastIndex=r.lastIndex,o}function Cx(r){return Co?ot(Co.call(r)):{}}function mp(r,o){var l=o?kl(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function gp(r,o){if(r!==o){var l=r!==n,d=r===null,T=r===r,I=rn(r),k=o!==n,L=o===null,q=o===o,ie=rn(o);if(!L&&!ie&&!I&&r>o||I&&k&&q&&!L&&!ie||d&&k&&q||!l&&q||!T)return 1;if(!d&&!I&&!ie&&r<o||ie&&l&&T&&!d&&!I||L&&l&&T||!k&&T||!q)return-1}return 0}function _x(r,o,l){for(var d=-1,T=r.criteria,I=o.criteria,k=T.length,L=l.length;++d<k;){var q=gp(T[d],I[d]);if(q){if(d>=L)return q;var ie=l[d];return q*(ie=="desc"?-1:1)}}return r.index-o.index}function yp(r,o,l,d){for(var T=-1,I=r.length,k=l.length,L=-1,q=o.length,ie=Tt(I-k,0),se=Q(q+ie),de=!d;++L<q;)se[L]=o[L];for(;++T<k;)(de||T<I)&&(se[l[T]]=r[T]);for(;ie--;)se[L++]=r[T++];return se}function vp(r,o,l,d){for(var T=-1,I=r.length,k=-1,L=l.length,q=-1,ie=o.length,se=Tt(I-L,0),de=Q(se+ie),xe=!d;++T<se;)de[T]=r[T];for(var De=T;++q<ie;)de[De+q]=o[q];for(;++k<L;)(xe||T<I)&&(de[De+l[k]]=r[T++]);return de}function Ht(r,o){var l=-1,d=r.length;for(o||(o=Q(d));++l<d;)o[l]=r[l];return o}function jn(r,o,l,d){var T=!l;l||(l={});for(var I=-1,k=o.length;++I<k;){var L=o[I],q=d?d(l[L],r[L],L,l,r):n;q===n&&(q=r[L]),T?or(l,L,q):_o(l,L,q)}return l}function Rx(r,o){return jn(r,Ul(r),o)}function Dx(r,o){return jn(r,Pp(r),o)}function oa(r,o){return function(l,d){var T=ze(l)?Ab:Jw,I=o?o():{};return T(l,r,Me(d,2),I)}}function ki(r){return Be(function(o,l){var d=-1,T=l.length,I=T>1?l[T-1]:n,k=T>2?l[2]:n;for(I=r.length>3&&typeof I=="function"?(T--,I):n,k&&Wt(l[0],l[1],k)&&(I=T<3?n:I,T=1),o=ot(o);++d<T;){var L=l[d];L&&r(o,L,d,I)}return o})}function bp(r,o){return function(l,d){if(l==null)return l;if(!Vt(l))return r(l,d);for(var T=l.length,I=o?T:-1,k=ot(l);(o?I--:++I<T)&&d(k[I],I,k)!==!1;);return l}}function wp(r){return function(o,l,d){for(var T=-1,I=ot(o),k=d(o),L=k.length;L--;){var q=k[r?L:++T];if(l(I[q],q,I)===!1)break}return o}}function Mx(r,o,l){var d=o&v,T=Io(r);function I(){var k=this&&this!==Dt&&this instanceof I?T:r;return k.apply(d?l:this,arguments)}return I}function xp(r){return function(o){o=Xe(o);var l=Ri(o)?In(o):n,d=l?l[0]:o.charAt(0),T=l?Dr(l,1).join(""):o.slice(1);return d[r]()+T}}function $i(r){return function(o){return sl(bh(vh(o).replace(wb,"")),r,"")}}function Io(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var l=Ai(r.prototype),d=r.apply(l,o);return ft(d)?d:l}}function Px(r,o,l){var d=Io(r);function T(){for(var I=arguments.length,k=Q(I),L=I,q=Li(T);L--;)k[L]=arguments[L];var ie=I<3&&k[0]!==q&&k[I-1]!==q?[]:Or(k,q);if(I-=ie.length,I<l)return Cp(r,o,sa,T.placeholder,n,k,ie,n,n,l-I);var se=this&&this!==Dt&&this instanceof T?d:r;return en(se,this,k)}return T}function Sp(r){return function(o,l,d){var T=ot(o);if(!Vt(o)){var I=Me(l,3);o=Ct(o),l=function(L){return I(T[L],L,T)}}var k=r(o,l,d);return k>-1?T[I?o[k]:k]:n}}function Ep(r){return ar(function(o){var l=o.length,d=l,T=gn.prototype.thru;for(r&&o.reverse();d--;){var I=o[d];if(typeof I!="function")throw new mn(u);if(T&&!k&&ca(I)=="wrapper")var k=new gn([],!0)}for(d=k?d:l;++d<l;){I=o[d];var L=ca(I),q=L=="wrapper"?Wl(I):n;q&&Hl(q[0])&&q[1]==(D|S|C|A)&&!q[4].length&&q[9]==1?k=k[ca(q[0])].apply(k,q[3]):k=I.length==1&&Hl(I)?k[L]():k.thru(I)}return function(){var ie=arguments,se=ie[0];if(k&&ie.length==1&&ze(se))return k.plant(se).value();for(var de=0,xe=l?o[de].apply(this,ie):se;++de<l;)xe=o[de].call(this,xe);return xe}})}function sa(r,o,l,d,T,I,k,L,q,ie){var se=o&D,de=o&v,xe=o&g,De=o&(S|E),Pe=o&z,We=xe?n:Io(r);function Ie(){for(var Ue=arguments.length,He=Q(Ue),on=Ue;on--;)He[on]=arguments[on];if(De)var Bt=Li(Ie),sn=jb(He,Bt);if(d&&(He=yp(He,d,T,De)),I&&(He=vp(He,I,k,De)),Ue-=sn,De&&Ue<ie){var bt=Or(He,Bt);return Cp(r,o,sa,Ie.placeholder,l,He,bt,L,q,ie-Ue)}var kn=de?l:this,fr=xe?kn[r]:r;return Ue=He.length,L?He=Jx(He,L):Pe&&Ue>1&&He.reverse(),se&&q<Ue&&(He.length=q),this&&this!==Dt&&this instanceof Ie&&(fr=We||Io(fr)),fr.apply(kn,He)}return Ie}function Op(r,o){return function(l,d){return ox(l,r,o(d),{})}}function aa(r,o){return function(l,d){var T;if(l===n&&d===n)return o;if(l!==n&&(T=l),d!==n){if(T===n)return d;typeof l=="string"||typeof d=="string"?(l=nn(l),d=nn(d)):(l=lp(l),d=lp(d)),T=r(l,d)}return T}}function $l(r){return ar(function(o){return o=lt(o,tn(Me())),Be(function(l){var d=this;return r(o,function(T){return en(T,d,l)})})})}function ua(r,o){o=o===n?" ":nn(o);var l=o.length;if(l<2)return l?Dl(o,r):o;var d=Dl(o,Ys(r/Di(o)));return Ri(o)?Dr(In(d),0,r).join(""):d.slice(0,r)}function Ix(r,o,l,d){var T=o&v,I=Io(r);function k(){for(var L=-1,q=arguments.length,ie=-1,se=d.length,de=Q(se+q),xe=this&&this!==Dt&&this instanceof k?I:r;++ie<se;)de[ie]=d[ie];for(;q--;)de[ie++]=arguments[++L];return en(xe,T?l:this,de)}return k}function Tp(r){return function(o,l,d){return d&&typeof d!="number"&&Wt(o,l,d)&&(l=d=n),o=cr(o),l===n?(l=o,o=0):l=cr(l),d=d===n?o<l?1:-1:cr(d),yx(o,l,d,r)}}function la(r){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=wn(o),l=wn(l)),r(o,l)}}function Cp(r,o,l,d,T,I,k,L,q,ie){var se=o&S,de=se?k:n,xe=se?n:k,De=se?I:n,Pe=se?n:I;o|=se?C:M,o&=~(se?M:C),o&m||(o&=-4);var We=[r,o,T,De,de,Pe,xe,L,q,ie],Ie=l.apply(n,We);return Hl(r)&&zp(Ie,We),Ie.placeholder=d,Fp(Ie,r,o)}function Ll(r){var o=Ot[r];return function(l,d){if(l=wn(l),d=d==null?0:Nt(Fe(d),292),d&&Fd(l)){var T=(Xe(l)+"e").split("e"),I=o(T[0]+"e"+(+T[1]+d));return T=(Xe(I)+"e").split("e"),+(T[0]+"e"+(+T[1]-d))}return o(l)}}var Nx=Ii&&1/zs(new Ii([,-0]))[1]==X?function(r){return new Ii(r)}:oc;function _p(r){return function(o){var l=At(o);return l==G?pl(o):l==Ne?Xb(o):Ub(o,r(o))}}function sr(r,o,l,d,T,I,k,L){var q=o&g;if(!q&&typeof r!="function")throw new mn(u);var ie=d?d.length:0;if(ie||(o&=-97,d=T=n),k=k===n?k:Tt(Fe(k),0),L=L===n?L:Fe(L),ie-=T?T.length:0,o&M){var se=d,de=T;d=T=n}var xe=q?n:Wl(r),De=[r,o,l,d,T,se,de,I,k,L];if(xe&&Yx(De,xe),r=De[0],o=De[1],l=De[2],d=De[3],T=De[4],L=De[9]=De[9]===n?q?0:r.length:Tt(De[9]-ie,0),!L&&o&(S|E)&&(o&=-25),!o||o==v)var Pe=Mx(r,o,l);else o==S||o==E?Pe=Px(r,o,L):(o==C||o==(v|C))&&!T.length?Pe=Ix(r,o,l,d):Pe=sa.apply(n,De);var We=xe?ap:zp;return Fp(We(Pe,De),r,o)}function Rp(r,o,l,d){return r===n||An(r,Pi[l])&&!et.call(d,l)?o:r}function Dp(r,o,l,d,T,I){return ft(r)&&ft(o)&&(I.set(o,r),na(r,o,n,Dp,I),I.delete(o)),r}function Ax(r){return ko(r)?n:r}function Mp(r,o,l,d,T,I){var k=l&O,L=r.length,q=o.length;if(L!=q&&!(k&&q>L))return!1;var ie=I.get(r),se=I.get(o);if(ie&&se)return ie==o&&se==r;var de=-1,xe=!0,De=l&y?new Jr:n;for(I.set(r,o),I.set(o,r);++de<L;){var Pe=r[de],We=o[de];if(d)var Ie=k?d(We,Pe,de,o,r,I):d(Pe,We,de,r,o,I);if(Ie!==n){if(Ie)continue;xe=!1;break}if(De){if(!al(o,function(Ue,He){if(!xo(De,He)&&(Pe===Ue||T(Pe,Ue,l,d,I)))return De.push(He)})){xe=!1;break}}else if(!(Pe===We||T(Pe,We,l,d,I))){xe=!1;break}}return I.delete(r),I.delete(o),xe}function kx(r,o,l,d,T,I,k){switch(l){case Kt:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Pt:return!(r.byteLength!=o.byteLength||!I(new Hs(r),new Hs(o)));case ee:case ce:case le:return An(+r,+o);case Re:return r.name==o.name&&r.message==o.message;case we:case _e:return r==o+"";case G:var L=pl;case Ne:var q=d&O;if(L||(L=zs),r.size!=o.size&&!q)return!1;var ie=k.get(r);if(ie)return ie==o;d|=y,k.set(r,o);var se=Mp(L(r),L(o),d,T,I,k);return k.delete(r),se;case qe:if(Co)return Co.call(r)==Co.call(o)}return!1}function $x(r,o,l,d,T,I){var k=l&O,L=zl(r),q=L.length,ie=zl(o),se=ie.length;if(q!=se&&!k)return!1;for(var de=q;de--;){var xe=L[de];if(!(k?xe in o:et.call(o,xe)))return!1}var De=I.get(r),Pe=I.get(o);if(De&&Pe)return De==o&&Pe==r;var We=!0;I.set(r,o),I.set(o,r);for(var Ie=k;++de<q;){xe=L[de];var Ue=r[xe],He=o[xe];if(d)var on=k?d(He,Ue,xe,o,r,I):d(Ue,He,xe,r,o,I);if(!(on===n?Ue===He||T(Ue,He,l,d,I):on)){We=!1;break}Ie||(Ie=xe=="constructor")}if(We&&!Ie){var Bt=r.constructor,sn=o.constructor;Bt!=sn&&"constructor"in r&&"constructor"in o&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof sn=="function"&&sn instanceof sn)&&(We=!1)}return I.delete(r),I.delete(o),We}function ar(r){return ql($p(r,n,Vp),r+"")}function zl(r){return Xd(r,Ct,Ul)}function Fl(r){return Xd(r,qt,Pp)}var Wl=Xs?function(r){return Xs.get(r)}:oc;function ca(r){for(var o=r.name+"",l=Ni[o],d=et.call(Ni,o)?l.length:0;d--;){var T=l[d],I=T.func;if(I==null||I==r)return T.name}return o}function Li(r){var o=et.call(P,"placeholder")?P:r;return o.placeholder}function Me(){var r=P.iteratee||rc;return r=r===rc?Qd:r,arguments.length?r(arguments[0],arguments[1]):r}function fa(r,o){var l=r.__data__;return Hx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function Bl(r){for(var o=Ct(r),l=o.length;l--;){var d=o[l],T=r[d];o[l]=[d,T,Ap(T)]}return o}function ei(r,o){var l=Gb(r,o);return Kd(l)?l:n}function Lx(r){var o=et.call(r,Zr),l=r[Zr];try{r[Zr]=n;var d=!0}catch{}var T=Us.call(r);return d&&(o?r[Zr]=l:delete r[Zr]),T}var Ul=ml?function(r){return r==null?[]:(r=ot(r),Sr(ml(r),function(o){return Ld.call(r,o)}))}:sc,Pp=ml?function(r){for(var o=[];r;)Er(o,Ul(r)),r=Vs(r);return o}:sc,At=Ft;(gl&&At(new gl(new ArrayBuffer(1)))!=Kt||Eo&&At(new Eo)!=G||yl&&At(yl.resolve())!=te||Ii&&At(new Ii)!=Ne||Oo&&At(new Oo)!=Et)&&(At=function(r){var o=Ft(r),l=o==ge?r.constructor:n,d=l?ti(l):"";if(d)switch(d){case bw:return Kt;case ww:return G;case xw:return te;case Sw:return Ne;case Ew:return Et}return o});function zx(r,o,l){for(var d=-1,T=l.length;++d<T;){var I=l[d],k=I.size;switch(I.type){case"drop":r+=k;break;case"dropRight":o-=k;break;case"take":o=Nt(o,r+k);break;case"takeRight":r=Tt(r,o-k);break}}return{start:r,end:o}}function Fx(r){var o=r.match(V0);return o?o[1].split(q0):[]}function Ip(r,o,l){o=Rr(o,r);for(var d=-1,T=o.length,I=!1;++d<T;){var k=Hn(o[d]);if(!(I=r!=null&&l(r,k)))break;r=r[k]}return I||++d!=T?I:(T=r==null?0:r.length,!!T&&va(T)&&ur(k,T)&&(ze(r)||ni(r)))}function Wx(r){var o=r.length,l=new r.constructor(o);return o&&typeof r[0]=="string"&&et.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function Np(r){return typeof r.constructor=="function"&&!No(r)?Ai(Vs(r)):{}}function Bx(r,o,l){var d=r.constructor;switch(o){case Pt:return kl(r);case ee:case ce:return new d(+r);case Kt:return Ox(r,l);case Rt:case qr:case It:case nr:case Pn:case zt:case bo:case Gr:case wo:return mp(r,l);case G:return new d;case le:case _e:return new d(r);case we:return Tx(r);case Ne:return new d;case qe:return Cx(r)}}function Ux(r,o){var l=o.length;if(!l)return r;var d=l-1;return o[d]=(l>1?"& ":"")+o[d],o=o.join(l>2?", ":" "),r.replace(H0,`{
30
30
  /* [wrapped with `+o+`] */
31
- `)}function Ux(r){return ze(r)||ni(r)||!!(Ld&&r&&r[Ld])}function ar(r,o){var l=typeof r;return o=o??fe,!!o&&(l=="number"||l!="symbol"&&eb.test(r))&&r>-1&&r%1==0&&r<o}function Wt(r,o,l){if(!ft(l))return!1;var d=typeof o;return(d=="number"?qt(l)&&ar(o,l.length):d=="string"&&o in l)?An(l[o],r):!1}function Ul(r,o){if(ze(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||rn(r)?!0:Ps.test(r)||!Qt.test(r)||o!=null&&r in ot(o)}function jx(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function jl(r){var o=la(r),l=P[o];if(typeof l!="function"||!(o in je.prototype))return!1;if(r===l)return!0;var d=Fl(l);return!!d&&r===d[0]}function Hx(r){return!!Nd&&Nd in r}var qx=Fs?ur:sc;function Io(r){var o=r&&r.constructor,l=typeof o=="function"&&o.prototype||Pi;return r===l}function Np(r){return r===r&&!ft(r)}function Ap(r,o){return function(l){return l==null?!1:l[r]===o&&(o!==n||r in ot(l))}}function Vx(r){var o=ma(r,function(d){return l.size===p&&l.clear(),d}),l=o.cache;return o}function Gx(r,o){var l=r[1],d=o[1],O=l|d,I=O<(v|g|D),k=d==D&&l==S||d==D&&l==A&&r[7].length<=o[8]||d==(D|A)&&o[7].length<=o[8]&&l==S;if(!(I||k))return r;d&v&&(r[2]=o[2],O|=l&v?0:m);var L=o[3];if(L){var V=r[3];r[3]=V?gp(V,L,o[4]):L,r[4]=V?Or(r[3],h):o[4]}return L=o[5],L&&(V=r[5],r[5]=V?yp(V,L,o[6]):L,r[6]=V?Or(r[5],h):o[6]),L=o[7],L&&(r[7]=L),d&D&&(r[8]=r[8]==null?o[8]:Nt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=O,r}function Yx(r){var o=[];if(r!=null)for(var l in ot(r))o.push(l);return o}function Zx(r){return Bs.call(r)}function kp(r,o,l){return o=Tt(o===n?r.length-1:o,0),function(){for(var d=arguments,O=-1,I=Tt(d.length-o,0),k=Q(I);++O<I;)k[O]=d[o+O];O=-1;for(var L=Q(o+1);++O<o;)L[O]=d[O];return L[o]=l(k),en(r,this,L)}}function $p(r,o){return o.length<2?r:Qr(r,vn(o,0,-1))}function Xx(r,o){for(var l=r.length,d=Nt(o.length,l),O=Ht(r);d--;){var I=o[d];r[d]=ar(I,l)?O[I]:n}return r}function Hl(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var Lp=Fp(sp),No=fw||function(r,o){return Dt.setTimeout(r,o)},ql=Fp(bx);function zp(r,o,l){var d=o+"";return ql(r,Bx(d,Jx(zx(d),l)))}function Fp(r){var o=0,l=0;return function(){var d=mw(),O=H-(d-l);if(l=d,O>0){if(++o>=_)return arguments[0]}else o=0;return r.apply(n,arguments)}}function fa(r,o){var l=-1,d=r.length,O=d-1;for(o=o===n?d:o;++l<o;){var I=_l(l,O),k=r[I];r[I]=r[l],r[l]=k}return r.length=o,r}var Wp=Vx(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(W0,function(l,d,O,I){o.push(O?I.replace(Y0,"$1"):d||l)}),o});function Hn(r){if(typeof r=="string"||rn(r))return r;var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function ti(r){if(r!=null){try{return Ws.call(r)}catch{}try{return r+""}catch{}}return""}function Jx(r,o){return hn(pe,function(l){var d="_."+l[0];o&l[1]&&!ks(r,d)&&r.push(d)}),r.sort()}function Bp(r){if(r instanceof je)return r.clone();var o=new gn(r.__wrapped__,r.__chain__);return o.__actions__=Ht(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function Kx(r,o,l){(l?Wt(r,o,l):o===n)?o=1:o=Tt(Fe(o),0);var d=r==null?0:r.length;if(!d||o<1)return[];for(var O=0,I=0,k=Q(Gs(d/o));O<d;)k[I++]=vn(r,O,O+=o);return k}function Qx(r){for(var o=-1,l=r==null?0:r.length,d=0,O=[];++o<l;){var I=r[o];I&&(O[d++]=I)}return O}function eS(){var r=arguments.length;if(!r)return[];for(var o=Q(r-1),l=arguments[0],d=r;d--;)o[d-1]=arguments[d];return Er(ze(l)?Ht(l):[l],Mt(o,1))}var tS=Be(function(r,o){return vt(r)?_o(r,Mt(o,1,vt,!0)):[]}),nS=Be(function(r,o){var l=bn(o);return vt(l)&&(l=n),vt(r)?_o(r,Mt(o,1,vt,!0),Me(l,2)):[]}),rS=Be(function(r,o){var l=bn(o);return vt(l)&&(l=n),vt(r)?_o(r,Mt(o,1,vt,!0),n,l):[]});function iS(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),vn(r,o<0?0:o,d)):[]}function oS(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),o=d-o,vn(r,0,o<0?0:o)):[]}function sS(r,o){return r&&r.length?ra(r,Me(o,3),!0,!0):[]}function aS(r,o){return r&&r.length?ra(r,Me(o,3),!0):[]}function uS(r,o,l,d){var O=r==null?0:r.length;return O?(l&&typeof l!="number"&&Wt(r,o,l)&&(l=0,d=O),ex(r,o,l,d)):[]}function Up(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=l==null?0:Fe(l);return O<0&&(O=Tt(d+O,0)),$s(r,Me(o,3),O)}function jp(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=d-1;return l!==n&&(O=Fe(l),O=l<0?Tt(d+O,0):Nt(O,d-1)),$s(r,Me(o,3),O,!0)}function Hp(r){var o=r==null?0:r.length;return o?Mt(r,1):[]}function lS(r){var o=r==null?0:r.length;return o?Mt(r,X):[]}function cS(r,o){var l=r==null?0:r.length;return l?(o=o===n?1:Fe(o),Mt(r,o)):[]}function fS(r){for(var o=-1,l=r==null?0:r.length,d={};++o<l;){var O=r[o];d[O[0]]=O[1]}return d}function qp(r){return r&&r.length?r[0]:n}function dS(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=l==null?0:Fe(l);return O<0&&(O=Tt(d+O,0)),_i(r,o,O)}function pS(r){var o=r==null?0:r.length;return o?vn(r,0,-1):[]}var hS=Be(function(r){var o=lt(r,Il);return o.length&&o[0]===r[0]?Sl(o):[]}),mS=Be(function(r){var o=bn(r),l=lt(r,Il);return o===bn(l)?o=n:l.pop(),l.length&&l[0]===r[0]?Sl(l,Me(o,2)):[]}),gS=Be(function(r){var o=bn(r),l=lt(r,Il);return o=typeof o=="function"?o:n,o&&l.pop(),l.length&&l[0]===r[0]?Sl(l,n,o):[]});function yS(r,o){return r==null?"":pw.call(r,o)}function bn(r){var o=r==null?0:r.length;return o?r[o-1]:n}function vS(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var O=d;return l!==n&&(O=Fe(l),O=O<0?Tt(d+O,0):Nt(O,d-1)),o===o?Jb(r,o,O):$s(r,Td,O,!0)}function bS(r,o){return r&&r.length?np(r,Fe(o)):n}var wS=Be(Vp);function Vp(r,o){return r&&r.length&&o&&o.length?Cl(r,o):r}function xS(r,o,l){return r&&r.length&&o&&o.length?Cl(r,o,Me(l,2)):r}function SS(r,o,l){return r&&r.length&&o&&o.length?Cl(r,o,n,l):r}var ES=sr(function(r,o){var l=r==null?0:r.length,d=vl(r,o);return op(r,lt(o,function(O){return ar(O,l)?+O:O}).sort(mp)),d});function OS(r,o){var l=[];if(!(r&&r.length))return l;var d=-1,O=[],I=r.length;for(o=Me(o,3);++d<I;){var k=r[d];o(k,d,r)&&(l.push(k),O.push(d))}return op(r,O),l}function Vl(r){return r==null?r:yw.call(r)}function TS(r,o,l){var d=r==null?0:r.length;return d?(l&&typeof l!="number"&&Wt(r,o,l)?(o=0,l=d):(o=o==null?0:Fe(o),l=l===n?d:Fe(l)),vn(r,o,l)):[]}function CS(r,o){return na(r,o)}function _S(r,o,l){return Dl(r,o,Me(l,2))}function RS(r,o){var l=r==null?0:r.length;if(l){var d=na(r,o);if(d<l&&An(r[d],o))return d}return-1}function DS(r,o){return na(r,o,!0)}function MS(r,o,l){return Dl(r,o,Me(l,2),!0)}function PS(r,o){var l=r==null?0:r.length;if(l){var d=na(r,o,!0)-1;if(An(r[d],o))return d}return-1}function IS(r){return r&&r.length?ap(r):[]}function NS(r,o){return r&&r.length?ap(r,Me(o,2)):[]}function AS(r){var o=r==null?0:r.length;return o?vn(r,1,o):[]}function kS(r,o,l){return r&&r.length?(o=l||o===n?1:Fe(o),vn(r,0,o<0?0:o)):[]}function $S(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),o=d-o,vn(r,o<0?0:o,d)):[]}function LS(r,o){return r&&r.length?ra(r,Me(o,3),!1,!0):[]}function zS(r,o){return r&&r.length?ra(r,Me(o,3)):[]}var FS=Be(function(r){return _r(Mt(r,1,vt,!0))}),WS=Be(function(r){var o=bn(r);return vt(o)&&(o=n),_r(Mt(r,1,vt,!0),Me(o,2))}),BS=Be(function(r){var o=bn(r);return o=typeof o=="function"?o:n,_r(Mt(r,1,vt,!0),n,o)});function US(r){return r&&r.length?_r(r):[]}function jS(r,o){return r&&r.length?_r(r,Me(o,2)):[]}function HS(r,o){return o=typeof o=="function"?o:n,r&&r.length?_r(r,n,o):[]}function Gl(r){if(!(r&&r.length))return[];var o=0;return r=Sr(r,function(l){if(vt(l))return o=Tt(l.length,o),!0}),cl(o,function(l){return lt(r,al(l))})}function Gp(r,o){if(!(r&&r.length))return[];var l=Gl(r);return o==null?l:lt(l,function(d){return en(o,n,d)})}var qS=Be(function(r,o){return vt(r)?_o(r,o):[]}),VS=Be(function(r){return Pl(Sr(r,vt))}),GS=Be(function(r){var o=bn(r);return vt(o)&&(o=n),Pl(Sr(r,vt),Me(o,2))}),YS=Be(function(r){var o=bn(r);return o=typeof o=="function"?o:n,Pl(Sr(r,vt),n,o)}),ZS=Be(Gl);function XS(r,o){return fp(r||[],o||[],Co)}function JS(r,o){return fp(r||[],o||[],Mo)}var KS=Be(function(r){var o=r.length,l=o>1?r[o-1]:n;return l=typeof l=="function"?(r.pop(),l):n,Gp(r,l)});function Yp(r){var o=P(r);return o.__chain__=!0,o}function QS(r,o){return o(r),r}function da(r,o){return o(r)}var e1=sr(function(r){var o=r.length,l=o?r[0]:0,d=this.__wrapped__,O=function(I){return vl(I,r)};return o>1||this.__actions__.length||!(d instanceof je)||!ar(l)?this.thru(O):(d=d.slice(l,+l+(o?1:0)),d.__actions__.push({func:da,args:[O],thisArg:n}),new gn(d,this.__chain__).thru(function(I){return o&&!I.length&&I.push(n),I}))});function t1(){return Yp(this)}function n1(){return new gn(this.value(),this.__chain__)}function r1(){this.__values__===n&&(this.__values__=uh(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function i1(){return this}function o1(r){for(var o,l=this;l instanceof Js;){var d=Bp(l);d.__index__=0,d.__values__=n,o?O.__wrapped__=d:o=d;var O=d;l=l.__wrapped__}return O.__wrapped__=r,o}function s1(){var r=this.__wrapped__;if(r instanceof je){var o=r;return this.__actions__.length&&(o=new je(this)),o=o.reverse(),o.__actions__.push({func:da,args:[Vl],thisArg:n}),new gn(o,this.__chain__)}return this.thru(Vl)}function a1(){return cp(this.__wrapped__,this.__actions__)}var u1=ia(function(r,o,l){et.call(r,l)?++r[l]:ir(r,l,1)});function l1(r,o,l){var d=ze(r)?Ed:Qw;return l&&Wt(r,o,l)&&(o=n),d(r,Me(o,3))}function c1(r,o){var l=ze(r)?Sr:Gd;return l(r,Me(o,3))}var f1=xp(Up),d1=xp(jp);function p1(r,o){return Mt(pa(r,o),1)}function h1(r,o){return Mt(pa(r,o),X)}function m1(r,o,l){return l=l===n?1:Fe(l),Mt(pa(r,o),l)}function Zp(r,o){var l=ze(r)?hn:Cr;return l(r,Me(o,3))}function Xp(r,o){var l=ze(r)?Ab:Vd;return l(r,Me(o,3))}var g1=ia(function(r,o,l){et.call(r,l)?r[l].push(o):ir(r,l,[o])});function y1(r,o,l,d){r=qt(r)?r:Fi(r),l=l&&!d?Fe(l):0;var O=r.length;return l<0&&(l=Tt(O+l,0)),va(r)?l<=O&&r.indexOf(o,l)>-1:!!O&&_i(r,o,l)>-1}var v1=Be(function(r,o,l){var d=-1,O=typeof o=="function",I=qt(r)?Q(r.length):[];return Cr(r,function(k){I[++d]=O?en(o,k,l):Ro(k,o,l)}),I}),b1=ia(function(r,o,l){ir(r,l,o)});function pa(r,o){var l=ze(r)?lt:Qd;return l(r,Me(o,3))}function w1(r,o,l,d){return r==null?[]:(ze(o)||(o=o==null?[]:[o]),l=d?n:l,ze(l)||(l=l==null?[]:[l]),rp(r,o,l))}var x1=ia(function(r,o,l){r[l?0:1].push(o)},function(){return[[],[]]});function S1(r,o,l){var d=ze(r)?ol:_d,O=arguments.length<3;return d(r,Me(o,4),l,O,Cr)}function E1(r,o,l){var d=ze(r)?kb:_d,O=arguments.length<3;return d(r,Me(o,4),l,O,Vd)}function O1(r,o){var l=ze(r)?Sr:Gd;return l(r,ga(Me(o,3)))}function T1(r){var o=ze(r)?Ud:yx;return o(r)}function C1(r,o,l){(l?Wt(r,o,l):o===n)?o=1:o=Fe(o);var d=ze(r)?Yw:vx;return d(r,o)}function _1(r){var o=ze(r)?Zw:wx;return o(r)}function R1(r){if(r==null)return 0;if(qt(r))return va(r)?Di(r):r.length;var o=At(r);return o==G||o==Ne?r.size:Ol(r).length}function D1(r,o,l){var d=ze(r)?sl:xx;return l&&Wt(r,o,l)&&(o=n),d(r,Me(o,3))}var M1=Be(function(r,o){if(r==null)return[];var l=o.length;return l>1&&Wt(r,o[0],o[1])?o=[]:l>2&&Wt(o[0],o[1],o[2])&&(o=[o[0]]),rp(r,Mt(o,1),[])}),ha=cw||function(){return Dt.Date.now()};function P1(r,o){if(typeof o!="function")throw new mn(u);return r=Fe(r),function(){if(--r<1)return o.apply(this,arguments)}}function Jp(r,o,l){return o=l?n:o,o=r&&o==null?r.length:o,or(r,D,n,n,n,n,o)}function Kp(r,o){var l;if(typeof o!="function")throw new mn(u);return r=Fe(r),function(){return--r>0&&(l=o.apply(this,arguments)),r<=1&&(o=n),l}}var Yl=Be(function(r,o,l){var d=v;if(l.length){var O=Or(l,Li(Yl));d|=T}return or(r,d,o,l,O)}),Qp=Be(function(r,o,l){var d=v|g;if(l.length){var O=Or(l,Li(Qp));d|=T}return or(o,d,r,l,O)});function eh(r,o,l){o=l?n:o;var d=or(r,S,n,n,n,n,n,o);return d.placeholder=eh.placeholder,d}function th(r,o,l){o=l?n:o;var d=or(r,E,n,n,n,n,n,o);return d.placeholder=th.placeholder,d}function nh(r,o,l){var d,O,I,k,L,V,ie=0,se=!1,de=!1,xe=!0;if(typeof r!="function")throw new mn(u);o=wn(o)||0,ft(l)&&(se=!!l.leading,de="maxWait"in l,I=de?Tt(wn(l.maxWait)||0,o):I,xe="trailing"in l?!!l.trailing:xe);function De(bt){var kn=d,cr=O;return d=O=n,ie=bt,k=r.apply(cr,kn),k}function Pe(bt){return ie=bt,L=No(Ue,o),se?De(bt):k}function We(bt){var kn=bt-V,cr=bt-ie,xh=o-kn;return de?Nt(xh,I-cr):xh}function Ie(bt){var kn=bt-V,cr=bt-ie;return V===n||kn>=o||kn<0||de&&cr>=I}function Ue(){var bt=ha();if(Ie(bt))return He(bt);L=No(Ue,We(bt))}function He(bt){return L=n,xe&&d?De(bt):(d=O=n,k)}function on(){L!==n&&dp(L),ie=0,d=V=O=L=n}function Bt(){return L===n?k:He(ha())}function sn(){var bt=ha(),kn=Ie(bt);if(d=arguments,O=this,V=bt,kn){if(L===n)return Pe(V);if(de)return dp(L),L=No(Ue,o),De(V)}return L===n&&(L=No(Ue,o)),k}return sn.cancel=on,sn.flush=Bt,sn}var I1=Be(function(r,o){return qd(r,1,o)}),N1=Be(function(r,o,l){return qd(r,wn(o)||0,l)});function A1(r){return or(r,z)}function ma(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new mn(u);var l=function(){var d=arguments,O=o?o.apply(this,d):d[0],I=l.cache;if(I.has(O))return I.get(O);var k=r.apply(this,d);return l.cache=I.set(O,k)||I,k};return l.cache=new(ma.Cache||rr),l}ma.Cache=rr;function ga(r){if(typeof r!="function")throw new mn(u);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function k1(r){return Kp(2,r)}var $1=Sx(function(r,o){o=o.length==1&&ze(o[0])?lt(o[0],tn(Me())):lt(Mt(o,1),tn(Me()));var l=o.length;return Be(function(d){for(var O=-1,I=Nt(d.length,l);++O<I;)d[O]=o[O].call(this,d[O]);return en(r,this,d)})}),Zl=Be(function(r,o){var l=Or(o,Li(Zl));return or(r,T,n,o,l)}),rh=Be(function(r,o){var l=Or(o,Li(rh));return or(r,M,n,o,l)}),L1=sr(function(r,o){return or(r,A,n,n,n,o)});function z1(r,o){if(typeof r!="function")throw new mn(u);return o=o===n?o:Fe(o),Be(r,o)}function F1(r,o){if(typeof r!="function")throw new mn(u);return o=o==null?0:Tt(Fe(o),0),Be(function(l){var d=l[o],O=Dr(l,0,o);return d&&Er(O,d),en(r,this,O)})}function W1(r,o,l){var d=!0,O=!0;if(typeof r!="function")throw new mn(u);return ft(l)&&(d="leading"in l?!!l.leading:d,O="trailing"in l?!!l.trailing:O),nh(r,o,{leading:d,maxWait:o,trailing:O})}function B1(r){return Jp(r,1)}function U1(r,o){return Zl(Nl(o),r)}function j1(){if(!arguments.length)return[];var r=arguments[0];return ze(r)?r:[r]}function H1(r){return yn(r,w)}function q1(r,o){return o=typeof o=="function"?o:n,yn(r,w,o)}function V1(r){return yn(r,x|w)}function G1(r,o){return o=typeof o=="function"?o:n,yn(r,x|w,o)}function Y1(r,o){return o==null||Hd(r,o,Ct(o))}function An(r,o){return r===o||r!==r&&o!==o}var Z1=ua(xl),X1=ua(function(r,o){return r>=o}),ni=Xd(function(){return arguments}())?Xd:function(r){return dt(r)&&et.call(r,"callee")&&!$d.call(r,"callee")},ze=Q.isArray,J1=yd?tn(yd):ox;function qt(r){return r!=null&&ya(r.length)&&!ur(r)}function vt(r){return dt(r)&&qt(r)}function K1(r){return r===!0||r===!1||dt(r)&&Ft(r)==ee}var Mr=dw||sc,Q1=vd?tn(vd):sx;function eE(r){return dt(r)&&r.nodeType===1&&!Ao(r)}function tE(r){if(r==null)return!0;if(qt(r)&&(ze(r)||typeof r=="string"||typeof r.splice=="function"||Mr(r)||zi(r)||ni(r)))return!r.length;var o=At(r);if(o==G||o==Ne)return!r.size;if(Io(r))return!Ol(r).length;for(var l in r)if(et.call(r,l))return!1;return!0}function nE(r,o){return Do(r,o)}function rE(r,o,l){l=typeof l=="function"?l:n;var d=l?l(r,o):n;return d===n?Do(r,o,n,l):!!d}function Xl(r){if(!dt(r))return!1;var o=Ft(r);return o==Re||o==Ee||typeof r.message=="string"&&typeof r.name=="string"&&!Ao(r)}function iE(r){return typeof r=="number"&&zd(r)}function ur(r){if(!ft(r))return!1;var o=Ft(r);return o==N||o==W||o==ve||o==he}function ih(r){return typeof r=="number"&&r==Fe(r)}function ya(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=fe}function ft(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function dt(r){return r!=null&&typeof r=="object"}var oh=bd?tn(bd):ux;function oE(r,o){return r===o||El(r,o,Wl(o))}function sE(r,o,l){return l=typeof l=="function"?l:n,El(r,o,Wl(o),l)}function aE(r){return sh(r)&&r!=+r}function uE(r){if(qx(r))throw new Le(a);return Jd(r)}function lE(r){return r===null}function cE(r){return r==null}function sh(r){return typeof r=="number"||dt(r)&&Ft(r)==le}function Ao(r){if(!dt(r)||Ft(r)!=ge)return!1;var o=Hs(r);if(o===null)return!0;var l=et.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&Ws.call(l)==sw}var Jl=wd?tn(wd):lx;function fE(r){return ih(r)&&r>=-9007199254740991&&r<=fe}var ah=xd?tn(xd):cx;function va(r){return typeof r=="string"||!ze(r)&&dt(r)&&Ft(r)==_e}function rn(r){return typeof r=="symbol"||dt(r)&&Ft(r)==Ve}var zi=Sd?tn(Sd):fx;function dE(r){return r===n}function pE(r){return dt(r)&&At(r)==Et}function hE(r){return dt(r)&&Ft(r)==Jt}var mE=ua(Tl),gE=ua(function(r,o){return r<=o});function uh(r){if(!r)return[];if(qt(r))return va(r)?In(r):Ht(r);if(xo&&r[xo])return Yb(r[xo]());var o=At(r),l=o==G?dl:o==Ne?Ls:Fi;return l(r)}function lr(r){if(!r)return r===0?r:0;if(r=wn(r),r===X||r===-1/0){var o=r<0?-1:1;return o*ae}return r===r?r:0}function Fe(r){var o=lr(r),l=o%1;return o===o?l?o-l:o:0}function lh(r){return r?Kr(Fe(r),0,$):0}function wn(r){if(typeof r=="number")return r;if(rn(r))return Y;if(ft(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=ft(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Rd(r);var l=J0.test(r);return l||Q0.test(r)?Pb(r.slice(2),l?2:8):X0.test(r)?Y:+r}function ch(r){return jn(r,Vt(r))}function yE(r){return r?Kr(Fe(r),-9007199254740991,fe):r===0?r:0}function Xe(r){return r==null?"":nn(r)}var vE=ki(function(r,o){if(Io(o)||qt(o)){jn(o,Ct(o),r);return}for(var l in o)et.call(o,l)&&Co(r,l,o[l])}),fh=ki(function(r,o){jn(o,Vt(o),r)}),ba=ki(function(r,o,l,d){jn(o,Vt(o),r,d)}),bE=ki(function(r,o,l,d){jn(o,Ct(o),r,d)}),wE=sr(vl);function xE(r,o){var l=Ai(r);return o==null?l:jd(l,o)}var SE=Be(function(r,o){r=ot(r);var l=-1,d=o.length,O=d>2?o[2]:n;for(O&&Wt(o[0],o[1],O)&&(d=1);++l<d;)for(var I=o[l],k=Vt(I),L=-1,V=k.length;++L<V;){var ie=k[L],se=r[ie];(se===n||An(se,Pi[ie])&&!et.call(r,ie))&&(r[ie]=I[ie])}return r}),EE=Be(function(r){return r.push(n,Rp),en(dh,n,r)});function OE(r,o){return Od(r,Me(o,3),Un)}function TE(r,o){return Od(r,Me(o,3),wl)}function CE(r,o){return r==null?r:bl(r,Me(o,3),Vt)}function _E(r,o){return r==null?r:Yd(r,Me(o,3),Vt)}function RE(r,o){return r&&Un(r,Me(o,3))}function DE(r,o){return r&&wl(r,Me(o,3))}function ME(r){return r==null?[]:ea(r,Ct(r))}function PE(r){return r==null?[]:ea(r,Vt(r))}function Kl(r,o,l){var d=r==null?n:Qr(r,o);return d===n?l:d}function IE(r,o){return r!=null&&Pp(r,o,tx)}function Ql(r,o){return r!=null&&Pp(r,o,nx)}var NE=Ep(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Bs.call(o)),r[o]=l},tc(Gt)),AE=Ep(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Bs.call(o)),et.call(r,o)?r[o].push(l):r[o]=[l]},Me),kE=Be(Ro);function Ct(r){return qt(r)?Bd(r):Ol(r)}function Vt(r){return qt(r)?Bd(r,!0):dx(r)}function $E(r,o){var l={};return o=Me(o,3),Un(r,function(d,O,I){ir(l,o(d,O,I),d)}),l}function LE(r,o){var l={};return o=Me(o,3),Un(r,function(d,O,I){ir(l,O,o(d,O,I))}),l}var zE=ki(function(r,o,l){ta(r,o,l)}),dh=ki(function(r,o,l,d){ta(r,o,l,d)}),FE=sr(function(r,o){var l={};if(r==null)return l;var d=!1;o=lt(o,function(I){return I=Rr(I,r),d||(d=I.length>1),I}),jn(r,zl(r),l),d&&(l=yn(l,x|R|w,Nx));for(var O=o.length;O--;)Ml(l,o[O]);return l});function WE(r,o){return ph(r,ga(Me(o)))}var BE=sr(function(r,o){return r==null?{}:hx(r,o)});function ph(r,o){if(r==null)return{};var l=lt(zl(r),function(d){return[d]});return o=Me(o),ip(r,l,function(d,O){return o(d,O[0])})}function UE(r,o,l){o=Rr(o,r);var d=-1,O=o.length;for(O||(O=1,r=n);++d<O;){var I=r==null?n:r[Hn(o[d])];I===n&&(d=O,I=l),r=ur(I)?I.call(r):I}return r}function jE(r,o,l){return r==null?r:Mo(r,o,l)}function HE(r,o,l,d){return d=typeof d=="function"?d:n,r==null?r:Mo(r,o,l,d)}var hh=Cp(Ct),mh=Cp(Vt);function qE(r,o,l){var d=ze(r),O=d||Mr(r)||zi(r);if(o=Me(o,4),l==null){var I=r&&r.constructor;O?l=d?new I:[]:ft(r)?l=ur(I)?Ai(Hs(r)):{}:l={}}return(O?hn:Un)(r,function(k,L,V){return o(l,k,L,V)}),l}function VE(r,o){return r==null?!0:Ml(r,o)}function GE(r,o,l){return r==null?r:lp(r,o,Nl(l))}function YE(r,o,l,d){return d=typeof d=="function"?d:n,r==null?r:lp(r,o,Nl(l),d)}function Fi(r){return r==null?[]:fl(r,Ct(r))}function ZE(r){return r==null?[]:fl(r,Vt(r))}function XE(r,o,l){return l===n&&(l=o,o=n),l!==n&&(l=wn(l),l=l===l?l:0),o!==n&&(o=wn(o),o=o===o?o:0),Kr(wn(r),o,l)}function JE(r,o,l){return o=lr(o),l===n?(l=o,o=0):l=lr(l),r=wn(r),rx(r,o,l)}function KE(r,o,l){if(l&&typeof l!="boolean"&&Wt(r,o,l)&&(o=l=n),l===n&&(typeof o=="boolean"?(l=o,o=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&o===n?(r=0,o=1):(r=lr(r),o===n?(o=r,r=0):o=lr(o)),r>o){var d=r;r=o,o=d}if(l||r%1||o%1){var O=Fd();return Nt(r+O*(o-r+Mb("1e-"+((O+"").length-1))),o)}return _l(r,o)}var QE=$i(function(r,o,l){return o=o.toLowerCase(),r+(l?gh(o):o)});function gh(r){return ec(Xe(r).toLowerCase())}function yh(r){return r=Xe(r),r&&r.replace(tb,jb).replace(wb,"")}function eO(r,o,l){r=Xe(r),o=nn(o);var d=r.length;l=l===n?d:Kr(Fe(l),0,d);var O=l;return l-=o.length,l>=0&&r.slice(l,O)==o}function tO(r){return r=Xe(r),r&&Vu.test(r)?r.replace(Ms,Hb):r}function nO(r){return r=Xe(r),r&&B0.test(r)?r.replace(Zu,"\\$&"):r}var rO=$i(function(r,o,l){return r+(l?"-":"")+o.toLowerCase()}),iO=$i(function(r,o,l){return r+(l?" ":"")+o.toLowerCase()}),oO=wp("toLowerCase");function sO(r,o,l){r=Xe(r),o=Fe(o);var d=o?Di(r):0;if(!o||d>=o)return r;var O=(o-d)/2;return aa(Ys(O),l)+r+aa(Gs(O),l)}function aO(r,o,l){r=Xe(r),o=Fe(o);var d=o?Di(r):0;return o&&d<o?r+aa(o-d,l):r}function uO(r,o,l){r=Xe(r),o=Fe(o);var d=o?Di(r):0;return o&&d<o?aa(o-d,l)+r:r}function lO(r,o,l){return l||o==null?o=0:o&&(o=+o),gw(Xe(r).replace(Xu,""),o||0)}function cO(r,o,l){return(l?Wt(r,o,l):o===n)?o=1:o=Fe(o),Rl(Xe(r),o)}function fO(){var r=arguments,o=Xe(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var dO=$i(function(r,o,l){return r+(l?"_":"")+o.toLowerCase()});function pO(r,o,l){return l&&typeof l!="number"&&Wt(r,o,l)&&(o=l=n),l=l===n?$:l>>>0,l?(r=Xe(r),r&&(typeof o=="string"||o!=null&&!Jl(o))&&(o=nn(o),!o&&Ri(r))?Dr(In(r),0,l):r.split(o,l)):[]}var hO=$i(function(r,o,l){return r+(l?" ":"")+ec(o)});function mO(r,o,l){return r=Xe(r),l=l==null?0:Kr(Fe(l),0,r.length),o=nn(o),r.slice(l,l+o.length)==o}function gO(r,o,l){var d=P.templateSettings;l&&Wt(r,o,l)&&(o=n),r=Xe(r),o=ba({},o,d,_p);var O=ba({},o.imports,d.imports,_p),I=Ct(O),k=fl(O,I),L,V,ie=0,se=o.interpolate||Is,de="__p += '",xe=pl((o.escape||Is).source+"|"+se.source+"|"+(se===$e?Z0:Is).source+"|"+(o.evaluate||Is).source+"|$","g"),De="//# sourceURL="+(et.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tb+"]")+`
32
- `;r.replace(xe,function(Ie,Ue,He,on,Bt,sn){return He||(He=on),de+=r.slice(ie,sn).replace(nb,qb),Ue&&(L=!0,de+=`' +
31
+ `)}function jx(r){return ze(r)||ni(r)||!!(zd&&r&&r[zd])}function ur(r,o){var l=typeof r;return o=o??fe,!!o&&(l=="number"||l!="symbol"&&tb.test(r))&&r>-1&&r%1==0&&r<o}function Wt(r,o,l){if(!ft(l))return!1;var d=typeof o;return(d=="number"?Vt(l)&&ur(o,l.length):d=="string"&&o in l)?An(l[o],r):!1}function jl(r,o){if(ze(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||rn(r)?!0:Is.test(r)||!Qt.test(r)||o!=null&&r in ot(o)}function Hx(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function Hl(r){var o=ca(r),l=P[o];if(typeof l!="function"||!(o in je.prototype))return!1;if(r===l)return!0;var d=Wl(l);return!!d&&r===d[0]}function Vx(r){return!!Ad&&Ad in r}var qx=Ws?lr:ac;function No(r){var o=r&&r.constructor,l=typeof o=="function"&&o.prototype||Pi;return r===l}function Ap(r){return r===r&&!ft(r)}function kp(r,o){return function(l){return l==null?!1:l[r]===o&&(o!==n||r in ot(l))}}function Gx(r){var o=ga(r,function(d){return l.size===p&&l.clear(),d}),l=o.cache;return o}function Yx(r,o){var l=r[1],d=o[1],T=l|d,I=T<(v|g|D),k=d==D&&l==S||d==D&&l==A&&r[7].length<=o[8]||d==(D|A)&&o[7].length<=o[8]&&l==S;if(!(I||k))return r;d&v&&(r[2]=o[2],T|=l&v?0:m);var L=o[3];if(L){var q=r[3];r[3]=q?yp(q,L,o[4]):L,r[4]=q?Or(r[3],h):o[4]}return L=o[5],L&&(q=r[5],r[5]=q?vp(q,L,o[6]):L,r[6]=q?Or(r[5],h):o[6]),L=o[7],L&&(r[7]=L),d&D&&(r[8]=r[8]==null?o[8]:Nt(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=T,r}function Zx(r){var o=[];if(r!=null)for(var l in ot(r))o.push(l);return o}function Xx(r){return Us.call(r)}function $p(r,o,l){return o=Tt(o===n?r.length-1:o,0),function(){for(var d=arguments,T=-1,I=Tt(d.length-o,0),k=Q(I);++T<I;)k[T]=d[o+T];T=-1;for(var L=Q(o+1);++T<o;)L[T]=d[T];return L[o]=l(k),en(r,this,L)}}function Lp(r,o){return o.length<2?r:Qr(r,vn(o,0,-1))}function Jx(r,o){for(var l=r.length,d=Nt(o.length,l),T=Ht(r);d--;){var I=o[d];r[d]=ur(I,l)?T[I]:n}return r}function Vl(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var zp=Wp(ap),Ao=dw||function(r,o){return Dt.setTimeout(r,o)},ql=Wp(wx);function Fp(r,o,l){var d=o+"";return ql(r,Ux(d,Kx(Fx(d),l)))}function Wp(r){var o=0,l=0;return function(){var d=gw(),T=H-(d-l);if(l=d,T>0){if(++o>=_)return arguments[0]}else o=0;return r.apply(n,arguments)}}function da(r,o){var l=-1,d=r.length,T=d-1;for(o=o===n?d:o;++l<o;){var I=Rl(l,T),k=r[I];r[I]=r[l],r[l]=k}return r.length=o,r}var Bp=Gx(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(B0,function(l,d,T,I){o.push(T?I.replace(Z0,"$1"):d||l)}),o});function Hn(r){if(typeof r=="string"||rn(r))return r;var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function ti(r){if(r!=null){try{return Bs.call(r)}catch{}try{return r+""}catch{}}return""}function Kx(r,o){return hn(pe,function(l){var d="_."+l[0];o&l[1]&&!$s(r,d)&&r.push(d)}),r.sort()}function Up(r){if(r instanceof je)return r.clone();var o=new gn(r.__wrapped__,r.__chain__);return o.__actions__=Ht(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function Qx(r,o,l){(l?Wt(r,o,l):o===n)?o=1:o=Tt(Fe(o),0);var d=r==null?0:r.length;if(!d||o<1)return[];for(var T=0,I=0,k=Q(Ys(d/o));T<d;)k[I++]=vn(r,T,T+=o);return k}function eS(r){for(var o=-1,l=r==null?0:r.length,d=0,T=[];++o<l;){var I=r[o];I&&(T[d++]=I)}return T}function tS(){var r=arguments.length;if(!r)return[];for(var o=Q(r-1),l=arguments[0],d=r;d--;)o[d-1]=arguments[d];return Er(ze(l)?Ht(l):[l],Mt(o,1))}var nS=Be(function(r,o){return vt(r)?Ro(r,Mt(o,1,vt,!0)):[]}),rS=Be(function(r,o){var l=bn(o);return vt(l)&&(l=n),vt(r)?Ro(r,Mt(o,1,vt,!0),Me(l,2)):[]}),iS=Be(function(r,o){var l=bn(o);return vt(l)&&(l=n),vt(r)?Ro(r,Mt(o,1,vt,!0),n,l):[]});function oS(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),vn(r,o<0?0:o,d)):[]}function sS(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),o=d-o,vn(r,0,o<0?0:o)):[]}function aS(r,o){return r&&r.length?ia(r,Me(o,3),!0,!0):[]}function uS(r,o){return r&&r.length?ia(r,Me(o,3),!0):[]}function lS(r,o,l,d){var T=r==null?0:r.length;return T?(l&&typeof l!="number"&&Wt(r,o,l)&&(l=0,d=T),tx(r,o,l,d)):[]}function jp(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var T=l==null?0:Fe(l);return T<0&&(T=Tt(d+T,0)),Ls(r,Me(o,3),T)}function Hp(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var T=d-1;return l!==n&&(T=Fe(l),T=l<0?Tt(d+T,0):Nt(T,d-1)),Ls(r,Me(o,3),T,!0)}function Vp(r){var o=r==null?0:r.length;return o?Mt(r,1):[]}function cS(r){var o=r==null?0:r.length;return o?Mt(r,X):[]}function fS(r,o){var l=r==null?0:r.length;return l?(o=o===n?1:Fe(o),Mt(r,o)):[]}function dS(r){for(var o=-1,l=r==null?0:r.length,d={};++o<l;){var T=r[o];d[T[0]]=T[1]}return d}function qp(r){return r&&r.length?r[0]:n}function pS(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var T=l==null?0:Fe(l);return T<0&&(T=Tt(d+T,0)),_i(r,o,T)}function hS(r){var o=r==null?0:r.length;return o?vn(r,0,-1):[]}var mS=Be(function(r){var o=lt(r,Nl);return o.length&&o[0]===r[0]?El(o):[]}),gS=Be(function(r){var o=bn(r),l=lt(r,Nl);return o===bn(l)?o=n:l.pop(),l.length&&l[0]===r[0]?El(l,Me(o,2)):[]}),yS=Be(function(r){var o=bn(r),l=lt(r,Nl);return o=typeof o=="function"?o:n,o&&l.pop(),l.length&&l[0]===r[0]?El(l,n,o):[]});function vS(r,o){return r==null?"":hw.call(r,o)}function bn(r){var o=r==null?0:r.length;return o?r[o-1]:n}function bS(r,o,l){var d=r==null?0:r.length;if(!d)return-1;var T=d;return l!==n&&(T=Fe(l),T=T<0?Tt(d+T,0):Nt(T,d-1)),o===o?Kb(r,o,T):Ls(r,Cd,T,!0)}function wS(r,o){return r&&r.length?rp(r,Fe(o)):n}var xS=Be(Gp);function Gp(r,o){return r&&r.length&&o&&o.length?_l(r,o):r}function SS(r,o,l){return r&&r.length&&o&&o.length?_l(r,o,Me(l,2)):r}function ES(r,o,l){return r&&r.length&&o&&o.length?_l(r,o,n,l):r}var OS=ar(function(r,o){var l=r==null?0:r.length,d=bl(r,o);return sp(r,lt(o,function(T){return ur(T,l)?+T:T}).sort(gp)),d});function TS(r,o){var l=[];if(!(r&&r.length))return l;var d=-1,T=[],I=r.length;for(o=Me(o,3);++d<I;){var k=r[d];o(k,d,r)&&(l.push(k),T.push(d))}return sp(r,T),l}function Gl(r){return r==null?r:vw.call(r)}function CS(r,o,l){var d=r==null?0:r.length;return d?(l&&typeof l!="number"&&Wt(r,o,l)?(o=0,l=d):(o=o==null?0:Fe(o),l=l===n?d:Fe(l)),vn(r,o,l)):[]}function _S(r,o){return ra(r,o)}function RS(r,o,l){return Ml(r,o,Me(l,2))}function DS(r,o){var l=r==null?0:r.length;if(l){var d=ra(r,o);if(d<l&&An(r[d],o))return d}return-1}function MS(r,o){return ra(r,o,!0)}function PS(r,o,l){return Ml(r,o,Me(l,2),!0)}function IS(r,o){var l=r==null?0:r.length;if(l){var d=ra(r,o,!0)-1;if(An(r[d],o))return d}return-1}function NS(r){return r&&r.length?up(r):[]}function AS(r,o){return r&&r.length?up(r,Me(o,2)):[]}function kS(r){var o=r==null?0:r.length;return o?vn(r,1,o):[]}function $S(r,o,l){return r&&r.length?(o=l||o===n?1:Fe(o),vn(r,0,o<0?0:o)):[]}function LS(r,o,l){var d=r==null?0:r.length;return d?(o=l||o===n?1:Fe(o),o=d-o,vn(r,o<0?0:o,d)):[]}function zS(r,o){return r&&r.length?ia(r,Me(o,3),!1,!0):[]}function FS(r,o){return r&&r.length?ia(r,Me(o,3)):[]}var WS=Be(function(r){return _r(Mt(r,1,vt,!0))}),BS=Be(function(r){var o=bn(r);return vt(o)&&(o=n),_r(Mt(r,1,vt,!0),Me(o,2))}),US=Be(function(r){var o=bn(r);return o=typeof o=="function"?o:n,_r(Mt(r,1,vt,!0),n,o)});function jS(r){return r&&r.length?_r(r):[]}function HS(r,o){return r&&r.length?_r(r,Me(o,2)):[]}function VS(r,o){return o=typeof o=="function"?o:n,r&&r.length?_r(r,n,o):[]}function Yl(r){if(!(r&&r.length))return[];var o=0;return r=Sr(r,function(l){if(vt(l))return o=Tt(l.length,o),!0}),fl(o,function(l){return lt(r,ul(l))})}function Yp(r,o){if(!(r&&r.length))return[];var l=Yl(r);return o==null?l:lt(l,function(d){return en(o,n,d)})}var qS=Be(function(r,o){return vt(r)?Ro(r,o):[]}),GS=Be(function(r){return Il(Sr(r,vt))}),YS=Be(function(r){var o=bn(r);return vt(o)&&(o=n),Il(Sr(r,vt),Me(o,2))}),ZS=Be(function(r){var o=bn(r);return o=typeof o=="function"?o:n,Il(Sr(r,vt),n,o)}),XS=Be(Yl);function JS(r,o){return dp(r||[],o||[],_o)}function KS(r,o){return dp(r||[],o||[],Po)}var QS=Be(function(r){var o=r.length,l=o>1?r[o-1]:n;return l=typeof l=="function"?(r.pop(),l):n,Yp(r,l)});function Zp(r){var o=P(r);return o.__chain__=!0,o}function e1(r,o){return o(r),r}function pa(r,o){return o(r)}var t1=ar(function(r){var o=r.length,l=o?r[0]:0,d=this.__wrapped__,T=function(I){return bl(I,r)};return o>1||this.__actions__.length||!(d instanceof je)||!ur(l)?this.thru(T):(d=d.slice(l,+l+(o?1:0)),d.__actions__.push({func:pa,args:[T],thisArg:n}),new gn(d,this.__chain__).thru(function(I){return o&&!I.length&&I.push(n),I}))});function n1(){return Zp(this)}function r1(){return new gn(this.value(),this.__chain__)}function i1(){this.__values__===n&&(this.__values__=lh(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function o1(){return this}function s1(r){for(var o,l=this;l instanceof Ks;){var d=Up(l);d.__index__=0,d.__values__=n,o?T.__wrapped__=d:o=d;var T=d;l=l.__wrapped__}return T.__wrapped__=r,o}function a1(){var r=this.__wrapped__;if(r instanceof je){var o=r;return this.__actions__.length&&(o=new je(this)),o=o.reverse(),o.__actions__.push({func:pa,args:[Gl],thisArg:n}),new gn(o,this.__chain__)}return this.thru(Gl)}function u1(){return fp(this.__wrapped__,this.__actions__)}var l1=oa(function(r,o,l){et.call(r,l)?++r[l]:or(r,l,1)});function c1(r,o,l){var d=ze(r)?Od:ex;return l&&Wt(r,o,l)&&(o=n),d(r,Me(o,3))}function f1(r,o){var l=ze(r)?Sr:Yd;return l(r,Me(o,3))}var d1=Sp(jp),p1=Sp(Hp);function h1(r,o){return Mt(ha(r,o),1)}function m1(r,o){return Mt(ha(r,o),X)}function g1(r,o,l){return l=l===n?1:Fe(l),Mt(ha(r,o),l)}function Xp(r,o){var l=ze(r)?hn:Cr;return l(r,Me(o,3))}function Jp(r,o){var l=ze(r)?kb:Gd;return l(r,Me(o,3))}var y1=oa(function(r,o,l){et.call(r,l)?r[l].push(o):or(r,l,[o])});function v1(r,o,l,d){r=Vt(r)?r:Fi(r),l=l&&!d?Fe(l):0;var T=r.length;return l<0&&(l=Tt(T+l,0)),ba(r)?l<=T&&r.indexOf(o,l)>-1:!!T&&_i(r,o,l)>-1}var b1=Be(function(r,o,l){var d=-1,T=typeof o=="function",I=Vt(r)?Q(r.length):[];return Cr(r,function(k){I[++d]=T?en(o,k,l):Do(k,o,l)}),I}),w1=oa(function(r,o,l){or(r,l,o)});function ha(r,o){var l=ze(r)?lt:ep;return l(r,Me(o,3))}function x1(r,o,l,d){return r==null?[]:(ze(o)||(o=o==null?[]:[o]),l=d?n:l,ze(l)||(l=l==null?[]:[l]),ip(r,o,l))}var S1=oa(function(r,o,l){r[l?0:1].push(o)},function(){return[[],[]]});function E1(r,o,l){var d=ze(r)?sl:Rd,T=arguments.length<3;return d(r,Me(o,4),l,T,Cr)}function O1(r,o,l){var d=ze(r)?$b:Rd,T=arguments.length<3;return d(r,Me(o,4),l,T,Gd)}function T1(r,o){var l=ze(r)?Sr:Yd;return l(r,ya(Me(o,3)))}function C1(r){var o=ze(r)?jd:vx;return o(r)}function _1(r,o,l){(l?Wt(r,o,l):o===n)?o=1:o=Fe(o);var d=ze(r)?Zw:bx;return d(r,o)}function R1(r){var o=ze(r)?Xw:xx;return o(r)}function D1(r){if(r==null)return 0;if(Vt(r))return ba(r)?Di(r):r.length;var o=At(r);return o==G||o==Ne?r.size:Tl(r).length}function M1(r,o,l){var d=ze(r)?al:Sx;return l&&Wt(r,o,l)&&(o=n),d(r,Me(o,3))}var P1=Be(function(r,o){if(r==null)return[];var l=o.length;return l>1&&Wt(r,o[0],o[1])?o=[]:l>2&&Wt(o[0],o[1],o[2])&&(o=[o[0]]),ip(r,Mt(o,1),[])}),ma=fw||function(){return Dt.Date.now()};function I1(r,o){if(typeof o!="function")throw new mn(u);return r=Fe(r),function(){if(--r<1)return o.apply(this,arguments)}}function Kp(r,o,l){return o=l?n:o,o=r&&o==null?r.length:o,sr(r,D,n,n,n,n,o)}function Qp(r,o){var l;if(typeof o!="function")throw new mn(u);return r=Fe(r),function(){return--r>0&&(l=o.apply(this,arguments)),r<=1&&(o=n),l}}var Zl=Be(function(r,o,l){var d=v;if(l.length){var T=Or(l,Li(Zl));d|=C}return sr(r,d,o,l,T)}),eh=Be(function(r,o,l){var d=v|g;if(l.length){var T=Or(l,Li(eh));d|=C}return sr(o,d,r,l,T)});function th(r,o,l){o=l?n:o;var d=sr(r,S,n,n,n,n,n,o);return d.placeholder=th.placeholder,d}function nh(r,o,l){o=l?n:o;var d=sr(r,E,n,n,n,n,n,o);return d.placeholder=nh.placeholder,d}function rh(r,o,l){var d,T,I,k,L,q,ie=0,se=!1,de=!1,xe=!0;if(typeof r!="function")throw new mn(u);o=wn(o)||0,ft(l)&&(se=!!l.leading,de="maxWait"in l,I=de?Tt(wn(l.maxWait)||0,o):I,xe="trailing"in l?!!l.trailing:xe);function De(bt){var kn=d,fr=T;return d=T=n,ie=bt,k=r.apply(fr,kn),k}function Pe(bt){return ie=bt,L=Ao(Ue,o),se?De(bt):k}function We(bt){var kn=bt-q,fr=bt-ie,Sh=o-kn;return de?Nt(Sh,I-fr):Sh}function Ie(bt){var kn=bt-q,fr=bt-ie;return q===n||kn>=o||kn<0||de&&fr>=I}function Ue(){var bt=ma();if(Ie(bt))return He(bt);L=Ao(Ue,We(bt))}function He(bt){return L=n,xe&&d?De(bt):(d=T=n,k)}function on(){L!==n&&pp(L),ie=0,d=q=T=L=n}function Bt(){return L===n?k:He(ma())}function sn(){var bt=ma(),kn=Ie(bt);if(d=arguments,T=this,q=bt,kn){if(L===n)return Pe(q);if(de)return pp(L),L=Ao(Ue,o),De(q)}return L===n&&(L=Ao(Ue,o)),k}return sn.cancel=on,sn.flush=Bt,sn}var N1=Be(function(r,o){return qd(r,1,o)}),A1=Be(function(r,o,l){return qd(r,wn(o)||0,l)});function k1(r){return sr(r,z)}function ga(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new mn(u);var l=function(){var d=arguments,T=o?o.apply(this,d):d[0],I=l.cache;if(I.has(T))return I.get(T);var k=r.apply(this,d);return l.cache=I.set(T,k)||I,k};return l.cache=new(ga.Cache||ir),l}ga.Cache=ir;function ya(r){if(typeof r!="function")throw new mn(u);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function $1(r){return Qp(2,r)}var L1=Ex(function(r,o){o=o.length==1&&ze(o[0])?lt(o[0],tn(Me())):lt(Mt(o,1),tn(Me()));var l=o.length;return Be(function(d){for(var T=-1,I=Nt(d.length,l);++T<I;)d[T]=o[T].call(this,d[T]);return en(r,this,d)})}),Xl=Be(function(r,o){var l=Or(o,Li(Xl));return sr(r,C,n,o,l)}),ih=Be(function(r,o){var l=Or(o,Li(ih));return sr(r,M,n,o,l)}),z1=ar(function(r,o){return sr(r,A,n,n,n,o)});function F1(r,o){if(typeof r!="function")throw new mn(u);return o=o===n?o:Fe(o),Be(r,o)}function W1(r,o){if(typeof r!="function")throw new mn(u);return o=o==null?0:Tt(Fe(o),0),Be(function(l){var d=l[o],T=Dr(l,0,o);return d&&Er(T,d),en(r,this,T)})}function B1(r,o,l){var d=!0,T=!0;if(typeof r!="function")throw new mn(u);return ft(l)&&(d="leading"in l?!!l.leading:d,T="trailing"in l?!!l.trailing:T),rh(r,o,{leading:d,maxWait:o,trailing:T})}function U1(r){return Kp(r,1)}function j1(r,o){return Xl(Al(o),r)}function H1(){if(!arguments.length)return[];var r=arguments[0];return ze(r)?r:[r]}function V1(r){return yn(r,w)}function q1(r,o){return o=typeof o=="function"?o:n,yn(r,w,o)}function G1(r){return yn(r,x|w)}function Y1(r,o){return o=typeof o=="function"?o:n,yn(r,x|w,o)}function Z1(r,o){return o==null||Vd(r,o,Ct(o))}function An(r,o){return r===o||r!==r&&o!==o}var X1=la(Sl),J1=la(function(r,o){return r>=o}),ni=Jd(function(){return arguments}())?Jd:function(r){return dt(r)&&et.call(r,"callee")&&!Ld.call(r,"callee")},ze=Q.isArray,K1=vd?tn(vd):sx;function Vt(r){return r!=null&&va(r.length)&&!lr(r)}function vt(r){return dt(r)&&Vt(r)}function Q1(r){return r===!0||r===!1||dt(r)&&Ft(r)==ee}var Mr=pw||ac,eE=bd?tn(bd):ax;function tE(r){return dt(r)&&r.nodeType===1&&!ko(r)}function nE(r){if(r==null)return!0;if(Vt(r)&&(ze(r)||typeof r=="string"||typeof r.splice=="function"||Mr(r)||zi(r)||ni(r)))return!r.length;var o=At(r);if(o==G||o==Ne)return!r.size;if(No(r))return!Tl(r).length;for(var l in r)if(et.call(r,l))return!1;return!0}function rE(r,o){return Mo(r,o)}function iE(r,o,l){l=typeof l=="function"?l:n;var d=l?l(r,o):n;return d===n?Mo(r,o,n,l):!!d}function Jl(r){if(!dt(r))return!1;var o=Ft(r);return o==Re||o==Ee||typeof r.message=="string"&&typeof r.name=="string"&&!ko(r)}function oE(r){return typeof r=="number"&&Fd(r)}function lr(r){if(!ft(r))return!1;var o=Ft(r);return o==N||o==W||o==ve||o==he}function oh(r){return typeof r=="number"&&r==Fe(r)}function va(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=fe}function ft(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function dt(r){return r!=null&&typeof r=="object"}var sh=wd?tn(wd):lx;function sE(r,o){return r===o||Ol(r,o,Bl(o))}function aE(r,o,l){return l=typeof l=="function"?l:n,Ol(r,o,Bl(o),l)}function uE(r){return ah(r)&&r!=+r}function lE(r){if(qx(r))throw new Le(a);return Kd(r)}function cE(r){return r===null}function fE(r){return r==null}function ah(r){return typeof r=="number"||dt(r)&&Ft(r)==le}function ko(r){if(!dt(r)||Ft(r)!=ge)return!1;var o=Vs(r);if(o===null)return!0;var l=et.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&Bs.call(l)==aw}var Kl=xd?tn(xd):cx;function dE(r){return oh(r)&&r>=-9007199254740991&&r<=fe}var uh=Sd?tn(Sd):fx;function ba(r){return typeof r=="string"||!ze(r)&&dt(r)&&Ft(r)==_e}function rn(r){return typeof r=="symbol"||dt(r)&&Ft(r)==qe}var zi=Ed?tn(Ed):dx;function pE(r){return r===n}function hE(r){return dt(r)&&At(r)==Et}function mE(r){return dt(r)&&Ft(r)==Jt}var gE=la(Cl),yE=la(function(r,o){return r<=o});function lh(r){if(!r)return[];if(Vt(r))return ba(r)?In(r):Ht(r);if(So&&r[So])return Zb(r[So]());var o=At(r),l=o==G?pl:o==Ne?zs:Fi;return l(r)}function cr(r){if(!r)return r===0?r:0;if(r=wn(r),r===X||r===-1/0){var o=r<0?-1:1;return o*ae}return r===r?r:0}function Fe(r){var o=cr(r),l=o%1;return o===o?l?o-l:o:0}function ch(r){return r?Kr(Fe(r),0,$):0}function wn(r){if(typeof r=="number")return r;if(rn(r))return Y;if(ft(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=ft(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Dd(r);var l=K0.test(r);return l||eb.test(r)?Ib(r.slice(2),l?2:8):J0.test(r)?Y:+r}function fh(r){return jn(r,qt(r))}function vE(r){return r?Kr(Fe(r),-9007199254740991,fe):r===0?r:0}function Xe(r){return r==null?"":nn(r)}var bE=ki(function(r,o){if(No(o)||Vt(o)){jn(o,Ct(o),r);return}for(var l in o)et.call(o,l)&&_o(r,l,o[l])}),dh=ki(function(r,o){jn(o,qt(o),r)}),wa=ki(function(r,o,l,d){jn(o,qt(o),r,d)}),wE=ki(function(r,o,l,d){jn(o,Ct(o),r,d)}),xE=ar(bl);function SE(r,o){var l=Ai(r);return o==null?l:Hd(l,o)}var EE=Be(function(r,o){r=ot(r);var l=-1,d=o.length,T=d>2?o[2]:n;for(T&&Wt(o[0],o[1],T)&&(d=1);++l<d;)for(var I=o[l],k=qt(I),L=-1,q=k.length;++L<q;){var ie=k[L],se=r[ie];(se===n||An(se,Pi[ie])&&!et.call(r,ie))&&(r[ie]=I[ie])}return r}),OE=Be(function(r){return r.push(n,Dp),en(ph,n,r)});function TE(r,o){return Td(r,Me(o,3),Un)}function CE(r,o){return Td(r,Me(o,3),xl)}function _E(r,o){return r==null?r:wl(r,Me(o,3),qt)}function RE(r,o){return r==null?r:Zd(r,Me(o,3),qt)}function DE(r,o){return r&&Un(r,Me(o,3))}function ME(r,o){return r&&xl(r,Me(o,3))}function PE(r){return r==null?[]:ta(r,Ct(r))}function IE(r){return r==null?[]:ta(r,qt(r))}function Ql(r,o,l){var d=r==null?n:Qr(r,o);return d===n?l:d}function NE(r,o){return r!=null&&Ip(r,o,nx)}function ec(r,o){return r!=null&&Ip(r,o,rx)}var AE=Op(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Us.call(o)),r[o]=l},nc(Gt)),kE=Op(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Us.call(o)),et.call(r,o)?r[o].push(l):r[o]=[l]},Me),$E=Be(Do);function Ct(r){return Vt(r)?Ud(r):Tl(r)}function qt(r){return Vt(r)?Ud(r,!0):px(r)}function LE(r,o){var l={};return o=Me(o,3),Un(r,function(d,T,I){or(l,o(d,T,I),d)}),l}function zE(r,o){var l={};return o=Me(o,3),Un(r,function(d,T,I){or(l,T,o(d,T,I))}),l}var FE=ki(function(r,o,l){na(r,o,l)}),ph=ki(function(r,o,l,d){na(r,o,l,d)}),WE=ar(function(r,o){var l={};if(r==null)return l;var d=!1;o=lt(o,function(I){return I=Rr(I,r),d||(d=I.length>1),I}),jn(r,Fl(r),l),d&&(l=yn(l,x|R|w,Ax));for(var T=o.length;T--;)Pl(l,o[T]);return l});function BE(r,o){return hh(r,ya(Me(o)))}var UE=ar(function(r,o){return r==null?{}:mx(r,o)});function hh(r,o){if(r==null)return{};var l=lt(Fl(r),function(d){return[d]});return o=Me(o),op(r,l,function(d,T){return o(d,T[0])})}function jE(r,o,l){o=Rr(o,r);var d=-1,T=o.length;for(T||(T=1,r=n);++d<T;){var I=r==null?n:r[Hn(o[d])];I===n&&(d=T,I=l),r=lr(I)?I.call(r):I}return r}function HE(r,o,l){return r==null?r:Po(r,o,l)}function VE(r,o,l,d){return d=typeof d=="function"?d:n,r==null?r:Po(r,o,l,d)}var mh=_p(Ct),gh=_p(qt);function qE(r,o,l){var d=ze(r),T=d||Mr(r)||zi(r);if(o=Me(o,4),l==null){var I=r&&r.constructor;T?l=d?new I:[]:ft(r)?l=lr(I)?Ai(Vs(r)):{}:l={}}return(T?hn:Un)(r,function(k,L,q){return o(l,k,L,q)}),l}function GE(r,o){return r==null?!0:Pl(r,o)}function YE(r,o,l){return r==null?r:cp(r,o,Al(l))}function ZE(r,o,l,d){return d=typeof d=="function"?d:n,r==null?r:cp(r,o,Al(l),d)}function Fi(r){return r==null?[]:dl(r,Ct(r))}function XE(r){return r==null?[]:dl(r,qt(r))}function JE(r,o,l){return l===n&&(l=o,o=n),l!==n&&(l=wn(l),l=l===l?l:0),o!==n&&(o=wn(o),o=o===o?o:0),Kr(wn(r),o,l)}function KE(r,o,l){return o=cr(o),l===n?(l=o,o=0):l=cr(l),r=wn(r),ix(r,o,l)}function QE(r,o,l){if(l&&typeof l!="boolean"&&Wt(r,o,l)&&(o=l=n),l===n&&(typeof o=="boolean"?(l=o,o=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&o===n?(r=0,o=1):(r=cr(r),o===n?(o=r,r=0):o=cr(o)),r>o){var d=r;r=o,o=d}if(l||r%1||o%1){var T=Wd();return Nt(r+T*(o-r+Pb("1e-"+((T+"").length-1))),o)}return Rl(r,o)}var eO=$i(function(r,o,l){return o=o.toLowerCase(),r+(l?yh(o):o)});function yh(r){return tc(Xe(r).toLowerCase())}function vh(r){return r=Xe(r),r&&r.replace(nb,Hb).replace(xb,"")}function tO(r,o,l){r=Xe(r),o=nn(o);var d=r.length;l=l===n?d:Kr(Fe(l),0,d);var T=l;return l-=o.length,l>=0&&r.slice(l,T)==o}function nO(r){return r=Xe(r),r&&Gu.test(r)?r.replace(Ps,Vb):r}function rO(r){return r=Xe(r),r&&U0.test(r)?r.replace(Xu,"\\$&"):r}var iO=$i(function(r,o,l){return r+(l?"-":"")+o.toLowerCase()}),oO=$i(function(r,o,l){return r+(l?" ":"")+o.toLowerCase()}),sO=xp("toLowerCase");function aO(r,o,l){r=Xe(r),o=Fe(o);var d=o?Di(r):0;if(!o||d>=o)return r;var T=(o-d)/2;return ua(Zs(T),l)+r+ua(Ys(T),l)}function uO(r,o,l){r=Xe(r),o=Fe(o);var d=o?Di(r):0;return o&&d<o?r+ua(o-d,l):r}function lO(r,o,l){r=Xe(r),o=Fe(o);var d=o?Di(r):0;return o&&d<o?ua(o-d,l)+r:r}function cO(r,o,l){return l||o==null?o=0:o&&(o=+o),yw(Xe(r).replace(Ju,""),o||0)}function fO(r,o,l){return(l?Wt(r,o,l):o===n)?o=1:o=Fe(o),Dl(Xe(r),o)}function dO(){var r=arguments,o=Xe(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var pO=$i(function(r,o,l){return r+(l?"_":"")+o.toLowerCase()});function hO(r,o,l){return l&&typeof l!="number"&&Wt(r,o,l)&&(o=l=n),l=l===n?$:l>>>0,l?(r=Xe(r),r&&(typeof o=="string"||o!=null&&!Kl(o))&&(o=nn(o),!o&&Ri(r))?Dr(In(r),0,l):r.split(o,l)):[]}var mO=$i(function(r,o,l){return r+(l?" ":"")+tc(o)});function gO(r,o,l){return r=Xe(r),l=l==null?0:Kr(Fe(l),0,r.length),o=nn(o),r.slice(l,l+o.length)==o}function yO(r,o,l){var d=P.templateSettings;l&&Wt(r,o,l)&&(o=n),r=Xe(r),o=wa({},o,d,Rp);var T=wa({},o.imports,d.imports,Rp),I=Ct(T),k=dl(T,I),L,q,ie=0,se=o.interpolate||Ns,de="__p += '",xe=hl((o.escape||Ns).source+"|"+se.source+"|"+(se===$e?X0:Ns).source+"|"+(o.evaluate||Ns).source+"|$","g"),De="//# sourceURL="+(et.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Cb+"]")+`
32
+ `;r.replace(xe,function(Ie,Ue,He,on,Bt,sn){return He||(He=on),de+=r.slice(ie,sn).replace(rb,qb),Ue&&(L=!0,de+=`' +
33
33
  __e(`+Ue+`) +
34
- '`),Bt&&(V=!0,de+=`';
34
+ '`),Bt&&(q=!0,de+=`';
35
35
  `+Bt+`;
36
36
  __p += '`),He&&(de+=`' +
37
37
  ((__t = (`+He+`)) == null ? '' : __t) +
@@ -39,32 +39,32 @@ __p += '`),He&&(de+=`' +
39
39
  `;var Pe=et.call(o,"variable")&&o.variable;if(!Pe)de=`with (obj) {
40
40
  `+de+`
41
41
  }
42
- `;else if(G0.test(Pe))throw new Le(c);de=(V?de.replace(Ti,""):de).replace(ju,"$1").replace(Hu,"$1;"),de="function("+(Pe||"obj")+`) {
42
+ `;else if(Y0.test(Pe))throw new Le(c);de=(q?de.replace(Ti,""):de).replace(Hu,"$1").replace(Vu,"$1;"),de="function("+(Pe||"obj")+`) {
43
43
  `+(Pe?"":`obj || (obj = {});
44
- `)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(V?`, __j = Array.prototype.join;
44
+ `)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(q?`, __j = Array.prototype.join;
45
45
  function print() { __p += __j.call(arguments, '') }
46
46
  `:`;
47
47
  `)+de+`return __p
48
- }`;var We=bh(function(){return Ye(I,De+"return "+de).apply(n,k)});if(We.source=de,Xl(We))throw We;return We}function yO(r){return Xe(r).toLowerCase()}function vO(r){return Xe(r).toUpperCase()}function bO(r,o,l){if(r=Xe(r),r&&(l||o===n))return Rd(r);if(!r||!(o=nn(o)))return r;var d=In(r),O=In(o),I=Dd(d,O),k=Md(d,O)+1;return Dr(d,I,k).join("")}function wO(r,o,l){if(r=Xe(r),r&&(l||o===n))return r.slice(0,Id(r)+1);if(!r||!(o=nn(o)))return r;var d=In(r),O=Md(d,In(o))+1;return Dr(d,0,O).join("")}function xO(r,o,l){if(r=Xe(r),r&&(l||o===n))return r.replace(Xu,"");if(!r||!(o=nn(o)))return r;var d=In(r),O=Dd(d,In(o));return Dr(d,O).join("")}function SO(r,o){var l=J,d=Z;if(ft(o)){var O="separator"in o?o.separator:O;l="length"in o?Fe(o.length):l,d="omission"in o?nn(o.omission):d}r=Xe(r);var I=r.length;if(Ri(r)){var k=In(r);I=k.length}if(l>=I)return r;var L=l-Di(d);if(L<1)return d;var V=k?Dr(k,0,L).join(""):r.slice(0,L);if(O===n)return V+d;if(k&&(L+=V.length-L),Jl(O)){if(r.slice(L).search(O)){var ie,se=V;for(O.global||(O=pl(O.source,Xe(Xf.exec(O))+"g")),O.lastIndex=0;ie=O.exec(se);)var de=ie.index;V=V.slice(0,de===n?L:de)}}else if(r.indexOf(nn(O),L)!=L){var xe=V.lastIndexOf(O);xe>-1&&(V=V.slice(0,xe))}return V+d}function EO(r){return r=Xe(r),r&&qu.test(r)?r.replace(Ds,Kb):r}var OO=$i(function(r,o,l){return r+(l?" ":"")+o.toUpperCase()}),ec=wp("toUpperCase");function vh(r,o,l){return r=Xe(r),o=l?n:o,o===n?Gb(r)?tw(r):zb(r):r.match(o)||[]}var bh=Be(function(r,o){try{return en(r,n,o)}catch(l){return Xl(l)?l:new Le(l)}}),TO=sr(function(r,o){return hn(o,function(l){l=Hn(l),ir(r,l,Yl(r[l],r))}),r});function CO(r){var o=r==null?0:r.length,l=Me();return r=o?lt(r,function(d){if(typeof d[1]!="function")throw new mn(u);return[l(d[0]),d[1]]}):[],Be(function(d){for(var O=-1;++O<o;){var I=r[O];if(en(I[0],this,d))return en(I[1],this,d)}})}function _O(r){return Kw(yn(r,x))}function tc(r){return function(){return r}}function RO(r,o){return r==null||r!==r?o:r}var DO=Sp(),MO=Sp(!0);function Gt(r){return r}function nc(r){return Kd(typeof r=="function"?r:yn(r,x))}function PO(r){return ep(yn(r,x))}function IO(r,o){return tp(r,yn(o,x))}var NO=Be(function(r,o){return function(l){return Ro(l,r,o)}}),AO=Be(function(r,o){return function(l){return Ro(r,l,o)}});function rc(r,o,l){var d=Ct(o),O=ea(o,d);l==null&&!(ft(o)&&(O.length||!d.length))&&(l=o,o=r,r=this,O=ea(o,Ct(o)));var I=!(ft(l)&&"chain"in l)||!!l.chain,k=ur(r);return hn(O,function(L){var V=o[L];r[L]=V,k&&(r.prototype[L]=function(){var ie=this.__chain__;if(I||ie){var se=r(this.__wrapped__),de=se.__actions__=Ht(this.__actions__);return de.push({func:V,args:arguments,thisArg:r}),se.__chain__=ie,se}return V.apply(r,Er([this.value()],arguments))})}),r}function kO(){return Dt._===this&&(Dt._=aw),this}function ic(){}function $O(r){return r=Fe(r),Be(function(o){return np(o,r)})}var LO=kl(lt),zO=kl(Ed),FO=kl(sl);function wh(r){return Ul(r)?al(Hn(r)):mx(r)}function WO(r){return function(o){return r==null?n:Qr(r,o)}}var BO=Op(),UO=Op(!0);function oc(){return[]}function sc(){return!1}function jO(){return{}}function HO(){return""}function qO(){return!0}function VO(r,o){if(r=Fe(r),r<1||r>fe)return[];var l=$,d=Nt(r,$);o=Me(o),r-=$;for(var O=cl(d,o);++l<r;)o(l);return O}function GO(r){return ze(r)?lt(r,Hn):rn(r)?[r]:Ht(Wp(Xe(r)))}function YO(r){var o=++ow;return Xe(r)+o}var ZO=sa(function(r,o){return r+o},0),XO=$l("ceil"),JO=sa(function(r,o){return r/o},1),KO=$l("floor");function QO(r){return r&&r.length?Qs(r,Gt,xl):n}function eT(r,o){return r&&r.length?Qs(r,Me(o,2),xl):n}function tT(r){return Cd(r,Gt)}function nT(r,o){return Cd(r,Me(o,2))}function rT(r){return r&&r.length?Qs(r,Gt,Tl):n}function iT(r,o){return r&&r.length?Qs(r,Me(o,2),Tl):n}var oT=sa(function(r,o){return r*o},1),sT=$l("round"),aT=sa(function(r,o){return r-o},0);function uT(r){return r&&r.length?ll(r,Gt):0}function lT(r,o){return r&&r.length?ll(r,Me(o,2)):0}return P.after=P1,P.ary=Jp,P.assign=vE,P.assignIn=fh,P.assignInWith=ba,P.assignWith=bE,P.at=wE,P.before=Kp,P.bind=Yl,P.bindAll=TO,P.bindKey=Qp,P.castArray=j1,P.chain=Yp,P.chunk=Kx,P.compact=Qx,P.concat=eS,P.cond=CO,P.conforms=_O,P.constant=tc,P.countBy=u1,P.create=xE,P.curry=eh,P.curryRight=th,P.debounce=nh,P.defaults=SE,P.defaultsDeep=EE,P.defer=I1,P.delay=N1,P.difference=tS,P.differenceBy=nS,P.differenceWith=rS,P.drop=iS,P.dropRight=oS,P.dropRightWhile=sS,P.dropWhile=aS,P.fill=uS,P.filter=c1,P.flatMap=p1,P.flatMapDeep=h1,P.flatMapDepth=m1,P.flatten=Hp,P.flattenDeep=lS,P.flattenDepth=cS,P.flip=A1,P.flow=DO,P.flowRight=MO,P.fromPairs=fS,P.functions=ME,P.functionsIn=PE,P.groupBy=g1,P.initial=pS,P.intersection=hS,P.intersectionBy=mS,P.intersectionWith=gS,P.invert=NE,P.invertBy=AE,P.invokeMap=v1,P.iteratee=nc,P.keyBy=b1,P.keys=Ct,P.keysIn=Vt,P.map=pa,P.mapKeys=$E,P.mapValues=LE,P.matches=PO,P.matchesProperty=IO,P.memoize=ma,P.merge=zE,P.mergeWith=dh,P.method=NO,P.methodOf=AO,P.mixin=rc,P.negate=ga,P.nthArg=$O,P.omit=FE,P.omitBy=WE,P.once=k1,P.orderBy=w1,P.over=LO,P.overArgs=$1,P.overEvery=zO,P.overSome=FO,P.partial=Zl,P.partialRight=rh,P.partition=x1,P.pick=BE,P.pickBy=ph,P.property=wh,P.propertyOf=WO,P.pull=wS,P.pullAll=Vp,P.pullAllBy=xS,P.pullAllWith=SS,P.pullAt=ES,P.range=BO,P.rangeRight=UO,P.rearg=L1,P.reject=O1,P.remove=OS,P.rest=z1,P.reverse=Vl,P.sampleSize=C1,P.set=jE,P.setWith=HE,P.shuffle=_1,P.slice=TS,P.sortBy=M1,P.sortedUniq=IS,P.sortedUniqBy=NS,P.split=pO,P.spread=F1,P.tail=AS,P.take=kS,P.takeRight=$S,P.takeRightWhile=LS,P.takeWhile=zS,P.tap=QS,P.throttle=W1,P.thru=da,P.toArray=uh,P.toPairs=hh,P.toPairsIn=mh,P.toPath=GO,P.toPlainObject=ch,P.transform=qE,P.unary=B1,P.union=FS,P.unionBy=WS,P.unionWith=BS,P.uniq=US,P.uniqBy=jS,P.uniqWith=HS,P.unset=VE,P.unzip=Gl,P.unzipWith=Gp,P.update=GE,P.updateWith=YE,P.values=Fi,P.valuesIn=ZE,P.without=qS,P.words=vh,P.wrap=U1,P.xor=VS,P.xorBy=GS,P.xorWith=YS,P.zip=ZS,P.zipObject=XS,P.zipObjectDeep=JS,P.zipWith=KS,P.entries=hh,P.entriesIn=mh,P.extend=fh,P.extendWith=ba,rc(P,P),P.add=ZO,P.attempt=bh,P.camelCase=QE,P.capitalize=gh,P.ceil=XO,P.clamp=XE,P.clone=H1,P.cloneDeep=V1,P.cloneDeepWith=G1,P.cloneWith=q1,P.conformsTo=Y1,P.deburr=yh,P.defaultTo=RO,P.divide=JO,P.endsWith=eO,P.eq=An,P.escape=tO,P.escapeRegExp=nO,P.every=l1,P.find=f1,P.findIndex=Up,P.findKey=OE,P.findLast=d1,P.findLastIndex=jp,P.findLastKey=TE,P.floor=KO,P.forEach=Zp,P.forEachRight=Xp,P.forIn=CE,P.forInRight=_E,P.forOwn=RE,P.forOwnRight=DE,P.get=Kl,P.gt=Z1,P.gte=X1,P.has=IE,P.hasIn=Ql,P.head=qp,P.identity=Gt,P.includes=y1,P.indexOf=dS,P.inRange=JE,P.invoke=kE,P.isArguments=ni,P.isArray=ze,P.isArrayBuffer=J1,P.isArrayLike=qt,P.isArrayLikeObject=vt,P.isBoolean=K1,P.isBuffer=Mr,P.isDate=Q1,P.isElement=eE,P.isEmpty=tE,P.isEqual=nE,P.isEqualWith=rE,P.isError=Xl,P.isFinite=iE,P.isFunction=ur,P.isInteger=ih,P.isLength=ya,P.isMap=oh,P.isMatch=oE,P.isMatchWith=sE,P.isNaN=aE,P.isNative=uE,P.isNil=cE,P.isNull=lE,P.isNumber=sh,P.isObject=ft,P.isObjectLike=dt,P.isPlainObject=Ao,P.isRegExp=Jl,P.isSafeInteger=fE,P.isSet=ah,P.isString=va,P.isSymbol=rn,P.isTypedArray=zi,P.isUndefined=dE,P.isWeakMap=pE,P.isWeakSet=hE,P.join=yS,P.kebabCase=rO,P.last=bn,P.lastIndexOf=vS,P.lowerCase=iO,P.lowerFirst=oO,P.lt=mE,P.lte=gE,P.max=QO,P.maxBy=eT,P.mean=tT,P.meanBy=nT,P.min=rT,P.minBy=iT,P.stubArray=oc,P.stubFalse=sc,P.stubObject=jO,P.stubString=HO,P.stubTrue=qO,P.multiply=oT,P.nth=bS,P.noConflict=kO,P.noop=ic,P.now=ha,P.pad=sO,P.padEnd=aO,P.padStart=uO,P.parseInt=lO,P.random=KE,P.reduce=S1,P.reduceRight=E1,P.repeat=cO,P.replace=fO,P.result=UE,P.round=sT,P.runInContext=U,P.sample=T1,P.size=R1,P.snakeCase=dO,P.some=D1,P.sortedIndex=CS,P.sortedIndexBy=_S,P.sortedIndexOf=RS,P.sortedLastIndex=DS,P.sortedLastIndexBy=MS,P.sortedLastIndexOf=PS,P.startCase=hO,P.startsWith=mO,P.subtract=aT,P.sum=uT,P.sumBy=lT,P.template=gO,P.times=VO,P.toFinite=lr,P.toInteger=Fe,P.toLength=lh,P.toLower=yO,P.toNumber=wn,P.toSafeInteger=yE,P.toString=Xe,P.toUpper=vO,P.trim=bO,P.trimEnd=wO,P.trimStart=xO,P.truncate=SO,P.unescape=EO,P.uniqueId=YO,P.upperCase=OO,P.upperFirst=ec,P.each=Zp,P.eachRight=Xp,P.first=qp,rc(P,function(){var r={};return Un(P,function(o,l){et.call(P.prototype,l)||(r[l]=o)}),r}(),{chain:!1}),P.VERSION=i,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){P[r].placeholder=P}),hn(["drop","take"],function(r,o){je.prototype[r]=function(l){l=l===n?1:Tt(Fe(l),0);var d=this.__filtered__&&!o?new je(this):this.clone();return d.__filtered__?d.__takeCount__=Nt(l,d.__takeCount__):d.__views__.push({size:Nt(l,$),type:r+(d.__dir__<0?"Right":"")}),d},je.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),hn(["filter","map","takeWhile"],function(r,o){var l=o+1,d=l==B||l==q;je.prototype[r]=function(O){var I=this.clone();return I.__iteratees__.push({iteratee:Me(O,3),type:l}),I.__filtered__=I.__filtered__||d,I}}),hn(["head","last"],function(r,o){var l="take"+(o?"Right":"");je.prototype[r]=function(){return this[l](1).value()[0]}}),hn(["initial","tail"],function(r,o){var l="drop"+(o?"":"Right");je.prototype[r]=function(){return this.__filtered__?new je(this):this[l](1)}}),je.prototype.compact=function(){return this.filter(Gt)},je.prototype.find=function(r){return this.filter(r).head()},je.prototype.findLast=function(r){return this.reverse().find(r)},je.prototype.invokeMap=Be(function(r,o){return typeof r=="function"?new je(this):this.map(function(l){return Ro(l,r,o)})}),je.prototype.reject=function(r){return this.filter(ga(Me(r)))},je.prototype.slice=function(r,o){r=Fe(r);var l=this;return l.__filtered__&&(r>0||o<0)?new je(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),o!==n&&(o=Fe(o),l=o<0?l.dropRight(-o):l.take(o-r)),l)},je.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},je.prototype.toArray=function(){return this.take($)},Un(je.prototype,function(r,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),d=/^(?:head|last)$/.test(o),O=P[d?"take"+(o=="last"?"Right":""):o],I=d||/^find/.test(o);O&&(P.prototype[o]=function(){var k=this.__wrapped__,L=d?[1]:arguments,V=k instanceof je,ie=L[0],se=V||ze(k),de=function(Ue){var He=O.apply(P,Er([Ue],L));return d&&xe?He[0]:He};se&&l&&typeof ie=="function"&&ie.length!=1&&(V=se=!1);var xe=this.__chain__,De=!!this.__actions__.length,Pe=I&&!xe,We=V&&!De;if(!I&&se){k=We?k:new je(this);var Ie=r.apply(k,L);return Ie.__actions__.push({func:da,args:[de],thisArg:n}),new gn(Ie,xe)}return Pe&&We?r.apply(this,L):(Ie=this.thru(de),Pe?d?Ie.value()[0]:Ie.value():Ie)})}),hn(["pop","push","shift","sort","splice","unshift"],function(r){var o=zs[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",d=/^(?:pop|shift)$/.test(r);P.prototype[r]=function(){var O=arguments;if(d&&!this.__chain__){var I=this.value();return o.apply(ze(I)?I:[],O)}return this[l](function(k){return o.apply(ze(k)?k:[],O)})}}),Un(je.prototype,function(r,o){var l=P[o];if(l){var d=l.name+"";et.call(Ni,d)||(Ni[d]=[]),Ni[d].push({name:o,func:l})}}),Ni[oa(n,g).name]=[{name:"wrapper",func:n}],je.prototype.clone=Ew,je.prototype.reverse=Ow,je.prototype.value=Tw,P.prototype.at=e1,P.prototype.chain=t1,P.prototype.commit=n1,P.prototype.next=r1,P.prototype.plant=o1,P.prototype.reverse=s1,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=a1,P.prototype.first=P.prototype.head,xo&&(P.prototype[xo]=i1),P},Mi=nw();Yr?((Yr.exports=Mi)._=Mi,nl._=Mi):Dt._=Mi}).call(LT)}(Jo,Jo.exports)),Jo.exports}var Pc=zT();const FT="navigation-filter-preferences",WT=()=>{try{const e=localStorage.getItem(FT);return e!==null&&e!=="{}"}catch{return!1}},BT=()=>{var h;const{user:e}=Yg(),{updateUser:t}=Zg(),{filterOptions:n,setFilterOptions:i}=Br(),{sectionOrder:s,setVisibleSections:a}=gr(),u=j.useRef(!0),c=j.useRef(""),f=j.useRef([]),p=j.useRef([]);j.useEffect(()=>{var y;if(WT()){u.current&&Object.keys(n).length>0&&(a(n),u.current=!1);return}if(!((y=e==null?void 0:e.preferences)!=null&&y.visibleNavigation))return;const x=JSON.stringify(e.preferences.visibleNavigation),R=JSON.stringify(s);if(x===JSON.stringify(p.current)&&R===JSON.stringify(f.current)&&!u.current)return;const w={};s.forEach(v=>{w[v]=e.preferences.visibleNavigation.includes(v)}),(!Pc.isEqual(w,n)||u.current)&&(i(w),a(w),u.current=!1),f.current=[...s],p.current=[...e.preferences.visibleNavigation]},[(h=e==null?void 0:e.preferences)==null?void 0:h.visibleNavigation,s,i,n,a]),j.useEffect(()=>{if(!u.current&&e&&Object.keys(n).length>0){const x=JSON.stringify(n);if(c.current!==x){c.current=x;const R=Object.entries(n).filter(([,w])=>w).map(([w])=>w);if(!Pc.isEqual(R,e.preferences.visibleNavigation)){const w={...e,preferences:{...e.preferences,visibleNavigation:R}};t(w)}}}},[n,e,t])},Mh=e=>e,UT=()=>{let e=Mh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Mh}}},ty=UT();function ls(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}function fn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ls(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Sa={exports:{}},Ea={exports:{}},Je={};/** @license React v16.13.1
48
+ }`;var We=wh(function(){return Ye(I,De+"return "+de).apply(n,k)});if(We.source=de,Jl(We))throw We;return We}function vO(r){return Xe(r).toLowerCase()}function bO(r){return Xe(r).toUpperCase()}function wO(r,o,l){if(r=Xe(r),r&&(l||o===n))return Dd(r);if(!r||!(o=nn(o)))return r;var d=In(r),T=In(o),I=Md(d,T),k=Pd(d,T)+1;return Dr(d,I,k).join("")}function xO(r,o,l){if(r=Xe(r),r&&(l||o===n))return r.slice(0,Nd(r)+1);if(!r||!(o=nn(o)))return r;var d=In(r),T=Pd(d,In(o))+1;return Dr(d,0,T).join("")}function SO(r,o,l){if(r=Xe(r),r&&(l||o===n))return r.replace(Ju,"");if(!r||!(o=nn(o)))return r;var d=In(r),T=Md(d,In(o));return Dr(d,T).join("")}function EO(r,o){var l=J,d=Z;if(ft(o)){var T="separator"in o?o.separator:T;l="length"in o?Fe(o.length):l,d="omission"in o?nn(o.omission):d}r=Xe(r);var I=r.length;if(Ri(r)){var k=In(r);I=k.length}if(l>=I)return r;var L=l-Di(d);if(L<1)return d;var q=k?Dr(k,0,L).join(""):r.slice(0,L);if(T===n)return q+d;if(k&&(L+=q.length-L),Kl(T)){if(r.slice(L).search(T)){var ie,se=q;for(T.global||(T=hl(T.source,Xe(Jf.exec(T))+"g")),T.lastIndex=0;ie=T.exec(se);)var de=ie.index;q=q.slice(0,de===n?L:de)}}else if(r.indexOf(nn(T),L)!=L){var xe=q.lastIndexOf(T);xe>-1&&(q=q.slice(0,xe))}return q+d}function OO(r){return r=Xe(r),r&&qu.test(r)?r.replace(Ms,Qb):r}var TO=$i(function(r,o,l){return r+(l?" ":"")+o.toUpperCase()}),tc=xp("toUpperCase");function bh(r,o,l){return r=Xe(r),o=l?n:o,o===n?Yb(r)?nw(r):Fb(r):r.match(o)||[]}var wh=Be(function(r,o){try{return en(r,n,o)}catch(l){return Jl(l)?l:new Le(l)}}),CO=ar(function(r,o){return hn(o,function(l){l=Hn(l),or(r,l,Zl(r[l],r))}),r});function _O(r){var o=r==null?0:r.length,l=Me();return r=o?lt(r,function(d){if(typeof d[1]!="function")throw new mn(u);return[l(d[0]),d[1]]}):[],Be(function(d){for(var T=-1;++T<o;){var I=r[T];if(en(I[0],this,d))return en(I[1],this,d)}})}function RO(r){return Qw(yn(r,x))}function nc(r){return function(){return r}}function DO(r,o){return r==null||r!==r?o:r}var MO=Ep(),PO=Ep(!0);function Gt(r){return r}function rc(r){return Qd(typeof r=="function"?r:yn(r,x))}function IO(r){return tp(yn(r,x))}function NO(r,o){return np(r,yn(o,x))}var AO=Be(function(r,o){return function(l){return Do(l,r,o)}}),kO=Be(function(r,o){return function(l){return Do(r,l,o)}});function ic(r,o,l){var d=Ct(o),T=ta(o,d);l==null&&!(ft(o)&&(T.length||!d.length))&&(l=o,o=r,r=this,T=ta(o,Ct(o)));var I=!(ft(l)&&"chain"in l)||!!l.chain,k=lr(r);return hn(T,function(L){var q=o[L];r[L]=q,k&&(r.prototype[L]=function(){var ie=this.__chain__;if(I||ie){var se=r(this.__wrapped__),de=se.__actions__=Ht(this.__actions__);return de.push({func:q,args:arguments,thisArg:r}),se.__chain__=ie,se}return q.apply(r,Er([this.value()],arguments))})}),r}function $O(){return Dt._===this&&(Dt._=uw),this}function oc(){}function LO(r){return r=Fe(r),Be(function(o){return rp(o,r)})}var zO=$l(lt),FO=$l(Od),WO=$l(al);function xh(r){return jl(r)?ul(Hn(r)):gx(r)}function BO(r){return function(o){return r==null?n:Qr(r,o)}}var UO=Tp(),jO=Tp(!0);function sc(){return[]}function ac(){return!1}function HO(){return{}}function VO(){return""}function qO(){return!0}function GO(r,o){if(r=Fe(r),r<1||r>fe)return[];var l=$,d=Nt(r,$);o=Me(o),r-=$;for(var T=fl(d,o);++l<r;)o(l);return T}function YO(r){return ze(r)?lt(r,Hn):rn(r)?[r]:Ht(Bp(Xe(r)))}function ZO(r){var o=++sw;return Xe(r)+o}var XO=aa(function(r,o){return r+o},0),JO=Ll("ceil"),KO=aa(function(r,o){return r/o},1),QO=Ll("floor");function eT(r){return r&&r.length?ea(r,Gt,Sl):n}function tT(r,o){return r&&r.length?ea(r,Me(o,2),Sl):n}function nT(r){return _d(r,Gt)}function rT(r,o){return _d(r,Me(o,2))}function iT(r){return r&&r.length?ea(r,Gt,Cl):n}function oT(r,o){return r&&r.length?ea(r,Me(o,2),Cl):n}var sT=aa(function(r,o){return r*o},1),aT=Ll("round"),uT=aa(function(r,o){return r-o},0);function lT(r){return r&&r.length?cl(r,Gt):0}function cT(r,o){return r&&r.length?cl(r,Me(o,2)):0}return P.after=I1,P.ary=Kp,P.assign=bE,P.assignIn=dh,P.assignInWith=wa,P.assignWith=wE,P.at=xE,P.before=Qp,P.bind=Zl,P.bindAll=CO,P.bindKey=eh,P.castArray=H1,P.chain=Zp,P.chunk=Qx,P.compact=eS,P.concat=tS,P.cond=_O,P.conforms=RO,P.constant=nc,P.countBy=l1,P.create=SE,P.curry=th,P.curryRight=nh,P.debounce=rh,P.defaults=EE,P.defaultsDeep=OE,P.defer=N1,P.delay=A1,P.difference=nS,P.differenceBy=rS,P.differenceWith=iS,P.drop=oS,P.dropRight=sS,P.dropRightWhile=aS,P.dropWhile=uS,P.fill=lS,P.filter=f1,P.flatMap=h1,P.flatMapDeep=m1,P.flatMapDepth=g1,P.flatten=Vp,P.flattenDeep=cS,P.flattenDepth=fS,P.flip=k1,P.flow=MO,P.flowRight=PO,P.fromPairs=dS,P.functions=PE,P.functionsIn=IE,P.groupBy=y1,P.initial=hS,P.intersection=mS,P.intersectionBy=gS,P.intersectionWith=yS,P.invert=AE,P.invertBy=kE,P.invokeMap=b1,P.iteratee=rc,P.keyBy=w1,P.keys=Ct,P.keysIn=qt,P.map=ha,P.mapKeys=LE,P.mapValues=zE,P.matches=IO,P.matchesProperty=NO,P.memoize=ga,P.merge=FE,P.mergeWith=ph,P.method=AO,P.methodOf=kO,P.mixin=ic,P.negate=ya,P.nthArg=LO,P.omit=WE,P.omitBy=BE,P.once=$1,P.orderBy=x1,P.over=zO,P.overArgs=L1,P.overEvery=FO,P.overSome=WO,P.partial=Xl,P.partialRight=ih,P.partition=S1,P.pick=UE,P.pickBy=hh,P.property=xh,P.propertyOf=BO,P.pull=xS,P.pullAll=Gp,P.pullAllBy=SS,P.pullAllWith=ES,P.pullAt=OS,P.range=UO,P.rangeRight=jO,P.rearg=z1,P.reject=T1,P.remove=TS,P.rest=F1,P.reverse=Gl,P.sampleSize=_1,P.set=HE,P.setWith=VE,P.shuffle=R1,P.slice=CS,P.sortBy=P1,P.sortedUniq=NS,P.sortedUniqBy=AS,P.split=hO,P.spread=W1,P.tail=kS,P.take=$S,P.takeRight=LS,P.takeRightWhile=zS,P.takeWhile=FS,P.tap=e1,P.throttle=B1,P.thru=pa,P.toArray=lh,P.toPairs=mh,P.toPairsIn=gh,P.toPath=YO,P.toPlainObject=fh,P.transform=qE,P.unary=U1,P.union=WS,P.unionBy=BS,P.unionWith=US,P.uniq=jS,P.uniqBy=HS,P.uniqWith=VS,P.unset=GE,P.unzip=Yl,P.unzipWith=Yp,P.update=YE,P.updateWith=ZE,P.values=Fi,P.valuesIn=XE,P.without=qS,P.words=bh,P.wrap=j1,P.xor=GS,P.xorBy=YS,P.xorWith=ZS,P.zip=XS,P.zipObject=JS,P.zipObjectDeep=KS,P.zipWith=QS,P.entries=mh,P.entriesIn=gh,P.extend=dh,P.extendWith=wa,ic(P,P),P.add=XO,P.attempt=wh,P.camelCase=eO,P.capitalize=yh,P.ceil=JO,P.clamp=JE,P.clone=V1,P.cloneDeep=G1,P.cloneDeepWith=Y1,P.cloneWith=q1,P.conformsTo=Z1,P.deburr=vh,P.defaultTo=DO,P.divide=KO,P.endsWith=tO,P.eq=An,P.escape=nO,P.escapeRegExp=rO,P.every=c1,P.find=d1,P.findIndex=jp,P.findKey=TE,P.findLast=p1,P.findLastIndex=Hp,P.findLastKey=CE,P.floor=QO,P.forEach=Xp,P.forEachRight=Jp,P.forIn=_E,P.forInRight=RE,P.forOwn=DE,P.forOwnRight=ME,P.get=Ql,P.gt=X1,P.gte=J1,P.has=NE,P.hasIn=ec,P.head=qp,P.identity=Gt,P.includes=v1,P.indexOf=pS,P.inRange=KE,P.invoke=$E,P.isArguments=ni,P.isArray=ze,P.isArrayBuffer=K1,P.isArrayLike=Vt,P.isArrayLikeObject=vt,P.isBoolean=Q1,P.isBuffer=Mr,P.isDate=eE,P.isElement=tE,P.isEmpty=nE,P.isEqual=rE,P.isEqualWith=iE,P.isError=Jl,P.isFinite=oE,P.isFunction=lr,P.isInteger=oh,P.isLength=va,P.isMap=sh,P.isMatch=sE,P.isMatchWith=aE,P.isNaN=uE,P.isNative=lE,P.isNil=fE,P.isNull=cE,P.isNumber=ah,P.isObject=ft,P.isObjectLike=dt,P.isPlainObject=ko,P.isRegExp=Kl,P.isSafeInteger=dE,P.isSet=uh,P.isString=ba,P.isSymbol=rn,P.isTypedArray=zi,P.isUndefined=pE,P.isWeakMap=hE,P.isWeakSet=mE,P.join=vS,P.kebabCase=iO,P.last=bn,P.lastIndexOf=bS,P.lowerCase=oO,P.lowerFirst=sO,P.lt=gE,P.lte=yE,P.max=eT,P.maxBy=tT,P.mean=nT,P.meanBy=rT,P.min=iT,P.minBy=oT,P.stubArray=sc,P.stubFalse=ac,P.stubObject=HO,P.stubString=VO,P.stubTrue=qO,P.multiply=sT,P.nth=wS,P.noConflict=$O,P.noop=oc,P.now=ma,P.pad=aO,P.padEnd=uO,P.padStart=lO,P.parseInt=cO,P.random=QE,P.reduce=E1,P.reduceRight=O1,P.repeat=fO,P.replace=dO,P.result=jE,P.round=aT,P.runInContext=j,P.sample=C1,P.size=D1,P.snakeCase=pO,P.some=M1,P.sortedIndex=_S,P.sortedIndexBy=RS,P.sortedIndexOf=DS,P.sortedLastIndex=MS,P.sortedLastIndexBy=PS,P.sortedLastIndexOf=IS,P.startCase=mO,P.startsWith=gO,P.subtract=uT,P.sum=lT,P.sumBy=cT,P.template=yO,P.times=GO,P.toFinite=cr,P.toInteger=Fe,P.toLength=ch,P.toLower=vO,P.toNumber=wn,P.toSafeInteger=vE,P.toString=Xe,P.toUpper=bO,P.trim=wO,P.trimEnd=xO,P.trimStart=SO,P.truncate=EO,P.unescape=OO,P.uniqueId=ZO,P.upperCase=TO,P.upperFirst=tc,P.each=Xp,P.eachRight=Jp,P.first=qp,ic(P,function(){var r={};return Un(P,function(o,l){et.call(P.prototype,l)||(r[l]=o)}),r}(),{chain:!1}),P.VERSION=i,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){P[r].placeholder=P}),hn(["drop","take"],function(r,o){je.prototype[r]=function(l){l=l===n?1:Tt(Fe(l),0);var d=this.__filtered__&&!o?new je(this):this.clone();return d.__filtered__?d.__takeCount__=Nt(l,d.__takeCount__):d.__views__.push({size:Nt(l,$),type:r+(d.__dir__<0?"Right":"")}),d},je.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),hn(["filter","map","takeWhile"],function(r,o){var l=o+1,d=l==U||l==V;je.prototype[r]=function(T){var I=this.clone();return I.__iteratees__.push({iteratee:Me(T,3),type:l}),I.__filtered__=I.__filtered__||d,I}}),hn(["head","last"],function(r,o){var l="take"+(o?"Right":"");je.prototype[r]=function(){return this[l](1).value()[0]}}),hn(["initial","tail"],function(r,o){var l="drop"+(o?"":"Right");je.prototype[r]=function(){return this.__filtered__?new je(this):this[l](1)}}),je.prototype.compact=function(){return this.filter(Gt)},je.prototype.find=function(r){return this.filter(r).head()},je.prototype.findLast=function(r){return this.reverse().find(r)},je.prototype.invokeMap=Be(function(r,o){return typeof r=="function"?new je(this):this.map(function(l){return Do(l,r,o)})}),je.prototype.reject=function(r){return this.filter(ya(Me(r)))},je.prototype.slice=function(r,o){r=Fe(r);var l=this;return l.__filtered__&&(r>0||o<0)?new je(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),o!==n&&(o=Fe(o),l=o<0?l.dropRight(-o):l.take(o-r)),l)},je.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},je.prototype.toArray=function(){return this.take($)},Un(je.prototype,function(r,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),d=/^(?:head|last)$/.test(o),T=P[d?"take"+(o=="last"?"Right":""):o],I=d||/^find/.test(o);T&&(P.prototype[o]=function(){var k=this.__wrapped__,L=d?[1]:arguments,q=k instanceof je,ie=L[0],se=q||ze(k),de=function(Ue){var He=T.apply(P,Er([Ue],L));return d&&xe?He[0]:He};se&&l&&typeof ie=="function"&&ie.length!=1&&(q=se=!1);var xe=this.__chain__,De=!!this.__actions__.length,Pe=I&&!xe,We=q&&!De;if(!I&&se){k=We?k:new je(this);var Ie=r.apply(k,L);return Ie.__actions__.push({func:pa,args:[de],thisArg:n}),new gn(Ie,xe)}return Pe&&We?r.apply(this,L):(Ie=this.thru(de),Pe?d?Ie.value()[0]:Ie.value():Ie)})}),hn(["pop","push","shift","sort","splice","unshift"],function(r){var o=Fs[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",d=/^(?:pop|shift)$/.test(r);P.prototype[r]=function(){var T=arguments;if(d&&!this.__chain__){var I=this.value();return o.apply(ze(I)?I:[],T)}return this[l](function(k){return o.apply(ze(k)?k:[],T)})}}),Un(je.prototype,function(r,o){var l=P[o];if(l){var d=l.name+"";et.call(Ni,d)||(Ni[d]=[]),Ni[d].push({name:o,func:l})}}),Ni[sa(n,g).name]=[{name:"wrapper",func:n}],je.prototype.clone=Ow,je.prototype.reverse=Tw,je.prototype.value=Cw,P.prototype.at=t1,P.prototype.chain=n1,P.prototype.commit=r1,P.prototype.next=i1,P.prototype.plant=s1,P.prototype.reverse=a1,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=u1,P.prototype.first=P.prototype.head,So&&(P.prototype[So]=o1),P},Mi=rw();Yr?((Yr.exports=Mi)._=Mi,rl._=Mi):Dt._=Mi}).call(zT)}(Ko,Ko.exports)),Ko.exports}var Ic=FT();const WT="navigation-filter-preferences",BT=()=>{try{const e=localStorage.getItem(WT);return e!==null&&e!=="{}"}catch{return!1}},UT=()=>{var h;const{user:e}=Zg(),{updateUser:t}=Xg(),{filterOptions:n,setFilterOptions:i}=Br(),{sectionOrder:s,setVisibleSections:a}=Jn(),u=B.useRef(!0),c=B.useRef(""),f=B.useRef([]),p=B.useRef([]);B.useEffect(()=>{var v;if(BT()){u.current&&Object.keys(n).length>0&&(a(n),u.current=!1);return}if(!((v=e==null?void 0:e.preferences)!=null&&v.visibleNavigation)||e.preferences.visibleNavigation.length===0)return;const x=JSON.stringify(e.preferences.visibleNavigation),R=JSON.stringify(s);if(x===JSON.stringify(p.current)&&R===JSON.stringify(f.current)&&!u.current)return;const w=Jn.getState().visibleSections,O={};s.forEach(g=>{const m=w[g]===!0;O[g]=m||e.preferences.visibleNavigation.includes(g)}),(!Ic.isEqual(O,n)||u.current)&&(i(O),a(O),u.current=!1),f.current=[...s],p.current=[...e.preferences.visibleNavigation]},[(h=e==null?void 0:e.preferences)==null?void 0:h.visibleNavigation,s,i,n,a]),B.useEffect(()=>{if(!u.current&&e&&Object.keys(n).length>0){const x=JSON.stringify(n);if(c.current!==x){c.current=x;const R=Object.entries(n).filter(([,w])=>w).map(([w])=>w);if(!Ic.isEqual(R,e.preferences.visibleNavigation)){const w={...e,preferences:{...e.preferences,visibleNavigation:R}};t(w)}}}},[n,e,t])},Ph=e=>e,jT=()=>{let e=Ph;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ph}}},ny=jT();function cs(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}function fn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":cs(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ea={exports:{}},Oa={exports:{}},Je={};/** @license React v16.13.1
49
49
  * react-is.production.min.js
50
50
  *
51
51
  * Copyright (c) Facebook, Inc. and its affiliates.
52
52
  *
53
53
  * This source code is licensed under the MIT license found in the
54
54
  * LICENSE file in the root directory of this source tree.
55
- */var Ph;function jT(){if(Ph)return Je;Ph=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function S(T){if(typeof T=="object"&&T!==null){var M=T.$$typeof;switch(M){case t:switch(T=T.type,T){case f:case p:case i:case a:case s:case x:return T;default:switch(T=T&&T.$$typeof,T){case c:case h:case C:case w:case u:return T;default:return M}}case n:return M}}}function E(T){return S(T)===p}return Je.AsyncMode=f,Je.ConcurrentMode=p,Je.ContextConsumer=c,Je.ContextProvider=u,Je.Element=t,Je.ForwardRef=h,Je.Fragment=i,Je.Lazy=C,Je.Memo=w,Je.Portal=n,Je.Profiler=a,Je.StrictMode=s,Je.Suspense=x,Je.isAsyncMode=function(T){return E(T)||S(T)===f},Je.isConcurrentMode=E,Je.isContextConsumer=function(T){return S(T)===c},Je.isContextProvider=function(T){return S(T)===u},Je.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Je.isForwardRef=function(T){return S(T)===h},Je.isFragment=function(T){return S(T)===i},Je.isLazy=function(T){return S(T)===C},Je.isMemo=function(T){return S(T)===w},Je.isPortal=function(T){return S(T)===n},Je.isProfiler=function(T){return S(T)===a},Je.isStrictMode=function(T){return S(T)===s},Je.isSuspense=function(T){return S(T)===x},Je.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===p||T===a||T===s||T===x||T===R||typeof T=="object"&&T!==null&&(T.$$typeof===C||T.$$typeof===w||T.$$typeof===u||T.$$typeof===c||T.$$typeof===h||T.$$typeof===v||T.$$typeof===g||T.$$typeof===m||T.$$typeof===y)},Je.typeOf=S,Je}var Ke={};/** @license React v16.13.1
55
+ */var Ih;function HT(){if(Ih)return Je;Ih=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,O=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var M=C.$$typeof;switch(M){case t:switch(C=C.type,C){case f:case p:case i:case a:case s:case x:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case O:case w:case u:return C;default:return M}}case n:return M}}}function E(C){return S(C)===p}return Je.AsyncMode=f,Je.ConcurrentMode=p,Je.ContextConsumer=c,Je.ContextProvider=u,Je.Element=t,Je.ForwardRef=h,Je.Fragment=i,Je.Lazy=O,Je.Memo=w,Je.Portal=n,Je.Profiler=a,Je.StrictMode=s,Je.Suspense=x,Je.isAsyncMode=function(C){return E(C)||S(C)===f},Je.isConcurrentMode=E,Je.isContextConsumer=function(C){return S(C)===c},Je.isContextProvider=function(C){return S(C)===u},Je.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Je.isForwardRef=function(C){return S(C)===h},Je.isFragment=function(C){return S(C)===i},Je.isLazy=function(C){return S(C)===O},Je.isMemo=function(C){return S(C)===w},Je.isPortal=function(C){return S(C)===n},Je.isProfiler=function(C){return S(C)===a},Je.isStrictMode=function(C){return S(C)===s},Je.isSuspense=function(C){return S(C)===x},Je.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===i||C===p||C===a||C===s||C===x||C===R||typeof C=="object"&&C!==null&&(C.$$typeof===O||C.$$typeof===w||C.$$typeof===u||C.$$typeof===c||C.$$typeof===h||C.$$typeof===v||C.$$typeof===g||C.$$typeof===m||C.$$typeof===y)},Je.typeOf=S,Je}var Ke={};/** @license React v16.13.1
56
56
  * react-is.development.js
57
57
  *
58
58
  * Copyright (c) Facebook, Inc. and its affiliates.
59
59
  *
60
60
  * This source code is licensed under the MIT license found in the
61
61
  * LICENSE file in the root directory of this source tree.
62
- */var Ih;function HT(){return Ih||(Ih=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function S(N){return typeof N=="string"||typeof N=="function"||N===i||N===p||N===a||N===s||N===x||N===R||typeof N=="object"&&N!==null&&(N.$$typeof===C||N.$$typeof===w||N.$$typeof===u||N.$$typeof===c||N.$$typeof===h||N.$$typeof===v||N.$$typeof===g||N.$$typeof===m||N.$$typeof===y)}function E(N){if(typeof N=="object"&&N!==null){var W=N.$$typeof;switch(W){case t:var G=N.type;switch(G){case f:case p:case i:case a:case s:case x:return G;default:var le=G&&G.$$typeof;switch(le){case c:case h:case C:case w:case u:return le;default:return W}}case n:return W}}}var T=f,M=p,D=c,A=u,z=t,J=h,Z=i,_=C,H=w,B=n,K=a,q=s,X=x,fe=!1;function ae(N){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Y(N)||E(N)===f}function Y(N){return E(N)===p}function $(N){return E(N)===c}function ue(N){return E(N)===u}function ye(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function pe(N){return E(N)===h}function Oe(N){return E(N)===i}function Te(N){return E(N)===C}function ve(N){return E(N)===w}function ee(N){return E(N)===n}function ce(N){return E(N)===a}function Ee(N){return E(N)===s}function Re(N){return E(N)===x}Ke.AsyncMode=T,Ke.ConcurrentMode=M,Ke.ContextConsumer=D,Ke.ContextProvider=A,Ke.Element=z,Ke.ForwardRef=J,Ke.Fragment=Z,Ke.Lazy=_,Ke.Memo=H,Ke.Portal=B,Ke.Profiler=K,Ke.StrictMode=q,Ke.Suspense=X,Ke.isAsyncMode=ae,Ke.isConcurrentMode=Y,Ke.isContextConsumer=$,Ke.isContextProvider=ue,Ke.isElement=ye,Ke.isForwardRef=pe,Ke.isFragment=Oe,Ke.isLazy=Te,Ke.isMemo=ve,Ke.isPortal=ee,Ke.isProfiler=ce,Ke.isStrictMode=Ee,Ke.isSuspense=Re,Ke.isValidElementType=S,Ke.typeOf=E}()),Ke}var Nh;function ny(){return Nh||(Nh=1,process.env.NODE_ENV==="production"?Ea.exports=jT():Ea.exports=HT()),Ea.exports}/*
62
+ */var Nh;function VT(){return Nh||(Nh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,R=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,O=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function S(N){return typeof N=="string"||typeof N=="function"||N===i||N===p||N===a||N===s||N===x||N===R||typeof N=="object"&&N!==null&&(N.$$typeof===O||N.$$typeof===w||N.$$typeof===u||N.$$typeof===c||N.$$typeof===h||N.$$typeof===v||N.$$typeof===g||N.$$typeof===m||N.$$typeof===y)}function E(N){if(typeof N=="object"&&N!==null){var W=N.$$typeof;switch(W){case t:var G=N.type;switch(G){case f:case p:case i:case a:case s:case x:return G;default:var le=G&&G.$$typeof;switch(le){case c:case h:case O:case w:case u:return le;default:return W}}case n:return W}}}var C=f,M=p,D=c,A=u,z=t,J=h,Z=i,_=O,H=w,U=n,K=a,V=s,X=x,fe=!1;function ae(N){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Y(N)||E(N)===f}function Y(N){return E(N)===p}function $(N){return E(N)===c}function ue(N){return E(N)===u}function ye(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function pe(N){return E(N)===h}function Oe(N){return E(N)===i}function Te(N){return E(N)===O}function ve(N){return E(N)===w}function ee(N){return E(N)===n}function ce(N){return E(N)===a}function Ee(N){return E(N)===s}function Re(N){return E(N)===x}Ke.AsyncMode=C,Ke.ConcurrentMode=M,Ke.ContextConsumer=D,Ke.ContextProvider=A,Ke.Element=z,Ke.ForwardRef=J,Ke.Fragment=Z,Ke.Lazy=_,Ke.Memo=H,Ke.Portal=U,Ke.Profiler=K,Ke.StrictMode=V,Ke.Suspense=X,Ke.isAsyncMode=ae,Ke.isConcurrentMode=Y,Ke.isContextConsumer=$,Ke.isContextProvider=ue,Ke.isElement=ye,Ke.isForwardRef=pe,Ke.isFragment=Oe,Ke.isLazy=Te,Ke.isMemo=ve,Ke.isPortal=ee,Ke.isProfiler=ce,Ke.isStrictMode=Ee,Ke.isSuspense=Re,Ke.isValidElementType=S,Ke.typeOf=E}()),Ke}var Ah;function ry(){return Ah||(Ah=1,process.env.NODE_ENV==="production"?Oa.exports=HT():Oa.exports=VT()),Oa.exports}/*
63
63
  object-assign
64
64
  (c) Sindre Sorhus
65
65
  @license MIT
66
- */var ac,Ah;function qT(){if(Ah)return ac;Ah=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(h){return u[h]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ac=s()?Object.assign:function(a,u){for(var c,f=i(a),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var x in c)t.call(c,x)&&(f[x]=c[x]);if(e){p=e(c);for(var R=0;R<p.length;R++)n.call(c,p[R])&&(f[p[R]]=c[p[R]])}}return f},ac}var uc,kh;function cf(){if(kh)return uc;kh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return uc=e,uc}var lc,$h;function ry(){return $h||($h=1,lc=Function.call.bind(Object.prototype.hasOwnProperty)),lc}var cc,Lh;function VT(){if(Lh)return cc;Lh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=cf(),n={},i=ry();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,p){if(process.env.NODE_ENV!=="production"){for(var h in a)if(i(a,h)){var x;try{if(typeof a[h]!="function"){var R=Error((f||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}x=a[h](u,h,f,c,null,t)}catch(C){x=C}if(x&&!(x instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof x+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),x instanceof Error&&!(x.message in n)){n[x.message]=!0;var w=p?p():"";e("Failed "+c+" type: "+x.message+(w??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},cc=s,cc}var fc,zh;function GT(){if(zh)return fc;zh=1;var e=ny(),t=qT(),n=cf(),i=ry(),s=VT(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return fc=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function x(Y){var $=Y&&(p&&Y[p]||Y[h]);if(typeof $=="function")return $}var R="<<anonymous>>",w={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(),arrayOf:S,element:E(),elementType:T(),instanceOf:M,node:J(),objectOf:A,oneOf:D,oneOfType:z,shape:_,exact:H};function C(Y,$){return Y===$?Y!==0||1/Y===1/$:Y!==Y&&$!==$}function y(Y,$){this.message=Y,this.data=$&&typeof $=="object"?$:{},this.stack=""}y.prototype=Error.prototype;function v(Y){if(process.env.NODE_ENV!=="production")var $={},ue=0;function ye(Oe,Te,ve,ee,ce,Ee,Re){if(ee=ee||R,Ee=Ee||ve,Re!==n){if(f){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=ee+":"+ve;!$[W]&&ue<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ee+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[W]=!0,ue++)}}return Te[ve]==null?Oe?Te[ve]===null?new y("The "+ce+" `"+Ee+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new y("The "+ce+" `"+Ee+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:Y(Te,ve,ee,ce,Ee)}var pe=ye.bind(null,!1);return pe.isRequired=ye.bind(null,!0),pe}function g(Y){function $(ue,ye,pe,Oe,Te,ve){var ee=ue[ye],ce=q(ee);if(ce!==Y){var Ee=X(ee);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+Ee+"` supplied to `"+pe+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return v($)}function m(){return v(u)}function S(Y){function $(ue,ye,pe,Oe,Te){if(typeof Y!="function")return new y("Property `"+Te+"` of component `"+pe+"` has invalid PropType notation inside arrayOf.");var ve=ue[ye];if(!Array.isArray(ve)){var ee=q(ve);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected an array."))}for(var ce=0;ce<ve.length;ce++){var Ee=Y(ve,ce,pe,Oe,Te+"["+ce+"]",n);if(Ee instanceof Error)return Ee}return null}return v($)}function E(){function Y($,ue,ye,pe,Oe){var Te=$[ue];if(!c(Te)){var ve=q(Te);return new y("Invalid "+pe+" `"+Oe+"` of type "+("`"+ve+"` supplied to `"+ye+"`, expected a single ReactElement."))}return null}return v(Y)}function T(){function Y($,ue,ye,pe,Oe){var Te=$[ue];if(!e.isValidElementType(Te)){var ve=q(Te);return new y("Invalid "+pe+" `"+Oe+"` of type "+("`"+ve+"` supplied to `"+ye+"`, expected a single ReactElement type."))}return null}return v(Y)}function M(Y){function $(ue,ye,pe,Oe,Te){if(!(ue[ye]instanceof Y)){var ve=Y.name||R,ee=ae(ue[ye]);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected ")+("instance of `"+ve+"`."))}return null}return v($)}function D(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function $(ue,ye,pe,Oe,Te){for(var ve=ue[ye],ee=0;ee<Y.length;ee++)if(C(ve,Y[ee]))return null;var ce=JSON.stringify(Y,function(Re,N){var W=X(N);return W==="symbol"?String(N):N});return new y("Invalid "+Oe+" `"+Te+"` of value `"+String(ve)+"` "+("supplied to `"+pe+"`, expected one of "+ce+"."))}return v($)}function A(Y){function $(ue,ye,pe,Oe,Te){if(typeof Y!="function")return new y("Property `"+Te+"` of component `"+pe+"` has invalid PropType notation inside objectOf.");var ve=ue[ye],ee=q(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected an object."));for(var ce in ve)if(i(ve,ce)){var Ee=Y(ve,ce,pe,Oe,Te+"."+ce,n);if(Ee instanceof Error)return Ee}return null}return v($)}function z(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var $=0;$<Y.length;$++){var ue=Y[$];if(typeof ue!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(ue)+" at index "+$+"."),u}function ye(pe,Oe,Te,ve,ee){for(var ce=[],Ee=0;Ee<Y.length;Ee++){var Re=Y[Ee],N=Re(pe,Oe,Te,ve,ee,n);if(N==null)return null;N.data&&i(N.data,"expectedType")&&ce.push(N.data.expectedType)}var W=ce.length>0?", expected one of type ["+ce.join(", ")+"]":"";return new y("Invalid "+ve+" `"+ee+"` supplied to "+("`"+Te+"`"+W+"."))}return v(ye)}function J(){function Y($,ue,ye,pe,Oe){return B($[ue])?null:new y("Invalid "+pe+" `"+Oe+"` supplied to "+("`"+ye+"`, expected a ReactNode."))}return v(Y)}function Z(Y,$,ue,ye,pe){return new y((Y||"React class")+": "+$+" type `"+ue+"."+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+pe+"`.")}function _(Y){function $(ue,ye,pe,Oe,Te){var ve=ue[ye],ee=q(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type `"+ee+"` "+("supplied to `"+pe+"`, expected `object`."));for(var ce in Y){var Ee=Y[ce];if(typeof Ee!="function")return Z(pe,Oe,Te,ce,X(Ee));var Re=Ee(ve,ce,pe,Oe,Te+"."+ce,n);if(Re)return Re}return null}return v($)}function H(Y){function $(ue,ye,pe,Oe,Te){var ve=ue[ye],ee=q(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type `"+ee+"` "+("supplied to `"+pe+"`, expected `object`."));var ce=t({},ue[ye],Y);for(var Ee in ce){var Re=Y[Ee];if(i(Y,Ee)&&typeof Re!="function")return Z(pe,Oe,Te,Ee,X(Re));if(!Re)return new y("Invalid "+Oe+" `"+Te+"` key `"+Ee+"` supplied to `"+pe+"`.\nBad object: "+JSON.stringify(ue[ye],null," ")+`
67
- Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var N=Re(ve,Ee,pe,Oe,Te+"."+Ee,n);if(N)return N}return null}return v($)}function B(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(B);if(Y===null||c(Y))return!0;var $=x(Y);if($){var ue=$.call(Y),ye;if($!==Y.entries){for(;!(ye=ue.next()).done;)if(!B(ye.value))return!1}else for(;!(ye=ue.next()).done;){var pe=ye.value;if(pe&&!B(pe[1]))return!1}}else return!1;return!0;default:return!1}}function K(Y,$){return Y==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function q(Y){var $=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":K($,Y)?"symbol":$}function X(Y){if(typeof Y>"u"||Y===null)return""+Y;var $=q(Y);if($==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return $}function fe(Y){var $=X(Y);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function ae(Y){return!Y.constructor||!Y.constructor.name?R:Y.constructor.name}return w.checkPropTypes=s,w.resetWarningCache=s.resetWarningCache,w.PropTypes=w,w},fc}var dc,Fh;function YT(){if(Fh)return dc;Fh=1;var e=cf();function t(){}function n(){}return n.resetWarningCache=t,dc=function(){function i(u,c,f,p,h,x){if(x!==e){var R=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw R.name="Invariant Violation",R}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},dc}var Wh;function wr(){if(Wh)return Sa.exports;if(Wh=1,process.env.NODE_ENV!=="production"){var e=ny(),t=!0;Sa.exports=GT()(e.isElement,t)}else Sa.exports=YT()();return Sa.exports}var ZT=wr();const b=yT(ZT);function iy(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=iy(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function at(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=iy(e))&&(i&&(i+=" "),i+=t);return i}function jr(e,t,n=void 0){const i={};for(const s in e){const a=e[s];let u="",c=!0;for(let f=0;f<a.length;f+=1){const p=a[f];p&&(u+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(u+=" "+n[p]))}i[s]=u}return i}function Za(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ff(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Za(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Oa={exports:{}},rt={};/**
66
+ */var uc,kh;function qT(){if(kh)return uc;kh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(h){return u[h]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return uc=s()?Object.assign:function(a,u){for(var c,f=i(a),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var x in c)t.call(c,x)&&(f[x]=c[x]);if(e){p=e(c);for(var R=0;R<p.length;R++)n.call(c,p[R])&&(f[p[R]]=c[p[R]])}}return f},uc}var lc,$h;function ff(){if($h)return lc;$h=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return lc=e,lc}var cc,Lh;function iy(){return Lh||(Lh=1,cc=Function.call.bind(Object.prototype.hasOwnProperty)),cc}var fc,zh;function GT(){if(zh)return fc;zh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ff(),n={},i=iy();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,p){if(process.env.NODE_ENV!=="production"){for(var h in a)if(i(a,h)){var x;try{if(typeof a[h]!="function"){var R=Error((f||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}x=a[h](u,h,f,c,null,t)}catch(O){x=O}if(x&&!(x instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof x+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),x instanceof Error&&!(x.message in n)){n[x.message]=!0;var w=p?p():"";e("Failed "+c+" type: "+x.message+(w??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},fc=s,fc}var dc,Fh;function YT(){if(Fh)return dc;Fh=1;var e=ry(),t=qT(),n=ff(),i=iy(),s=GT(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return dc=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function x(Y){var $=Y&&(p&&Y[p]||Y[h]);if(typeof $=="function")return $}var R="<<anonymous>>",w={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(),arrayOf:S,element:E(),elementType:C(),instanceOf:M,node:J(),objectOf:A,oneOf:D,oneOfType:z,shape:_,exact:H};function O(Y,$){return Y===$?Y!==0||1/Y===1/$:Y!==Y&&$!==$}function y(Y,$){this.message=Y,this.data=$&&typeof $=="object"?$:{},this.stack=""}y.prototype=Error.prototype;function v(Y){if(process.env.NODE_ENV!=="production")var $={},ue=0;function ye(Oe,Te,ve,ee,ce,Ee,Re){if(ee=ee||R,Ee=Ee||ve,Re!==n){if(f){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=ee+":"+ve;!$[W]&&ue<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ee+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[W]=!0,ue++)}}return Te[ve]==null?Oe?Te[ve]===null?new y("The "+ce+" `"+Ee+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new y("The "+ce+" `"+Ee+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:Y(Te,ve,ee,ce,Ee)}var pe=ye.bind(null,!1);return pe.isRequired=ye.bind(null,!0),pe}function g(Y){function $(ue,ye,pe,Oe,Te,ve){var ee=ue[ye],ce=V(ee);if(ce!==Y){var Ee=X(ee);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+Ee+"` supplied to `"+pe+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return v($)}function m(){return v(u)}function S(Y){function $(ue,ye,pe,Oe,Te){if(typeof Y!="function")return new y("Property `"+Te+"` of component `"+pe+"` has invalid PropType notation inside arrayOf.");var ve=ue[ye];if(!Array.isArray(ve)){var ee=V(ve);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected an array."))}for(var ce=0;ce<ve.length;ce++){var Ee=Y(ve,ce,pe,Oe,Te+"["+ce+"]",n);if(Ee instanceof Error)return Ee}return null}return v($)}function E(){function Y($,ue,ye,pe,Oe){var Te=$[ue];if(!c(Te)){var ve=V(Te);return new y("Invalid "+pe+" `"+Oe+"` of type "+("`"+ve+"` supplied to `"+ye+"`, expected a single ReactElement."))}return null}return v(Y)}function C(){function Y($,ue,ye,pe,Oe){var Te=$[ue];if(!e.isValidElementType(Te)){var ve=V(Te);return new y("Invalid "+pe+" `"+Oe+"` of type "+("`"+ve+"` supplied to `"+ye+"`, expected a single ReactElement type."))}return null}return v(Y)}function M(Y){function $(ue,ye,pe,Oe,Te){if(!(ue[ye]instanceof Y)){var ve=Y.name||R,ee=ae(ue[ye]);return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected ")+("instance of `"+ve+"`."))}return null}return v($)}function D(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function $(ue,ye,pe,Oe,Te){for(var ve=ue[ye],ee=0;ee<Y.length;ee++)if(O(ve,Y[ee]))return null;var ce=JSON.stringify(Y,function(Re,N){var W=X(N);return W==="symbol"?String(N):N});return new y("Invalid "+Oe+" `"+Te+"` of value `"+String(ve)+"` "+("supplied to `"+pe+"`, expected one of "+ce+"."))}return v($)}function A(Y){function $(ue,ye,pe,Oe,Te){if(typeof Y!="function")return new y("Property `"+Te+"` of component `"+pe+"` has invalid PropType notation inside objectOf.");var ve=ue[ye],ee=V(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type "+("`"+ee+"` supplied to `"+pe+"`, expected an object."));for(var ce in ve)if(i(ve,ce)){var Ee=Y(ve,ce,pe,Oe,Te+"."+ce,n);if(Ee instanceof Error)return Ee}return null}return v($)}function z(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var $=0;$<Y.length;$++){var ue=Y[$];if(typeof ue!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(ue)+" at index "+$+"."),u}function ye(pe,Oe,Te,ve,ee){for(var ce=[],Ee=0;Ee<Y.length;Ee++){var Re=Y[Ee],N=Re(pe,Oe,Te,ve,ee,n);if(N==null)return null;N.data&&i(N.data,"expectedType")&&ce.push(N.data.expectedType)}var W=ce.length>0?", expected one of type ["+ce.join(", ")+"]":"";return new y("Invalid "+ve+" `"+ee+"` supplied to "+("`"+Te+"`"+W+"."))}return v(ye)}function J(){function Y($,ue,ye,pe,Oe){return U($[ue])?null:new y("Invalid "+pe+" `"+Oe+"` supplied to "+("`"+ye+"`, expected a ReactNode."))}return v(Y)}function Z(Y,$,ue,ye,pe){return new y((Y||"React class")+": "+$+" type `"+ue+"."+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+pe+"`.")}function _(Y){function $(ue,ye,pe,Oe,Te){var ve=ue[ye],ee=V(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type `"+ee+"` "+("supplied to `"+pe+"`, expected `object`."));for(var ce in Y){var Ee=Y[ce];if(typeof Ee!="function")return Z(pe,Oe,Te,ce,X(Ee));var Re=Ee(ve,ce,pe,Oe,Te+"."+ce,n);if(Re)return Re}return null}return v($)}function H(Y){function $(ue,ye,pe,Oe,Te){var ve=ue[ye],ee=V(ve);if(ee!=="object")return new y("Invalid "+Oe+" `"+Te+"` of type `"+ee+"` "+("supplied to `"+pe+"`, expected `object`."));var ce=t({},ue[ye],Y);for(var Ee in ce){var Re=Y[Ee];if(i(Y,Ee)&&typeof Re!="function")return Z(pe,Oe,Te,Ee,X(Re));if(!Re)return new y("Invalid "+Oe+" `"+Te+"` key `"+Ee+"` supplied to `"+pe+"`.\nBad object: "+JSON.stringify(ue[ye],null," ")+`
67
+ Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var N=Re(ve,Ee,pe,Oe,Te+"."+Ee,n);if(N)return N}return null}return v($)}function U(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(U);if(Y===null||c(Y))return!0;var $=x(Y);if($){var ue=$.call(Y),ye;if($!==Y.entries){for(;!(ye=ue.next()).done;)if(!U(ye.value))return!1}else for(;!(ye=ue.next()).done;){var pe=ye.value;if(pe&&!U(pe[1]))return!1}}else return!1;return!0;default:return!1}}function K(Y,$){return Y==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function V(Y){var $=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":K($,Y)?"symbol":$}function X(Y){if(typeof Y>"u"||Y===null)return""+Y;var $=V(Y);if($==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return $}function fe(Y){var $=X(Y);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function ae(Y){return!Y.constructor||!Y.constructor.name?R:Y.constructor.name}return w.checkPropTypes=s,w.resetWarningCache=s.resetWarningCache,w.PropTypes=w,w},dc}var pc,Wh;function ZT(){if(Wh)return pc;Wh=1;var e=ff();function t(){}function n(){}return n.resetWarningCache=t,pc=function(){function i(u,c,f,p,h,x){if(x!==e){var R=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw R.name="Invariant Violation",R}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},pc}var Bh;function wr(){if(Bh)return Ea.exports;if(Bh=1,process.env.NODE_ENV!=="production"){var e=ry(),t=!0;Ea.exports=YT()(e.isElement,t)}else Ea.exports=ZT()();return Ea.exports}var XT=wr();const b=vT(XT);function oy(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=oy(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function at(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=oy(e))&&(i&&(i+=" "),i+=t);return i}function jr(e,t,n=void 0){const i={};for(const s in e){const a=e[s];let u="",c=!0;for(let f=0;f<a.length;f+=1){const p=a[f];p&&(u+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(u+=" "+n[p]))}i[s]=u}return i}function Ja(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>n.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${n} for the full message.`}function df(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ja(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ta={exports:{}},rt={};/**
68
68
  * @license React
69
69
  * react-is.production.js
70
70
  *
@@ -72,7 +72,7 @@ Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var N=Re(ve,Ee,pe,Oe,Te+
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var Bh;function XT(){if(Bh)return rt;Bh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),R=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function C(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case s:case i:case f:case p:case R:return y;default:switch(y=y&&y.$$typeof,y){case u:case c:case x:case h:return y;case a:return y;default:return v}}case t:return v}}}return rt.ContextConsumer=a,rt.ContextProvider=u,rt.Element=e,rt.ForwardRef=c,rt.Fragment=n,rt.Lazy=x,rt.Memo=h,rt.Portal=t,rt.Profiler=s,rt.StrictMode=i,rt.Suspense=f,rt.SuspenseList=p,rt.isContextConsumer=function(y){return C(y)===a},rt.isContextProvider=function(y){return C(y)===u},rt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},rt.isForwardRef=function(y){return C(y)===c},rt.isFragment=function(y){return C(y)===n},rt.isLazy=function(y){return C(y)===x},rt.isMemo=function(y){return C(y)===h},rt.isPortal=function(y){return C(y)===t},rt.isProfiler=function(y){return C(y)===s},rt.isStrictMode=function(y){return C(y)===i},rt.isSuspense=function(y){return C(y)===f},rt.isSuspenseList=function(y){return C(y)===p},rt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===s||y===i||y===f||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===x||y.$$typeof===h||y.$$typeof===u||y.$$typeof===a||y.$$typeof===c||y.$$typeof===w||y.getModuleId!==void 0)},rt.typeOf=C,rt}var it={};/**
75
+ */var Uh;function JT(){if(Uh)return rt;Uh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),R=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function O(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case s:case i:case f:case p:case R:return y;default:switch(y=y&&y.$$typeof,y){case u:case c:case x:case h:return y;case a:return y;default:return v}}case t:return v}}}return rt.ContextConsumer=a,rt.ContextProvider=u,rt.Element=e,rt.ForwardRef=c,rt.Fragment=n,rt.Lazy=x,rt.Memo=h,rt.Portal=t,rt.Profiler=s,rt.StrictMode=i,rt.Suspense=f,rt.SuspenseList=p,rt.isContextConsumer=function(y){return O(y)===a},rt.isContextProvider=function(y){return O(y)===u},rt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},rt.isForwardRef=function(y){return O(y)===c},rt.isFragment=function(y){return O(y)===n},rt.isLazy=function(y){return O(y)===x},rt.isMemo=function(y){return O(y)===h},rt.isPortal=function(y){return O(y)===t},rt.isProfiler=function(y){return O(y)===s},rt.isStrictMode=function(y){return O(y)===i},rt.isSuspense=function(y){return O(y)===f},rt.isSuspenseList=function(y){return O(y)===p},rt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===s||y===i||y===f||y===p||typeof y=="object"&&y!==null&&(y.$$typeof===x||y.$$typeof===h||y.$$typeof===u||y.$$typeof===a||y.$$typeof===c||y.$$typeof===w||y.getModuleId!==void 0)},rt.typeOf=O,rt}var it={};/**
76
76
  * @license React
77
77
  * react-is.development.js
78
78
  *
@@ -80,22 +80,22 @@ Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var N=Re(ve,Ee,pe,Oe,Te+
80
80
  *
81
81
  * This source code is licensed under the MIT license found in the
82
82
  * LICENSE file in the root directory of this source tree.
83
- */var Uh;function JT(){return Uh||(Uh=1,process.env.NODE_ENV!=="production"&&function(){function e(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case t:switch(y=y.type,y){case i:case a:case s:case p:case h:case w:return y;default:switch(y=y&&y.$$typeof,y){case c:case f:case R:case x:return y;case u:return y;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");it.ContextConsumer=u,it.ContextProvider=c,it.Element=t,it.ForwardRef=f,it.Fragment=i,it.Lazy=R,it.Memo=x,it.Portal=n,it.Profiler=a,it.StrictMode=s,it.Suspense=p,it.SuspenseList=h,it.isContextConsumer=function(y){return e(y)===u},it.isContextProvider=function(y){return e(y)===c},it.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},it.isForwardRef=function(y){return e(y)===f},it.isFragment=function(y){return e(y)===i},it.isLazy=function(y){return e(y)===R},it.isMemo=function(y){return e(y)===x},it.isPortal=function(y){return e(y)===n},it.isProfiler=function(y){return e(y)===a},it.isStrictMode=function(y){return e(y)===s},it.isSuspense=function(y){return e(y)===p},it.isSuspenseList=function(y){return e(y)===h},it.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===i||y===a||y===s||y===p||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===x||y.$$typeof===c||y.$$typeof===u||y.$$typeof===f||y.$$typeof===C||y.getModuleId!==void 0)},it.typeOf=e}()),it}var jh;function KT(){return jh||(jh=1,process.env.NODE_ENV==="production"?Oa.exports=XT():Oa.exports=JT()),Oa.exports}var xi=KT();function $r(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function oy(e){if(oe.isValidElement(e)||xi.isValidElementType(e)||!$r(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=oy(e[n])}),t}function yi(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return $r(e)&&$r(t)&&Object.keys(t).forEach(s=>{oe.isValidElement(t[s])||xi.isValidElementType(t[s])?i[s]=t[s]:$r(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&$r(e[s])?i[s]=yi(e[s],t[s],n):n.clone?i[s]=$r(t[s])?oy(t[s]):t[s]:i[s]=t[s]}),i}function os(e,t){return t?yi(e,t,{clone:!1}):e}const Hr=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function Hh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,s)=>{var u,c;const a=/min-width:\s*([0-9.]+)/;return+(((u=i.match(a))==null?void 0:u[1])||0)-+(((c=s.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((i,s)=>{const a=t[s];return delete i[s],i[s]=a,i},{...t}):t}function QT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function eC(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
84
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Za(18,`(${t})`));return null}const[,i,s]=n,a=Number.isNaN(+i)?i||0:+i;return e.containerQueries(s).up(a)}function tC(e){const t=(a,u)=>a.replace("@media",u?`@container ${u}`:"@container");function n(a,u){a.up=(...c)=>t(e.breakpoints.up(...c),u),a.down=(...c)=>t(e.breakpoints.down(...c),u),a.between=(...c)=>t(e.breakpoints.between(...c),u),a.only=(...c)=>t(e.breakpoints.only(...c),u),a.not=(...c)=>{const f=t(e.breakpoints.not(...c),u);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const i={},s=a=>(n(i,a),i);return n(s),{...e,containerQueries:s}}const yu={xs:0,sm:600,md:900,lg:1200,xl:1536},qh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yu[e]}px)`},nC={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:yu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function yr(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const a=i.breakpoints||qh;return t.reduce((u,c,f)=>(u[a.up(a.keys[f])]=n(t[f]),u),{})}if(typeof t=="object"){const a=i.breakpoints||qh;return Object.keys(t).reduce((u,c)=>{if(QT(a.keys,c)){const f=eC(i.containerQueries?i:nC,c);f&&(u[f]=n(t[c],c))}else if(Object.keys(a.values||yu).includes(c)){const f=a.up(c);u[f]=n(t[c],c)}else{const f=c;u[f]=t[f]}return u},{})}return n(t)}function rC(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,s)=>{const a=e.up(s);return i[a]={},i},{}))||{}}function Vh(e,t){return e.reduce((n,i)=>{const s=n[i];return(!s||Object.keys(s).length===0)&&delete n[i],n},t)}function vu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(i!=null)return i}return t.split(".").reduce((i,s)=>i&&i[s]!=null?i[s]:null,e)}function Xa(e,t,n,i=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||i:s=vu(e,n)||i,t&&(s=t(s,i,e)),s}function xt(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:s}=e,a=u=>{if(u[t]==null)return null;const c=u[t],f=u.theme,p=vu(f,i)||{};return yr(u,c,x=>{let R=Xa(p,s,x);return x===R&&typeof x=="string"&&(R=Xa(p,s,`${t}${x==="default"?"":ff(x)}`,x)),n===!1?R:{[n]:R}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Hr}:{},a.filterProps=[t],a}function iC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const oC={m:"margin",p:"padding"},sC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},aC=iC(e=>{if(e.length>2)if(Gh[e])e=Gh[e];else return[e];const[t,n]=e.split(""),i=oC[t],s=sC[n]||"";return Array.isArray(s)?s.map(a=>i+a):[i+s]}),bu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],uC=[...bu,...wu];function vs(e,t,n,i){const s=vu(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${a}.`),typeof s=="string"?s.startsWith("var(")&&a===0?0:s.startsWith("var(")&&a===1?s:`calc(${a} * ${s})`:s*a):Array.isArray(s)?a=>{if(typeof a=="string")return a;const u=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(u)?u>s.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${u} > ${s.length-1}, you need to add the missing values.`].join(`
83
+ */var jh;function KT(){return jh||(jh=1,process.env.NODE_ENV!=="production"&&function(){function e(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case t:switch(y=y.type,y){case i:case a:case s:case p:case h:case w:return y;default:switch(y=y&&y.$$typeof,y){case c:case f:case R:case x:return y;case u:return y;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),O=Symbol.for("react.client.reference");it.ContextConsumer=u,it.ContextProvider=c,it.Element=t,it.ForwardRef=f,it.Fragment=i,it.Lazy=R,it.Memo=x,it.Portal=n,it.Profiler=a,it.StrictMode=s,it.Suspense=p,it.SuspenseList=h,it.isContextConsumer=function(y){return e(y)===u},it.isContextProvider=function(y){return e(y)===c},it.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},it.isForwardRef=function(y){return e(y)===f},it.isFragment=function(y){return e(y)===i},it.isLazy=function(y){return e(y)===R},it.isMemo=function(y){return e(y)===x},it.isPortal=function(y){return e(y)===n},it.isProfiler=function(y){return e(y)===a},it.isStrictMode=function(y){return e(y)===s},it.isSuspense=function(y){return e(y)===p},it.isSuspenseList=function(y){return e(y)===h},it.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===i||y===a||y===s||y===p||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===x||y.$$typeof===c||y.$$typeof===u||y.$$typeof===f||y.$$typeof===O||y.getModuleId!==void 0)},it.typeOf=e}()),it}var Hh;function QT(){return Hh||(Hh=1,process.env.NODE_ENV==="production"?Ta.exports=JT():Ta.exports=KT()),Ta.exports}var xi=QT();function $r(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function sy(e){if(oe.isValidElement(e)||xi.isValidElementType(e)||!$r(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=sy(e[n])}),t}function yi(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return $r(e)&&$r(t)&&Object.keys(t).forEach(s=>{oe.isValidElement(t[s])||xi.isValidElementType(t[s])?i[s]=t[s]:$r(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&$r(e[s])?i[s]=yi(e[s],t[s],n):n.clone?i[s]=$r(t[s])?sy(t[s]):t[s]:i[s]=t[s]}),i}function ss(e,t){return t?yi(e,t,{clone:!1}):e}const Hr=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function Vh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,s)=>{var u,c;const a=/min-width:\s*([0-9.]+)/;return+(((u=i.match(a))==null?void 0:u[1])||0)-+(((c=s.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((i,s)=>{const a=t[s];return delete i[s],i[s]=a,i},{...t}):t}function eC(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tC(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
84
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ja(18,`(${t})`));return null}const[,i,s]=n,a=Number.isNaN(+i)?i||0:+i;return e.containerQueries(s).up(a)}function nC(e){const t=(a,u)=>a.replace("@media",u?`@container ${u}`:"@container");function n(a,u){a.up=(...c)=>t(e.breakpoints.up(...c),u),a.down=(...c)=>t(e.breakpoints.down(...c),u),a.between=(...c)=>t(e.breakpoints.between(...c),u),a.only=(...c)=>t(e.breakpoints.only(...c),u),a.not=(...c)=>{const f=t(e.breakpoints.not(...c),u);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const i={},s=a=>(n(i,a),i);return n(s),{...e,containerQueries:s}}const vu={xs:0,sm:600,md:900,lg:1200,xl:1536},qh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vu[e]}px)`},rC={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:vu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function yr(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const a=i.breakpoints||qh;return t.reduce((u,c,f)=>(u[a.up(a.keys[f])]=n(t[f]),u),{})}if(typeof t=="object"){const a=i.breakpoints||qh;return Object.keys(t).reduce((u,c)=>{if(eC(a.keys,c)){const f=tC(i.containerQueries?i:rC,c);f&&(u[f]=n(t[c],c))}else if(Object.keys(a.values||vu).includes(c)){const f=a.up(c);u[f]=n(t[c],c)}else{const f=c;u[f]=t[f]}return u},{})}return n(t)}function iC(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,s)=>{const a=e.up(s);return i[a]={},i},{}))||{}}function Gh(e,t){return e.reduce((n,i)=>{const s=n[i];return(!s||Object.keys(s).length===0)&&delete n[i],n},t)}function bu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(i!=null)return i}return t.split(".").reduce((i,s)=>i&&i[s]!=null?i[s]:null,e)}function Ka(e,t,n,i=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||i:s=bu(e,n)||i,t&&(s=t(s,i,e)),s}function xt(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:s}=e,a=u=>{if(u[t]==null)return null;const c=u[t],f=u.theme,p=bu(f,i)||{};return yr(u,c,x=>{let R=Ka(p,s,x);return x===R&&typeof x=="string"&&(R=Ka(p,s,`${t}${x==="default"?"":df(x)}`,x)),n===!1?R:{[n]:R}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Hr}:{},a.filterProps=[t],a}function oC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const sC={m:"margin",p:"padding"},aC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uC=oC(e=>{if(e.length>2)if(Yh[e])e=Yh[e];else return[e];const[t,n]=e.split(""),i=sC[t],s=aC[n]||"";return Array.isArray(s)?s.map(a=>i+a):[i+s]}),wu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],lC=[...wu,...xu];function bs(e,t,n,i){const s=bu(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${a}.`),typeof s=="string"?s.startsWith("var(")&&a===0?0:s.startsWith("var(")&&a===1?s:`calc(${a} * ${s})`:s*a):Array.isArray(s)?a=>{if(typeof a=="string")return a;const u=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(u)?u>s.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${u} > ${s.length-1}, you need to add the missing values.`].join(`
85
85
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
86
86
  `)));const c=s[u];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
87
- `)),()=>{})}function df(e){return vs(e,"spacing",8,"spacing")}function bs(e,t){return typeof t=="string"||t==null?t:e(t)}function lC(e,t){return n=>e.reduce((i,s)=>(i[s]=bs(t,n),i),{})}function cC(e,t,n,i){if(!t.includes(n))return null;const s=aC(n),a=lC(s,i),u=e[n];return yr(e,u,a)}function sy(e,t){const n=df(e.theme);return Object.keys(e).map(i=>cC(e,t,i,n)).reduce(os,{})}function pt(e){return sy(e,bu)}pt.propTypes=process.env.NODE_ENV!=="production"?bu.reduce((e,t)=>(e[t]=Hr,e),{}):{};pt.filterProps=bu;function ht(e){return sy(e,wu)}ht.propTypes=process.env.NODE_ENV!=="production"?wu.reduce((e,t)=>(e[t]=Hr,e),{}):{};ht.filterProps=wu;process.env.NODE_ENV!=="production"&&uC.reduce((e,t)=>(e[t]=Hr,e),{});function xu(...e){const t=e.reduce((i,s)=>(s.filterProps.forEach(a=>{i[a]=s}),i),{}),n=i=>Object.keys(i).reduce((s,a)=>t[a]?os(s,t[a](i)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,s)=>Object.assign(i,s.propTypes),{}):{},n.filterProps=e.reduce((i,s)=>i.concat(s.filterProps),[]),n}function En(e){return typeof e!="number"?e:`${e}px solid`}function Mn(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const fC=Mn("border",En),dC=Mn("borderTop",En),pC=Mn("borderRight",En),hC=Mn("borderBottom",En),mC=Mn("borderLeft",En),gC=Mn("borderColor"),yC=Mn("borderTopColor"),vC=Mn("borderRightColor"),bC=Mn("borderBottomColor"),wC=Mn("borderLeftColor"),xC=Mn("outline",En),SC=Mn("outlineColor"),Su=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vs(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:bs(t,i)});return yr(e,e.borderRadius,n)}return null};Su.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Hr}:{};Su.filterProps=["borderRadius"];xu(fC,dC,pC,hC,mC,gC,yC,vC,bC,wC,Su,xC,SC);const Eu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vs(e.theme,"spacing",8,"gap"),n=i=>({gap:bs(t,i)});return yr(e,e.gap,n)}return null};Eu.propTypes=process.env.NODE_ENV!=="production"?{gap:Hr}:{};Eu.filterProps=["gap"];const Ou=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vs(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:bs(t,i)});return yr(e,e.columnGap,n)}return null};Ou.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Hr}:{};Ou.filterProps=["columnGap"];const Tu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vs(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:bs(t,i)});return yr(e,e.rowGap,n)}return null};Tu.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Hr}:{};Tu.filterProps=["rowGap"];const EC=xt({prop:"gridColumn"}),OC=xt({prop:"gridRow"}),TC=xt({prop:"gridAutoFlow"}),CC=xt({prop:"gridAutoColumns"}),_C=xt({prop:"gridAutoRows"}),RC=xt({prop:"gridTemplateColumns"}),DC=xt({prop:"gridTemplateRows"}),MC=xt({prop:"gridTemplateAreas"}),PC=xt({prop:"gridArea"});xu(Eu,Ou,Tu,EC,OC,TC,CC,_C,RC,DC,MC,PC);function eo(e,t){return t==="grey"?t:e}const IC=xt({prop:"color",themeKey:"palette",transform:eo}),NC=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:eo}),AC=xt({prop:"backgroundColor",themeKey:"palette",transform:eo});xu(IC,NC,AC);function ln(e){return e<=1&&e!==0?`${e*100}%`:e}const kC=xt({prop:"width",transform:ln}),pf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,f;const i=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||yu[n];return i?((f=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:ln(n)}};return yr(e,e.maxWidth,t)}return null};pf.filterProps=["maxWidth"];const $C=xt({prop:"minWidth",transform:ln}),LC=xt({prop:"height",transform:ln}),zC=xt({prop:"maxHeight",transform:ln}),FC=xt({prop:"minHeight",transform:ln});xt({prop:"size",cssProperty:"width",transform:ln});xt({prop:"size",cssProperty:"height",transform:ln});const WC=xt({prop:"boxSizing"});xu(kC,pf,$C,LC,zC,FC,WC);const ws={border:{themeKey:"borders",transform:En},borderTop:{themeKey:"borders",transform:En},borderRight:{themeKey:"borders",transform:En},borderBottom:{themeKey:"borders",transform:En},borderLeft:{themeKey:"borders",transform:En},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:En},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Su},color:{themeKey:"palette",transform:eo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:eo},backgroundColor:{themeKey:"palette",transform:eo},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Eu},rowGap:{style:Tu},columnGap:{style:Ou},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ln},maxWidth:{style:pf},minWidth:{transform:ln},height:{transform:ln},maxHeight:{transform:ln},minHeight:{transform:ln},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function BC(...e){const t=e.reduce((i,s)=>i.concat(Object.keys(s)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function UC(e,t){return typeof e=="function"?e(t):e}function jC(){function e(n,i,s,a){const u={[n]:i,theme:s},c=a[n];if(!c)return{[n]:i};const{cssProperty:f=n,themeKey:p,transform:h,style:x}=c;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[n]:i};const R=vu(s,p)||{};return x?x(u):yr(u,i,C=>{let y=Xa(R,h,C);return C===y&&typeof C=="string"&&(y=Xa(R,h,`${n}${C==="default"?"":ff(C)}`,C)),f===!1?y:{[f]:y}})}function t(n){const{sx:i,theme:s={},nested:a}=n||{};if(!i)return null;const u=s.unstable_sxConfig??ws;function c(f){let p=f;if(typeof f=="function")p=f(s);else if(typeof f!="object")return f;if(!p)return null;const h=rC(s.breakpoints),x=Object.keys(h);let R=h;return Object.keys(p).forEach(w=>{const C=UC(p[w],s);if(C!=null)if(typeof C=="object")if(u[w])R=os(R,e(w,C,s,u));else{const y=yr({theme:s},C,v=>({[w]:v}));BC(y,C)?R[w]=t({sx:C,theme:s,nested:!0}):R=os(R,y)}else R=os(R,e(w,C,s,u))}),!a&&s.modularCssLayers?{"@layer sx":Hh(s,Vh(x,R))}:Hh(s,Vh(x,R))}return Array.isArray(i)?i.map(c):c(i)}return t}const Si=jC();Si.filterProps=["sx"];const HC=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??ws;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function qC(e){const{sx:t,...n}=e,{systemProps:i,otherProps:s}=HC(n);let a;return Array.isArray(t)?a=[i,...t]:typeof t=="function"?a=(...u)=>{const c=t(...u);return $r(c)?{...i,...c}:i}:a={...i,...t},{...s,sx:a}}function VC(e){for(var t=0,n,i=0,s=e.length;s>=4;++i,s-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var GC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function YC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ZC=/[A-Z]|^ms/g,XC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ay=function(t){return t.charCodeAt(1)===45},Yh=function(t){return t!=null&&typeof t!="boolean"},pc=YC(function(e){return ay(e)?e:e.replace(ZC,"-$&").toLowerCase()}),Zh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(XC,function(i,s,a){return Fr={name:s,styles:a,next:Fr},s})}return GC[t]!==1&&!ay(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ja(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Fr={name:s.name,styles:s.styles,next:Fr},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Fr={name:u.name,styles:u.styles,next:Fr},u=u.next;var c=a.styles+";";return c}return JC(e,t,n)}}var f=n;return f}function JC(e,t,n){var i="";if(Array.isArray(n))for(var s=0;s<n.length;s++)i+=Ja(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;Yh(c)&&(i+=pc(a)+":"+Zh(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&t==null)for(var f=0;f<u.length;f++)Yh(u[f])&&(i+=pc(a)+":"+Zh(a,u[f])+";");else{var p=Ja(e,t,u);switch(a){case"animation":case"animationName":{i+=pc(a)+":"+p+";";break}default:i+=a+"{"+p+"}"}}}return i}var Xh=/label:\s*([^\s;{]+)\s*(;|$)/g,Fr;function KC(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";Fr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Ja(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=Ja(n,t,e[c]),i){var f=a;s+=f[c]}Xh.lastIndex=0;for(var p="",h;(h=Xh.exec(s))!==null;)p+="-"+h[1];var x=VC(s)+p;return{name:x,styles:s,next:Fr}}/**
87
+ `)),()=>{})}function pf(e){return bs(e,"spacing",8,"spacing")}function ws(e,t){return typeof t=="string"||t==null?t:e(t)}function cC(e,t){return n=>e.reduce((i,s)=>(i[s]=ws(t,n),i),{})}function fC(e,t,n,i){if(!t.includes(n))return null;const s=uC(n),a=cC(s,i),u=e[n];return yr(e,u,a)}function ay(e,t){const n=pf(e.theme);return Object.keys(e).map(i=>fC(e,t,i,n)).reduce(ss,{})}function pt(e){return ay(e,wu)}pt.propTypes=process.env.NODE_ENV!=="production"?wu.reduce((e,t)=>(e[t]=Hr,e),{}):{};pt.filterProps=wu;function ht(e){return ay(e,xu)}ht.propTypes=process.env.NODE_ENV!=="production"?xu.reduce((e,t)=>(e[t]=Hr,e),{}):{};ht.filterProps=xu;process.env.NODE_ENV!=="production"&&lC.reduce((e,t)=>(e[t]=Hr,e),{});function Su(...e){const t=e.reduce((i,s)=>(s.filterProps.forEach(a=>{i[a]=s}),i),{}),n=i=>Object.keys(i).reduce((s,a)=>t[a]?ss(s,t[a](i)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,s)=>Object.assign(i,s.propTypes),{}):{},n.filterProps=e.reduce((i,s)=>i.concat(s.filterProps),[]),n}function En(e){return typeof e!="number"?e:`${e}px solid`}function Mn(e,t){return xt({prop:e,themeKey:"borders",transform:t})}const dC=Mn("border",En),pC=Mn("borderTop",En),hC=Mn("borderRight",En),mC=Mn("borderBottom",En),gC=Mn("borderLeft",En),yC=Mn("borderColor"),vC=Mn("borderTopColor"),bC=Mn("borderRightColor"),wC=Mn("borderBottomColor"),xC=Mn("borderLeftColor"),SC=Mn("outline",En),EC=Mn("outlineColor"),Eu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bs(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:ws(t,i)});return yr(e,e.borderRadius,n)}return null};Eu.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Hr}:{};Eu.filterProps=["borderRadius"];Su(dC,pC,hC,mC,gC,yC,vC,bC,wC,xC,Eu,SC,EC);const Ou=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bs(e.theme,"spacing",8,"gap"),n=i=>({gap:ws(t,i)});return yr(e,e.gap,n)}return null};Ou.propTypes=process.env.NODE_ENV!=="production"?{gap:Hr}:{};Ou.filterProps=["gap"];const Tu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bs(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:ws(t,i)});return yr(e,e.columnGap,n)}return null};Tu.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Hr}:{};Tu.filterProps=["columnGap"];const Cu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bs(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:ws(t,i)});return yr(e,e.rowGap,n)}return null};Cu.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Hr}:{};Cu.filterProps=["rowGap"];const OC=xt({prop:"gridColumn"}),TC=xt({prop:"gridRow"}),CC=xt({prop:"gridAutoFlow"}),_C=xt({prop:"gridAutoColumns"}),RC=xt({prop:"gridAutoRows"}),DC=xt({prop:"gridTemplateColumns"}),MC=xt({prop:"gridTemplateRows"}),PC=xt({prop:"gridTemplateAreas"}),IC=xt({prop:"gridArea"});Su(Ou,Tu,Cu,OC,TC,CC,_C,RC,DC,MC,PC,IC);function to(e,t){return t==="grey"?t:e}const NC=xt({prop:"color",themeKey:"palette",transform:to}),AC=xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:to}),kC=xt({prop:"backgroundColor",themeKey:"palette",transform:to});Su(NC,AC,kC);function ln(e){return e<=1&&e!==0?`${e*100}%`:e}const $C=xt({prop:"width",transform:ln}),hf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,f;const i=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||vu[n];return i?((f=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:ln(n)}};return yr(e,e.maxWidth,t)}return null};hf.filterProps=["maxWidth"];const LC=xt({prop:"minWidth",transform:ln}),zC=xt({prop:"height",transform:ln}),FC=xt({prop:"maxHeight",transform:ln}),WC=xt({prop:"minHeight",transform:ln});xt({prop:"size",cssProperty:"width",transform:ln});xt({prop:"size",cssProperty:"height",transform:ln});const BC=xt({prop:"boxSizing"});Su($C,hf,LC,zC,FC,WC,BC);const xs={border:{themeKey:"borders",transform:En},borderTop:{themeKey:"borders",transform:En},borderRight:{themeKey:"borders",transform:En},borderBottom:{themeKey:"borders",transform:En},borderLeft:{themeKey:"borders",transform:En},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:En},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Eu},color:{themeKey:"palette",transform:to},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:to},backgroundColor:{themeKey:"palette",transform:to},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ou},rowGap:{style:Cu},columnGap:{style:Tu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ln},maxWidth:{style:hf},minWidth:{transform:ln},height:{transform:ln},maxHeight:{transform:ln},minHeight:{transform:ln},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function UC(...e){const t=e.reduce((i,s)=>i.concat(Object.keys(s)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function jC(e,t){return typeof e=="function"?e(t):e}function HC(){function e(n,i,s,a){const u={[n]:i,theme:s},c=a[n];if(!c)return{[n]:i};const{cssProperty:f=n,themeKey:p,transform:h,style:x}=c;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[n]:i};const R=bu(s,p)||{};return x?x(u):yr(u,i,O=>{let y=Ka(R,h,O);return O===y&&typeof O=="string"&&(y=Ka(R,h,`${n}${O==="default"?"":df(O)}`,O)),f===!1?y:{[f]:y}})}function t(n){const{sx:i,theme:s={},nested:a}=n||{};if(!i)return null;const u=s.unstable_sxConfig??xs;function c(f){let p=f;if(typeof f=="function")p=f(s);else if(typeof f!="object")return f;if(!p)return null;const h=iC(s.breakpoints),x=Object.keys(h);let R=h;return Object.keys(p).forEach(w=>{const O=jC(p[w],s);if(O!=null)if(typeof O=="object")if(u[w])R=ss(R,e(w,O,s,u));else{const y=yr({theme:s},O,v=>({[w]:v}));UC(y,O)?R[w]=t({sx:O,theme:s,nested:!0}):R=ss(R,y)}else R=ss(R,e(w,O,s,u))}),!a&&s.modularCssLayers?{"@layer sx":Vh(s,Gh(x,R))}:Vh(s,Gh(x,R))}return Array.isArray(i)?i.map(c):c(i)}return t}const Si=HC();Si.filterProps=["sx"];const VC=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??xs;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function qC(e){const{sx:t,...n}=e,{systemProps:i,otherProps:s}=VC(n);let a;return Array.isArray(t)?a=[i,...t]:typeof t=="function"?a=(...u)=>{const c=t(...u);return $r(c)?{...i,...c}:i}:a={...i,...t},{...s,sx:a}}function GC(e){for(var t=0,n,i=0,s=e.length;s>=4;++i,s-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var YC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ZC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XC=/[A-Z]|^ms/g,JC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uy=function(t){return t.charCodeAt(1)===45},Zh=function(t){return t!=null&&typeof t!="boolean"},hc=ZC(function(e){return uy(e)?e:e.replace(XC,"-$&").toLowerCase()}),Xh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JC,function(i,s,a){return Fr={name:s,styles:a,next:Fr},s})}return YC[t]!==1&&!uy(t)&&typeof n=="number"&&n!==0?n+"px":n};function Qa(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Fr={name:s.name,styles:s.styles,next:Fr},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Fr={name:u.name,styles:u.styles,next:Fr},u=u.next;var c=a.styles+";";return c}return KC(e,t,n)}}var f=n;return f}function KC(e,t,n){var i="";if(Array.isArray(n))for(var s=0;s<n.length;s++)i+=Qa(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;Zh(c)&&(i+=hc(a)+":"+Xh(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&t==null)for(var f=0;f<u.length;f++)Zh(u[f])&&(i+=hc(a)+":"+Xh(a,u[f])+";");else{var p=Qa(e,t,u);switch(a){case"animation":case"animationName":{i+=hc(a)+":"+p+";";break}default:i+=a+"{"+p+"}"}}}return i}var Jh=/label:\s*([^\s;{]+)\s*(;|$)/g,Fr;function QC(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";Fr=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Qa(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=Qa(n,t,e[c]),i){var f=a;s+=f[c]}Jh.lastIndex=0;for(var p="",h;(h=Jh.exec(s))!==null;)p+="-"+h[1];var x=GC(s)+p;return{name:x,styles:s,next:Fr}}/**
88
88
  * @mui/styled-engine v7.3.3
89
89
  *
90
90
  * @license MIT
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
- */function uy(e,t){const n=pT(e,t);return process.env.NODE_ENV!=="production"?(...i)=>{const s=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
94
- `)):i.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...i)}:n}function QC(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Jh=[];function vi(e){return Jh[0]=e,KC(Jh)}const e_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function t_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...s}=e,a=e_(t),u=Object.keys(a);function c(R){return`@media (min-width:${typeof t[R]=="number"?t[R]:R}${n})`}function f(R){return`@media (max-width:${(typeof t[R]=="number"?t[R]:R)-i/100}${n})`}function p(R,w){const C=u.indexOf(w);return`@media (min-width:${typeof t[R]=="number"?t[R]:R}${n}) and (max-width:${(C!==-1&&typeof t[u[C]]=="number"?t[u[C]]:w)-i/100}${n})`}function h(R){return u.indexOf(R)+1<u.length?p(R,u[u.indexOf(R)+1]):c(R)}function x(R){const w=u.indexOf(R);return w===0?c(u[1]):w===u.length-1?f(u[w]):p(R,u[u.indexOf(R)+1]).replace("@media","@media not all and")}return{keys:u,values:a,up:c,down:f,between:p,only:h,not:x,unit:n,...s}}const n_={borderRadius:4};function ly(e=8,t=df({spacing:e})){if(e.mui)return e;const n=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function r_(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function hf(e={},...t){const{breakpoints:n={},palette:i={},spacing:s,shape:a={},...u}=e,c=t_(n),f=ly(s);let p=yi({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:f,shape:{...n_,...a}},u);return p=tC(p),p.applyStyles=r_,p=t.reduce((h,x)=>yi(h,x),p),p.unstable_sxConfig={...ws,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(x){return Si({sx:x,theme:this})},p}function i_(e){return Object.keys(e).length===0}function o_(e=null){const t=oe.useContext(gu.ThemeContext);return!t||i_(t)?e:t}const s_=hf();function cy(e=s_){return o_(e)}function a_(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:s}=e,a=uy("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Si);return oe.forwardRef(function(f,p){const h=cy(n),{className:x,component:R="div",...w}=qC(f);return F.jsx(a,{as:R,ref:p,className:at(x,s?s(i):i),theme:t&&h[t]||h,...w})})}function fy(e,t=""){return e.displayName||e.name||t}function Kh(e,t,n){const i=fy(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function u_(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fy(e,"Component");if(typeof e=="object")switch(e.$$typeof){case xi.ForwardRef:return Kh(e,e.render,"ForwardRef");case xi.Memo:return Kh(e,e.type,"memo");default:return}}}function dy(e){const{variants:t,...n}=e,i={variants:t,style:vi(n),isProcessed:!0};return i.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=vi(s.style))}),i}const l_=hf();function hc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function di(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function c_(e){return e?(t,n)=>n[e]:null}function f_(e,t,n){e.theme=m_(e.theme)?n:e.theme[t]||e.theme}function Ua(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(s=>Ua(e,s,n));if(Array.isArray(i==null?void 0:i.variants)){let s;if(i.isProcessed)s=n?di(i.style,n):i.style;else{const{variants:a,...u}=i;s=n?di(vi(u),n):u}return py(e,i.variants,[s],n)}return i!=null&&i.isProcessed?n?di(vi(i.style),n):i.style:n?di(vi(i),n):i}function py(e,t,n=[],i=void 0){var a;let s;e:for(let u=0;u<t.length;u+=1){const c=t[u];if(typeof c.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(s))continue}else for(const f in c.props)if(e[f]!==c.props[f]&&((a=e.ownerState)==null?void 0:a[f])!==c.props[f])continue e;typeof c.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),n.push(i?di(vi(c.style(s)),i):c.style(s))):n.push(i?di(vi(c.style),i):c.style)}return n}function d_(e={}){const{themeId:t,defaultTheme:n=l_,rootShouldForwardProp:i=hc,slotShouldForwardProp:s=hc}=e;function a(c){f_(c,t,n)}return(c,f={})=>{QC(c,M=>M.filter(D=>D!==Si));const{name:p,slot:h,skipVariantsResolver:x,skipSx:R,overridesResolver:w=c_(hy(h)),...C}=f,y=p&&p.startsWith("Mui")||h?"components":"custom",v=x!==void 0?x:h&&h!=="Root"&&h!=="root"||!1,g=R||!1;let m=hc;h==="Root"||h==="root"?m=i:h?m=s:g_(c)&&(m=void 0);const S=uy(c,{shouldForwardProp:m,label:h_(p,h),...C}),E=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(A){return Ua(A,M,A.theme.modularCssLayers?y:void 0)};if($r(M)){const D=dy(M);return function(z){return D.variants?Ua(z,D,z.theme.modularCssLayers?y:void 0):z.theme.modularCssLayers?di(D.style,y):D.style}}return M},T=(...M)=>{const D=[],A=M.map(E),z=[];if(D.push(a),p&&w&&z.push(function(H){var X,fe;const K=(fe=(X=H.theme.components)==null?void 0:X[p])==null?void 0:fe.styleOverrides;if(!K)return null;const q={};for(const ae in K)q[ae]=Ua(H,K[ae],H.theme.modularCssLayers?"theme":void 0);return w(H,q)}),p&&!v&&z.push(function(H){var q,X;const B=H.theme,K=(X=(q=B==null?void 0:B.components)==null?void 0:q[p])==null?void 0:X.variants;return K?py(H,K,[],H.theme.modularCssLayers?"theme":void 0):null}),g||z.push(Si),Array.isArray(A[0])){const _=A.shift(),H=new Array(D.length).fill(""),B=new Array(z.length).fill("");let K;K=[...H,..._,...B],K.raw=[...H,..._.raw,...B],D.unshift(K)}const J=[...D,...A,...z],Z=S(...J);return c.muiName&&(Z.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(Z.displayName=p_(p,h,c)),Z};return S.withConfig&&(T.withConfig=S.withConfig),T}}function p_(e,t,n){return e?`${e}${ff(t||"")}`:`Styled(${u_(n)})`}function h_(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${hy(t||"Root")}`),n}function m_(e){for(const t in e)return!1;return!0}function g_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hy(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ic(e,t,n=!1){const i={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const a=s;if(a==="components"||a==="slots")i[a]={...e[a],...i[a]};else if(a==="componentsProps"||a==="slotProps"){const u=e[a],c=t[a];if(!c)i[a]=u||{};else if(!u)i[a]=c;else{i[a]={...c};for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f)){const p=f;i[a][p]=Ic(u[p],c[p],n)}}}else a==="className"&&n&&t.className?i.className=at(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?i.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:i[a]===void 0&&(i[a]=e[a])}return i}function y_(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function mf(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),y_(e,t,n)}function v_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((i,s)=>s<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Ur(e){if(e.type)return e;if(e.charAt(0)==="#")return Ur(v_(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
95
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Za(9,e));let i=e.substring(t+1,e.length-1),s;if(n==="color"){if(i=i.split(" "),s=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
96
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Za(10,s))}else i=i.split(",");return i=i.map(a=>parseFloat(a)),{type:n,values:i,colorSpace:s}}const b_=e=>{const t=Ur(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},Ko=(e,t)=>{try{return b_(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Cu(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function my(e){e=Ur(e);const{values:t}=e,n=t[0],i=t[1]/100,s=t[2]/100,a=i*Math.min(s,1-s),u=(p,h=(p+n/30)%12)=>s-a*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const f=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(c+="a",f.push(t[3])),Cu({type:c,values:f})}function Nc(e){e=Ur(e);let t=e.type==="hsl"||e.type==="hsla"?Ur(my(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Qh(e,t){const n=Nc(e),i=Nc(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Ka(e,t){return e=Ur(e),t=mf(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Cu(e)}function ri(e,t,n){try{return Ka(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function _u(e,t){if(e=Ur(e),t=mf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Cu(e)}function tt(e,t,n){try{return _u(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ru(e,t){if(e=Ur(e),t=mf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Cu(e)}function nt(e,t,n){try{return Ru(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function gy(e,t=.15){return Nc(e)>.5?_u(e,t):Ru(e,t)}function Ta(e,t,n){try{return gy(e,t)}catch{return e}}const w_=oe.createContext();process.env.NODE_ENV!=="production"&&(b.node,b.bool);const yy=()=>oe.useContext(w_)??!1,x_=oe.createContext(void 0);process.env.NODE_ENV!=="production"&&(b.node,b.object);function S_(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const s=t.components[n];return s.defaultProps?Ic(s.defaultProps,i,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Ic(s,i,t.components.mergeClassNameAndStyle):i}function E_({props:e,name:t}){const n=oe.useContext(x_);return S_({props:e,name:t,theme:{components:n}})}const em={theme:void 0};function O_(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(em.theme=s.theme,a=dy(e(em)),t=a,n=s.theme),a}}function T_(e=""){function t(...i){if(!i.length)return"";const s=i[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...i.slice(1))})`:`, ${s}`}return(i,...s)=>`var(--${e?`${e}-`:""}${i}${t(...s)})`}const tm=(e,t,n,i=[])=>{let s=e;t.forEach((a,u)=>{u===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=i.includes(a)?[]:{}),s=s[a])})},C_=(e,t,n)=>{function i(s,a=[],u=[]){Object.entries(s).forEach(([c,f])=>{(!n||n&&!n([...a,c]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?i(f,[...a,c],Array.isArray(f)?[...u,c]:u):t([...a,c],f,u))})}i(e)},__=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function mc(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},s={},a={},u={};return C_(e,(c,f,p)=>{if((typeof f=="string"||typeof f=="number")&&(!i||!i(c,f))){const h=`--${n?`${n}-`:""}${c.join("-")}`,x=__(c,f);Object.assign(s,{[h]:x}),tm(a,c,`var(${h})`,p),tm(u,c,`var(${h}, ${x})`,p)}},c=>c[0]==="vars"),{css:s,vars:a,varsWithDefaults:u}}function R_(e,t={}){const{getSelector:n=g,disableCssColorScheme:i,colorSchemeSelector:s,enableContrastVars:a}=t,{colorSchemes:u={},components:c,defaultColorScheme:f="light",...p}=e,{vars:h,css:x,varsWithDefaults:R}=mc(p,t);let w=R;const C={},{[f]:y,...v}=u;if(Object.entries(v||{}).forEach(([E,T])=>{const{vars:M,css:D,varsWithDefaults:A}=mc(T,t);w=yi(w,A),C[E]={css:D,vars:M}}),y){const{css:E,vars:T,varsWithDefaults:M}=mc(y,t);w=yi(w,M),C[f]={css:E,vars:T}}function g(E,T){var D,A;let M=s;if(s==="class"&&(M=".%s"),s==="data"&&(M="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(M=`[${s}="%s"]`),E){if(M==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((A=(D=u[E])==null?void 0:D.palette)==null?void 0:A.mode)||E})`]:{":root":T}};if(M)return e.defaultColorScheme===E?`:root, ${M.replace("%s",String(E))}`:M.replace("%s",String(E))}return":root"}return{vars:w,generateThemeVars:()=>{let E={...h};return Object.entries(C).forEach(([,{vars:T}])=>{E=yi(E,T)}),E},generateStyleSheets:()=>{var z,J;const E=[],T=e.defaultColorScheme||"light";function M(Z,_){Object.keys(_).length&&E.push(typeof Z=="string"?{[Z]:{..._}}:Z)}M(n(void 0,{...x}),x);const{[T]:D,...A}=C;if(D){const{css:Z}=D,_=(J=(z=u[T])==null?void 0:z.palette)==null?void 0:J.mode,H=!i&&_?{colorScheme:_,...Z}:{...Z};M(n(T,{...H}),H)}return Object.entries(A).forEach(([Z,{css:_}])=>{var K,q;const H=(q=(K=u[Z])==null?void 0:K.palette)==null?void 0:q.mode,B=!i&&H?{colorScheme:H,..._}:{..._};M(n(Z,{...B}),B)}),a&&E.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),E}}}function D_(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vy(e){if(oe.isValidElement(e)||xi.isValidElementType(e)||!Lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vy(e[n])}),t}function bi(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Lr(e)&&Lr(t)&&Object.keys(t).forEach(s=>{oe.isValidElement(t[s])||xi.isValidElementType(t[s])?i[s]=t[s]:Lr(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Lr(e[s])?i[s]=bi(e[s],t[s],n):n.clone?i[s]=Lr(t[s])?vy(t[s]):t[s]:i[s]=t[s]}),i}const cs={black:"#000",white:"#fff"},M_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Bi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ui={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Lo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ji={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Hi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},qi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function by(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:cs.white,default:cs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const wy=by();function xy(){return{text:{primary:cs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:cs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ac=xy();function nm(e,t,n,i){const s=i.light||i,a=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ru(e.main,s):t==="dark"&&(e.dark=_u(e.main,a)))}function rm(e,t,n,i,s){const a=s.light||s,u=s.dark||s*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(u*100).toFixed(0)}%)`))}function P_(e="light"){return e==="dark"?{main:ji[200],light:ji[50],dark:ji[400]}:{main:ji[700],light:ji[400],dark:ji[800]}}function I_(e="light"){return e==="dark"?{main:Bi[200],light:Bi[50],dark:Bi[400]}:{main:Bi[500],light:Bi[300],dark:Bi[700]}}function N_(e="light"){return e==="dark"?{main:Ui[500],light:Ui[300],dark:Ui[700]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function A_(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function k_(e="light"){return e==="dark"?{main:qi[400],light:qi[300],dark:qi[700]}:{main:qi[800],light:qi[500],dark:qi[900]}}function $_(e="light"){return e==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:"#ed6c02",light:Lo[500],dark:Lo[900]}}function L_(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function gf(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:s,...a}=e,u=e.primary||P_(t),c=e.secondary||I_(t),f=e.error||N_(t),p=e.info||A_(t),h=e.success||k_(t),x=e.warning||$_(t);function R(v){if(s)return L_(v);const g=Qh(v,Ac.text.primary)>=n?Ac.text.primary:wy.text.primary;if(process.env.NODE_ENV!=="production"){const m=Qh(v,g);m<3&&console.error([`MUI: The contrast ratio of ${m}:1 for ${g} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
93
+ */function ly(e,t){const n=hT(e,t);return process.env.NODE_ENV!=="production"?(...i)=>{const s=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
94
+ `)):i.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...i)}:n}function e_(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Kh=[];function vi(e){return Kh[0]=e,QC(Kh)}const t_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>({...n,[i.key]:i.val}),{})};function n_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...s}=e,a=t_(t),u=Object.keys(a);function c(R){return`@media (min-width:${typeof t[R]=="number"?t[R]:R}${n})`}function f(R){return`@media (max-width:${(typeof t[R]=="number"?t[R]:R)-i/100}${n})`}function p(R,w){const O=u.indexOf(w);return`@media (min-width:${typeof t[R]=="number"?t[R]:R}${n}) and (max-width:${(O!==-1&&typeof t[u[O]]=="number"?t[u[O]]:w)-i/100}${n})`}function h(R){return u.indexOf(R)+1<u.length?p(R,u[u.indexOf(R)+1]):c(R)}function x(R){const w=u.indexOf(R);return w===0?c(u[1]):w===u.length-1?f(u[w]):p(R,u[u.indexOf(R)+1]).replace("@media","@media not all and")}return{keys:u,values:a,up:c,down:f,between:p,only:h,not:x,unit:n,...s}}const r_={borderRadius:4};function cy(e=8,t=pf({spacing:e})){if(e.mui)return e;const n=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function i_(e,t){var i;const n=this;if(n.vars){if(!((i=n.colorSchemes)!=null&&i[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function mf(e={},...t){const{breakpoints:n={},palette:i={},spacing:s,shape:a={},...u}=e,c=n_(n),f=cy(s);let p=yi({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:f,shape:{...r_,...a}},u);return p=nC(p),p.applyStyles=i_,p=t.reduce((h,x)=>yi(h,x),p),p.unstable_sxConfig={...xs,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(x){return Si({sx:x,theme:this})},p}function o_(e){return Object.keys(e).length===0}function s_(e=null){const t=oe.useContext(yu.ThemeContext);return!t||o_(t)?e:t}const a_=mf();function fy(e=a_){return s_(e)}function u_(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:s}=e,a=ly("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Si);return oe.forwardRef(function(f,p){const h=fy(n),{className:x,component:R="div",...w}=qC(f);return F.jsx(a,{as:R,ref:p,className:at(x,s?s(i):i),theme:t&&h[t]||h,...w})})}function dy(e,t=""){return e.displayName||e.name||t}function Qh(e,t,n){const i=dy(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function l_(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dy(e,"Component");if(typeof e=="object")switch(e.$$typeof){case xi.ForwardRef:return Qh(e,e.render,"ForwardRef");case xi.Memo:return Qh(e,e.type,"memo");default:return}}}function py(e){const{variants:t,...n}=e,i={variants:t,style:vi(n),isProcessed:!0};return i.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=vi(s.style))}),i}const c_=mf();function mc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function di(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function f_(e){return e?(t,n)=>n[e]:null}function d_(e,t,n){e.theme=g_(e.theme)?n:e.theme[t]||e.theme}function ja(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(s=>ja(e,s,n));if(Array.isArray(i==null?void 0:i.variants)){let s;if(i.isProcessed)s=n?di(i.style,n):i.style;else{const{variants:a,...u}=i;s=n?di(vi(u),n):u}return hy(e,i.variants,[s],n)}return i!=null&&i.isProcessed?n?di(vi(i.style),n):i.style:n?di(vi(i),n):i}function hy(e,t,n=[],i=void 0){var a;let s;e:for(let u=0;u<t.length;u+=1){const c=t[u];if(typeof c.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(s))continue}else for(const f in c.props)if(e[f]!==c.props[f]&&((a=e.ownerState)==null?void 0:a[f])!==c.props[f])continue e;typeof c.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),n.push(i?di(vi(c.style(s)),i):c.style(s))):n.push(i?di(vi(c.style),i):c.style)}return n}function p_(e={}){const{themeId:t,defaultTheme:n=c_,rootShouldForwardProp:i=mc,slotShouldForwardProp:s=mc}=e;function a(c){d_(c,t,n)}return(c,f={})=>{e_(c,M=>M.filter(D=>D!==Si));const{name:p,slot:h,skipVariantsResolver:x,skipSx:R,overridesResolver:w=f_(my(h)),...O}=f,y=p&&p.startsWith("Mui")||h?"components":"custom",v=x!==void 0?x:h&&h!=="Root"&&h!=="root"||!1,g=R||!1;let m=mc;h==="Root"||h==="root"?m=i:h?m=s:y_(c)&&(m=void 0);const S=ly(c,{shouldForwardProp:m,label:m_(p,h),...O}),E=M=>{if(M.__emotion_real===M)return M;if(typeof M=="function")return function(A){return ja(A,M,A.theme.modularCssLayers?y:void 0)};if($r(M)){const D=py(M);return function(z){return D.variants?ja(z,D,z.theme.modularCssLayers?y:void 0):z.theme.modularCssLayers?di(D.style,y):D.style}}return M},C=(...M)=>{const D=[],A=M.map(E),z=[];if(D.push(a),p&&w&&z.push(function(H){var X,fe;const K=(fe=(X=H.theme.components)==null?void 0:X[p])==null?void 0:fe.styleOverrides;if(!K)return null;const V={};for(const ae in K)V[ae]=ja(H,K[ae],H.theme.modularCssLayers?"theme":void 0);return w(H,V)}),p&&!v&&z.push(function(H){var V,X;const U=H.theme,K=(X=(V=U==null?void 0:U.components)==null?void 0:V[p])==null?void 0:X.variants;return K?hy(H,K,[],H.theme.modularCssLayers?"theme":void 0):null}),g||z.push(Si),Array.isArray(A[0])){const _=A.shift(),H=new Array(D.length).fill(""),U=new Array(z.length).fill("");let K;K=[...H,..._,...U],K.raw=[...H,..._.raw,...U],D.unshift(K)}const J=[...D,...A,...z],Z=S(...J);return c.muiName&&(Z.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(Z.displayName=h_(p,h,c)),Z};return S.withConfig&&(C.withConfig=S.withConfig),C}}function h_(e,t,n){return e?`${e}${df(t||"")}`:`Styled(${l_(n)})`}function m_(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${my(t||"Root")}`),n}function g_(e){for(const t in e)return!1;return!0}function y_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function my(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Nc(e,t,n=!1){const i={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const a=s;if(a==="components"||a==="slots")i[a]={...e[a],...i[a]};else if(a==="componentsProps"||a==="slotProps"){const u=e[a],c=t[a];if(!c)i[a]=u||{};else if(!u)i[a]=c;else{i[a]={...c};for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f)){const p=f;i[a][p]=Nc(u[p],c[p],n)}}}else a==="className"&&n&&t.className?i.className=at(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?i.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:i[a]===void 0&&(i[a]=e[a])}return i}function v_(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function gf(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),v_(e,t,n)}function b_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((i,s)=>s<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Ur(e){if(e.type)return e;if(e.charAt(0)==="#")return Ur(b_(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
95
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ja(9,e));let i=e.substring(t+1,e.length-1),s;if(n==="color"){if(i=i.split(" "),s=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
96
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ja(10,s))}else i=i.split(",");return i=i.map(a=>parseFloat(a)),{type:n,values:i,colorSpace:s}}const w_=e=>{const t=Ur(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},Qo=(e,t)=>{try{return w_(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function _u(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function gy(e){e=Ur(e);const{values:t}=e,n=t[0],i=t[1]/100,s=t[2]/100,a=i*Math.min(s,1-s),u=(p,h=(p+n/30)%12)=>s-a*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const f=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(c+="a",f.push(t[3])),_u({type:c,values:f})}function Ac(e){e=Ur(e);let t=e.type==="hsl"||e.type==="hsla"?Ur(gy(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function em(e,t){const n=Ac(e),i=Ac(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function eu(e,t){return e=Ur(e),t=gf(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_u(e)}function ri(e,t,n){try{return eu(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ru(e,t){if(e=Ur(e),t=gf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return _u(e)}function tt(e,t,n){try{return Ru(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Du(e,t){if(e=Ur(e),t=gf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return _u(e)}function nt(e,t,n){try{return Du(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function yy(e,t=.15){return Ac(e)>.5?Ru(e,t):Du(e,t)}function Ca(e,t,n){try{return yy(e,t)}catch{return e}}const x_=oe.createContext();process.env.NODE_ENV!=="production"&&(b.node,b.bool);const vy=()=>oe.useContext(x_)??!1,S_=oe.createContext(void 0);process.env.NODE_ENV!=="production"&&(b.node,b.object);function E_(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const s=t.components[n];return s.defaultProps?Nc(s.defaultProps,i,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Nc(s,i,t.components.mergeClassNameAndStyle):i}function O_({props:e,name:t}){const n=oe.useContext(S_);return E_({props:e,name:t,theme:{components:n}})}const tm={theme:void 0};function T_(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(tm.theme=s.theme,a=py(e(tm)),t=a,n=s.theme),a}}function C_(e=""){function t(...i){if(!i.length)return"";const s=i[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...i.slice(1))})`:`, ${s}`}return(i,...s)=>`var(--${e?`${e}-`:""}${i}${t(...s)})`}const nm=(e,t,n,i=[])=>{let s=e;t.forEach((a,u)=>{u===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=i.includes(a)?[]:{}),s=s[a])})},__=(e,t,n)=>{function i(s,a=[],u=[]){Object.entries(s).forEach(([c,f])=>{(!n||n&&!n([...a,c]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?i(f,[...a,c],Array.isArray(f)?[...u,c]:u):t([...a,c],f,u))})}i(e)},R_=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function gc(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},s={},a={},u={};return __(e,(c,f,p)=>{if((typeof f=="string"||typeof f=="number")&&(!i||!i(c,f))){const h=`--${n?`${n}-`:""}${c.join("-")}`,x=R_(c,f);Object.assign(s,{[h]:x}),nm(a,c,`var(${h})`,p),nm(u,c,`var(${h}, ${x})`,p)}},c=>c[0]==="vars"),{css:s,vars:a,varsWithDefaults:u}}function D_(e,t={}){const{getSelector:n=g,disableCssColorScheme:i,colorSchemeSelector:s,enableContrastVars:a}=t,{colorSchemes:u={},components:c,defaultColorScheme:f="light",...p}=e,{vars:h,css:x,varsWithDefaults:R}=gc(p,t);let w=R;const O={},{[f]:y,...v}=u;if(Object.entries(v||{}).forEach(([E,C])=>{const{vars:M,css:D,varsWithDefaults:A}=gc(C,t);w=yi(w,A),O[E]={css:D,vars:M}}),y){const{css:E,vars:C,varsWithDefaults:M}=gc(y,t);w=yi(w,M),O[f]={css:E,vars:C}}function g(E,C){var D,A;let M=s;if(s==="class"&&(M=".%s"),s==="data"&&(M="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(M=`[${s}="%s"]`),E){if(M==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((A=(D=u[E])==null?void 0:D.palette)==null?void 0:A.mode)||E})`]:{":root":C}};if(M)return e.defaultColorScheme===E?`:root, ${M.replace("%s",String(E))}`:M.replace("%s",String(E))}return":root"}return{vars:w,generateThemeVars:()=>{let E={...h};return Object.entries(O).forEach(([,{vars:C}])=>{E=yi(E,C)}),E},generateStyleSheets:()=>{var z,J;const E=[],C=e.defaultColorScheme||"light";function M(Z,_){Object.keys(_).length&&E.push(typeof Z=="string"?{[Z]:{..._}}:Z)}M(n(void 0,{...x}),x);const{[C]:D,...A}=O;if(D){const{css:Z}=D,_=(J=(z=u[C])==null?void 0:z.palette)==null?void 0:J.mode,H=!i&&_?{colorScheme:_,...Z}:{...Z};M(n(C,{...H}),H)}return Object.entries(A).forEach(([Z,{css:_}])=>{var K,V;const H=(V=(K=u[Z])==null?void 0:K.palette)==null?void 0:V.mode,U=!i&&H?{colorScheme:H,..._}:{..._};M(n(Z,{...U}),U)}),a&&E.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),E}}}function M_(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function by(e){if(oe.isValidElement(e)||xi.isValidElementType(e)||!Lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=by(e[n])}),t}function bi(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Lr(e)&&Lr(t)&&Object.keys(t).forEach(s=>{oe.isValidElement(t[s])||xi.isValidElementType(t[s])?i[s]=t[s]:Lr(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Lr(e[s])?i[s]=bi(e[s],t[s],n):n.clone?i[s]=Lr(t[s])?by(t[s]):t[s]:i[s]=t[s]}),i}const fs={black:"#000",white:"#fff"},P_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Bi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ui={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},zo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ji={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Hi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Vi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wy(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:fs.white,default:fs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const xy=wy();function Sy(){return{text:{primary:fs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:fs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const kc=Sy();function rm(e,t,n,i){const s=i.light||i,a=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Du(e.main,s):t==="dark"&&(e.dark=Ru(e.main,a)))}function im(e,t,n,i,s){const a=s.light||s,u=s.dark||s*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(u*100).toFixed(0)}%)`))}function I_(e="light"){return e==="dark"?{main:ji[200],light:ji[50],dark:ji[400]}:{main:ji[700],light:ji[400],dark:ji[800]}}function N_(e="light"){return e==="dark"?{main:Bi[200],light:Bi[50],dark:Bi[400]}:{main:Bi[500],light:Bi[300],dark:Bi[700]}}function A_(e="light"){return e==="dark"?{main:Ui[500],light:Ui[300],dark:Ui[700]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function k_(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function $_(e="light"){return e==="dark"?{main:Vi[400],light:Vi[300],dark:Vi[700]}:{main:Vi[800],light:Vi[500],dark:Vi[900]}}function L_(e="light"){return e==="dark"?{main:zo[400],light:zo[300],dark:zo[700]}:{main:"#ed6c02",light:zo[500],dark:zo[900]}}function z_(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function yf(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:s,...a}=e,u=e.primary||I_(t),c=e.secondary||N_(t),f=e.error||A_(t),p=e.info||k_(t),h=e.success||$_(t),x=e.warning||L_(t);function R(v){if(s)return z_(v);const g=em(v,kc.text.primary)>=n?kc.text.primary:xy.text.primary;if(process.env.NODE_ENV!=="production"){const m=em(v,g);m<3&&console.error([`MUI: The contrast ratio of ${m}:1 for ${g} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
97
97
  `))}return g}const w=({color:v,name:g,mainShade:m=500,lightShade:S=300,darkShade:E=700})=>{if(v={...v},!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
98
- The color object needs to have a \`main\` property or a \`${m}\` property.`:ls(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
98
+ The color object needs to have a \`main\` property or a \`${m}\` property.`:cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
99
99
  \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
100
100
 
101
101
  Did you intend to use one of the following approaches?
@@ -108,33 +108,33 @@ const theme1 = createTheme({ palette: {
108
108
 
109
109
  const theme2 = createTheme({ palette: {
110
110
  primary: { main: green[500] },
111
- } });`:ls(12,g?` (${g})`:"",JSON.stringify(v.main)));return s?(rm(s,v,"light",S,i),rm(s,v,"dark",E,i)):(nm(v,"light",S,i),nm(v,"dark",E,i)),v.contrastText||(v.contrastText=R(v.main)),v};let C;return t==="light"?C=by():t==="dark"&&(C=xy()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),bi({common:{...cs},mode:t,primary:w({color:u,name:"primary"}),secondary:w({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:f,name:"error"}),warning:w({color:x,name:"warning"}),info:w({color:p,name:"info"}),success:w({color:h,name:"success"}),grey:M_,contrastThreshold:n,getContrastText:R,augmentColor:w,tonalOffset:i,...C},a)}function z_(e){const t={};return Object.entries(e).forEach(i=>{const[s,a]=i;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const F_={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Kn(e,t,n="Mui"){const i=F_[t];return i?`${n}-${i}`:`${ty.generate(e)}-${t}`}function W_(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function B_(e){return Math.round(e*1e5)/1e5}const im={textTransform:"uppercase"},om='"Roboto", "Helvetica", "Arial", sans-serif';function U_(e,t){const{fontFamily:n=om,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h,...x}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const R=i/14,w=h||(v=>`${v/f*R}rem`),C=(v,g,m,S,E)=>({fontFamily:n,fontWeight:v,fontSize:w(g),lineHeight:m,...n===om?{letterSpacing:`${B_(S/g)}em`}:{},...E,...p}),y={h1:C(s,96,1.167,-1.5),h2:C(s,60,1.2,-.5),h3:C(a,48,1.167,0),h4:C(a,34,1.235,.25),h5:C(a,24,1.334,0),h6:C(u,20,1.6,.15),subtitle1:C(a,16,1.75,.15),subtitle2:C(u,14,1.57,.1),body1:C(a,16,1.5,.15),body2:C(a,14,1.43,.15),button:C(u,14,1.75,.4,im),caption:C(a,12,1.66,.4),overline:C(a,12,2.66,1,im),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bi({htmlFontSize:f,pxToRem:w,fontFamily:n,fontSize:i,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c,...y},x,{clone:!1})}const j_=.2,H_=.14,q_=.12;function ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${j_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${H_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${q_})`].join(",")}const V_=["none",ct(0,2,1,-1,0,1,1,0,0,1,3,0),ct(0,3,1,-2,0,2,2,0,0,1,5,0),ct(0,3,3,-2,0,3,4,0,0,1,8,0),ct(0,2,4,-1,0,4,5,0,0,1,10,0),ct(0,3,5,-1,0,5,8,0,0,1,14,0),ct(0,3,5,-1,0,6,10,0,0,1,18,0),ct(0,4,5,-2,0,7,10,1,0,2,16,1),ct(0,5,5,-3,0,8,10,1,0,3,14,2),ct(0,5,6,-3,0,9,12,1,0,3,16,2),ct(0,6,6,-3,0,10,14,1,0,4,18,3),ct(0,6,7,-4,0,11,15,1,0,4,20,3),ct(0,7,8,-4,0,12,17,2,0,5,22,4),ct(0,7,8,-4,0,13,19,2,0,5,24,4),ct(0,7,9,-4,0,14,21,2,0,5,26,4),ct(0,8,9,-5,0,15,22,2,0,6,28,5),ct(0,8,10,-5,0,16,24,2,0,6,30,5),ct(0,8,11,-5,0,17,26,2,0,6,32,5),ct(0,9,11,-5,0,18,28,2,0,7,34,6),ct(0,9,12,-6,0,19,29,2,0,7,36,6),ct(0,10,13,-6,0,20,31,3,0,8,38,7),ct(0,10,13,-6,0,21,33,3,0,8,40,7),ct(0,10,14,-6,0,22,35,3,0,8,42,7),ct(0,11,14,-7,0,23,36,3,0,9,44,8),ct(0,11,15,-7,0,24,38,3,0,9,46,8)],G_={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Y_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sm(e){return`${Math.round(e)}ms`}function Z_(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function X_(e){const t={...G_,...e.easing},n={...Y_,...e.duration};return{getAutoHeightDuration:Z_,create:(s=["all"],a={})=>{const{duration:u=n.standard,easing:c=t.easeInOut,delay:f=0,...p}=a;if(process.env.NODE_ENV!=="production"){const h=R=>typeof R=="string",x=R=>!Number.isNaN(parseFloat(R));!h(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!x(u)&&!h(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),h(c)||console.error('MUI: Argument "easing" must be a string.'),!x(f)&&!h(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
112
- `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(h=>`${h} ${typeof u=="string"?u:sm(u)} ${c} ${typeof f=="string"?f:sm(f)}`).join(",")},...e,easing:t,duration:n}}const J_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function K_(e){return Lr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Sy(e={}){const t={...e};function n(i){const s=Object.entries(i);for(let a=0;a<s.length;a++){const[u,c]=s[a];!K_(c)||u.startsWith("unstable_")?delete i[u]:Lr(c)&&(i[u]={...c},n(i[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
111
+ } });`:cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return s?(im(s,v,"light",S,i),im(s,v,"dark",E,i)):(rm(v,"light",S,i),rm(v,"dark",E,i)),v.contrastText||(v.contrastText=R(v.main)),v};let O;return t==="light"?O=wy():t==="dark"&&(O=Sy()),process.env.NODE_ENV!=="production"&&(O||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),bi({common:{...fs},mode:t,primary:w({color:u,name:"primary"}),secondary:w({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:f,name:"error"}),warning:w({color:x,name:"warning"}),info:w({color:p,name:"info"}),success:w({color:h,name:"success"}),grey:P_,contrastThreshold:n,getContrastText:R,augmentColor:w,tonalOffset:i,...O},a)}function F_(e){const t={};return Object.entries(e).forEach(i=>{const[s,a]=i;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const W_={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Qn(e,t,n="Mui"){const i=W_[t];return i?`${n}-${i}`:`${ny.generate(e)}-${t}`}function B_(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function U_(e){return Math.round(e*1e5)/1e5}const om={textTransform:"uppercase"},sm='"Roboto", "Helvetica", "Arial", sans-serif';function j_(e,t){const{fontFamily:n=sm,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:h,...x}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const R=i/14,w=h||(v=>`${v/f*R}rem`),O=(v,g,m,S,E)=>({fontFamily:n,fontWeight:v,fontSize:w(g),lineHeight:m,...n===sm?{letterSpacing:`${U_(S/g)}em`}:{},...E,...p}),y={h1:O(s,96,1.167,-1.5),h2:O(s,60,1.2,-.5),h3:O(a,48,1.167,0),h4:O(a,34,1.235,.25),h5:O(a,24,1.334,0),h6:O(u,20,1.6,.15),subtitle1:O(a,16,1.75,.15),subtitle2:O(u,14,1.57,.1),body1:O(a,16,1.5,.15),body2:O(a,14,1.43,.15),button:O(u,14,1.75,.4,om),caption:O(a,12,1.66,.4),overline:O(a,12,2.66,1,om),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bi({htmlFontSize:f,pxToRem:w,fontFamily:n,fontSize:i,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c,...y},x,{clone:!1})}const H_=.2,V_=.14,q_=.12;function ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${H_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${V_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${q_})`].join(",")}const G_=["none",ct(0,2,1,-1,0,1,1,0,0,1,3,0),ct(0,3,1,-2,0,2,2,0,0,1,5,0),ct(0,3,3,-2,0,3,4,0,0,1,8,0),ct(0,2,4,-1,0,4,5,0,0,1,10,0),ct(0,3,5,-1,0,5,8,0,0,1,14,0),ct(0,3,5,-1,0,6,10,0,0,1,18,0),ct(0,4,5,-2,0,7,10,1,0,2,16,1),ct(0,5,5,-3,0,8,10,1,0,3,14,2),ct(0,5,6,-3,0,9,12,1,0,3,16,2),ct(0,6,6,-3,0,10,14,1,0,4,18,3),ct(0,6,7,-4,0,11,15,1,0,4,20,3),ct(0,7,8,-4,0,12,17,2,0,5,22,4),ct(0,7,8,-4,0,13,19,2,0,5,24,4),ct(0,7,9,-4,0,14,21,2,0,5,26,4),ct(0,8,9,-5,0,15,22,2,0,6,28,5),ct(0,8,10,-5,0,16,24,2,0,6,30,5),ct(0,8,11,-5,0,17,26,2,0,6,32,5),ct(0,9,11,-5,0,18,28,2,0,7,34,6),ct(0,9,12,-6,0,19,29,2,0,7,36,6),ct(0,10,13,-6,0,20,31,3,0,8,38,7),ct(0,10,13,-6,0,21,33,3,0,8,40,7),ct(0,10,14,-6,0,22,35,3,0,8,42,7),ct(0,11,14,-7,0,23,36,3,0,9,44,8),ct(0,11,15,-7,0,24,38,3,0,9,46,8)],Y_={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Z_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function am(e){return`${Math.round(e)}ms`}function X_(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function J_(e){const t={...Y_,...e.easing},n={...Z_,...e.duration};return{getAutoHeightDuration:X_,create:(s=["all"],a={})=>{const{duration:u=n.standard,easing:c=t.easeInOut,delay:f=0,...p}=a;if(process.env.NODE_ENV!=="production"){const h=R=>typeof R=="string",x=R=>!Number.isNaN(parseFloat(R));!h(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!x(u)&&!h(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),h(c)||console.error('MUI: Argument "easing" must be a string.'),!x(f)&&!h(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
112
+ `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(h=>`${h} ${typeof u=="string"?u:am(u)} ${c} ${typeof f=="string"?f:am(f)}`).join(",")},...e,easing:t,duration:n}}const K_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Q_(e){return Lr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ey(e={}){const t={...e};function n(i){const s=Object.entries(i);for(let a=0;a<s.length;a++){const[u,c]=s[a];!Q_(c)||u.startsWith("unstable_")?delete i[u]:Lr(c)&&(i[u]={...c},n(i[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
113
113
 
114
114
  const theme = ${JSON.stringify(t,null,2)};
115
115
 
116
116
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
117
117
  theme.transitions = createTransitions(theme.transitions || {});
118
118
 
119
- export default theme;`}function am(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Q_=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let i=0;i<t.length;i+=1)n+=+t[i];return n};function eR(e){Object.assign(e,{alpha(t,n){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ka(t,Q_(n))},lighten(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${am(n)})`:Ru(t,n)},darken(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${am(n)})`:_u(t,n)}})}function kc(e={},...t){const{breakpoints:n,mixins:i={},spacing:s,palette:a={},transitions:u={},typography:c={},shape:f,colorSpace:p,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ls(20));const x=gf({...a,colorSpace:p}),R=hf(e);let w=bi(R,{mixins:W_(R.breakpoints,i),palette:x,shadows:V_.slice(),typography:U_(x,c),transitions:X_(u),zIndex:{...J_}});if(w=bi(w,h),w=t.reduce((C,y)=>bi(C,y),w),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(v,g)=>{let m;for(m in v){const S=v[m];if(C.includes(m)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const E=Kn("",m);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
120
- `))}v[m]={}}}};Object.keys(w.components).forEach(v=>{const g=w.components[v].styleOverrides;g&&v.startsWith("Mui")&&y(g,v)})}return w.unstable_sxConfig={...ws,...h==null?void 0:h.unstable_sxConfig},w.unstable_sx=function(y){return Si({sx:y,theme:this})},w.toRuntimeSource=Sy,eR(w),w}function tR(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const nR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=tR(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ey(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Oy(e){return e==="dark"?nR:[]}function rR(e){const{palette:t={mode:"light"},opacity:n,overlays:i,colorSpace:s,...a}=e,u=gf({...t,colorSpace:s});return{palette:u,opacity:{...Ey(u.mode),...n},overlays:i||Oy(u.mode),...a}}function iR(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const oR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],sR=e=>(t,n)=>{const i=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return oR(e.cssVarPrefix).forEach(c=>{u[c]=n[c],delete n[c]}),a==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:u}}:a?{[a.replace("%s",t)]:u,[`${i}, ${a.replace("%s",t)}`]:n}:{[i]:{...n,...u}}}if(a&&a!=="media")return`${i}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(a)return a.replace("%s",String(t))}return i};function aR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function Qo(e){return typeof e!="string"||!e.startsWith("hsl")?e:my(e)}function fr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ko(Qo(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
121
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function uR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const qn=e=>{try{return e()}catch{}},lR=(e="mui")=>T_(e);function gc(e,t,n,i,s){if(!n)return;n=n===!0?{}:n;const a=s==="dark"?"dark":"light";if(!i){t[s]=rR({...n,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:u,...c}=kc({...i,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:u,opacity:{...Ey(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Oy(a)},c}function cR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",nativeColor:u=!1,shouldSkipGeneratingVar:c=iR,colorSchemeSelector:f=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...h}=e,x=Object.keys(n)[0],R=i||(n.light&&x!=="light"?"light":x),w=lR(a),{[R]:C,light:y,dark:v,...g}=n,m={...g};let S=C;if((R==="dark"&&!("dark"in n)||R==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${R}\` option is either missing or invalid.`:ls(21,R));let E;u&&(E="oklch");const T=gc(E,m,S,h,R);y&&!m.light&&gc(E,m,y,void 0,"light"),v&&!m.dark&&gc(E,m,v,void 0,"dark");let M={defaultColorScheme:R,...T,cssVarPrefix:a,colorSchemeSelector:f,rootSelector:p,getCssVar:w,colorSchemes:m,font:{...z_(T.typography),...T.font},spacing:uR(h.spacing)};Object.keys(M.colorSchemes).forEach(Z=>{const _=M.colorSchemes[Z].palette,H=K=>{const q=K.split("-"),X=q[1],fe=q[2];return w(K,_[X][fe])};_.mode==="light"&&(ne(_.common,"background","#fff"),ne(_.common,"onBackground","#000")),_.mode==="dark"&&(ne(_.common,"background","#000"),ne(_.common,"onBackground","#fff"));function B(K,q,X){if(E){let fe;return K===ri&&(fe=`transparent ${((1-X)*100).toFixed(0)}%`),K===tt&&(fe=`#000 ${(X*100).toFixed(0)}%`),K===nt&&(fe=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${E}, ${q}, ${fe})`}return K(q,X)}if(aR(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){ne(_.Alert,"errorColor",B(tt,_.error.light,.6)),ne(_.Alert,"infoColor",B(tt,_.info.light,.6)),ne(_.Alert,"successColor",B(tt,_.success.light,.6)),ne(_.Alert,"warningColor",B(tt,_.warning.light,.6)),ne(_.Alert,"errorFilledBg",H("palette-error-main")),ne(_.Alert,"infoFilledBg",H("palette-info-main")),ne(_.Alert,"successFilledBg",H("palette-success-main")),ne(_.Alert,"warningFilledBg",H("palette-warning-main")),ne(_.Alert,"errorFilledColor",qn(()=>_.getContrastText(_.error.main))),ne(_.Alert,"infoFilledColor",qn(()=>_.getContrastText(_.info.main))),ne(_.Alert,"successFilledColor",qn(()=>_.getContrastText(_.success.main))),ne(_.Alert,"warningFilledColor",qn(()=>_.getContrastText(_.warning.main))),ne(_.Alert,"errorStandardBg",B(nt,_.error.light,.9)),ne(_.Alert,"infoStandardBg",B(nt,_.info.light,.9)),ne(_.Alert,"successStandardBg",B(nt,_.success.light,.9)),ne(_.Alert,"warningStandardBg",B(nt,_.warning.light,.9)),ne(_.Alert,"errorIconColor",H("palette-error-main")),ne(_.Alert,"infoIconColor",H("palette-info-main")),ne(_.Alert,"successIconColor",H("palette-success-main")),ne(_.Alert,"warningIconColor",H("palette-warning-main")),ne(_.AppBar,"defaultBg",H("palette-grey-100")),ne(_.Avatar,"defaultBg",H("palette-grey-400")),ne(_.Button,"inheritContainedBg",H("palette-grey-300")),ne(_.Button,"inheritContainedHoverBg",H("palette-grey-A100")),ne(_.Chip,"defaultBorder",H("palette-grey-400")),ne(_.Chip,"defaultAvatarColor",H("palette-grey-700")),ne(_.Chip,"defaultIconColor",H("palette-grey-700")),ne(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(_.LinearProgress,"primaryBg",B(nt,_.primary.main,.62)),ne(_.LinearProgress,"secondaryBg",B(nt,_.secondary.main,.62)),ne(_.LinearProgress,"errorBg",B(nt,_.error.main,.62)),ne(_.LinearProgress,"infoBg",B(nt,_.info.main,.62)),ne(_.LinearProgress,"successBg",B(nt,_.success.main,.62)),ne(_.LinearProgress,"warningBg",B(nt,_.warning.main,.62)),ne(_.Skeleton,"bg",E?B(ri,_.text.primary,.11):`rgba(${H("palette-text-primaryChannel")} / 0.11)`),ne(_.Slider,"primaryTrack",B(nt,_.primary.main,.62)),ne(_.Slider,"secondaryTrack",B(nt,_.secondary.main,.62)),ne(_.Slider,"errorTrack",B(nt,_.error.main,.62)),ne(_.Slider,"infoTrack",B(nt,_.info.main,.62)),ne(_.Slider,"successTrack",B(nt,_.success.main,.62)),ne(_.Slider,"warningTrack",B(nt,_.warning.main,.62));const K=E?B(tt,_.background.default,.6825):Ta(_.background.default,.8);ne(_.SnackbarContent,"bg",K),ne(_.SnackbarContent,"color",qn(()=>E?Ac.text.primary:_.getContrastText(K))),ne(_.SpeedDialAction,"fabHoverBg",Ta(_.background.paper,.15)),ne(_.StepConnector,"border",H("palette-grey-400")),ne(_.StepContent,"border",H("palette-grey-400")),ne(_.Switch,"defaultColor",H("palette-common-white")),ne(_.Switch,"defaultDisabledColor",H("palette-grey-100")),ne(_.Switch,"primaryDisabledColor",B(nt,_.primary.main,.62)),ne(_.Switch,"secondaryDisabledColor",B(nt,_.secondary.main,.62)),ne(_.Switch,"errorDisabledColor",B(nt,_.error.main,.62)),ne(_.Switch,"infoDisabledColor",B(nt,_.info.main,.62)),ne(_.Switch,"successDisabledColor",B(nt,_.success.main,.62)),ne(_.Switch,"warningDisabledColor",B(nt,_.warning.main,.62)),ne(_.TableCell,"border",B(nt,B(ri,_.divider,1),.88)),ne(_.Tooltip,"bg",B(ri,_.grey[700],.92))}if(_.mode==="dark"){ne(_.Alert,"errorColor",B(nt,_.error.light,.6)),ne(_.Alert,"infoColor",B(nt,_.info.light,.6)),ne(_.Alert,"successColor",B(nt,_.success.light,.6)),ne(_.Alert,"warningColor",B(nt,_.warning.light,.6)),ne(_.Alert,"errorFilledBg",H("palette-error-dark")),ne(_.Alert,"infoFilledBg",H("palette-info-dark")),ne(_.Alert,"successFilledBg",H("palette-success-dark")),ne(_.Alert,"warningFilledBg",H("palette-warning-dark")),ne(_.Alert,"errorFilledColor",qn(()=>_.getContrastText(_.error.dark))),ne(_.Alert,"infoFilledColor",qn(()=>_.getContrastText(_.info.dark))),ne(_.Alert,"successFilledColor",qn(()=>_.getContrastText(_.success.dark))),ne(_.Alert,"warningFilledColor",qn(()=>_.getContrastText(_.warning.dark))),ne(_.Alert,"errorStandardBg",B(tt,_.error.light,.9)),ne(_.Alert,"infoStandardBg",B(tt,_.info.light,.9)),ne(_.Alert,"successStandardBg",B(tt,_.success.light,.9)),ne(_.Alert,"warningStandardBg",B(tt,_.warning.light,.9)),ne(_.Alert,"errorIconColor",H("palette-error-main")),ne(_.Alert,"infoIconColor",H("palette-info-main")),ne(_.Alert,"successIconColor",H("palette-success-main")),ne(_.Alert,"warningIconColor",H("palette-warning-main")),ne(_.AppBar,"defaultBg",H("palette-grey-900")),ne(_.AppBar,"darkBg",H("palette-background-paper")),ne(_.AppBar,"darkColor",H("palette-text-primary")),ne(_.Avatar,"defaultBg",H("palette-grey-600")),ne(_.Button,"inheritContainedBg",H("palette-grey-800")),ne(_.Button,"inheritContainedHoverBg",H("palette-grey-700")),ne(_.Chip,"defaultBorder",H("palette-grey-700")),ne(_.Chip,"defaultAvatarColor",H("palette-grey-300")),ne(_.Chip,"defaultIconColor",H("palette-grey-300")),ne(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(_.LinearProgress,"primaryBg",B(tt,_.primary.main,.5)),ne(_.LinearProgress,"secondaryBg",B(tt,_.secondary.main,.5)),ne(_.LinearProgress,"errorBg",B(tt,_.error.main,.5)),ne(_.LinearProgress,"infoBg",B(tt,_.info.main,.5)),ne(_.LinearProgress,"successBg",B(tt,_.success.main,.5)),ne(_.LinearProgress,"warningBg",B(tt,_.warning.main,.5)),ne(_.Skeleton,"bg",E?B(ri,_.text.primary,.13):`rgba(${H("palette-text-primaryChannel")} / 0.13)`),ne(_.Slider,"primaryTrack",B(tt,_.primary.main,.5)),ne(_.Slider,"secondaryTrack",B(tt,_.secondary.main,.5)),ne(_.Slider,"errorTrack",B(tt,_.error.main,.5)),ne(_.Slider,"infoTrack",B(tt,_.info.main,.5)),ne(_.Slider,"successTrack",B(tt,_.success.main,.5)),ne(_.Slider,"warningTrack",B(tt,_.warning.main,.5));const K=E?B(nt,_.background.default,.985):Ta(_.background.default,.98);ne(_.SnackbarContent,"bg",K),ne(_.SnackbarContent,"color",qn(()=>E?wy.text.primary:_.getContrastText(K))),ne(_.SpeedDialAction,"fabHoverBg",Ta(_.background.paper,.15)),ne(_.StepConnector,"border",H("palette-grey-600")),ne(_.StepContent,"border",H("palette-grey-600")),ne(_.Switch,"defaultColor",H("palette-grey-300")),ne(_.Switch,"defaultDisabledColor",H("palette-grey-600")),ne(_.Switch,"primaryDisabledColor",B(tt,_.primary.main,.55)),ne(_.Switch,"secondaryDisabledColor",B(tt,_.secondary.main,.55)),ne(_.Switch,"errorDisabledColor",B(tt,_.error.main,.55)),ne(_.Switch,"infoDisabledColor",B(tt,_.info.main,.55)),ne(_.Switch,"successDisabledColor",B(tt,_.success.main,.55)),ne(_.Switch,"warningDisabledColor",B(tt,_.warning.main,.55)),ne(_.TableCell,"border",B(tt,B(ri,_.divider,1),.68)),ne(_.Tooltip,"bg",B(ri,_.grey[700],.92))}fr(_.background,"default"),fr(_.background,"paper"),fr(_.common,"background"),fr(_.common,"onBackground"),fr(_,"divider"),Object.keys(_).forEach(K=>{const q=_[K];K!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&ne(_[K],"mainChannel",Ko(Qo(q.main))),q.light&&ne(_[K],"lightChannel",Ko(Qo(q.light))),q.dark&&ne(_[K],"darkChannel",Ko(Qo(q.dark))),q.contrastText&&ne(_[K],"contrastTextChannel",Ko(Qo(q.contrastText))),K==="text"&&(fr(_[K],"primary"),fr(_[K],"secondary")),K==="action"&&(q.active&&fr(_[K],"active"),q.selected&&fr(_[K],"selected")))})}),M=t.reduce((Z,_)=>bi(Z,_),M);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:sR(M),enableContrastVars:u},{vars:A,generateThemeVars:z,generateStyleSheets:J}=R_(M,D);return M.vars=A,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([Z,_])=>{M[Z]=_}),M.generateThemeVars=z,M.generateStyleSheets=J,M.generateSpacing=function(){return ly(h.spacing,df(this))},M.getColorSchemeSelector=D_(f),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=c,M.unstable_sxConfig={...ws,...h==null?void 0:h.unstable_sxConfig},M.unstable_sx=function(_){return Si({sx:_,theme:this})},M.toRuntimeSource=Sy,M}function um(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:gf({...n===!0?{}:n.palette,mode:t})})}function Ty(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",f=s==null?void 0:s[c],p={...s,...n?{[c]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return kc(e,...t);let h=n;"palette"in e||p[c]&&(p[c]!==!0?h=p[c].palette:c==="dark"&&(h={mode:"dark"}));const x=kc({...e,palette:h},...t);return x.defaultColorScheme=c,x.colorSchemes=p,x.palette.mode==="light"&&(x.colorSchemes.light={...p.light!==!0&&p.light,palette:x.palette},um(x,"dark",p.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:x.palette},um(x,"light",p.light)),x}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),cR({...u,colorSchemes:p,defaultColorScheme:c,...typeof i!="boolean"&&i},...t)}const Cy=Ty(),yf="$$material";function xs(){const e=cy(Cy);return process.env.NODE_ENV!=="production"&&oe.useDebugValue(e),e[yf]||e}function fR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _y=e=>fR(e)&&e!=="classes",Lt=d_({themeId:yf,defaultTheme:Cy,rootShouldForwardProp:_y}),Cn=O_;process.env.NODE_ENV!=="production"&&(b.node,b.object.isRequired);function xr(e){return E_(e)}function Qn(e,t,n="Mui"){const i={};return t.forEach(s=>{i[s]=Kn(e,s,n)}),i}function dR(e){return Kn("MuiSvgIcon",e)}Qn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pR=e=>{const{color:t,fontSize:n,classes:i}=e,s={root:["root",t!=="inherit"&&`color${fn(t)}`,`fontSize${fn(n)}`]};return jr(s,dR,i)},hR=Lt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fn(n.color)}`],t[`fontSize${fn(n.fontSize)}`]]}})(Cn(({theme:e})=>{var t,n,i,s,a,u,c,f,p,h,x,R,w,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:f.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var v,g;return{props:{color:y},style:{color:(g=(v=(e.vars??e).palette)==null?void 0:v[y])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(R=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:R.active}},{props:{color:"disabled"},style:{color:(C=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Qa=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:x,viewBox:R="0 0 24 24",...w}=i,C=oe.isValidElement(s)&&s.type==="svg",y={...i,color:u,component:c,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:R,hasSvgAsChild:C},v={};h||(v.viewBox=R);const g=pR(y);return F.jsxs(hR,{as:c,className:at(g.root,a),focusable:"false",color:p,"aria-hidden":x?void 0:!0,role:x?"img":void 0,ref:n,...v,...w,...C&&s.props,ownerState:y,children:[C?s.props.children:s,x?F.jsx("title",{children:x}):null]})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),b.string]),component:b.elementType,fontSize:b.oneOfType([b.oneOf(["inherit","large","medium","small"]),b.string]),htmlColor:b.string,inheritViewBox:b.bool,shapeRendering:b.string,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),titleAccess:b.string,viewBox:b.string});Qa.muiName="SvgIcon";function jt(e,t){function n(i,s){return F.jsx(Qa,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...i,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Qa.muiName,oe.memo(oe.forwardRef(n))}function mR(e,t){var n,i,s;return oe.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(i=(n=e.type)==null?void 0:n._payload)==null?void 0:i.value)==null?void 0:s.muiName))!==-1}function lm(e){return e&&e.ownerDocument||document}function cm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fs=typeof window<"u"?oe.useLayoutEffect:oe.useEffect;let fm=0;function gR(e){const[t,n]=oe.useState(e),i=e||t;return oe.useEffect(()=>{t==null&&(fm+=1,n(`mui-${fm}`))},[t]),i}const yR={...oe},dm=yR.useId;function vR(e){if(dm!==void 0){const t=dm();return e??t}return gR(e)}function Ry(e){const{controlled:t,default:n,name:i,state:s="value"}=e,{current:a}=oe.useRef(t!==void 0),[u,c]=oe.useState(n),f=a?t:u;if(process.env.NODE_ENV!=="production"){oe.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${s} state of ${i} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
119
+ export default theme;`}function um(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const eR=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let i=0;i<t.length;i+=1)n+=+t[i];return n};function tR(e){Object.assign(e,{alpha(t,n){const i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:eu(t,eR(n))},lighten(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${um(n)})`:Du(t,n)},darken(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${um(n)})`:Ru(t,n)}})}function $c(e={},...t){const{breakpoints:n,mixins:i={},spacing:s,palette:a={},transitions:u={},typography:c={},shape:f,colorSpace:p,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":cs(20));const x=yf({...a,colorSpace:p}),R=mf(e);let w=bi(R,{mixins:B_(R.breakpoints,i),palette:x,shadows:G_.slice(),typography:j_(x,c),transitions:J_(u),zIndex:{...K_}});if(w=bi(w,h),w=t.reduce((O,y)=>bi(O,y),w),process.env.NODE_ENV!=="production"){const O=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(v,g)=>{let m;for(m in v){const S=v[m];if(O.includes(m)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const E=Qn("",m);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
120
+ `))}v[m]={}}}};Object.keys(w.components).forEach(v=>{const g=w.components[v].styleOverrides;g&&v.startsWith("Mui")&&y(g,v)})}return w.unstable_sxConfig={...xs,...h==null?void 0:h.unstable_sxConfig},w.unstable_sx=function(y){return Si({sx:y,theme:this})},w.toRuntimeSource=Ey,tR(w),w}function nR(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const rR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=nR(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Oy(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ty(e){return e==="dark"?rR:[]}function iR(e){const{palette:t={mode:"light"},opacity:n,overlays:i,colorSpace:s,...a}=e,u=yf({...t,colorSpace:s});return{palette:u,opacity:{...Oy(u.mode),...n},overlays:i||Ty(u.mode),...a}}function oR(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const sR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],aR=e=>(t,n)=>{const i=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return sR(e.cssVarPrefix).forEach(c=>{u[c]=n[c],delete n[c]}),a==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:u}}:a?{[a.replace("%s",t)]:u,[`${i}, ${a.replace("%s",t)}`]:n}:{[i]:{...n,...u}}}if(a&&a!=="media")return`${i}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:n}};if(a)return a.replace("%s",String(t))}return i};function uR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function es(e){return typeof e!="string"||!e.startsWith("hsl")?e:gy(e)}function dr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Qo(es(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
121
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function lR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Vn=e=>{try{return e()}catch{}},cR=(e="mui")=>C_(e);function yc(e,t,n,i,s){if(!n)return;n=n===!0?{}:n;const a=s==="dark"?"dark":"light";if(!i){t[s]=iR({...n,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:u,...c}=$c({...i,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:u,opacity:{...Oy(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Ty(a)},c}function fR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",nativeColor:u=!1,shouldSkipGeneratingVar:c=oR,colorSchemeSelector:f=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...h}=e,x=Object.keys(n)[0],R=i||(n.light&&x!=="light"?"light":x),w=cR(a),{[R]:O,light:y,dark:v,...g}=n,m={...g};let S=O;if((R==="dark"&&!("dark"in n)||R==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${R}\` option is either missing or invalid.`:cs(21,R));let E;u&&(E="oklch");const C=yc(E,m,S,h,R);y&&!m.light&&yc(E,m,y,void 0,"light"),v&&!m.dark&&yc(E,m,v,void 0,"dark");let M={defaultColorScheme:R,...C,cssVarPrefix:a,colorSchemeSelector:f,rootSelector:p,getCssVar:w,colorSchemes:m,font:{...F_(C.typography),...C.font},spacing:lR(h.spacing)};Object.keys(M.colorSchemes).forEach(Z=>{const _=M.colorSchemes[Z].palette,H=K=>{const V=K.split("-"),X=V[1],fe=V[2];return w(K,_[X][fe])};_.mode==="light"&&(ne(_.common,"background","#fff"),ne(_.common,"onBackground","#000")),_.mode==="dark"&&(ne(_.common,"background","#000"),ne(_.common,"onBackground","#fff"));function U(K,V,X){if(E){let fe;return K===ri&&(fe=`transparent ${((1-X)*100).toFixed(0)}%`),K===tt&&(fe=`#000 ${(X*100).toFixed(0)}%`),K===nt&&(fe=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${E}, ${V}, ${fe})`}return K(V,X)}if(uR(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){ne(_.Alert,"errorColor",U(tt,_.error.light,.6)),ne(_.Alert,"infoColor",U(tt,_.info.light,.6)),ne(_.Alert,"successColor",U(tt,_.success.light,.6)),ne(_.Alert,"warningColor",U(tt,_.warning.light,.6)),ne(_.Alert,"errorFilledBg",H("palette-error-main")),ne(_.Alert,"infoFilledBg",H("palette-info-main")),ne(_.Alert,"successFilledBg",H("palette-success-main")),ne(_.Alert,"warningFilledBg",H("palette-warning-main")),ne(_.Alert,"errorFilledColor",Vn(()=>_.getContrastText(_.error.main))),ne(_.Alert,"infoFilledColor",Vn(()=>_.getContrastText(_.info.main))),ne(_.Alert,"successFilledColor",Vn(()=>_.getContrastText(_.success.main))),ne(_.Alert,"warningFilledColor",Vn(()=>_.getContrastText(_.warning.main))),ne(_.Alert,"errorStandardBg",U(nt,_.error.light,.9)),ne(_.Alert,"infoStandardBg",U(nt,_.info.light,.9)),ne(_.Alert,"successStandardBg",U(nt,_.success.light,.9)),ne(_.Alert,"warningStandardBg",U(nt,_.warning.light,.9)),ne(_.Alert,"errorIconColor",H("palette-error-main")),ne(_.Alert,"infoIconColor",H("palette-info-main")),ne(_.Alert,"successIconColor",H("palette-success-main")),ne(_.Alert,"warningIconColor",H("palette-warning-main")),ne(_.AppBar,"defaultBg",H("palette-grey-100")),ne(_.Avatar,"defaultBg",H("palette-grey-400")),ne(_.Button,"inheritContainedBg",H("palette-grey-300")),ne(_.Button,"inheritContainedHoverBg",H("palette-grey-A100")),ne(_.Chip,"defaultBorder",H("palette-grey-400")),ne(_.Chip,"defaultAvatarColor",H("palette-grey-700")),ne(_.Chip,"defaultIconColor",H("palette-grey-700")),ne(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(_.LinearProgress,"primaryBg",U(nt,_.primary.main,.62)),ne(_.LinearProgress,"secondaryBg",U(nt,_.secondary.main,.62)),ne(_.LinearProgress,"errorBg",U(nt,_.error.main,.62)),ne(_.LinearProgress,"infoBg",U(nt,_.info.main,.62)),ne(_.LinearProgress,"successBg",U(nt,_.success.main,.62)),ne(_.LinearProgress,"warningBg",U(nt,_.warning.main,.62)),ne(_.Skeleton,"bg",E?U(ri,_.text.primary,.11):`rgba(${H("palette-text-primaryChannel")} / 0.11)`),ne(_.Slider,"primaryTrack",U(nt,_.primary.main,.62)),ne(_.Slider,"secondaryTrack",U(nt,_.secondary.main,.62)),ne(_.Slider,"errorTrack",U(nt,_.error.main,.62)),ne(_.Slider,"infoTrack",U(nt,_.info.main,.62)),ne(_.Slider,"successTrack",U(nt,_.success.main,.62)),ne(_.Slider,"warningTrack",U(nt,_.warning.main,.62));const K=E?U(tt,_.background.default,.6825):Ca(_.background.default,.8);ne(_.SnackbarContent,"bg",K),ne(_.SnackbarContent,"color",Vn(()=>E?kc.text.primary:_.getContrastText(K))),ne(_.SpeedDialAction,"fabHoverBg",Ca(_.background.paper,.15)),ne(_.StepConnector,"border",H("palette-grey-400")),ne(_.StepContent,"border",H("palette-grey-400")),ne(_.Switch,"defaultColor",H("palette-common-white")),ne(_.Switch,"defaultDisabledColor",H("palette-grey-100")),ne(_.Switch,"primaryDisabledColor",U(nt,_.primary.main,.62)),ne(_.Switch,"secondaryDisabledColor",U(nt,_.secondary.main,.62)),ne(_.Switch,"errorDisabledColor",U(nt,_.error.main,.62)),ne(_.Switch,"infoDisabledColor",U(nt,_.info.main,.62)),ne(_.Switch,"successDisabledColor",U(nt,_.success.main,.62)),ne(_.Switch,"warningDisabledColor",U(nt,_.warning.main,.62)),ne(_.TableCell,"border",U(nt,U(ri,_.divider,1),.88)),ne(_.Tooltip,"bg",U(ri,_.grey[700],.92))}if(_.mode==="dark"){ne(_.Alert,"errorColor",U(nt,_.error.light,.6)),ne(_.Alert,"infoColor",U(nt,_.info.light,.6)),ne(_.Alert,"successColor",U(nt,_.success.light,.6)),ne(_.Alert,"warningColor",U(nt,_.warning.light,.6)),ne(_.Alert,"errorFilledBg",H("palette-error-dark")),ne(_.Alert,"infoFilledBg",H("palette-info-dark")),ne(_.Alert,"successFilledBg",H("palette-success-dark")),ne(_.Alert,"warningFilledBg",H("palette-warning-dark")),ne(_.Alert,"errorFilledColor",Vn(()=>_.getContrastText(_.error.dark))),ne(_.Alert,"infoFilledColor",Vn(()=>_.getContrastText(_.info.dark))),ne(_.Alert,"successFilledColor",Vn(()=>_.getContrastText(_.success.dark))),ne(_.Alert,"warningFilledColor",Vn(()=>_.getContrastText(_.warning.dark))),ne(_.Alert,"errorStandardBg",U(tt,_.error.light,.9)),ne(_.Alert,"infoStandardBg",U(tt,_.info.light,.9)),ne(_.Alert,"successStandardBg",U(tt,_.success.light,.9)),ne(_.Alert,"warningStandardBg",U(tt,_.warning.light,.9)),ne(_.Alert,"errorIconColor",H("palette-error-main")),ne(_.Alert,"infoIconColor",H("palette-info-main")),ne(_.Alert,"successIconColor",H("palette-success-main")),ne(_.Alert,"warningIconColor",H("palette-warning-main")),ne(_.AppBar,"defaultBg",H("palette-grey-900")),ne(_.AppBar,"darkBg",H("palette-background-paper")),ne(_.AppBar,"darkColor",H("palette-text-primary")),ne(_.Avatar,"defaultBg",H("palette-grey-600")),ne(_.Button,"inheritContainedBg",H("palette-grey-800")),ne(_.Button,"inheritContainedHoverBg",H("palette-grey-700")),ne(_.Chip,"defaultBorder",H("palette-grey-700")),ne(_.Chip,"defaultAvatarColor",H("palette-grey-300")),ne(_.Chip,"defaultIconColor",H("palette-grey-300")),ne(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(_.LinearProgress,"primaryBg",U(tt,_.primary.main,.5)),ne(_.LinearProgress,"secondaryBg",U(tt,_.secondary.main,.5)),ne(_.LinearProgress,"errorBg",U(tt,_.error.main,.5)),ne(_.LinearProgress,"infoBg",U(tt,_.info.main,.5)),ne(_.LinearProgress,"successBg",U(tt,_.success.main,.5)),ne(_.LinearProgress,"warningBg",U(tt,_.warning.main,.5)),ne(_.Skeleton,"bg",E?U(ri,_.text.primary,.13):`rgba(${H("palette-text-primaryChannel")} / 0.13)`),ne(_.Slider,"primaryTrack",U(tt,_.primary.main,.5)),ne(_.Slider,"secondaryTrack",U(tt,_.secondary.main,.5)),ne(_.Slider,"errorTrack",U(tt,_.error.main,.5)),ne(_.Slider,"infoTrack",U(tt,_.info.main,.5)),ne(_.Slider,"successTrack",U(tt,_.success.main,.5)),ne(_.Slider,"warningTrack",U(tt,_.warning.main,.5));const K=E?U(nt,_.background.default,.985):Ca(_.background.default,.98);ne(_.SnackbarContent,"bg",K),ne(_.SnackbarContent,"color",Vn(()=>E?xy.text.primary:_.getContrastText(K))),ne(_.SpeedDialAction,"fabHoverBg",Ca(_.background.paper,.15)),ne(_.StepConnector,"border",H("palette-grey-600")),ne(_.StepContent,"border",H("palette-grey-600")),ne(_.Switch,"defaultColor",H("palette-grey-300")),ne(_.Switch,"defaultDisabledColor",H("palette-grey-600")),ne(_.Switch,"primaryDisabledColor",U(tt,_.primary.main,.55)),ne(_.Switch,"secondaryDisabledColor",U(tt,_.secondary.main,.55)),ne(_.Switch,"errorDisabledColor",U(tt,_.error.main,.55)),ne(_.Switch,"infoDisabledColor",U(tt,_.info.main,.55)),ne(_.Switch,"successDisabledColor",U(tt,_.success.main,.55)),ne(_.Switch,"warningDisabledColor",U(tt,_.warning.main,.55)),ne(_.TableCell,"border",U(tt,U(ri,_.divider,1),.68)),ne(_.Tooltip,"bg",U(ri,_.grey[700],.92))}dr(_.background,"default"),dr(_.background,"paper"),dr(_.common,"background"),dr(_.common,"onBackground"),dr(_,"divider"),Object.keys(_).forEach(K=>{const V=_[K];K!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&ne(_[K],"mainChannel",Qo(es(V.main))),V.light&&ne(_[K],"lightChannel",Qo(es(V.light))),V.dark&&ne(_[K],"darkChannel",Qo(es(V.dark))),V.contrastText&&ne(_[K],"contrastTextChannel",Qo(es(V.contrastText))),K==="text"&&(dr(_[K],"primary"),dr(_[K],"secondary")),K==="action"&&(V.active&&dr(_[K],"active"),V.selected&&dr(_[K],"selected")))})}),M=t.reduce((Z,_)=>bi(Z,_),M);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:aR(M),enableContrastVars:u},{vars:A,generateThemeVars:z,generateStyleSheets:J}=D_(M,D);return M.vars=A,Object.entries(M.colorSchemes[M.defaultColorScheme]).forEach(([Z,_])=>{M[Z]=_}),M.generateThemeVars=z,M.generateStyleSheets=J,M.generateSpacing=function(){return cy(h.spacing,pf(this))},M.getColorSchemeSelector=M_(f),M.spacing=M.generateSpacing(),M.shouldSkipGeneratingVar=c,M.unstable_sxConfig={...xs,...h==null?void 0:h.unstable_sxConfig},M.unstable_sx=function(_){return Si({sx:_,theme:this})},M.toRuntimeSource=Ey,M}function lm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:yf({...n===!0?{}:n.palette,mode:t})})}function Cy(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",f=s==null?void 0:s[c],p={...s,...n?{[c]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(i===!1){if(!("colorSchemes"in e))return $c(e,...t);let h=n;"palette"in e||p[c]&&(p[c]!==!0?h=p[c].palette:c==="dark"&&(h={mode:"dark"}));const x=$c({...e,palette:h},...t);return x.defaultColorScheme=c,x.colorSchemes=p,x.palette.mode==="light"&&(x.colorSchemes.light={...p.light!==!0&&p.light,palette:x.palette},lm(x,"dark",p.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:x.palette},lm(x,"light",p.light)),x}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),fR({...u,colorSchemes:p,defaultColorScheme:c,...typeof i!="boolean"&&i},...t)}const _y=Cy(),vf="$$material";function Ss(){const e=fy(_y);return process.env.NODE_ENV!=="production"&&oe.useDebugValue(e),e[vf]||e}function dR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ry=e=>dR(e)&&e!=="classes",Lt=p_({themeId:vf,defaultTheme:_y,rootShouldForwardProp:Ry}),Cn=T_;process.env.NODE_ENV!=="production"&&(b.node,b.object.isRequired);function xr(e){return O_(e)}function er(e,t,n="Mui"){const i={};return t.forEach(s=>{i[s]=Qn(e,s,n)}),i}function pR(e){return Qn("MuiSvgIcon",e)}er("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const hR=e=>{const{color:t,fontSize:n,classes:i}=e,s={root:["root",t!=="inherit"&&`color${fn(t)}`,`fontSize${fn(n)}`]};return jr(s,pR,i)},mR=Lt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fn(n.color)}`],t[`fontSize${fn(n.fontSize)}`]]}})(Cn(({theme:e})=>{var t,n,i,s,a,u,c,f,p,h,x,R,w,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(i=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:f.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var v,g;return{props:{color:y},style:{color:(g=(v=(e.vars??e).palette)==null?void 0:v[y])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(R=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:R.active}},{props:{color:"disabled"},style:{color:(O=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:O.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),tu=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:x,viewBox:R="0 0 24 24",...w}=i,O=oe.isValidElement(s)&&s.type==="svg",y={...i,color:u,component:c,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:R,hasSvgAsChild:O},v={};h||(v.viewBox=R);const g=hR(y);return F.jsxs(mR,{as:c,className:at(g.root,a),focusable:"false",color:p,"aria-hidden":x?void 0:!0,role:x?"img":void 0,ref:n,...v,...w,...O&&s.props,ownerState:y,children:[O?s.props.children:s,x?F.jsx("title",{children:x}):null]})});process.env.NODE_ENV!=="production"&&(tu.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),b.string]),component:b.elementType,fontSize:b.oneOfType([b.oneOf(["inherit","large","medium","small"]),b.string]),htmlColor:b.string,inheritViewBox:b.bool,shapeRendering:b.string,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),titleAccess:b.string,viewBox:b.string});tu.muiName="SvgIcon";function jt(e,t){function n(i,s){return F.jsx(tu,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...i,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=tu.muiName,oe.memo(oe.forwardRef(n))}function gR(e,t){var n,i,s;return oe.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(i=(n=e.type)==null?void 0:n._payload)==null?void 0:i.value)==null?void 0:s.muiName))!==-1}function cm(e){return e&&e.ownerDocument||document}function fm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ds=typeof window<"u"?oe.useLayoutEffect:oe.useEffect;let dm=0;function yR(e){const[t,n]=oe.useState(e),i=e||t;return oe.useEffect(()=>{t==null&&(dm+=1,n(`mui-${dm}`))},[t]),i}const vR={...oe},pm=vR.useId;function bR(e){if(pm!==void 0){const t=pm();return e??t}return yR(e)}function Dy(e){const{controlled:t,default:n,name:i,state:s="value"}=e,{current:a}=oe.useRef(t!==void 0),[u,c]=oe.useState(n),f=a?t:u;if(process.env.NODE_ENV!=="production"){oe.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${s} state of ${i} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
122
122
  `))},[s,i,t]);const{current:h}=oe.useRef(n);oe.useEffect(()=>{!a&&JSON.stringify(n)!==JSON.stringify(h)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
123
- `))},[JSON.stringify(n)])}const p=oe.useCallback(h=>{a||c(h)},[]);return[f,p]}function to(e){const t=oe.useRef(e);return fs(()=>{t.current=e}),oe.useRef((...n)=>(0,t.current)(...n)).current}function Fn(...e){const t=oe.useRef(void 0),n=oe.useCallback(i=>{const s=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const u=a,c=u(i);return typeof c=="function"?c:()=>{u(null)}}return a.current=i,()=>{a.current=null}});return()=>{s.forEach(a=>a==null?void 0:a())}},e);return oe.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}function bR(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function wR(e,t){if(!e)return t;function n(u,c){const f={};return Object.keys(c).forEach(p=>{bR(p,c[p])&&typeof u[p]=="function"&&(f[p]=(...h)=>{u[p](...h),c[p](...h)})}),f}if(typeof e=="function"||typeof t=="function")return u=>{const c=typeof t=="function"?t(u):t,f=typeof e=="function"?e({...u,...c}):e,p=at(u==null?void 0:u.className,c==null?void 0:c.className,f==null?void 0:f.className),h=n(f,c);return{...c,...f,...h,...!!p&&{className:p},...(c==null?void 0:c.style)&&(f==null?void 0:f.style)&&{style:{...c.style,...f.style}},...(c==null?void 0:c.sx)&&(f==null?void 0:f.sx)&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(f.sx)?f.sx:[f.sx]]}}};const i=t,s=n(e,i),a=at(i==null?void 0:i.className,e==null?void 0:e.className);return{...t,...e,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const xR=jt(F.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),SR=()=>{const e=xs(),[t,n]=j.useState(null),{sectionOrder:i,setVisibleSections:s,recalculateNavigation:a}=gr(),{filterOptions:u,setFilterOptions:c}=Br(),f=j.useMemo(()=>({...u}),[u]);j.useEffect(()=>{const R={...u};let w=!1;i.forEach(g=>{u[g]===void 0&&(R[g]=g==="Courses",w=!0)});const C=w?R:u,y=gr.getState().visibleSections,v=JSON.stringify(y)!==JSON.stringify(C);(w||v)&&(w&&c(R),s(C))},[i,u,c,s]);const p=j.useCallback(R=>{R.preventDefault(),R.stopPropagation(),n(R.currentTarget)},[]),h=j.useCallback(()=>{n(null)},[]),x=j.useCallback((R,w)=>{R.preventDefault(),R.stopPropagation();const C={...u,[w]:!u[w]};c(C),s(C),a()},[u,c,s,a]);return Object.keys(f).length===0?null:F.jsxs(me.Box,{children:[F.jsx(me.Tooltip,{title:"Filter navigation sections",children:F.jsx(me.IconButton,{disabled:Object.keys(f).length===0,onClick:p,size:"small",children:F.jsx(xR,{htmlColor:Object.keys(f).length===0?e.palette.text.disabled:e.palette.text.primary})})}),F.jsx(me.Menu,{anchorEl:t,open:!!t,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:Object.keys(f).map(R=>F.jsxs(me.MenuItem,{onClick:w=>x(w,R),children:[F.jsx(me.Checkbox,{checked:f[R]}),F.jsx(me.ListItemText,{primary:R})]},R))})]})},ER=({sections:e})=>{const{addSection:t,recalculateNavigation:n}=gr(),i=j.useRef([]),s=j.useMemo(()=>e.map(a=>({underHeader:a.underHeader,keepVisible:a.keepVisible,pages:a.pages.map(u=>({segment:u.segment,title:u.title,Icon:u.Icon,instances:u.instances,description:u.description,microservices:u.microservices,actionFC:u.actionFC}))})),[e]);return j.useEffect(()=>()=>{},[]),j.useEffect(()=>{Pc.isEqual(i.current,s)||(s.forEach(a=>{t(a)}),n(),i.current=s)},[s]),null},OR=({heading:e,subheading:t})=>F.jsxs(F.Fragment,{children:[F.jsx(me.Typography,{variant:"h1",sx:{textAlign:"center",mt:5,color:"text.secondary"},children:e}),t&&F.jsx(me.Typography,{variant:"h4",sx:{textAlign:"center",mt:2,color:"text.secondary"},children:t})]});let pm=0,hm=0;const mm=500,gm=200,ym=5,TR=({direction:e,itemSize:t,itemsPerPage:n=1,itemCount:i})=>{const s=j.useRef(null),[a,u]=j.useState(!1),[c,f]=j.useState(!1),[p,h]=j.useState(!1),[x,R]=j.useState(!1),[w,C]=j.useState({pos:0,scroll:0}),[y,v]=j.useState(0),[g,m]=j.useState(1),S=j.useRef(null),E=j.useRef(null);j.useEffect(()=>{const q=s.current;if(!q)return;let X=null;const fe=()=>{const ue=s.current;if(!ue)return;const ye=e==="horizontal",pe=ye?ue.scrollLeft:ue.scrollTop,Oe=i??ue.children.length,Te=5;if(ye){const ve=Math.max(1,Math.round((ue.clientWidth+Te)/t)),ee=Math.max(1,Oe-ve+1),ce=Math.min(Math.floor(pe/t),ee-1);m(ee),v(ce),u(ce>0),f(ce<ee-1)}else{const ve=Math.max(1,Math.round((ue.clientHeight+Te)/t)),ee=Math.max(1,Oe-ve+1),ce=Math.min(Math.floor(pe/t),ee-1);m(ee),v(ce),u(ce>0),f(ce<ee-1)}},ae=()=>{X===null&&(X=setTimeout(()=>{X=null,fe()},100))},Y=new ResizeObserver(fe);Y.observe(q),q.addEventListener("scroll",ae);const $=new MutationObserver(fe);return $.observe(q,{childList:!0,subtree:!0}),requestAnimationFrame(()=>{requestAnimationFrame(fe)}),()=>{q.removeEventListener("scroll",ae),Y.disconnect(),$.disconnect(),X&&clearTimeout(X)}},[e,t,n,i]),j.useEffect(()=>{const q=s.current;if(!q||!i)return;const X=e==="horizontal"?q.scrollLeft:q.scrollTop,fe=Math.max(1,Math.ceil(i/n)),ae=Math.min(Math.floor(X/t),fe-1);m(fe),v(ae),u(ae>0),f(ae<fe-1)},[i,n,t,e]);const T=j.useCallback(()=>{const q=s.current;if(!q)return;const X=e==="horizontal",fe=X?q.scrollLeft:q.scrollTop,ae=Math.round(fe/t)*t;q.style.scrollBehavior="smooth",X?q.scrollLeft=ae:q.scrollTop=ae},[e,t]);j.useEffect(()=>{const q=X=>{X.preventDefault(),p&&(h(!1),T()),E.current&&(clearTimeout(E.current),E.current=null)};return window.addEventListener("mouseup",q),()=>window.removeEventListener("mouseup",q)},[p,T]);const M=q=>{const X=s.current;if(!X)return;const ae=(e==="horizontal"?X.scrollLeft:X.scrollTop)+(q?t:-t);X.style.scrollBehavior="smooth",e==="horizontal"?X.scrollLeft=ae:X.scrollTop=ae},D=q=>{M(q==="end")},A=q=>{if(!s.current)return;const X=q*t;s.current.style.scrollBehavior="smooth",e==="horizontal"?s.current.scrollLeft=X:s.current.scrollTop=X},z=q=>{q.preventDefault(),R(!1);const X=e==="horizontal"?q.pageX:q.pageY,fe=e==="horizontal"?s.current.scrollLeft:s.current.scrollTop;C({pos:X,scroll:fe}),S.current=null,s.current&&(s.current.style.scrollBehavior="auto"),E.current=window.setTimeout(()=>{h(!0),E.current=null},gm)},J=q=>{if(!s.current)return;if(q.buttons===0){h(!1),E.current&&(clearTimeout(E.current),E.current=null);return}const X=e==="horizontal"?q.pageX:q.pageY,fe=w.pos-X;if(Math.abs(fe)>ym){R(!0),p||(h(!0),E.current&&(clearTimeout(E.current),E.current=null));const ae=performance.now();if(e==="horizontal"){if(ae-hm<mm)return;pm=ae}else{if(ae-pm<mm)return;hm=ae}const Y=fe>0?"end":"start";Y!==S.current&&(S.current=Y,D(Y))}},Z=q=>{s.current&&(q.preventDefault(),h(!1),S.current=null,E.current&&(clearTimeout(E.current),E.current=null),T())},_=q=>{const X=q.touches[0],fe=e==="horizontal"?X.pageX:X.pageY,ae=e==="horizontal"?s.current.scrollLeft:s.current.scrollTop;R(!1),C({pos:fe,scroll:ae}),E.current=window.setTimeout(()=>{h(!0),E.current=null},gm)},H=q=>{if(!s.current)return;const X=q.touches[0],fe=e==="horizontal"?X.pageX:X.pageY,ae=w.pos-fe;Math.abs(ae)>ym&&(R(!0),p||(h(!0),E.current&&(clearTimeout(E.current),E.current=null)),q.preventDefault(),e==="horizontal"?s.current.scrollLeft=w.scroll+ae:s.current.scrollTop=w.scroll+ae)},B=()=>{h(!1),E.current&&(clearTimeout(E.current),E.current=null),s.current&&x&&T()},K=g>1;return{containerRef:s,showStartButton:a,showEndButton:c,isDragging:p,hasDragged:x,setHasDragged:R,scroll:D,handleMouseDown:z,handleMouseMove:J,handleMouseUp:Z,currentPage:y,totalPages:g,scrollToPage:A,disableStartButton:!a,disableEndButton:!c,handleTouchStart:_,handleTouchMove:H,handleTouchEnd:B,canScroll:K}},CR=jt(F.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),_R=jt(F.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),RR=jt(F.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),DR=jt(F.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),vm=({total:e,current:t,onDotClick:n,vertical:i=!1,onArrowClick:s,disableStart:a=!1,disableEnd:u=!1})=>{const c=Math.max(0,e);return c<=0?null:F.jsxs(me.Box,{"data-testid":"pagination-dots",sx:{width:"fit-content",display:"flex",alignItems:"center",borderRadius:1,...i?{flexDirection:"column"}:{flexDirection:"row"}},children:[F.jsx(me.IconButton,{size:"small",disabled:a,onClick:()=>!a&&(s==null?void 0:s("start")),sx:{p:.5,opacity:a?0:1,transition:"opacity 0.2s ease"},children:i?F.jsx(CR,{}):F.jsx(RR,{})}),F.jsx(me.Box,{sx:{display:"flex",flexDirection:i?"column":"row",gap:.5},children:Array.from({length:c}).map((f,p)=>F.jsx(me.Box,{onClick:h=>{h.stopPropagation(),n==null||n(p)},sx:{width:6,height:6,borderRadius:"50%",bgcolor:t===p?"primary.main":"action.disabled",transition:"all 0.2s ease",cursor:n?"pointer":"default","&:hover":n?{transform:"scale(1.2)",bgcolor:t===p?"primary.dark":"primary.light"}:{}}},p))}),F.jsx(me.IconButton,{size:"small",onClick:()=>!u&&(s==null?void 0:s("end")),disabled:u,sx:{p:.5,opacity:u?0:1,transition:"opacity 0.2s ease"},children:i?F.jsx(_R,{}):F.jsx(DR,{})})]})},Dy=j.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}}),My=({children:e})=>{const[t,n]=j.useState({horizontal:1,vertical:1});return F.jsx(Dy.Provider,{value:{itemCounts:t,setItemCounts:n},children:e})},Py=()=>{const e=j.useContext(Dy);if(!e)throw new Error("useResizeContext must be used within a ResizeProvider");return e},MR=25,pi=({direction:e,children:t,itemSize:n,containerSize:i="100%",hideScrollbar:s=!0,snapScroll:a=!0,title:u,priority:c})=>{const{itemCounts:f}=Py(),p=e==="vertical"?f.vertical:f.horizontal,{containerRef:h,showStartButton:x,showEndButton:R,isDragging:w,hasDragged:C,scroll:y,handleMouseDown:v,handleMouseMove:g,handleMouseUp:m,currentPage:S,totalPages:E,scrollToPage:T,disableStartButton:M,disableEndButton:D,handleTouchStart:A,handleTouchMove:z,handleTouchEnd:J,canScroll:Z,setHasDragged:_}=TR({direction:e,itemSize:n,itemsPerPage:p}),H=e==="vertical",B=()=>u?F.jsx(me.Typography,{variant:"h6",sx:{color:c==="high"?"primary.main":c==="low"?"text.secondary":"text.primary"},children:u}):null;let K={zIndex:1,padding:1,width:"100%",height:"100%",display:"flex",overflow:"hidden",position:"relative",flexDirection:H?"column":"row",cursor:w?"grabbing":"grab",touchAction:H?"pan-y":"pan-x",scrollSnapType:a?"x mandatory":"none",scrollbarWidth:s?"none":"auto",userSelect:"none",scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",msOverflowStyle:"none","&::-webkit-scrollbar":{display:s?"none":"auto"}};H&&(K={...K,"& > div":{scrollSnapAlign:a?"start":"none",minHeight:n,flex:"0 0 auto",height:n,willChange:"transform"}});const q={onMouseDown:v,onMouseMove:g,onMouseUp:m,onMouseLeave:m,onTouchStart:A,onTouchMove:z,onTouchEnd:J,onClickCapture:X=>{C&&(X.stopPropagation(),X.preventDefault(),_(!1))}};return F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"column",height:i,width:"100%"},children:[B(),H?F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"row",height:"100%"},children:[F.jsx(me.Box,{"data-testid":"reel-container",ref:h,sx:K,...q,children:t}),F.jsx(me.Box,{"data-testid":"pagination-dots-container",sx:{width:MR,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:F.jsx(vm,{total:E,current:S,onDotClick:T,onArrowClick:y,vertical:!0,showArrows:x||R,disableStart:M,disableEnd:D})})]}):F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[F.jsx(me.Box,{ref:h,sx:K,...q,children:j.Children.map(t,X=>F.jsx(me.Box,{"data-testid":"reel-item",sx:{width:n,scrollSnapAlign:"start",display:"flex",flexShrink:0},children:X}))}),F.jsx(vm,{total:E,current:S,onDotClick:T,onArrowClick:y,showArrows:Z,disableStart:M,disableEnd:D})]})]})},PR=me.keyframes`
123
+ `))},[JSON.stringify(n)])}const p=oe.useCallback(h=>{a||c(h)},[]);return[f,p]}function no(e){const t=oe.useRef(e);return ds(()=>{t.current=e}),oe.useRef((...n)=>(0,t.current)(...n)).current}function Fn(...e){const t=oe.useRef(void 0),n=oe.useCallback(i=>{const s=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const u=a,c=u(i);return typeof c=="function"?c:()=>{u(null)}}return a.current=i,()=>{a.current=null}});return()=>{s.forEach(a=>a==null?void 0:a())}},e);return oe.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=n(i))},e)}function wR(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function xR(e,t){if(!e)return t;function n(u,c){const f={};return Object.keys(c).forEach(p=>{wR(p,c[p])&&typeof u[p]=="function"&&(f[p]=(...h)=>{u[p](...h),c[p](...h)})}),f}if(typeof e=="function"||typeof t=="function")return u=>{const c=typeof t=="function"?t(u):t,f=typeof e=="function"?e({...u,...c}):e,p=at(u==null?void 0:u.className,c==null?void 0:c.className,f==null?void 0:f.className),h=n(f,c);return{...c,...f,...h,...!!p&&{className:p},...(c==null?void 0:c.style)&&(f==null?void 0:f.style)&&{style:{...c.style,...f.style}},...(c==null?void 0:c.sx)&&(f==null?void 0:f.sx)&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(f.sx)?f.sx:[f.sx]]}}};const i=t,s=n(e,i),a=at(i==null?void 0:i.className,e==null?void 0:e.className);return{...t,...e,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const SR=jt(F.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),ER=()=>{const e=Ss(),[t,n]=B.useState(null),{sectionOrder:i,setVisibleSections:s,recalculateNavigation:a}=Jn(),{filterOptions:u,setFilterOptions:c}=Br(),f=B.useMemo(()=>({...u}),[u]);B.useEffect(()=>{const R={...u};let w=!1;i.forEach(g=>{u[g]===void 0&&(R[g]=g==="Courses",w=!0)});const O=w?R:u,y=Jn.getState().visibleSections,v=JSON.stringify(y)!==JSON.stringify(O);(w||v)&&(w&&c(R),s(O))},[i,u,c,s]);const p=B.useCallback(R=>{R.preventDefault(),R.stopPropagation(),n(R.currentTarget)},[]),h=B.useCallback(()=>{n(null)},[]),x=B.useCallback((R,w)=>{R.preventDefault(),R.stopPropagation();const O={...u,[w]:!u[w]};c(O),s(O),a()},[u,c,s,a]);return Object.keys(f).length===0?null:F.jsxs(me.Box,{children:[F.jsx(me.Tooltip,{title:"Filter navigation sections",children:F.jsx(me.IconButton,{disabled:Object.keys(f).length===0,onClick:p,size:"small",children:F.jsx(SR,{htmlColor:Object.keys(f).length===0?e.palette.text.disabled:e.palette.text.primary})})}),F.jsx(me.Menu,{anchorEl:t,open:!!t,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:Object.keys(f).map(R=>F.jsxs(me.MenuItem,{onClick:w=>x(w,R),children:[F.jsx(me.Checkbox,{checked:f[R]}),F.jsx(me.ListItemText,{primary:R})]},R))})]})},OR=({sections:e})=>{const{addSection:t,recalculateNavigation:n}=Jn(),i=B.useRef([]),s=B.useMemo(()=>e.map(a=>({underHeader:a.underHeader,keepVisible:a.keepVisible,pages:a.pages.map(u=>({segment:u.segment,title:u.title,Icon:u.Icon,instances:u.instances,description:u.description,microservices:u.microservices,actionFC:u.actionFC}))})),[e]);return B.useEffect(()=>()=>{},[]),B.useEffect(()=>{Ic.isEqual(i.current,s)||(s.forEach(a=>{t(a)}),n(),i.current=s)},[s]),null},TR=({heading:e,subheading:t})=>F.jsxs(F.Fragment,{children:[F.jsx(me.Typography,{variant:"h1",sx:{textAlign:"center",mt:5,color:"text.secondary"},children:e}),t&&F.jsx(me.Typography,{variant:"h4",sx:{textAlign:"center",mt:2,color:"text.secondary"},children:t})]});let hm=0,mm=0;const gm=500,ym=200,vm=5,CR=({direction:e,itemSize:t,itemsPerPage:n=1,itemCount:i})=>{const s=B.useRef(null),[a,u]=B.useState(!1),[c,f]=B.useState(!1),[p,h]=B.useState(!1),[x,R]=B.useState(!1),[w,O]=B.useState({pos:0,scroll:0}),[y,v]=B.useState(0),[g,m]=B.useState(1),S=B.useRef(null),E=B.useRef(null);B.useEffect(()=>{const V=s.current;if(!V)return;let X=null;const fe=()=>{const ue=s.current;if(!ue)return;const ye=e==="horizontal",pe=ye?ue.scrollLeft:ue.scrollTop,Oe=i??ue.children.length,Te=5;if(ye){const ve=Math.max(1,Math.round((ue.clientWidth+Te)/t)),ee=Math.max(1,Oe-ve+1),ce=Math.min(Math.floor(pe/t),ee-1);m(ee),v(ce),u(ce>0),f(ce<ee-1)}else{const ve=Math.max(1,Math.round((ue.clientHeight+Te)/t)),ee=Math.max(1,Oe-ve+1),ce=Math.min(Math.floor(pe/t),ee-1);m(ee),v(ce),u(ce>0),f(ce<ee-1)}},ae=()=>{X===null&&(X=setTimeout(()=>{X=null,fe()},100))},Y=new ResizeObserver(fe);Y.observe(V),V.addEventListener("scroll",ae);const $=new MutationObserver(fe);return $.observe(V,{childList:!0,subtree:!0}),requestAnimationFrame(()=>{requestAnimationFrame(fe)}),()=>{V.removeEventListener("scroll",ae),Y.disconnect(),$.disconnect(),X&&clearTimeout(X)}},[e,t,n,i]),B.useEffect(()=>{const V=s.current;if(!V||!i)return;const X=e==="horizontal"?V.scrollLeft:V.scrollTop,fe=Math.max(1,Math.ceil(i/n)),ae=Math.min(Math.floor(X/t),fe-1);m(fe),v(ae),u(ae>0),f(ae<fe-1)},[i,n,t,e]);const C=B.useCallback(()=>{const V=s.current;if(!V)return;const X=e==="horizontal",fe=X?V.scrollLeft:V.scrollTop,ae=Math.round(fe/t)*t;V.style.scrollBehavior="smooth",X?V.scrollLeft=ae:V.scrollTop=ae},[e,t]);B.useEffect(()=>{const V=X=>{X.preventDefault(),p&&(h(!1),C()),E.current&&(clearTimeout(E.current),E.current=null)};return window.addEventListener("mouseup",V),()=>window.removeEventListener("mouseup",V)},[p,C]);const M=V=>{const X=s.current;if(!X)return;const ae=(e==="horizontal"?X.scrollLeft:X.scrollTop)+(V?t:-t);X.style.scrollBehavior="smooth",e==="horizontal"?X.scrollLeft=ae:X.scrollTop=ae},D=V=>{M(V==="end")},A=V=>{if(!s.current)return;const X=V*t;s.current.style.scrollBehavior="smooth",e==="horizontal"?s.current.scrollLeft=X:s.current.scrollTop=X},z=V=>{V.preventDefault(),R(!1);const X=e==="horizontal"?V.pageX:V.pageY,fe=e==="horizontal"?s.current.scrollLeft:s.current.scrollTop;O({pos:X,scroll:fe}),S.current=null,s.current&&(s.current.style.scrollBehavior="auto"),E.current=window.setTimeout(()=>{h(!0),E.current=null},ym)},J=V=>{if(!s.current)return;if(V.buttons===0){h(!1),E.current&&(clearTimeout(E.current),E.current=null);return}const X=e==="horizontal"?V.pageX:V.pageY,fe=w.pos-X;if(Math.abs(fe)>vm){R(!0),p||(h(!0),E.current&&(clearTimeout(E.current),E.current=null));const ae=performance.now();if(e==="horizontal"){if(ae-mm<gm)return;hm=ae}else{if(ae-hm<gm)return;mm=ae}const Y=fe>0?"end":"start";Y!==S.current&&(S.current=Y,D(Y))}},Z=V=>{s.current&&(V.preventDefault(),h(!1),S.current=null,E.current&&(clearTimeout(E.current),E.current=null),C())},_=V=>{const X=V.touches[0],fe=e==="horizontal"?X.pageX:X.pageY,ae=e==="horizontal"?s.current.scrollLeft:s.current.scrollTop;R(!1),O({pos:fe,scroll:ae}),E.current=window.setTimeout(()=>{h(!0),E.current=null},ym)},H=V=>{if(!s.current)return;const X=V.touches[0],fe=e==="horizontal"?X.pageX:X.pageY,ae=w.pos-fe;Math.abs(ae)>vm&&(R(!0),p||(h(!0),E.current&&(clearTimeout(E.current),E.current=null)),V.preventDefault(),e==="horizontal"?s.current.scrollLeft=w.scroll+ae:s.current.scrollTop=w.scroll+ae)},U=()=>{h(!1),E.current&&(clearTimeout(E.current),E.current=null),s.current&&x&&C()},K=g>1;return{containerRef:s,showStartButton:a,showEndButton:c,isDragging:p,hasDragged:x,setHasDragged:R,scroll:D,handleMouseDown:z,handleMouseMove:J,handleMouseUp:Z,currentPage:y,totalPages:g,scrollToPage:A,disableStartButton:!a,disableEndButton:!c,handleTouchStart:_,handleTouchMove:H,handleTouchEnd:U,canScroll:K}},_R=jt(F.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),RR=jt(F.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),DR=jt(F.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),MR=jt(F.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),bm=({total:e,current:t,onDotClick:n,vertical:i=!1,onArrowClick:s,disableStart:a=!1,disableEnd:u=!1})=>{const c=Math.max(0,e);return c<=0?null:F.jsxs(me.Box,{"data-testid":"pagination-dots",sx:{width:"fit-content",display:"flex",alignItems:"center",borderRadius:1,...i?{flexDirection:"column"}:{flexDirection:"row"}},children:[F.jsx(me.IconButton,{size:"small",disabled:a,onClick:()=>!a&&(s==null?void 0:s("start")),sx:{p:.5,opacity:a?0:1,transition:"opacity 0.2s ease"},children:i?F.jsx(_R,{}):F.jsx(DR,{})}),F.jsx(me.Box,{sx:{display:"flex",flexDirection:i?"column":"row",gap:.5},children:Array.from({length:c}).map((f,p)=>F.jsx(me.Box,{onClick:h=>{h.stopPropagation(),n==null||n(p)},sx:{width:6,height:6,borderRadius:"50%",bgcolor:t===p?"primary.main":"action.disabled",transition:"all 0.2s ease",cursor:n?"pointer":"default","&:hover":n?{transform:"scale(1.2)",bgcolor:t===p?"primary.dark":"primary.light"}:{}}},p))}),F.jsx(me.IconButton,{size:"small",onClick:()=>!u&&(s==null?void 0:s("end")),disabled:u,sx:{p:.5,opacity:u?0:1,transition:"opacity 0.2s ease"},children:i?F.jsx(RR,{}):F.jsx(MR,{})})]})},My=B.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}}),Py=({children:e})=>{const[t,n]=B.useState({horizontal:1,vertical:1});return F.jsx(My.Provider,{value:{itemCounts:t,setItemCounts:n},children:e})},Iy=()=>{const e=B.useContext(My);if(!e)throw new Error("useResizeContext must be used within a ResizeProvider");return e},PR=25,pi=({direction:e,children:t,itemSize:n,containerSize:i="100%",hideScrollbar:s=!0,snapScroll:a=!0,title:u,priority:c})=>{const{itemCounts:f}=Iy(),p=e==="vertical"?f.vertical:f.horizontal,{containerRef:h,showStartButton:x,showEndButton:R,isDragging:w,hasDragged:O,scroll:y,handleMouseDown:v,handleMouseMove:g,handleMouseUp:m,currentPage:S,totalPages:E,scrollToPage:C,disableStartButton:M,disableEndButton:D,handleTouchStart:A,handleTouchMove:z,handleTouchEnd:J,canScroll:Z,setHasDragged:_}=CR({direction:e,itemSize:n,itemsPerPage:p}),H=e==="vertical",U=()=>u?F.jsx(me.Typography,{variant:"h6",sx:{color:c==="high"?"primary.main":c==="low"?"text.secondary":"text.primary"},children:u}):null;let K={zIndex:1,padding:1,width:"100%",height:"100%",display:"flex",overflow:"hidden",position:"relative",flexDirection:H?"column":"row",cursor:w?"grabbing":"grab",touchAction:H?"pan-y":"pan-x",scrollSnapType:a?"x mandatory":"none",scrollbarWidth:s?"none":"auto",userSelect:"none",scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",msOverflowStyle:"none","&::-webkit-scrollbar":{display:s?"none":"auto"}};H&&(K={...K,"& > div":{scrollSnapAlign:a?"start":"none",minHeight:n,flex:"0 0 auto",height:n,willChange:"transform"}});const V={onMouseDown:v,onMouseMove:g,onMouseUp:m,onMouseLeave:m,onTouchStart:A,onTouchMove:z,onTouchEnd:J,onClickCapture:X=>{O&&(X.stopPropagation(),X.preventDefault(),_(!1))}};return F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"column",height:i,width:"100%"},children:[U(),H?F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"row",height:"100%"},children:[F.jsx(me.Box,{"data-testid":"reel-container",ref:h,sx:K,...V,children:t}),F.jsx(me.Box,{"data-testid":"pagination-dots-container",sx:{width:PR,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:F.jsx(bm,{total:E,current:S,onDotClick:C,onArrowClick:y,vertical:!0,showArrows:x||R,disableStart:M,disableEnd:D})})]}):F.jsxs(me.Box,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[F.jsx(me.Box,{ref:h,sx:K,...V,children:B.Children.map(t,X=>F.jsx(me.Box,{"data-testid":"reel-item",sx:{width:n,scrollSnapAlign:"start",display:"flex",flexShrink:0},children:X}))}),F.jsx(bm,{total:E,current:S,onDotClick:C,onArrowClick:y,showArrows:Z,disableStart:M,disableEnd:D})]})]})},IR=me.keyframes`
124
124
  0% { transform: scale(0.95); opacity: 0.5; }
125
125
  50% { transform: scale(1.05); opacity: 0.8; }
126
126
  100% { transform: scale(0.95); opacity: 0.5; }
127
- `,IR=me.keyframes`
127
+ `,NR=me.keyframes`
128
128
  0% { content: ''; }
129
129
  25% { content: '.'; }
130
130
  50% { content: '..'; }
131
131
  75% { content: '...'; }
132
132
  100% { content: ''; }
133
- `,NR=me.keyframes`
133
+ `,AR=me.keyframes`
134
134
  from { opacity: 0; }
135
135
  to { opacity: 1; }
136
- `,AR=()=>F.jsxs(me.Box,{"data-testid":"loading-screen",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"100%",gap:3,backdropFilter:"blur(8px)",animation:`${NR} 0.5s ease-in`},children:[F.jsx(me.Box,{sx:{position:"relative",animation:`${PR} 2s ease-in-out infinite`},children:F.jsx(me.CircularProgress,{size:60,thickness:4,sx:{opacity:.8}})}),F.jsxs(me.Typography,{variant:"h6",sx:{fontWeight:300,letterSpacing:1,display:"flex",alignItems:"center",gap:"2px"},children:["Loading",F.jsx(me.Box,{sx:{display:"inline-block",width:"24px",position:"relative","&::after":{content:"''",left:0,animation:`${IR} 1.5s steps(4) infinite`}}})]})]}),Iy="resizable-panel-dimensions-";function Ny(e,t){try{const n=localStorage.getItem(Iy+e);return n?JSON.parse(n):t}catch(n){return console.warn("Failed to load panel dimensions:",n),t}}function kR(e,t){try{localStorage.setItem(Iy+e,JSON.stringify(t))}catch(n){console.warn("Failed to save panel dimensions:",n)}}const Ay=j.createContext({id:"",panelRef:{current:null},panelContentRef:{current:null},defaultWidth:200,defaultHeight:200,minWidth:100,maxWidth:500,minHeight:100,maxHeight:500,extendedStyle:{},setExtendedStyle:()=>{},tools:[],setTools:()=>{},addTool:()=>{},removeTool:()=>{},dimensions:{width:200,height:200},setDimensions:()=>{},handleDimensionsChange:()=>{},dimensionsWereTemporary:!1,extendedContainerStyle:{position:"relative"},setExtendedContainerStyle:()=>{}}),ky=({children:e,id:t,additionaltools:n,defaultWidth:i=200,defaultHeight:s=200,minWidth:a=100,maxWidth:u=500,minHeight:c=100,maxHeight:f=500,expandable:p,resizable:h,scrollable:x})=>{const R=j.useRef(null),w=j.useRef(null),[C,y]=j.useState({}),[v,g]=j.useState(n||[]),[m,S]=j.useState(()=>Ny(t,{width:i,height:s})),[E,T]=j.useState(!1),[M,D]=j.useState({position:"relative"}),A=Z=>{g(_=>[..._,Z])},z=Z=>{g(_=>_.filter(H=>H!==Z))},J=(Z,_=!1)=>{S(Z),T(_),_||kR(t,Z)};return F.jsx(Ay.Provider,{value:{id:t,panelRef:R,panelContentRef:w,defaultWidth:i,defaultHeight:s,minWidth:a,maxWidth:u,minHeight:c,maxHeight:f,expandable:p,resizable:h,scrollable:x,extendedStyle:C,setExtendedStyle:y,tools:v,setTools:g,addTool:A,removeTool:z,dimensions:m,setDimensions:S,handleDimensionsChange:J,dimensionsWereTemporary:E,extendedContainerStyle:M,setExtendedContainerStyle:D},children:e})},Bn=()=>{const e=j.useContext(Ay);if(!e)throw new Error("usePanelContext must be used within a PanelProvider");return e},$R={};function LR(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var a;const u=f=>f===null?null:JSON.parse(f,void 0),c=(a=n.getItem(s))!=null?a:null;return c instanceof Promise?c.then(u):u(c)},setItem:(s,a)=>n.setItem(s,JSON.stringify(a,void 0)),removeItem:s=>n.removeItem(s)}}const ds=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(i){return ds(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return ds(i)(n)}}}},zR=(e,t)=>(n,i,s)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,g)=>({...g,...v}),...t},u=!1;const c=new Set,f=new Set;let p;try{p=a.getStorage()}catch{}if(!p)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},i,s);const h=ds(a.serialize),x=()=>{const v=a.partialize({...i()});let g;const m=h({state:v,version:a.version}).then(S=>p.setItem(a.name,S)).catch(S=>{g=S});if(g)throw g;return m},R=s.setState;s.setState=(v,g)=>{R(v,g),x()};const w=e((...v)=>{n(...v),x()},i,s);let C;const y=()=>{var v;if(!p)return;u=!1,c.forEach(m=>m(i()));const g=((v=a.onRehydrateStorage)==null?void 0:v.call(a,i()))||void 0;return ds(p.getItem.bind(p))(a.name).then(m=>{if(m)return a.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==a.version){if(a.migrate)return a.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var S;return C=a.merge(m,(S=i())!=null?S:w),n(C,!0),x()}).then(()=>{g==null||g(C,void 0),u=!0,f.forEach(m=>m(C))}).catch(m=>{g==null||g(void 0,m)})};return s.persist={setOptions:v=>{a={...a,...v},v.getStorage&&(p=v.getStorage())},clearStorage:()=>{p==null||p.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>y(),hasHydrated:()=>u,onHydrate:v=>(c.add(v),()=>{c.delete(v)}),onFinishHydration:v=>(f.add(v),()=>{f.delete(v)})},y(),C||w},FR=(e,t)=>(n,i,s)=>{let a={storage:LR(()=>localStorage),partialize:y=>y,version:0,merge:(y,v)=>({...v,...y}),...t},u=!1;const c=new Set,f=new Set;let p=a.storage;if(!p)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...y)},i,s);const h=()=>{const y=a.partialize({...i()});return p.setItem(a.name,{state:y,version:a.version})},x=s.setState;s.setState=(y,v)=>{x(y,v),h()};const R=e((...y)=>{n(...y),h()},i,s);s.getInitialState=()=>R;let w;const C=()=>{var y,v;if(!p)return;u=!1,c.forEach(m=>{var S;return m((S=i())!=null?S:R)});const g=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(y=i())!=null?y:R))||void 0;return ds(p.getItem.bind(p))(a.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==a.version){if(a.migrate)return[!0,a.migrate(m.state,m.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,m.state];return[!1,void 0]}).then(m=>{var S;const[E,T]=m;if(w=a.merge(T,(S=i())!=null?S:R),n(w,!0),E)return h()}).then(()=>{g==null||g(w,void 0),w=i(),u=!0,f.forEach(m=>m(w))}).catch(m=>{g==null||g(void 0,m)})};return s.persist={setOptions:y=>{a={...a,...y},y.storage&&(p=y.storage)},clearStorage:()=>{p==null||p.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>C(),hasHydrated:()=>u,onHydrate:y=>(c.add(y),()=>{c.delete(y)}),onFinishHydration:y=>(f.add(y),()=>{f.delete(y)})},a.skipHydration||C(),w||R},WR=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(($R?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),zR(e,t)):FR(e,t),BR=WR,fo=co.create()(BR(e=>({editMode:!1,toggleEditMode:()=>e(t=>({editMode:!t.editMode})),resizeMode:!1,toggleResizeMode:()=>e(t=>({resizeMode:!t.resizeMode})),moveMode:!1,toggleMoveMode:()=>e(t=>({moveMode:!t.moveMode}))}),{name:"grid-layout-storage"})),UR=({children:e,position:t="top-right"})=>F.jsx(me.Box,{sx:{position:"absolute",...t==="top-right"?{top:8,right:8}:{bottom:8,right:8},zIndex:2,opacity:0,transition:"opacity 0.2s ease-in-out",".MuiBox-root:hover > &":{opacity:1}},children:e}),jR=({children:e,dimensions:t})=>{const n=me.useTheme();return F.jsx(me.Box,{sx:{overflowX:"hidden",overflowY:"hidden",width:t.width+25,height:t.height,pointerEvents:"auto",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"8px",backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.palette.divider,borderRadius:"4px"},willChange:"width, height"},children:e})},HR=j.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}}),qR=()=>{const e=j.useContext(HR);if(!e)throw new Error("useResizeContext must be used within a ResizeProvider");return e},VR=({children:e})=>{const{panelContentRef:t,dimensions:n,panelRef:i}=Bn(),{setItemCounts:s}=qR();return j.useEffect(()=>{if(!i.current||!t.current)return;(u=>{const c=u.current.offsetWidth,f=Math.max(1,Math.floor(c/n.width)),p=Math.floor(n.height/n.height);s({horizontal:f,vertical:p})})(t)},[n,i,s]),F.jsx(jR,{dimensions:n,children:e})},GR=jt(F.jsx("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen"),YR=jt(F.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull"),$y=co.create(e=>({expandedPanelId:null,setExpandedPanelId:t=>e({expandedPanelId:t})})),Ly=j.createContext(void 0),ZR=({children:e})=>{const[t,n]=j.useState(!1);return F.jsx(Ly.Provider,{value:{isExpanded:t,setIsExpanded:n},children:e})},zy=()=>{const e=j.useContext(Ly);if(!e)throw new Error("useExpandableContext must be used within an ExpandableContextProvider");return e},XR=(e,t,n,i)=>{const[s,a]=j.useState(!1),[u,c]=j.useState({top:0,left:0});return j.useEffect(()=>{var h,x;const f=((h=n.current)==null?void 0:h.offsetTop)||0,p=((x=n.current)==null?void 0:x.offsetLeft)||0;e&&requestAnimationFrame(()=>{c({top:f,left:p}),e===t?a(!0):i({height:0})})},[e,t,n,i]),{readyForExpansion:s,setReadyForExpansion:a,initialPosition:u}},JR=(e,t,n,i,s,a,u)=>{const[c,f]=j.useState(!1);return j.useEffect(()=>{if(e&&t.current&&n.current){const p=setTimeout(()=>{f(!0),u(!1)},100);return()=>clearTimeout(p)}},[e,t,n,u]),j.useEffect(()=>{c&&t.current&&n.current&&requestAnimationFrame(()=>{s({height:"0%"}),i({top:0,left:0,zIndex:1e3}),a(!0),f(!1)})},[c,i,a,t,n,s]),{animateExpansion:c,setAnimateExpansion:f}},KR=(e,t,n,i,s,a,u)=>{j.useEffect(()=>{e&&t===null&&i.current?requestAnimationFrame(()=>{a({position:"relative"}),s({position:"absolute",transition:"all 0.3s ease-in-out"});const c=setTimeout(()=>{s({}),u(!1)},300);return()=>clearTimeout(c)}):!e&&t===null&&(s({}),a({position:"relative"}))},[t,n,e,s,a,u])},QR=e=>{const{setExtendedStyle:t,panelRef:n,handleDimensionsChange:i}=Bn();j.useEffect(()=>{if(!e||!n.current||!n.current.offsetParent)return;const a=()=>{};let u;const c=()=>{clearTimeout(u),u=setTimeout(a,250)};return window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c),clearTimeout(u)}},[e,n,t,i])},eD=j.createContext(void 0),Fy=()=>{const e=j.useContext(eD);if(!e)throw new Error("Panel must be used inside Panels");return e},tD=()=>{const{expandedPanelId:e}=$y(),{parentRef:t}=Fy(),{setExtendedStyle:n,setExtendedContainerStyle:i,panelRef:s,addTool:a,id:u}=Bn(),{isExpanded:c,setIsExpanded:f}=zy(),{readyForExpansion:p,setReadyForExpansion:h}=XR(e,u,s,n);return JR(p,s,t,n,i,f,h),KR(c,e,u,s,n,i,f),QR(c),j.useEffect(()=>{a(F.jsx(nD,{}))},[]),null},nD=()=>{const{id:e}=Bn(),{isExpanded:t}=zy(),{resizeMode:n}=fo(),{setExpandedPanelId:i}=$y(),s=()=>{i(t?null:e)};return F.jsx(me.IconButton,{disabled:n,onClick:s,size:"small",children:t?F.jsx(GR,{}):F.jsx(YR,{})})};function Yn(e,t){return Math.round(e/t)*t}function bm(e,t,n,i,s,a){return u=>{if(!t)return;const{clientX:c,clientY:f}="touches"in u?u.touches[0]:u;i({vertical:e==="vertical"||e==="corner",horizontal:e==="horizontal"||e==="corner"}),s.current={x:c,y:f,width:Yn(n.width,a.x),height:Yn(n.height,a.y)},u.preventDefault()}}const rD=({id:e,dimensions:t,handleDimensionsChange:n})=>{const i=j.useRef(!1),s=j.useRef(Ny(e,t));return{isUserResizingRef:i,userChosenDimensionsRef:s,wrappedHandleDimensionsChange:u=>{i.current&&(s.current.width=u.width,s.current.height=u.height),n(u,!0)}}},iD=({children:e})=>F.jsx(me.Box,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.6)",backdropFilter:"blur(2px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:100},children:e}),oD=({dimensions:e})=>F.jsx(me.Box,{sx:{padding:2,backgroundColor:"background.paper",borderRadius:1,boxShadow:2},children:F.jsxs(me.Typography,{variant:"body2",component:"div",children:[Math.round(e.width)," × ",Math.round(e.height)]})}),sD=({handleMouseDown:e,handleTouchStart:t})=>{const n={position:"absolute",backgroundColor:"transparent",transition:"background-color 0.2s","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.05)"}};return F.jsxs(F.Fragment,{children:[F.jsx(me.Box,{onMouseDown:i=>e("horizontal")(i),onTouchStart:i=>t("horizontal")(i),sx:{...n,right:0,top:0,width:"10px",height:"100%",cursor:"ew-resize",zIndex:10}}),F.jsx(me.Box,{onMouseDown:e("vertical"),onTouchStart:t("vertical"),sx:{...n,bottom:0,left:0,width:"100%",height:"8px",cursor:"ns-resize",zIndex:10}}),F.jsx(me.Box,{onMouseDown:i=>e("corner")(i),onTouchStart:i=>t("corner")(i),sx:{...n,bottom:0,right:0,width:"16px",height:"16px",cursor:"nwse-resize",zIndex:10}})]})},Wy=j.createContext(void 0),aD=({children:e})=>{const{id:t,minWidth:n,maxWidth:i,minHeight:s,maxHeight:a,dimensions:u,dimensionsWereTemporary:c,handleDimensionsChange:f}=Bn(),[p,h]=j.useState({vertical:!1,horizontal:!1}),x=j.useRef({x:0,y:0,width:u.width,height:u.height}),R={x:n,y:s};return j.useEffect(()=>{const w=y=>{if(!p.vertical&&!p.horizontal)return;const v={...u};if(p.horizontal){const g=y.clientX-x.current.x,m=x.current.width+g,S=Yn(m,R.x);v.width=Math.min(Math.max(S,n),i)}if(p.vertical){const g=y.clientY-x.current.y,m=x.current.height+g,S=Yn(m,R.y);v.height=Math.min(Math.max(S,s),a)}(v.width!==u.width||v.height!==u.height)&&f(v,!1)},C=()=>h({vertical:!1,horizontal:!1});return(p.vertical||p.horizontal)&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",C)),()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C)}},[p,u,n,i,s,a,c,t]),j.useEffect(()=>{if(!p.vertical&&!p.horizontal)return;const w=y=>{const v=y.touches[0],g={...u};if(p.horizontal){const m=v.clientX-x.current.x,S=x.current.width+m;g.width=Math.min(Math.max(Yn(S,R.x),Yn(n,R.x)),Yn(i,R.x))}if(p.vertical){const m=v.clientY-x.current.y,S=x.current.height+m;g.height=Math.min(Math.max(Yn(S,R.y),Yn(s,R.y)),Yn(a,R.y))}f(g,!1)},C=()=>h({vertical:!1,horizontal:!1});return document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",C),()=>{document.removeEventListener("touchmove",w),document.removeEventListener("touchend",C)}},[p,u,n,i,s,a]),j.useEffect(()=>(p.vertical||p.horizontal?(document.body.style.overflow="hidden",document.body.style.userSelect="none"):(document.body.style.overflow="",document.body.style.userSelect=""),()=>{document.body.style.overflow="",document.body.style.userSelect=""}),[p]),F.jsx(Wy.Provider,{value:{dragStart:x,isDragging:p,setIsDragging:h,leap:R},children:e})},By=()=>{const e=j.useContext(Wy);if(!e)throw new Error("useResizableContext must be used within a ResizableContextProvider");return e},uD=e=>{const{parentRef:t}=Fy(),{leap:n}=By(),{panelRef:i,panelContentRef:s,dimensions:a,minWidth:u,minHeight:c,isUserResizingRef:f,userChosenDimensionsRef:p,wrappedHandleDimensionsChange:h}=e,x=(R,w,C,y,v)=>{if(R<w)return w;const g=Math.max(Math.floor(y/v)*v,w);if(R>g)return g;const m=f.current?R:Math.min(C,g);return R<m?Math.min(R+v,m):R};j.useEffect(()=>{if(!i.current||!t.current)return;const R=()=>{const C=s.current,y=t.current;if(!C||!y)return;const v=y.getBoundingClientRect(),g=C.getBoundingClientRect(),m=1,S=v.width-(g.left-v.left)-m,E=v.height-(g.top-v.top)-m,T=x(a.width,u,p.current.width,S,n.x),M=x(a.height,c,p.current.height,E,n.y);(T!==a.width||M!==a.height)&&h({width:T,height:M})},w=new ResizeObserver(()=>{requestAnimationFrame(R)});return w.observe(i.current),w.observe(t.current),R(),()=>{w.disconnect()}},[a.width,a.height,u,c,h,f,p,s,i,t,n])},lD=()=>{const{resizeMode:e}=fo(),{id:t,dimensions:n,handleDimensionsChange:i,minWidth:s,minHeight:a,panelRef:u,panelContentRef:c}=Bn(),{dragStart:f,isDragging:p,setIsDragging:h,leap:x}=By(),{isUserResizingRef:R,wrappedHandleDimensionsChange:w,userChosenDimensionsRef:C}=rD({id:t,dimensions:n,handleDimensionsChange:i});uD({panelRef:u,panelContentRef:c,dimensions:n,minWidth:s,minHeight:a,isUserResizingRef:R,userChosenDimensionsRef:C,wrappedHandleDimensionsChange:w});const y=g=>(R.current=!0,bm(g,e,n,h,f,x)),v=g=>bm(g,e,n,h,f,x);return F.jsxs(F.Fragment,{children:[(p.vertical||p.horizontal)&&F.jsx(iD,{children:F.jsx(oD,{dimensions:n})}),e&&F.jsx(sD,{handleMouseDown:y,handleTouchStart:v})]})},cD=({children:e})=>{const t=me.useTheme(),{resizeMode:n}=fo(),{id:i,tools:s,expandable:a,dimensions:u,extendedStyle:c,panelRef:f,panelContentRef:p,resizable:h,scrollable:x,extendedContainerStyle:R}=Bn();return F.jsx(me.Box,{"data-panel-id":i,ref:f,"data-testid":"panel-container",sx:{boxSizing:"border-box",maxWidth:"100%",height:u.height,width:u.width+25,outline:n?`0.1em dashed ${t.palette.primary.main}`:"none",...R},children:F.jsxs(me.Box,{"data-testid":"panel-content",ref:p,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",backgroundColor:t.palette.background.default,borderRadius:1,transition:"all 0.3s ease-in-out",position:"absolute",...c},children:[s&&F.jsx(UR,{position:"bottom-right",children:s},"tools"),h&&F.jsx(lD,{},"resizable"),a&&F.jsx(tD,{},"expandable"),x?F.jsx(VR,{children:e},"scrollable"):j.Children.map(e,(w,C)=>j.isValidElement(w)?j.cloneElement(w,{key:w.key||`panel-child-${C}`}):w)]})})},Uy=e=>F.jsx(ky,{...e,children:F.jsx(aD,{children:F.jsx(ZR,{children:F.jsx(cD,{children:e.children})})})}),fD=({children:e,horizontalScroll:t=!1,verticalScroll:n=!1,title:i,priority:s,sections:a=!1,...u})=>F.jsx(My,{children:F.jsx(Uy,{...u,children:a?F.jsx(dD,{children:e}):t||n?F.jsx(hD,{horizontalScroll:t,verticalScroll:n,title:i,priority:s,children:e}):e})}),jy=({children:e})=>F.jsx(F.Fragment,{children:e}),dD=({children:e})=>{const{minHeight:t}=Bn();return F.jsx(pi,{direction:"vertical",itemSize:t,containerSize:"100%",children:j.Children.map(e,n=>{if(!j.isValidElement(n))return null;if(n.type===jy){const i=n.props;return F.jsx(pD,{title:i.title,priority:i.priority,children:i.children})}return n})})},pD=({title:e,priority:t,children:n})=>{const{minWidth:i,minHeight:s}=Bn();return F.jsx(pi,{direction:"horizontal",itemSize:i,containerSize:s,title:e,priority:t,children:n})},hD=({children:e,horizontalScroll:t,verticalScroll:n,title:i,priority:s})=>{const{minHeight:a,minWidth:u}=Bn();return t&&!n?F.jsx(pi,{direction:"horizontal",itemSize:u,containerSize:a,title:i,priority:s,children:e}):n&&!t?F.jsx(pi,{direction:"vertical",itemSize:a,containerSize:"100%",children:e}):t&&n?F.jsx(pi,{direction:"vertical",itemSize:a,containerSize:"100%",children:F.jsx(pi,{direction:"horizontal",itemSize:u,containerSize:a,title:i,priority:s,children:e})}):F.jsx(F.Fragment,{children:e})},mD=({collapseIcon:e,children:t,collapseWidth:n,delay:i=150,tooltipTitle:s="More actions",fullWidth:a=!1})=>{const[u,c]=j.useState(a),f=j.useRef(null),p=j.useRef(null);j.useEffect(()=>{c(a)},[a]);const h=()=>{a||(clearTimeout(p.current),p.current=setTimeout(()=>c(!0),i))},x=R=>{if(a)return;const w=R.relatedTarget;f.current&&w instanceof Node&&f.current.contains(w)||(clearTimeout(p.current),p.current=setTimeout(()=>c(!1),i))};return F.jsxs(me.Box,{ref:f,onMouseEnter:h,onMouseLeave:x,sx:{display:"flex",alignItems:"center",width:u?a?"100%":"auto":n,minWidth:n,overflow:"hidden",transition:R=>R.transitions.create("width",{duration:300,easing:R.transitions.easing.easeInOut})},children:[!u&&!a&&F.jsx(me.Tooltip,{title:s,children:F.jsx(me.IconButton,{size:"small",sx:{minWidth:n},children:e})}),F.jsx(me.Collapse,{in:u,orientation:"horizontal",timeout:300,sx:{minWidth:0},children:F.jsx(me.Box,{sx:{display:"inline-flex",whiteSpace:"nowrap"},children:t})})]})},wm={};function Hy(e,t){const n=oe.useRef(wm);return n.current===wm&&(n.current=e(t)),n}const gD=[];function yD(e){oe.useEffect(e,gD)}class Du{constructor(){an(this,"currentId",null);an(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});an(this,"disposeEffect",()=>this.clear)}static create(){return new Du}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hi(){const e=Hy(Du.create).current;return yD(e.disposeEffect),e}function vD(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function $c(){return $c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$c.apply(null,arguments)}function qy(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lc(e,t)}function Vy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lc(e,t)}const xm={disabled:!1};var bD=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const eu=j.createContext(null);var wD=function(t){return t.scrollTop},es="unmounted",ai="exited",ui="entering",Xi="entered",zc="exiting",er=function(e){Vy(t,e);function t(i,s){var a;a=e.call(this,i,s)||this;var u=s,c=u&&!u.isMounting?i.enter:i.appear,f;return a.appearStatus=null,i.in?c?(f=ai,a.appearStatus=ui):f=Xi:i.unmountOnExit||i.mountOnEnter?f=es:f=ai,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var u=s.in;return u&&a.status===es?{status:ai}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var a=null;if(s!==this.props){var u=this.state.status;this.props.in?u!==ui&&u!==Xi&&(a=ui):(u===ui||u===Xi)&&(a=zc)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,a,u,c;return a=u=c=s,s!=null&&typeof s!="number"&&(a=s.exit,u=s.enter,c=s.appear!==void 0?s.appear:u),{exit:a,enter:u,appear:c}},n.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===ui){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:fi.findDOMNode(this);u&&wD(u)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ai&&this.setState({status:es})},n.performEnter=function(s){var a=this,u=this.props.enter,c=this.context?this.context.isMounting:s,f=this.props.nodeRef?[c]:[fi.findDOMNode(this),c],p=f[0],h=f[1],x=this.getTimeouts(),R=c?x.appear:x.enter;if(!s&&!u||xm.disabled){this.safeSetState({status:Xi},function(){a.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:ui},function(){a.props.onEntering(p,h),a.onTransitionEnd(R,function(){a.safeSetState({status:Xi},function(){a.props.onEntered(p,h)})})})},n.performExit=function(){var s=this,a=this.props.exit,u=this.getTimeouts(),c=this.props.nodeRef?void 0:fi.findDOMNode(this);if(!a||xm.disabled){this.safeSetState({status:ai},function(){s.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:zc},function(){s.props.onExiting(c),s.onTransitionEnd(u.exit,function(){s.safeSetState({status:ai},function(){s.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},n.setNextCallback=function(s){var a=this,u=!0;return this.nextCallback=function(c){u&&(u=!1,a.nextCallback=null,s(c))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(s,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:fi.findDOMNode(this),c=s==null&&!this.props.addEndListener;if(!u||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=f[0],h=f[1];this.props.addEndListener(p,h)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===es)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=qy(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(eu.Provider,{value:null},typeof u=="function"?u(s,c):j.cloneElement(j.Children.only(u),c))},t}(j.Component);er.contextType=eu;er.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,n,i,s,a){var u=e[t];return b.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,i,s,a)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var n=bD;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.apply(void 0,[t].concat(s))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function Vi(){}er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vi,onEntering:Vi,onEntered:Vi,onExit:Vi,onExiting:Vi,onExited:Vi};er.UNMOUNTED=es;er.EXITED=ai;er.ENTERING=ui;er.ENTERED=Xi;er.EXITING=zc;function xD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vf(e,t){var n=function(a){return t&&j.isValidElement(a)?t(a):a},i=Object.create(null);return e&&j.Children.map(e,function(s){return s}).forEach(function(s){i[s.key]=n(s)}),i}function SD(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var i=Object.create(null),s=[];for(var a in e)a in t?s.length&&(i[a]=s,s=[]):s.push(a);var u,c={};for(var f in t){if(i[f])for(u=0;u<i[f].length;u++){var p=i[f][u];c[i[f][u]]=n(p)}c[f]=n(f)}for(u=0;u<s.length;u++)c[s[u]]=n(s[u]);return c}function mi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ED(e,t){return vf(e.children,function(n){return j.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:mi(n,"appear",e),enter:mi(n,"enter",e),exit:mi(n,"exit",e)})})}function OD(e,t,n){var i=vf(e.children),s=SD(t,i);return Object.keys(s).forEach(function(a){var u=s[a];if(j.isValidElement(u)){var c=a in t,f=a in i,p=t[a],h=j.isValidElement(p)&&!p.props.in;f&&(!c||h)?s[a]=j.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:mi(u,"exit",e),enter:mi(u,"enter",e)}):!f&&c&&!h?s[a]=j.cloneElement(u,{in:!1}):f&&c&&j.isValidElement(p)&&(s[a]=j.cloneElement(u,{onExited:n.bind(null,u),in:p.props.in,exit:mi(u,"exit",e),enter:mi(u,"enter",e)}))}}),s}var TD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CD={component:"div",childFactory:function(t){return t}},bf=function(e){Vy(t,e);function t(i,s){var a;a=e.call(this,i,s)||this;var u=a.handleExited.bind(xD(a));return a.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,a){var u=a.children,c=a.handleExited,f=a.firstRender;return{children:f?ED(s,c):OD(s,u,c),firstRender:!1}},n.handleExited=function(s,a){var u=vf(this.props.children);s.key in u||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(c){var f=$c({},c.children);return delete f[s.key],{children:f}}))},n.render=function(){var s=this.props,a=s.component,u=s.childFactory,c=qy(s,["component","childFactory"]),f=this.state.contextValue,p=TD(this.state.children).map(u);return delete c.appear,delete c.enter,delete c.exit,a===null?j.createElement(eu.Provider,{value:f},p):j.createElement(eu.Provider,{value:f},j.createElement(a,c,p))},t}(j.Component);bf.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{};bf.defaultProps=CD;function Mu(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}function _D(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Gy(e,t,n,i,s){const a=e[t],u=s||t;if(a==null||typeof window>"u")return null;let c;const f=a.type;return typeof f=="function"&&!_D(f)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pu=Mu(b.element,Gy);Pu.isRequired=Mu(b.element.isRequired,Gy);function Iu(e){var t;return parseInt(oe.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Yy=e=>e.scrollTop;function tu(e,t){const{timeout:n,easing:i,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:s.transitionDelay}}const RD={entering:{transform:"none"},entered:{transform:"none"}},Zy=oe.forwardRef(function(t,n){const i=xs(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:c,easing:f,in:p,onEnter:h,onEntered:x,onEntering:R,onExit:w,onExited:C,onExiting:y,style:v,timeout:g=s,TransitionComponent:m=er,...S}=t,E=oe.useRef(null),T=Fn(E,Iu(c),n),M=B=>K=>{if(B){const q=E.current;K===void 0?B(q):B(q,K)}},D=M(R),A=M((B,K)=>{Yy(B);const q=tu({style:v,timeout:g,easing:f},{mode:"enter"});B.style.webkitTransition=i.transitions.create("transform",q),B.style.transition=i.transitions.create("transform",q),h&&h(B,K)}),z=M(x),J=M(y),Z=M(B=>{const K=tu({style:v,timeout:g,easing:f},{mode:"exit"});B.style.webkitTransition=i.transitions.create("transform",K),B.style.transition=i.transitions.create("transform",K),w&&w(B)}),_=M(C),H=B=>{a&&a(E.current,B)};return F.jsx(m,{appear:u,in:p,nodeRef:E,onEnter:A,onEntered:z,onEntering:D,onExit:Z,onExited:_,onExiting:J,addEndListener:H,timeout:g,...S,children:(B,{ownerState:K,...q})=>oe.cloneElement(c,{style:{transform:"scale(0)",visibility:B==="exited"&&!p?"hidden":void 0,...RD[B],...v,...c.props.style},ref:T,...q})})});process.env.NODE_ENV!=="production"&&(Zy.propTypes={addEndListener:b.func,appear:b.bool,children:Pu.isRequired,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,style:b.object,timeout:b.oneOfType([b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])});const wf=b.oneOfType([b.func,b.object]);function DD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function MD(e,t,n,i,s){const a=e[t],u=s||t;if(a==null||typeof window>"u")return null;let c;return typeof a=="function"&&!DD(a)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const PD=Mu(b.elementType,MD);function nu(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
137
- `))}return!1}class ru{constructor(){an(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ru}static use(){const t=Hy(ru.create).current,[n,i]=oe.useState(!1);return t.shouldMount=n,t.setShouldMount=i,oe.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=ND(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function ID(){return ru.use()}function ND(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});return n.resolve=e,n.reject=t,n}function Xy(e){const{className:t,classes:n,pulsate:i=!1,rippleX:s,rippleY:a,rippleSize:u,in:c,onExited:f,timeout:p}=e,[h,x]=oe.useState(!1),R=at(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),w={width:u,height:u,top:-(u/2)+a,left:-(u/2)+s},C=at(n.child,h&&n.childLeaving,i&&n.childPulsate);return!c&&!h&&x(!0),oe.useEffect(()=>{if(!c&&f!=null){const y=setTimeout(f,p);return()=>{clearTimeout(y)}}},[f,c,p]),F.jsx("span",{className:R,style:w,children:F.jsx("span",{className:C})})}process.env.NODE_ENV!=="production"&&(Xy.propTypes={classes:b.object.isRequired,className:b.string,in:b.bool,onExited:b.func,pulsate:b.bool,rippleSize:b.number,rippleX:b.number,rippleY:b.number,timeout:b.number.isRequired});const Sn=Qn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Fc=550,AD=80,kD=gu.keyframes`
136
+ `,kR=()=>F.jsxs(me.Box,{"data-testid":"loading-screen",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"100%",gap:3,backdropFilter:"blur(8px)",animation:`${AR} 0.5s ease-in`},children:[F.jsx(me.Box,{sx:{position:"relative",animation:`${IR} 2s ease-in-out infinite`},children:F.jsx(me.CircularProgress,{size:60,thickness:4,sx:{opacity:.8}})}),F.jsxs(me.Typography,{variant:"h6",sx:{fontWeight:300,letterSpacing:1,display:"flex",alignItems:"center",gap:"2px"},children:["Loading",F.jsx(me.Box,{sx:{display:"inline-block",width:"24px",position:"relative","&::after":{content:"''",left:0,animation:`${NR} 1.5s steps(4) infinite`}}})]})]}),Ny="resizable-panel-dimensions-";function Ay(e,t){try{const n=localStorage.getItem(Ny+e);return n?JSON.parse(n):t}catch(n){return console.warn("Failed to load panel dimensions:",n),t}}function $R(e,t){try{localStorage.setItem(Ny+e,JSON.stringify(t))}catch(n){console.warn("Failed to save panel dimensions:",n)}}const ky=B.createContext({id:"",panelRef:{current:null},panelContentRef:{current:null},defaultWidth:200,defaultHeight:200,minWidth:100,maxWidth:500,minHeight:100,maxHeight:500,extendedStyle:{},setExtendedStyle:()=>{},tools:[],setTools:()=>{},addTool:()=>{},removeTool:()=>{},dimensions:{width:200,height:200},setDimensions:()=>{},handleDimensionsChange:()=>{},dimensionsWereTemporary:!1,extendedContainerStyle:{position:"relative"},setExtendedContainerStyle:()=>{}}),$y=({children:e,id:t,additionaltools:n,defaultWidth:i=200,defaultHeight:s=200,minWidth:a=100,maxWidth:u=500,minHeight:c=100,maxHeight:f=500,expandable:p,resizable:h,scrollable:x})=>{const R=B.useRef(null),w=B.useRef(null),[O,y]=B.useState({}),[v,g]=B.useState(n||[]),[m,S]=B.useState(()=>Ay(t,{width:i,height:s})),[E,C]=B.useState(!1),[M,D]=B.useState({position:"relative"}),A=Z=>{g(_=>[..._,Z])},z=Z=>{g(_=>_.filter(H=>H!==Z))},J=(Z,_=!1)=>{S(Z),C(_),_||$R(t,Z)};return F.jsx(ky.Provider,{value:{id:t,panelRef:R,panelContentRef:w,defaultWidth:i,defaultHeight:s,minWidth:a,maxWidth:u,minHeight:c,maxHeight:f,expandable:p,resizable:h,scrollable:x,extendedStyle:O,setExtendedStyle:y,tools:v,setTools:g,addTool:A,removeTool:z,dimensions:m,setDimensions:S,handleDimensionsChange:J,dimensionsWereTemporary:E,extendedContainerStyle:M,setExtendedContainerStyle:D},children:e})},Bn=()=>{const e=B.useContext(ky);if(!e)throw new Error("usePanelContext must be used within a PanelProvider");return e},LR={};function zR(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var a;const u=f=>f===null?null:JSON.parse(f,void 0),c=(a=n.getItem(s))!=null?a:null;return c instanceof Promise?c.then(u):u(c)},setItem:(s,a)=>n.setItem(s,JSON.stringify(a,void 0)),removeItem:s=>n.removeItem(s)}}const ps=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(i){return ps(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return ps(i)(n)}}}},FR=(e,t)=>(n,i,s)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,g)=>({...g,...v}),...t},u=!1;const c=new Set,f=new Set;let p;try{p=a.getStorage()}catch{}if(!p)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},i,s);const h=ps(a.serialize),x=()=>{const v=a.partialize({...i()});let g;const m=h({state:v,version:a.version}).then(S=>p.setItem(a.name,S)).catch(S=>{g=S});if(g)throw g;return m},R=s.setState;s.setState=(v,g)=>{R(v,g),x()};const w=e((...v)=>{n(...v),x()},i,s);let O;const y=()=>{var v;if(!p)return;u=!1,c.forEach(m=>m(i()));const g=((v=a.onRehydrateStorage)==null?void 0:v.call(a,i()))||void 0;return ps(p.getItem.bind(p))(a.name).then(m=>{if(m)return a.deserialize(m)}).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==a.version){if(a.migrate)return a.migrate(m.state,m.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return m.state}).then(m=>{var S;return O=a.merge(m,(S=i())!=null?S:w),n(O,!0),x()}).then(()=>{g==null||g(O,void 0),u=!0,f.forEach(m=>m(O))}).catch(m=>{g==null||g(void 0,m)})};return s.persist={setOptions:v=>{a={...a,...v},v.getStorage&&(p=v.getStorage())},clearStorage:()=>{p==null||p.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>y(),hasHydrated:()=>u,onHydrate:v=>(c.add(v),()=>{c.delete(v)}),onFinishHydration:v=>(f.add(v),()=>{f.delete(v)})},y(),O||w},WR=(e,t)=>(n,i,s)=>{let a={storage:zR(()=>localStorage),partialize:y=>y,version:0,merge:(y,v)=>({...v,...y}),...t},u=!1;const c=new Set,f=new Set;let p=a.storage;if(!p)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...y)},i,s);const h=()=>{const y=a.partialize({...i()});return p.setItem(a.name,{state:y,version:a.version})},x=s.setState;s.setState=(y,v)=>{x(y,v),h()};const R=e((...y)=>{n(...y),h()},i,s);s.getInitialState=()=>R;let w;const O=()=>{var y,v;if(!p)return;u=!1,c.forEach(m=>{var S;return m((S=i())!=null?S:R)});const g=((v=a.onRehydrateStorage)==null?void 0:v.call(a,(y=i())!=null?y:R))||void 0;return ps(p.getItem.bind(p))(a.name).then(m=>{if(m)if(typeof m.version=="number"&&m.version!==a.version){if(a.migrate)return[!0,a.migrate(m.state,m.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,m.state];return[!1,void 0]}).then(m=>{var S;const[E,C]=m;if(w=a.merge(C,(S=i())!=null?S:R),n(w,!0),E)return h()}).then(()=>{g==null||g(w,void 0),w=i(),u=!0,f.forEach(m=>m(w))}).catch(m=>{g==null||g(void 0,m)})};return s.persist={setOptions:y=>{a={...a,...y},y.storage&&(p=y.storage)},clearStorage:()=>{p==null||p.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>O(),hasHydrated:()=>u,onHydrate:y=>(c.add(y),()=>{c.delete(y)}),onFinishHydration:y=>(f.add(y),()=>{f.delete(y)})},a.skipHydration||O(),w||R},BR=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((LR?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),FR(e,t)):WR(e,t),UR=BR,po=fo.create()(UR(e=>({editMode:!1,toggleEditMode:()=>e(t=>({editMode:!t.editMode})),resizeMode:!1,toggleResizeMode:()=>e(t=>({resizeMode:!t.resizeMode})),moveMode:!1,toggleMoveMode:()=>e(t=>({moveMode:!t.moveMode}))}),{name:"grid-layout-storage"})),jR=({children:e,position:t="top-right"})=>F.jsx(me.Box,{sx:{position:"absolute",...t==="top-right"?{top:8,right:8}:{bottom:8,right:8},zIndex:2,opacity:0,transition:"opacity 0.2s ease-in-out",".MuiBox-root:hover > &":{opacity:1}},children:e}),HR=({children:e,dimensions:t})=>{const n=me.useTheme();return F.jsx(me.Box,{sx:{overflowX:"hidden",overflowY:"hidden",width:t.width+25,height:t.height,pointerEvents:"auto",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"8px",backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.palette.divider,borderRadius:"4px"},willChange:"width, height"},children:e})},VR=B.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}}),qR=()=>{const e=B.useContext(VR);if(!e)throw new Error("useResizeContext must be used within a ResizeProvider");return e},GR=({children:e})=>{const{panelContentRef:t,dimensions:n,panelRef:i}=Bn(),{setItemCounts:s}=qR();return B.useEffect(()=>{if(!i.current||!t.current)return;(u=>{const c=u.current.offsetWidth,f=Math.max(1,Math.floor(c/n.width)),p=Math.floor(n.height/n.height);s({horizontal:f,vertical:p})})(t)},[n,i,s]),F.jsx(HR,{dimensions:n,children:e})},YR=jt(F.jsx("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen"),ZR=jt(F.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull"),Ly=fo.create(e=>({expandedPanelId:null,setExpandedPanelId:t=>e({expandedPanelId:t})})),zy=B.createContext(void 0),XR=({children:e})=>{const[t,n]=B.useState(!1);return F.jsx(zy.Provider,{value:{isExpanded:t,setIsExpanded:n},children:e})},Fy=()=>{const e=B.useContext(zy);if(!e)throw new Error("useExpandableContext must be used within an ExpandableContextProvider");return e},JR=(e,t,n,i)=>{const[s,a]=B.useState(!1),[u,c]=B.useState({top:0,left:0});return B.useEffect(()=>{var h,x;const f=((h=n.current)==null?void 0:h.offsetTop)||0,p=((x=n.current)==null?void 0:x.offsetLeft)||0;e&&requestAnimationFrame(()=>{c({top:f,left:p}),e===t?a(!0):i({height:0})})},[e,t,n,i]),{readyForExpansion:s,setReadyForExpansion:a,initialPosition:u}},KR=(e,t,n,i,s,a,u)=>{const[c,f]=B.useState(!1);return B.useEffect(()=>{if(e&&t.current&&n.current){const p=setTimeout(()=>{f(!0),u(!1)},100);return()=>clearTimeout(p)}},[e,t,n,u]),B.useEffect(()=>{c&&t.current&&n.current&&requestAnimationFrame(()=>{s({height:"0%"}),i({top:0,left:0,zIndex:1e3}),a(!0),f(!1)})},[c,i,a,t,n,s]),{animateExpansion:c,setAnimateExpansion:f}},QR=(e,t,n,i,s,a,u)=>{B.useEffect(()=>{e&&t===null&&i.current?requestAnimationFrame(()=>{a({position:"relative"}),s({position:"absolute",transition:"all 0.3s ease-in-out"});const c=setTimeout(()=>{s({}),u(!1)},300);return()=>clearTimeout(c)}):!e&&t===null&&(s({}),a({position:"relative"}))},[t,n,e,s,a,u])},eD=e=>{const{setExtendedStyle:t,panelRef:n,handleDimensionsChange:i}=Bn();B.useEffect(()=>{if(!e||!n.current||!n.current.offsetParent)return;const a=()=>{};let u;const c=()=>{clearTimeout(u),u=setTimeout(a,250)};return window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c),clearTimeout(u)}},[e,n,t,i])},tD=B.createContext(void 0),Wy=()=>{const e=B.useContext(tD);if(!e)throw new Error("Panel must be used inside Panels");return e},nD=()=>{const{expandedPanelId:e}=Ly(),{parentRef:t}=Wy(),{setExtendedStyle:n,setExtendedContainerStyle:i,panelRef:s,addTool:a,id:u}=Bn(),{isExpanded:c,setIsExpanded:f}=Fy(),{readyForExpansion:p,setReadyForExpansion:h}=JR(e,u,s,n);return KR(p,s,t,n,i,f,h),QR(c,e,u,s,n,i,f),eD(c),B.useEffect(()=>{a(F.jsx(rD,{}))},[]),null},rD=()=>{const{id:e}=Bn(),{isExpanded:t}=Fy(),{resizeMode:n}=po(),{setExpandedPanelId:i}=Ly(),s=()=>{i(t?null:e)};return F.jsx(me.IconButton,{disabled:n,onClick:s,size:"small",children:t?F.jsx(YR,{}):F.jsx(ZR,{})})};function Yn(e,t){return Math.round(e/t)*t}function wm(e,t,n,i,s,a){return u=>{if(!t)return;const{clientX:c,clientY:f}="touches"in u?u.touches[0]:u;i({vertical:e==="vertical"||e==="corner",horizontal:e==="horizontal"||e==="corner"}),s.current={x:c,y:f,width:Yn(n.width,a.x),height:Yn(n.height,a.y)},u.preventDefault()}}const iD=({id:e,dimensions:t,handleDimensionsChange:n})=>{const i=B.useRef(!1),s=B.useRef(Ay(e,t));return{isUserResizingRef:i,userChosenDimensionsRef:s,wrappedHandleDimensionsChange:u=>{i.current&&(s.current.width=u.width,s.current.height=u.height),n(u,!0)}}},oD=({children:e})=>F.jsx(me.Box,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.6)",backdropFilter:"blur(2px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:100},children:e}),sD=({dimensions:e})=>F.jsx(me.Box,{sx:{padding:2,backgroundColor:"background.paper",borderRadius:1,boxShadow:2},children:F.jsxs(me.Typography,{variant:"body2",component:"div",children:[Math.round(e.width)," × ",Math.round(e.height)]})}),aD=({handleMouseDown:e,handleTouchStart:t})=>{const n={position:"absolute",backgroundColor:"transparent",transition:"background-color 0.2s","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.05)"}};return F.jsxs(F.Fragment,{children:[F.jsx(me.Box,{onMouseDown:i=>e("horizontal")(i),onTouchStart:i=>t("horizontal")(i),sx:{...n,right:0,top:0,width:"10px",height:"100%",cursor:"ew-resize",zIndex:10}}),F.jsx(me.Box,{onMouseDown:e("vertical"),onTouchStart:t("vertical"),sx:{...n,bottom:0,left:0,width:"100%",height:"8px",cursor:"ns-resize",zIndex:10}}),F.jsx(me.Box,{onMouseDown:i=>e("corner")(i),onTouchStart:i=>t("corner")(i),sx:{...n,bottom:0,right:0,width:"16px",height:"16px",cursor:"nwse-resize",zIndex:10}})]})},By=B.createContext(void 0),uD=({children:e})=>{const{id:t,minWidth:n,maxWidth:i,minHeight:s,maxHeight:a,dimensions:u,dimensionsWereTemporary:c,handleDimensionsChange:f}=Bn(),[p,h]=B.useState({vertical:!1,horizontal:!1}),x=B.useRef({x:0,y:0,width:u.width,height:u.height}),R={x:n,y:s};return B.useEffect(()=>{const w=y=>{if(!p.vertical&&!p.horizontal)return;const v={...u};if(p.horizontal){const g=y.clientX-x.current.x,m=x.current.width+g,S=Yn(m,R.x);v.width=Math.min(Math.max(S,n),i)}if(p.vertical){const g=y.clientY-x.current.y,m=x.current.height+g,S=Yn(m,R.y);v.height=Math.min(Math.max(S,s),a)}(v.width!==u.width||v.height!==u.height)&&f(v,!1)},O=()=>h({vertical:!1,horizontal:!1});return(p.vertical||p.horizontal)&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",O)),()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",O)}},[p,u,n,i,s,a,c,t]),B.useEffect(()=>{if(!p.vertical&&!p.horizontal)return;const w=y=>{const v=y.touches[0],g={...u};if(p.horizontal){const m=v.clientX-x.current.x,S=x.current.width+m;g.width=Math.min(Math.max(Yn(S,R.x),Yn(n,R.x)),Yn(i,R.x))}if(p.vertical){const m=v.clientY-x.current.y,S=x.current.height+m;g.height=Math.min(Math.max(Yn(S,R.y),Yn(s,R.y)),Yn(a,R.y))}f(g,!1)},O=()=>h({vertical:!1,horizontal:!1});return document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",O),()=>{document.removeEventListener("touchmove",w),document.removeEventListener("touchend",O)}},[p,u,n,i,s,a]),B.useEffect(()=>(p.vertical||p.horizontal?(document.body.style.overflow="hidden",document.body.style.userSelect="none"):(document.body.style.overflow="",document.body.style.userSelect=""),()=>{document.body.style.overflow="",document.body.style.userSelect=""}),[p]),F.jsx(By.Provider,{value:{dragStart:x,isDragging:p,setIsDragging:h,leap:R},children:e})},Uy=()=>{const e=B.useContext(By);if(!e)throw new Error("useResizableContext must be used within a ResizableContextProvider");return e},lD=e=>{const{parentRef:t}=Wy(),{leap:n}=Uy(),{panelRef:i,panelContentRef:s,dimensions:a,minWidth:u,minHeight:c,isUserResizingRef:f,userChosenDimensionsRef:p,wrappedHandleDimensionsChange:h}=e,x=(R,w,O,y,v)=>{if(R<w)return w;const g=Math.max(Math.floor(y/v)*v,w);if(R>g)return g;const m=f.current?R:Math.min(O,g);return R<m?Math.min(R+v,m):R};B.useEffect(()=>{if(!i.current||!t.current)return;const R=()=>{const O=s.current,y=t.current;if(!O||!y)return;const v=y.getBoundingClientRect(),g=O.getBoundingClientRect(),m=1,S=v.width-(g.left-v.left)-m,E=v.height-(g.top-v.top)-m,C=x(a.width,u,p.current.width,S,n.x),M=x(a.height,c,p.current.height,E,n.y);(C!==a.width||M!==a.height)&&h({width:C,height:M})},w=new ResizeObserver(()=>{requestAnimationFrame(R)});return w.observe(i.current),w.observe(t.current),R(),()=>{w.disconnect()}},[a.width,a.height,u,c,h,f,p,s,i,t,n])},cD=()=>{const{resizeMode:e}=po(),{id:t,dimensions:n,handleDimensionsChange:i,minWidth:s,minHeight:a,panelRef:u,panelContentRef:c}=Bn(),{dragStart:f,isDragging:p,setIsDragging:h,leap:x}=Uy(),{isUserResizingRef:R,wrappedHandleDimensionsChange:w,userChosenDimensionsRef:O}=iD({id:t,dimensions:n,handleDimensionsChange:i});lD({panelRef:u,panelContentRef:c,dimensions:n,minWidth:s,minHeight:a,isUserResizingRef:R,userChosenDimensionsRef:O,wrappedHandleDimensionsChange:w});const y=g=>(R.current=!0,wm(g,e,n,h,f,x)),v=g=>wm(g,e,n,h,f,x);return F.jsxs(F.Fragment,{children:[(p.vertical||p.horizontal)&&F.jsx(oD,{children:F.jsx(sD,{dimensions:n})}),e&&F.jsx(aD,{handleMouseDown:y,handleTouchStart:v})]})},fD=({children:e})=>{const t=me.useTheme(),{resizeMode:n}=po(),{id:i,tools:s,expandable:a,dimensions:u,extendedStyle:c,panelRef:f,panelContentRef:p,resizable:h,scrollable:x,extendedContainerStyle:R}=Bn();return F.jsx(me.Box,{"data-panel-id":i,ref:f,"data-testid":"panel-container",sx:{boxSizing:"border-box",maxWidth:"100%",height:u.height,width:u.width+25,outline:n?`0.1em dashed ${t.palette.primary.main}`:"none",...R},children:F.jsxs(me.Box,{"data-testid":"panel-content",ref:p,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",backgroundColor:t.palette.background.default,borderRadius:1,transition:"all 0.3s ease-in-out",position:"absolute",...c},children:[s&&F.jsx(jR,{position:"bottom-right",children:s},"tools"),h&&F.jsx(cD,{},"resizable"),a&&F.jsx(nD,{},"expandable"),x?F.jsx(GR,{children:e},"scrollable"):B.Children.map(e,(w,O)=>B.isValidElement(w)?B.cloneElement(w,{key:w.key||`panel-child-${O}`}):w)]})})},jy=e=>F.jsx($y,{...e,children:F.jsx(uD,{children:F.jsx(XR,{children:F.jsx(fD,{children:e.children})})})}),dD=({children:e,horizontalScroll:t=!1,verticalScroll:n=!1,title:i,priority:s,sections:a=!1,...u})=>F.jsx(Py,{children:F.jsx(jy,{...u,children:a?F.jsx(pD,{children:e}):t||n?F.jsx(mD,{horizontalScroll:t,verticalScroll:n,title:i,priority:s,children:e}):e})}),Hy=({children:e})=>F.jsx(F.Fragment,{children:e}),pD=({children:e})=>{const{minHeight:t}=Bn();return F.jsx(pi,{direction:"vertical",itemSize:t,containerSize:"100%",children:B.Children.map(e,n=>{if(!B.isValidElement(n))return null;if(n.type===Hy){const i=n.props;return F.jsx(hD,{title:i.title,priority:i.priority,children:i.children})}return n})})},hD=({title:e,priority:t,children:n})=>{const{minWidth:i,minHeight:s}=Bn();return F.jsx(pi,{direction:"horizontal",itemSize:i,containerSize:s,title:e,priority:t,children:n})},mD=({children:e,horizontalScroll:t,verticalScroll:n,title:i,priority:s})=>{const{minHeight:a,minWidth:u}=Bn();return t&&!n?F.jsx(pi,{direction:"horizontal",itemSize:u,containerSize:a,title:i,priority:s,children:e}):n&&!t?F.jsx(pi,{direction:"vertical",itemSize:a,containerSize:"100%",children:e}):t&&n?F.jsx(pi,{direction:"vertical",itemSize:a,containerSize:"100%",children:F.jsx(pi,{direction:"horizontal",itemSize:u,containerSize:a,title:i,priority:s,children:e})}):F.jsx(F.Fragment,{children:e})},gD=({collapseIcon:e,children:t,collapseWidth:n,delay:i=150,tooltipTitle:s="More actions",fullWidth:a=!1})=>{const[u,c]=B.useState(a),f=B.useRef(null),p=B.useRef(null);B.useEffect(()=>{c(a)},[a]);const h=()=>{a||(clearTimeout(p.current),p.current=setTimeout(()=>c(!0),i))},x=R=>{if(a)return;const w=R.relatedTarget;f.current&&w instanceof Node&&f.current.contains(w)||(clearTimeout(p.current),p.current=setTimeout(()=>c(!1),i))};return F.jsxs(me.Box,{ref:f,onMouseEnter:h,onMouseLeave:x,sx:{display:"flex",alignItems:"center",width:u?a?"100%":"auto":n,minWidth:n,overflow:"hidden",transition:R=>R.transitions.create("width",{duration:300,easing:R.transitions.easing.easeInOut})},children:[!u&&!a&&F.jsx(me.Tooltip,{title:s,children:F.jsx(me.IconButton,{size:"small",sx:{minWidth:n},children:e})}),F.jsx(me.Collapse,{in:u,orientation:"horizontal",timeout:300,sx:{minWidth:0},children:F.jsx(me.Box,{sx:{display:"inline-flex",whiteSpace:"nowrap"},children:t})})]})},xm={};function Vy(e,t){const n=oe.useRef(xm);return n.current===xm&&(n.current=e(t)),n}const yD=[];function vD(e){oe.useEffect(e,yD)}class Mu{constructor(){an(this,"currentId",null);an(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});an(this,"disposeEffect",()=>this.clear)}static create(){return new Mu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function hi(){const e=Vy(Mu.create).current;return vD(e.disposeEffect),e}function bD(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Lc.apply(null,arguments)}function qy(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function zc(e,t){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zc(e,t)}function Gy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zc(e,t)}const Sm={disabled:!1};var wD=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const nu=B.createContext(null);var xD=function(t){return t.scrollTop},ts="unmounted",ai="exited",ui="entering",Xi="entered",Fc="exiting",tr=function(e){Gy(t,e);function t(i,s){var a;a=e.call(this,i,s)||this;var u=s,c=u&&!u.isMounting?i.enter:i.appear,f;return a.appearStatus=null,i.in?c?(f=ai,a.appearStatus=ui):f=Xi:i.unmountOnExit||i.mountOnEnter?f=ts:f=ai,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var u=s.in;return u&&a.status===ts?{status:ai}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var a=null;if(s!==this.props){var u=this.state.status;this.props.in?u!==ui&&u!==Xi&&(a=ui):(u===ui||u===Xi)&&(a=Fc)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,a,u,c;return a=u=c=s,s!=null&&typeof s!="number"&&(a=s.exit,u=s.enter,c=s.appear!==void 0?s.appear:u),{exit:a,enter:u,appear:c}},n.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===ui){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:fi.findDOMNode(this);u&&xD(u)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ai&&this.setState({status:ts})},n.performEnter=function(s){var a=this,u=this.props.enter,c=this.context?this.context.isMounting:s,f=this.props.nodeRef?[c]:[fi.findDOMNode(this),c],p=f[0],h=f[1],x=this.getTimeouts(),R=c?x.appear:x.enter;if(!s&&!u||Sm.disabled){this.safeSetState({status:Xi},function(){a.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:ui},function(){a.props.onEntering(p,h),a.onTransitionEnd(R,function(){a.safeSetState({status:Xi},function(){a.props.onEntered(p,h)})})})},n.performExit=function(){var s=this,a=this.props.exit,u=this.getTimeouts(),c=this.props.nodeRef?void 0:fi.findDOMNode(this);if(!a||Sm.disabled){this.safeSetState({status:ai},function(){s.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Fc},function(){s.props.onExiting(c),s.onTransitionEnd(u.exit,function(){s.safeSetState({status:ai},function(){s.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},n.setNextCallback=function(s){var a=this,u=!0;return this.nextCallback=function(c){u&&(u=!1,a.nextCallback=null,s(c))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(s,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:fi.findDOMNode(this),c=s==null&&!this.props.addEndListener;if(!u||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=f[0],h=f[1];this.props.addEndListener(p,h)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===ts)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=qy(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return B.createElement(nu.Provider,{value:null},typeof u=="function"?u(s,c):B.cloneElement(B.Children.only(u),c))},t}(B.Component);tr.contextType=nu;tr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,n,i,s,a){var u=e[t];return b.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,i,s,a)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var n=wD;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.apply(void 0,[t].concat(s))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function qi(){}tr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qi,onEntering:qi,onEntered:qi,onExit:qi,onExiting:qi,onExited:qi};tr.UNMOUNTED=ts;tr.EXITED=ai;tr.ENTERING=ui;tr.ENTERED=Xi;tr.EXITING=Fc;function SD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bf(e,t){var n=function(a){return t&&B.isValidElement(a)?t(a):a},i=Object.create(null);return e&&B.Children.map(e,function(s){return s}).forEach(function(s){i[s.key]=n(s)}),i}function ED(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var i=Object.create(null),s=[];for(var a in e)a in t?s.length&&(i[a]=s,s=[]):s.push(a);var u,c={};for(var f in t){if(i[f])for(u=0;u<i[f].length;u++){var p=i[f][u];c[i[f][u]]=n(p)}c[f]=n(f)}for(u=0;u<s.length;u++)c[s[u]]=n(s[u]);return c}function mi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function OD(e,t){return bf(e.children,function(n){return B.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:mi(n,"appear",e),enter:mi(n,"enter",e),exit:mi(n,"exit",e)})})}function TD(e,t,n){var i=bf(e.children),s=ED(t,i);return Object.keys(s).forEach(function(a){var u=s[a];if(B.isValidElement(u)){var c=a in t,f=a in i,p=t[a],h=B.isValidElement(p)&&!p.props.in;f&&(!c||h)?s[a]=B.cloneElement(u,{onExited:n.bind(null,u),in:!0,exit:mi(u,"exit",e),enter:mi(u,"enter",e)}):!f&&c&&!h?s[a]=B.cloneElement(u,{in:!1}):f&&c&&B.isValidElement(p)&&(s[a]=B.cloneElement(u,{onExited:n.bind(null,u),in:p.props.in,exit:mi(u,"exit",e),enter:mi(u,"enter",e)}))}}),s}var CD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},_D={component:"div",childFactory:function(t){return t}},wf=function(e){Gy(t,e);function t(i,s){var a;a=e.call(this,i,s)||this;var u=a.handleExited.bind(SD(a));return a.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,a){var u=a.children,c=a.handleExited,f=a.firstRender;return{children:f?OD(s,c):TD(s,u,c),firstRender:!1}},n.handleExited=function(s,a){var u=bf(this.props.children);s.key in u||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(c){var f=Lc({},c.children);return delete f[s.key],{children:f}}))},n.render=function(){var s=this.props,a=s.component,u=s.childFactory,c=qy(s,["component","childFactory"]),f=this.state.contextValue,p=CD(this.state.children).map(u);return delete c.appear,delete c.enter,delete c.exit,a===null?B.createElement(nu.Provider,{value:f},p):B.createElement(nu.Provider,{value:f},B.createElement(a,c,p))},t}(B.Component);wf.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{};wf.defaultProps=_D;function Pu(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}function RD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Yy(e,t,n,i,s){const a=e[t],u=s||t;if(a==null||typeof window>"u")return null;let c;const f=a.type;return typeof f=="function"&&!RD(f)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Iu=Pu(b.element,Yy);Iu.isRequired=Pu(b.element.isRequired,Yy);function Nu(e){var t;return parseInt(oe.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Zy=e=>e.scrollTop;function ru(e,t){const{timeout:n,easing:i,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:s.transitionDelay}}const DD={entering:{transform:"none"},entered:{transform:"none"}},Xy=oe.forwardRef(function(t,n){const i=Ss(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:c,easing:f,in:p,onEnter:h,onEntered:x,onEntering:R,onExit:w,onExited:O,onExiting:y,style:v,timeout:g=s,TransitionComponent:m=tr,...S}=t,E=oe.useRef(null),C=Fn(E,Nu(c),n),M=U=>K=>{if(U){const V=E.current;K===void 0?U(V):U(V,K)}},D=M(R),A=M((U,K)=>{Zy(U);const V=ru({style:v,timeout:g,easing:f},{mode:"enter"});U.style.webkitTransition=i.transitions.create("transform",V),U.style.transition=i.transitions.create("transform",V),h&&h(U,K)}),z=M(x),J=M(y),Z=M(U=>{const K=ru({style:v,timeout:g,easing:f},{mode:"exit"});U.style.webkitTransition=i.transitions.create("transform",K),U.style.transition=i.transitions.create("transform",K),w&&w(U)}),_=M(O),H=U=>{a&&a(E.current,U)};return F.jsx(m,{appear:u,in:p,nodeRef:E,onEnter:A,onEntered:z,onEntering:D,onExit:Z,onExited:_,onExiting:J,addEndListener:H,timeout:g,...S,children:(U,{ownerState:K,...V})=>oe.cloneElement(c,{style:{transform:"scale(0)",visibility:U==="exited"&&!p?"hidden":void 0,...DD[U],...v,...c.props.style},ref:C,...V})})});process.env.NODE_ENV!=="production"&&(Xy.propTypes={addEndListener:b.func,appear:b.bool,children:Iu.isRequired,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,style:b.object,timeout:b.oneOfType([b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])});const xf=b.oneOfType([b.func,b.object]);function MD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function PD(e,t,n,i,s){const a=e[t],u=s||t;if(a==null||typeof window>"u")return null;let c;return typeof a=="function"&&!MD(a)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ID=Pu(b.elementType,PD);function iu(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
137
+ `))}return!1}class ou{constructor(){an(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ou}static use(){const t=Vy(ou.create).current,[n,i]=oe.useState(!1);return t.shouldMount=n,t.setShouldMount=i,oe.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=AD(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function ND(){return ou.use()}function AD(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});return n.resolve=e,n.reject=t,n}function Jy(e){const{className:t,classes:n,pulsate:i=!1,rippleX:s,rippleY:a,rippleSize:u,in:c,onExited:f,timeout:p}=e,[h,x]=oe.useState(!1),R=at(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),w={width:u,height:u,top:-(u/2)+a,left:-(u/2)+s},O=at(n.child,h&&n.childLeaving,i&&n.childPulsate);return!c&&!h&&x(!0),oe.useEffect(()=>{if(!c&&f!=null){const y=setTimeout(f,p);return()=>{clearTimeout(y)}}},[f,c,p]),F.jsx("span",{className:R,style:w,children:F.jsx("span",{className:O})})}process.env.NODE_ENV!=="production"&&(Jy.propTypes={classes:b.object.isRequired,className:b.string,in:b.bool,onExited:b.func,pulsate:b.bool,rippleSize:b.number,rippleX:b.number,rippleY:b.number,timeout:b.number.isRequired});const Sn=er("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Wc=550,kD=80,$D=yu.keyframes`
138
138
  0% {
139
139
  transform: scale(0);
140
140
  opacity: 0.1;
@@ -144,7 +144,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
144
144
  transform: scale(1);
145
145
  opacity: 0.3;
146
146
  }
147
- `,$D=gu.keyframes`
147
+ `,LD=yu.keyframes`
148
148
  0% {
149
149
  opacity: 1;
150
150
  }
@@ -152,7 +152,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
152
152
  100% {
153
153
  opacity: 0;
154
154
  }
155
- `,LD=gu.keyframes`
155
+ `,zD=yu.keyframes`
156
156
  0% {
157
157
  transform: scale(1);
158
158
  }
@@ -164,15 +164,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
164
164
  100% {
165
165
  transform: scale(1);
166
166
  }
167
- `,zD=Lt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),FD=Lt(Xy,{name:"MuiTouchRipple",slot:"Ripple"})`
167
+ `,FD=Lt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WD=Lt(Jy,{name:"MuiTouchRipple",slot:"Ripple"})`
168
168
  opacity: 0;
169
169
  position: absolute;
170
170
 
171
171
  &.${Sn.rippleVisible} {
172
172
  opacity: 0.3;
173
173
  transform: scale(1);
174
- animation-name: ${kD};
175
- animation-duration: ${Fc}ms;
174
+ animation-name: ${$D};
175
+ animation-duration: ${Wc}ms;
176
176
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
177
177
  }
178
178
 
@@ -191,8 +191,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
191
191
 
192
192
  & .${Sn.childLeaving} {
193
193
  opacity: 0;
194
- animation-name: ${$D};
195
- animation-duration: ${Fc}ms;
194
+ animation-name: ${LD};
195
+ animation-duration: ${Wc}ms;
196
196
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
197
197
  }
198
198
 
@@ -201,19 +201,19 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
201
201
  /* @noflip */
202
202
  left: 0px;
203
203
  top: 0;
204
- animation-name: ${LD};
204
+ animation-name: ${zD};
205
205
  animation-duration: 2500ms;
206
206
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
207
207
  animation-iteration-count: infinite;
208
208
  animation-delay: 200ms;
209
209
  }
210
- `,Jy=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:u,...c}=i,[f,p]=oe.useState([]),h=oe.useRef(0),x=oe.useRef(null);oe.useEffect(()=>{x.current&&(x.current(),x.current=null)},[f]);const R=oe.useRef(!1),w=hi(),C=oe.useRef(null),y=oe.useRef(null),v=oe.useCallback(E=>{const{pulsate:T,rippleX:M,rippleY:D,rippleSize:A,cb:z}=E;p(J=>[...J,F.jsx(FD,{classes:{ripple:at(a.ripple,Sn.ripple),rippleVisible:at(a.rippleVisible,Sn.rippleVisible),ripplePulsate:at(a.ripplePulsate,Sn.ripplePulsate),child:at(a.child,Sn.child),childLeaving:at(a.childLeaving,Sn.childLeaving),childPulsate:at(a.childPulsate,Sn.childPulsate)},timeout:Fc,pulsate:T,rippleX:M,rippleY:D,rippleSize:A},h.current)]),h.current+=1,x.current=z},[a]),g=oe.useCallback((E={},T={},M=()=>{})=>{const{pulsate:D=!1,center:A=s||T.pulsate,fakeElement:z=!1}=T;if((E==null?void 0:E.type)==="mousedown"&&R.current){R.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(R.current=!0);const J=z?null:y.current,Z=J?J.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,H,B;if(A||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)_=Math.round(Z.width/2),H=Math.round(Z.height/2);else{const{clientX:K,clientY:q}=E.touches&&E.touches.length>0?E.touches[0]:E;_=Math.round(K-Z.left),H=Math.round(q-Z.top)}if(A)B=Math.sqrt((2*Z.width**2+Z.height**2)/3),B%2===0&&(B+=1);else{const K=Math.max(Math.abs((J?J.clientWidth:0)-_),_)*2+2,q=Math.max(Math.abs((J?J.clientHeight:0)-H),H)*2+2;B=Math.sqrt(K**2+q**2)}E!=null&&E.touches?C.current===null&&(C.current=()=>{v({pulsate:D,rippleX:_,rippleY:H,rippleSize:B,cb:M})},w.start(AD,()=>{C.current&&(C.current(),C.current=null)})):v({pulsate:D,rippleX:_,rippleY:H,rippleSize:B,cb:M})},[s,v,w]),m=oe.useCallback(()=>{g({},{pulsate:!0})},[g]),S=oe.useCallback((E,T)=>{if(w.clear(),(E==null?void 0:E.type)==="touchend"&&C.current){C.current(),C.current=null,w.start(0,()=>{S(E,T)});return}C.current=null,p(M=>M.length>0?M.slice(1):M),x.current=T},[w]);return oe.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:S}),[m,g,S]),F.jsx(zD,{className:at(Sn.root,a.root,u),ref:y,...c,children:F.jsx(bf,{component:null,exit:!0,children:f})})});process.env.NODE_ENV!=="production"&&(Jy.propTypes={center:b.bool,classes:b.object,className:b.string});function WD(e){return Kn("MuiButtonBase",e)}const BD=Qn("MuiButtonBase",["root","disabled","focusVisible"]),UD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:s}=e,u=jr({root:["root",t&&"disabled",n&&"focusVisible"]},WD,s);return n&&i&&(u.root+=` ${i}`),u},jD=Lt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${BD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ky=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:u,className:c,component:f="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:x=!1,focusRipple:R=!1,focusVisibleClassName:w,LinkComponent:C="a",onBlur:y,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:S,onFocusVisible:E,onKeyDown:T,onKeyUp:M,onMouseDown:D,onMouseLeave:A,onMouseUp:z,onTouchEnd:J,onTouchMove:Z,onTouchStart:_,tabIndex:H=0,TouchRippleProps:B,touchRippleRef:K,type:q,...X}=i,fe=oe.useRef(null),ae=ID(),Y=Fn(ae.ref,K),[$,ue]=oe.useState(!1);p&&$&&ue(!1),oe.useImperativeHandle(s,()=>({focusVisible:()=>{ue(!0),fe.current.focus()}}),[]);const ye=ae.shouldMount&&!h&&!p;oe.useEffect(()=>{$&&R&&!h&&ae.pulsate()},[h,R,$,ae]);const pe=dr(ae,"start",D,x),Oe=dr(ae,"stop",g,x),Te=dr(ae,"stop",m,x),ve=dr(ae,"stop",z,x),ee=dr(ae,"stop",_e=>{$&&_e.preventDefault(),A&&A(_e)},x),ce=dr(ae,"start",_,x),Ee=dr(ae,"stop",J,x),Re=dr(ae,"stop",Z,x),N=dr(ae,"stop",_e=>{nu(_e.target)||ue(!1),y&&y(_e)},!1),W=to(_e=>{fe.current||(fe.current=_e.currentTarget),nu(_e.target)&&(ue(!0),E&&E(_e)),S&&S(_e)}),G=()=>{const _e=fe.current;return f&&f!=="button"&&!(_e.tagName==="A"&&_e.href)},le=to(_e=>{R&&!_e.repeat&&$&&_e.key===" "&&ae.stop(_e,()=>{ae.start(_e)}),_e.target===_e.currentTarget&&G()&&_e.key===" "&&_e.preventDefault(),T&&T(_e),_e.target===_e.currentTarget&&G()&&_e.key==="Enter"&&!p&&(_e.preventDefault(),v&&v(_e))}),be=to(_e=>{R&&_e.key===" "&&$&&!_e.defaultPrevented&&ae.stop(_e,()=>{ae.pulsate(_e)}),M&&M(_e),v&&_e.target===_e.currentTarget&&G()&&_e.key===" "&&!_e.defaultPrevented&&v(_e)});let ge=f;ge==="button"&&(X.href||X.to)&&(ge=C);const te={};ge==="button"?(te.type=q===void 0?"button":q,te.disabled=p):(!X.href&&!X.to&&(te.role="button"),p&&(te["aria-disabled"]=p));const he=Fn(n,fe),we={...i,centerRipple:a,component:f,disabled:p,disableRipple:h,disableTouchRipple:x,focusRipple:R,tabIndex:H,focusVisible:$},Ne=UD(we);return F.jsxs(jD,{as:ge,className:at(Ne.root,c),ownerState:we,onBlur:N,onClick:v,onContextMenu:Oe,onFocus:W,onKeyDown:le,onKeyUp:be,onMouseDown:pe,onMouseLeave:ee,onMouseUp:ve,onDragLeave:Te,onTouchEnd:Ee,onTouchMove:Re,onTouchStart:ce,ref:he,tabIndex:p?-1:H,type:q,...te,...X,children:[u,ye?F.jsx(Jy,{ref:Y,center:a,...B}):null]})});function dr(e,t,n,i=!1){return to(s=>(n&&n(s),i||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Ky.propTypes={action:wf,centerRipple:b.bool,children:b.node,classes:b.object,className:b.string,component:PD,disabled:b.bool,disableRipple:b.bool,disableTouchRipple:b.bool,focusRipple:b.bool,focusVisibleClassName:b.string,href:b.any,LinkComponent:b.elementType,onBlur:b.func,onClick:b.func,onContextMenu:b.func,onDragLeave:b.func,onFocus:b.func,onFocusVisible:b.func,onKeyDown:b.func,onKeyUp:b.func,onMouseDown:b.func,onMouseLeave:b.func,onMouseUp:b.func,onTouchEnd:b.func,onTouchMove:b.func,onTouchStart:b.func,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),tabIndex:b.number,TouchRippleProps:b.object,touchRippleRef:b.oneOfType([b.func,b.shape({current:b.shape({pulsate:b.func.isRequired,start:b.func.isRequired,stop:b.func.isRequired})})]),type:b.oneOfType([b.oneOf(["button","reset","submit"]),b.string])});function HD(e){return Kn("MuiFab",e)}const Sm=Qn("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);function qD(e){return typeof e.main=="string"}function VD(e,t=[]){if(!qD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function GD(e=[]){return([,t])=>t&&VD(t,e)}const YD=e=>{const{color:t,variant:n,classes:i,size:s}=e,a={root:["root",n,`size${fn(s)}`,t==="inherit"?"colorInherit":t]},u=jr(a,HD,i);return{...i,...u}},ZD=Lt(Ky,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>_y(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fn(n.size)}`],n.color==="inherit"&&t.colorInherit,t[fn(n.size)],t[n.color]]}})(Cn(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Sm.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),Cn(({theme:e})=>({variants:[...Object.entries(e.palette).filter(GD(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Cn(({theme:e})=>({[`&.${Sm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),xf=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiFab"}),{children:s,className:a,color:u="default",component:c="button",disabled:f=!1,disableFocusRipple:p=!1,focusVisibleClassName:h,size:x="large",variant:R="circular",...w}=i,C={...i,color:u,component:c,disabled:f,disableFocusRipple:p,size:x,variant:R},y=YD(C);return F.jsx(ZD,{className:at(y.root,a),component:c,disabled:f,focusRipple:!p,focusVisibleClassName:at(y.focusVisible,h),ownerState:C,ref:n,...w,classes:y,children:s})});process.env.NODE_ENV!=="production"&&(xf.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["default","error","info","inherit","primary","secondary","success","warning"]),b.string]),component:b.elementType,disabled:b.bool,disableFocusRipple:b.bool,disableRipple:b.bool,focusVisibleClassName:b.string,href:b.string,size:b.oneOfType([b.oneOf(["small","medium","large"]),b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["circular","extended"]),b.string])});function XD(e){return Kn("MuiSpeedDial",e)}const Ca=Qn("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function JD(e){return typeof e=="string"}function Qy(e,t,n){return e===void 0||JD(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ev(e,t,n){return typeof e=="function"?e(t,n):e}function KD(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function Em(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function tv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:s,className:a}=e;if(!t){const w=at(n==null?void 0:n.className,a,s==null?void 0:s.className,i==null?void 0:i.className),C={...n==null?void 0:n.style,...s==null?void 0:s.style,...i==null?void 0:i.style},y={...n,...s,...i};return w.length>0&&(y.className=w),Object.keys(C).length>0&&(y.style=C),{props:y,internalRef:void 0}}const u=KD({...s,...i}),c=Em(i),f=Em(s),p=t(u),h=at(p==null?void 0:p.className,n==null?void 0:n.className,a,s==null?void 0:s.className,i==null?void 0:i.className),x={...p==null?void 0:p.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...i==null?void 0:i.style},R={...p,...n,...f,...c};return h.length>0&&(R.className=h),Object.keys(x).length>0&&(R.style=x),{props:R,internalRef:p.ref}}function Zn(e,t){const{className:n,elementType:i,ownerState:s,externalForwardedProps:a,internalForwardedProps:u,shouldForwardComponentProp:c=!1,...f}=t,{component:p,slots:h={[e]:void 0},slotProps:x={[e]:void 0},...R}=a,w=h[e]||i,C=ev(x[e],s),{props:{component:y,...v},internalRef:g}=tv({className:n,...f,externalForwardedProps:e==="root"?R:void 0,externalSlotProps:C}),m=Fn(g,C==null?void 0:C.ref,t.ref),S=e==="root"?y||p:y,E=Qy(w,{...e==="root"&&!p&&!h[e]&&u,...e!=="root"&&!h[e]&&u,...v,...S&&!c&&{as:S},...S&&c&&{component:S},ref:m},s);return[w,E]}const QD=e=>{const{classes:t,open:n,direction:i}=e,s={root:["root",`direction${fn(i)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return jr(s,XD,t)};function zo(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const _a=32,Ra=16,eM=Lt("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${fn(n.direction)}`]]}})(Cn(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${Ca.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:Ra+_a}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${Ca.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:Ra+_a}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${Ca.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:Ra+_a}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${Ca.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:Ra+_a}}}]}))),tM=Lt(xf,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),nM=Lt("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),nv=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSpeedDial"}),s=xs(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{ariaLabel:u,FabProps:{ref:c,...f}={},children:p,className:h,direction:x="up",hidden:R=!1,icon:w,onBlur:C,onClose:y,onFocus:v,onKeyDown:g,onMouseEnter:m,onMouseLeave:S,onOpen:E,open:T,openIcon:M,slots:D={},slotProps:A={},TransitionComponent:z,TransitionProps:J,transitionDuration:Z=a,..._}=i,[H,B]=Ry({controlled:T,default:!1,name:"SpeedDial",state:"open"}),K={...i,open:H,direction:x},q=QD(K),X=hi(),fe=oe.useRef(0),ae=oe.useRef(),Y=oe.useRef([]);Y.current=[Y.current[0]];const $=oe.useCallback(te=>{Y.current[0]=te},[]),ue=Fn(c,$),ye=(te,he,we)=>Ne=>{Y.current[te+1]=Ne,he&&he(Ne),we&&we(Ne)},pe=te=>{g&&g(te);const he=te.key.replace("Arrow","").toLowerCase(),{current:we=he}=ae;if(te.key==="Escape"){B(!1),Y.current[0].focus(),y&&y(te,"escapeKeyDown");return}if(zo(he)===zo(we)&&zo(he)!==void 0){te.preventDefault();const Ne=he===we?1:-1,_e=vD(fe.current+Ne,0,Y.current.length-1);Y.current[_e].focus(),fe.current=_e,ae.current=we}};oe.useEffect(()=>{H||(fe.current=0,ae.current=void 0)},[H]);const Oe=te=>{te.type==="mouseleave"&&S&&S(te),te.type==="blur"&&C&&C(te),X.clear(),te.type==="blur"?X.start(0,()=>{B(!1),y&&y(te,"blur")}):(B(!1),y&&y(te,"mouseLeave"))},Te=te=>{f.onClick&&f.onClick(te),X.clear(),H?(B(!1),y&&y(te,"toggle")):(B(!0),E&&E(te,"toggle"))},ve=te=>{te.type==="mouseenter"&&m&&m(te),te.type==="focus"&&v&&v(te),X.clear(),H||X.start(0,()=>{B(!0),E&&E(te,{focus:"focus",mouseenter:"mouseEnter"}[te.type])})},ee=u.replace(/^[^a-z]+|[^\w:.-]+/gi,""),ce=oe.Children.toArray(p).filter(te=>(process.env.NODE_ENV!=="production"&&xi.isFragment(te)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
211
- `)),oe.isValidElement(te))),Ee=ce.map((te,he)=>{const{FabProps:{ref:we}={},slotProps:Ne={},tooltipPlacement:_e}=te.props,{fab:{ref:Ve,..._t}={},...Et}=Ne,Jt=_e||(zo(x)==="vertical"?"left":"top");return oe.cloneElement(te,{slotProps:{fab:{..._t,ref:ye(he,we,Ve)},...Et},delay:30*(H?he:ce.length-he),open:H,tooltipPlacement:Jt,id:`${ee}-action-${he}`})}),Re={transition:z,...D},N={transition:J,...A},W={slots:Re,slotProps:N},[G,le]=Zn("root",{elementType:eM,externalForwardedProps:{...W,..._},ownerState:K,ref:n,className:at(q.root,h),additionalProps:{role:"presentation"},getSlotProps:te=>({...te,onKeyDown:he=>{var we;(we=te.onKeyDown)==null||we.call(te,he),pe(he)},onBlur:he=>{var we;(we=te.onBlur)==null||we.call(te,he),Oe(he)},onFocus:he=>{var we;(we=te.onFocus)==null||we.call(te,he),ve(he)},onMouseEnter:he=>{var we;(we=te.onMouseEnter)==null||we.call(te,he),ve(he)},onMouseLeave:he=>{var we;(we=te.onMouseLeave)==null||we.call(te,he),Oe(he)}})}),[be,ge]=Zn("transition",{elementType:Zy,externalForwardedProps:W,ownerState:K});return F.jsxs(G,{...le,children:[F.jsx(be,{in:!R,timeout:Z,unmountOnExit:!0,...ge,children:F.jsx(tM,{color:"primary","aria-label":u,"aria-haspopup":"true","aria-expanded":H,"aria-controls":`${ee}-actions`,...f,onClick:Te,className:at(q.fab,f.className),ref:ue,ownerState:K,children:oe.isValidElement(w)&&mR(w,["SpeedDialIcon"])?oe.cloneElement(w,{open:H}):w})}),F.jsx(nM,{id:`${ee}-actions`,role:"menu","aria-orientation":zo(x),className:at(q.actions,!H&&q.actionsClosed),ownerState:K,children:Ee})]})});process.env.NODE_ENV!=="production"&&(nv.propTypes={ariaLabel:b.string.isRequired,children:b.node,classes:b.object,className:b.string,direction:b.oneOf(["down","left","right","up"]),FabProps:b.object,hidden:b.bool,icon:b.node,onBlur:b.func,onClose:b.func,onFocus:b.func,onKeyDown:b.func,onMouseEnter:b.func,onMouseLeave:b.func,onOpen:b.func,open:b.bool,openIcon:b.node,slotProps:b.shape({root:b.oneOfType([b.func,b.object]),transition:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType,transition:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),TransitionComponent:b.elementType,transitionDuration:b.oneOfType([b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})]),TransitionProps:b.object});const rM=jt(F.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function iM(e){return Kn("MuiSpeedDialIcon",e)}const Vn=Qn("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),oM=e=>{const{classes:t,open:n,openIcon:i}=e;return jr({root:["root"],icon:["icon",n&&"iconOpen",i&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},iM,t)},sM=Lt("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vn.icon}`]:t.icon},{[`& .${Vn.icon}`]:n.open&&t.iconOpen},{[`& .${Vn.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${Vn.openIcon}`]:t.openIcon},{[`& .${Vn.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(Cn(({theme:e})=>({height:24,[`& .${Vn.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${Vn.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:t})=>t.open,style:{[`& .${Vn.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:t})=>t.open&&t.openIcon,style:{[`& .${Vn.icon}`]:{opacity:0}}},{props:({ownerState:t})=>t.open,style:{[`& .${Vn.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),Sf=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSpeedDialIcon"}),{className:s,icon:a,open:u,openIcon:c,...f}=i,p=i,h=oM(p);function x(R,w){return oe.isValidElement(R)?oe.cloneElement(R,{className:w}):R}return F.jsxs(sM,{className:at(h.root,s),ref:n,ownerState:p,...f,children:[c?x(c,h.openIcon):null,a?x(a,h.icon):F.jsx(rM,{className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={classes:b.object,className:b.string,icon:b.node,open:b.bool,openIcon:b.node,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});Sf.muiName="SpeedDialIcon";function Wc(e){return`scale(${e}, ${e**2})`}const aM={entering:{opacity:1,transform:Wc(1)},entered:{opacity:1,transform:"none"}},yc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),iu=oe.forwardRef(function(t,n){const{addEndListener:i,appear:s=!0,children:a,easing:u,in:c,onEnter:f,onEntered:p,onEntering:h,onExit:x,onExited:R,onExiting:w,style:C,timeout:y="auto",TransitionComponent:v=er,...g}=t,m=hi(),S=oe.useRef(),E=xs(),T=oe.useRef(null),M=Fn(T,Iu(a),n),D=K=>q=>{if(K){const X=T.current;q===void 0?K(X):K(X,q)}},A=D(h),z=D((K,q)=>{Yy(K);const{duration:X,delay:fe,easing:ae}=tu({style:C,timeout:y,easing:u},{mode:"enter"});let Y;y==="auto"?(Y=E.transitions.getAutoHeightDuration(K.clientHeight),S.current=Y):Y=X,K.style.transition=[E.transitions.create("opacity",{duration:Y,delay:fe}),E.transitions.create("transform",{duration:yc?Y:Y*.666,delay:fe,easing:ae})].join(","),f&&f(K,q)}),J=D(p),Z=D(w),_=D(K=>{const{duration:q,delay:X,easing:fe}=tu({style:C,timeout:y,easing:u},{mode:"exit"});let ae;y==="auto"?(ae=E.transitions.getAutoHeightDuration(K.clientHeight),S.current=ae):ae=q,K.style.transition=[E.transitions.create("opacity",{duration:ae,delay:X}),E.transitions.create("transform",{duration:yc?ae:ae*.666,delay:yc?X:X||ae*.333,easing:fe})].join(","),K.style.opacity=0,K.style.transform=Wc(.75),x&&x(K)}),H=D(R),B=K=>{y==="auto"&&m.start(S.current||0,K),i&&i(T.current,K)};return F.jsx(v,{appear:s,in:c,nodeRef:T,onEnter:z,onEntered:J,onEntering:A,onExit:_,onExited:H,onExiting:Z,addEndListener:B,timeout:y==="auto"?null:y,...g,children:(K,{ownerState:q,...X})=>oe.cloneElement(a,{style:{opacity:0,transform:Wc(.75),visibility:K==="exited"&&!c?"hidden":void 0,...aM[K],...C,...a.props.style},ref:M,...X})})});process.env.NODE_ENV!=="production"&&(iu.propTypes={addEndListener:b.func,appear:b.bool,children:Pu.isRequired,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,style:b.object,timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])});iu&&(iu.muiSupportAuto=!0);function ps(e,t,n,i,s){if(process.env.NODE_ENV==="production")return null;const a=e[t],u=s||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Zt="top",Rn="bottom",Dn="right",Xt="left",Ef="auto",Ss=[Zt,Rn,Dn,Xt],io="start",hs="end",uM="clippingParents",rv="viewport",Fo="popper",lM="reference",Om=Ss.reduce(function(e,t){return e.concat([t+"-"+io,t+"-"+hs])},[]),iv=[].concat(Ss,[Ef]).reduce(function(e,t){return e.concat([t,t+"-"+io,t+"-"+hs])},[]),cM="beforeRead",fM="read",dM="afterRead",pM="beforeMain",hM="main",mM="afterMain",gM="beforeWrite",yM="write",vM="afterWrite",bM=[cM,fM,dM,pM,hM,mM,gM,yM,vM];function Jn(e){return e?(e.nodeName||"").toLowerCase():null}function dn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ei(e){var t=dn(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Of(e){if(typeof ShadowRoot>"u")return!1;var t=dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},a=t.elements[n];!_n(a)||!Jn(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function xM(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(i){var s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),c=u.reduce(function(f,p){return f[p]="",f},{});!_n(s)||!Jn(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const SM={name:"applyStyles",enabled:!0,phase:"write",fn:wM,effect:xM,requires:["computeStyles"]};function Xn(e){return e.split("-")[0]}var wi=Math.max,ou=Math.min,oo=Math.round;function Bc(){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 ov(){return!/^((?!chrome|android).)*safari/i.test(Bc())}function so(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&_n(e)&&(s=e.offsetWidth>0&&oo(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&oo(i.height)/e.offsetHeight||1);var u=Ei(e)?dn(e):window,c=u.visualViewport,f=!ov()&&n,p=(i.left+(f&&c?c.offsetLeft:0))/s,h=(i.top+(f&&c?c.offsetTop:0))/a,x=i.width/s,R=i.height/a;return{width:x,height:R,top:h,right:p+x,bottom:h+R,left:p,x:p,y:h}}function Tf(e){var t=so(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function sv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Of(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vr(e){return dn(e).getComputedStyle(e)}function EM(e){return["table","td","th"].indexOf(Jn(e))>=0}function qr(e){return((Ei(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return Jn(e)==="html"?e:e.assignedSlot||e.parentNode||(Of(e)?e.host:null)||qr(e)}function Tm(e){return!_n(e)||vr(e).position==="fixed"?null:e.offsetParent}function OM(e){var t=/firefox/i.test(Bc()),n=/Trident/i.test(Bc());if(n&&_n(e)){var i=vr(e);if(i.position==="fixed")return null}var s=Nu(e);for(Of(s)&&(s=s.host);_n(s)&&["html","body"].indexOf(Jn(s))<0;){var a=vr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Es(e){for(var t=dn(e),n=Tm(e);n&&EM(n)&&vr(n).position==="static";)n=Tm(n);return n&&(Jn(n)==="html"||Jn(n)==="body"&&vr(n).position==="static")?t:n||OM(e)||t}function Cf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ss(e,t,n){return wi(e,ou(t,n))}function TM(e,t,n){var i=ss(e,t,n);return i>n?n:i}function av(){return{top:0,right:0,bottom:0,left:0}}function uv(e){return Object.assign({},av(),e)}function lv(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var CM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uv(typeof t!="number"?t:lv(t,Ss))};function _M(e){var t,n=e.state,i=e.name,s=e.options,a=n.elements.arrow,u=n.modifiersData.popperOffsets,c=Xn(n.placement),f=Cf(c),p=[Xt,Dn].indexOf(c)>=0,h=p?"height":"width";if(!(!a||!u)){var x=CM(s.padding,n),R=Tf(a),w=f==="y"?Zt:Xt,C=f==="y"?Rn:Dn,y=n.rects.reference[h]+n.rects.reference[f]-u[f]-n.rects.popper[h],v=u[f]-n.rects.reference[f],g=Es(a),m=g?f==="y"?g.clientHeight||0:g.clientWidth||0:0,S=y/2-v/2,E=x[w],T=m-R[h]-x[C],M=m/2-R[h]/2+S,D=ss(E,M,T),A=f;n.modifiersData[i]=(t={},t[A]=D,t.centerOffset=D-M,t)}}function RM(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||sv(t.elements.popper,s)&&(t.elements.arrow=s))}const DM={name:"arrow",enabled:!0,phase:"main",fn:_M,effect:RM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ao(e){return e.split("-")[1]}var MM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function PM(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:oo(n*s)/s||0,y:oo(i*s)/s||0}}function Cm(e){var t,n=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,x=e.isFixed,R=u.x,w=R===void 0?0:R,C=u.y,y=C===void 0?0:C,v=typeof h=="function"?h({x:w,y}):{x:w,y};w=v.x,y=v.y;var g=u.hasOwnProperty("x"),m=u.hasOwnProperty("y"),S=Xt,E=Zt,T=window;if(p){var M=Es(n),D="clientHeight",A="clientWidth";if(M===dn(n)&&(M=qr(n),vr(M).position!=="static"&&c==="absolute"&&(D="scrollHeight",A="scrollWidth")),M=M,s===Zt||(s===Xt||s===Dn)&&a===hs){E=Rn;var z=x&&M===T&&T.visualViewport?T.visualViewport.height:M[D];y-=z-i.height,y*=f?1:-1}if(s===Xt||(s===Zt||s===Rn)&&a===hs){S=Dn;var J=x&&M===T&&T.visualViewport?T.visualViewport.width:M[A];w-=J-i.width,w*=f?1:-1}}var Z=Object.assign({position:c},p&&MM),_=h===!0?PM({x:w,y},dn(n)):{x:w,y};if(w=_.x,y=_.y,f){var H;return Object.assign({},Z,(H={},H[E]=m?"0":"",H[S]=g?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",H))}return Object.assign({},Z,(t={},t[E]=m?y+"px":"",t[S]=g?w+"px":"",t.transform="",t))}function IM(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,a=n.adaptive,u=a===void 0?!0:a,c=n.roundOffsets,f=c===void 0?!0:c,p={placement:Xn(t.placement),variation:ao(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,Cm(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cm(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const NM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IM,data:{}};var Da={passive:!0};function AM(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,f=dn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(h){h.addEventListener("scroll",n.update,Da)}),c&&f.addEventListener("resize",n.update,Da),function(){a&&p.forEach(function(h){h.removeEventListener("scroll",n.update,Da)}),c&&f.removeEventListener("resize",n.update,Da)}}const kM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AM,data:{}};var $M={left:"right",right:"left",bottom:"top",top:"bottom"};function ja(e){return e.replace(/left|right|bottom|top/g,function(t){return $M[t]})}var LM={start:"end",end:"start"};function _m(e){return e.replace(/start|end/g,function(t){return LM[t]})}function _f(e){var t=dn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Rf(e){return so(qr(e)).left+_f(e).scrollLeft}function zM(e,t){var n=dn(e),i=qr(e),s=n.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var p=ov();(p||!p&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Rf(e),y:f}}function FM(e){var t,n=qr(e),i=_f(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=wi(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=wi(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Rf(e),f=-i.scrollTop;return vr(s||n).direction==="rtl"&&(c+=wi(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Df(e){var t=vr(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function cv(e){return["html","body","#document"].indexOf(Jn(e))>=0?e.ownerDocument.body:_n(e)&&Df(e)?e:cv(Nu(e))}function as(e,t){var n;t===void 0&&(t=[]);var i=cv(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),a=dn(i),u=s?[a].concat(a.visualViewport||[],Df(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(as(Nu(u)))}function Uc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WM(e,t){var n=so(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 Rm(e,t,n){return t===rv?Uc(zM(e,n)):Ei(t)?WM(t,n):Uc(FM(qr(e)))}function BM(e){var t=as(Nu(e)),n=["absolute","fixed"].indexOf(vr(e).position)>=0,i=n&&_n(e)?Es(e):e;return Ei(i)?t.filter(function(s){return Ei(s)&&sv(s,i)&&Jn(s)!=="body"}):[]}function UM(e,t,n,i){var s=t==="clippingParents"?BM(e):[].concat(t),a=[].concat(s,[n]),u=a[0],c=a.reduce(function(f,p){var h=Rm(e,p,i);return f.top=wi(h.top,f.top),f.right=ou(h.right,f.right),f.bottom=ou(h.bottom,f.bottom),f.left=wi(h.left,f.left),f},Rm(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function fv(e){var t=e.reference,n=e.element,i=e.placement,s=i?Xn(i):null,a=i?ao(i):null,u=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,f;switch(s){case Zt:f={x:u,y:t.y-n.height};break;case Rn:f={x:u,y:t.y+t.height};break;case Dn:f={x:t.x+t.width,y:c};break;case Xt:f={x:t.x-n.width,y:c};break;default:f={x:t.x,y:t.y}}var p=s?Cf(s):null;if(p!=null){var h=p==="y"?"height":"width";switch(a){case io:f[p]=f[p]-(t[h]/2-n[h]/2);break;case hs:f[p]=f[p]+(t[h]/2-n[h]/2);break}}return f}function ms(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,a=n.strategy,u=a===void 0?e.strategy:a,c=n.boundary,f=c===void 0?uM:c,p=n.rootBoundary,h=p===void 0?rv:p,x=n.elementContext,R=x===void 0?Fo:x,w=n.altBoundary,C=w===void 0?!1:w,y=n.padding,v=y===void 0?0:y,g=uv(typeof v!="number"?v:lv(v,Ss)),m=R===Fo?lM:Fo,S=e.rects.popper,E=e.elements[C?m:R],T=UM(Ei(E)?E:E.contextElement||qr(e.elements.popper),f,h,u),M=so(e.elements.reference),D=fv({reference:M,element:S,placement:s}),A=Uc(Object.assign({},S,D)),z=R===Fo?A:M,J={top:T.top-z.top+g.top,bottom:z.bottom-T.bottom+g.bottom,left:T.left-z.left+g.left,right:z.right-T.right+g.right},Z=e.modifiersData.offset;if(R===Fo&&Z){var _=Z[s];Object.keys(J).forEach(function(H){var B=[Dn,Rn].indexOf(H)>=0?1:-1,K=[Zt,Rn].indexOf(H)>=0?"y":"x";J[H]+=_[K]*B})}return J}function jM(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,a=n.rootBoundary,u=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?iv:f,h=ao(i),x=h?c?Om:Om.filter(function(C){return ao(C)===h}):Ss,R=x.filter(function(C){return p.indexOf(C)>=0});R.length===0&&(R=x);var w=R.reduce(function(C,y){return C[y]=ms(e,{placement:y,boundary:s,rootBoundary:a,padding:u})[Xn(y)],C},{});return Object.keys(w).sort(function(C,y){return w[C]-w[y]})}function HM(e){if(Xn(e)===Ef)return[];var t=ja(e);return[_m(e),t,_m(t)]}function qM(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!0:u,f=n.fallbackPlacements,p=n.padding,h=n.boundary,x=n.rootBoundary,R=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,y=n.allowedAutoPlacements,v=t.options.placement,g=Xn(v),m=g===v,S=f||(m||!C?[ja(v)]:HM(v)),E=[v].concat(S).reduce(function(pe,Oe){return pe.concat(Xn(Oe)===Ef?jM(t,{placement:Oe,boundary:h,rootBoundary:x,padding:p,flipVariations:C,allowedAutoPlacements:y}):Oe)},[]),T=t.rects.reference,M=t.rects.popper,D=new Map,A=!0,z=E[0],J=0;J<E.length;J++){var Z=E[J],_=Xn(Z),H=ao(Z)===io,B=[Zt,Rn].indexOf(_)>=0,K=B?"width":"height",q=ms(t,{placement:Z,boundary:h,rootBoundary:x,altBoundary:R,padding:p}),X=B?H?Dn:Xt:H?Rn:Zt;T[K]>M[K]&&(X=ja(X));var fe=ja(X),ae=[];if(a&&ae.push(q[_]<=0),c&&ae.push(q[X]<=0,q[fe]<=0),ae.every(function(pe){return pe})){z=Z,A=!1;break}D.set(Z,ae)}if(A)for(var Y=C?3:1,$=function(Oe){var Te=E.find(function(ve){var ee=D.get(ve);if(ee)return ee.slice(0,Oe).every(function(ce){return ce})});if(Te)return z=Te,"break"},ue=Y;ue>0;ue--){var ye=$(ue);if(ye==="break")break}t.placement!==z&&(t.modifiersData[i]._skip=!0,t.placement=z,t.reset=!0)}}const VM={name:"flip",enabled:!0,phase:"main",fn:qM,requiresIfExists:["offset"],data:{_skip:!1}};function Dm(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 Mm(e){return[Zt,Dn,Rn,Xt].some(function(t){return e[t]>=0})}function GM(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=ms(t,{elementContext:"reference"}),c=ms(t,{altBoundary:!0}),f=Dm(u,i),p=Dm(c,s,a),h=Mm(f),x=Mm(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":x})}const YM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:GM};function ZM(e,t,n){var i=Xn(e),s=[Xt,Zt].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Xt,Dn].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function XM(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=s===void 0?[0,0]:s,u=iv.reduce(function(h,x){return h[x]=ZM(x,t.rects,a),h},{}),c=u[t.placement],f=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=u}const JM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XM};function KM(e){var t=e.state,n=e.name;t.modifiersData[n]=fv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const QM={name:"popperOffsets",enabled:!0,phase:"read",fn:KM,data:{}};function eP(e){return e==="x"?"y":"x"}function tP(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!1:u,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,x=n.padding,R=n.tether,w=R===void 0?!0:R,C=n.tetherOffset,y=C===void 0?0:C,v=ms(t,{boundary:f,rootBoundary:p,padding:x,altBoundary:h}),g=Xn(t.placement),m=ao(t.placement),S=!m,E=Cf(g),T=eP(E),M=t.modifiersData.popperOffsets,D=t.rects.reference,A=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,J=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(M){if(a){var H,B=E==="y"?Zt:Xt,K=E==="y"?Rn:Dn,q=E==="y"?"height":"width",X=M[E],fe=X+v[B],ae=X-v[K],Y=w?-A[q]/2:0,$=m===io?D[q]:A[q],ue=m===io?-A[q]:-D[q],ye=t.elements.arrow,pe=w&&ye?Tf(ye):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:av(),Te=Oe[B],ve=Oe[K],ee=ss(0,D[q],pe[q]),ce=S?D[q]/2-Y-ee-Te-J.mainAxis:$-ee-Te-J.mainAxis,Ee=S?-D[q]/2+Y+ee+ve+J.mainAxis:ue+ee+ve+J.mainAxis,Re=t.elements.arrow&&Es(t.elements.arrow),N=Re?E==="y"?Re.clientTop||0:Re.clientLeft||0:0,W=(H=Z==null?void 0:Z[E])!=null?H:0,G=X+ce-W-N,le=X+Ee-W,be=ss(w?ou(fe,G):fe,X,w?wi(ae,le):ae);M[E]=be,_[E]=be-X}if(c){var ge,te=E==="x"?Zt:Xt,he=E==="x"?Rn:Dn,we=M[T],Ne=T==="y"?"height":"width",_e=we+v[te],Ve=we-v[he],_t=[Zt,Xt].indexOf(g)!==-1,Et=(ge=Z==null?void 0:Z[T])!=null?ge:0,Jt=_t?_e:we-D[Ne]-A[Ne]-Et+J.altAxis,Pt=_t?we+D[Ne]+A[Ne]-Et-J.altAxis:Ve,Kt=w&&_t?TM(Jt,we,Pt):ss(w?Jt:_e,we,w?Pt:Ve);M[T]=Kt,_[T]=Kt-we}t.modifiersData[i]=_}}const nP={name:"preventOverflow",enabled:!0,phase:"main",fn:tP,requiresIfExists:["offset"]};function rP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iP(e){return e===dn(e)||!_n(e)?_f(e):rP(e)}function oP(e){var t=e.getBoundingClientRect(),n=oo(t.width)/e.offsetWidth||1,i=oo(t.height)/e.offsetHeight||1;return n!==1||i!==1}function sP(e,t,n){n===void 0&&(n=!1);var i=_n(t),s=_n(t)&&oP(t),a=qr(t),u=so(e,s,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((Jn(t)!=="body"||Df(a))&&(c=iP(t)),_n(t)?(f=so(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Rf(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function aP(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){n.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!n.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||s(a)}),i}function uP(e){var t=aP(e);return bM.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function lP(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cP(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Pm={placement:"bottom",modifiers:[],strategy:"absolute"};function Im(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function fP(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,a=s===void 0?Pm:s;return function(c,f,p){p===void 0&&(p=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pm,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},x=[],R=!1,w={state:h,setOptions:function(g){var m=typeof g=="function"?g(h.options):g;y(),h.options=Object.assign({},a,h.options,m),h.scrollParents={reference:Ei(c)?as(c):c.contextElement?as(c.contextElement):[],popper:as(f)};var S=uP(cP([].concat(i,h.options.modifiers)));return h.orderedModifiers=S.filter(function(E){return E.enabled}),C(),w.update()},forceUpdate:function(){if(!R){var g=h.elements,m=g.reference,S=g.popper;if(Im(m,S)){h.rects={reference:sP(m,Es(S),h.options.strategy==="fixed"),popper:Tf(S)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(J){return h.modifiersData[J.name]=Object.assign({},J.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var T=h.orderedModifiers[E],M=T.fn,D=T.options,A=D===void 0?{}:D,z=T.name;typeof M=="function"&&(h=M({state:h,options:A,name:z,instance:w})||h)}}}},update:lP(function(){return new Promise(function(v){w.forceUpdate(),v(h)})}),destroy:function(){y(),R=!0}};if(!Im(c,f))return w;w.setOptions(p).then(function(v){!R&&p.onFirstUpdate&&p.onFirstUpdate(v)});function C(){h.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,S=m===void 0?{}:m,E=v.effect;if(typeof E=="function"){var T=E({state:h,name:g,instance:w,options:S}),M=function(){};x.push(T||M)}})}function y(){x.forEach(function(v){return v()}),x=[]}return w}}var dP=[kM,QM,NM,SM,JM,VM,nP,DM,YM],pP=fP({defaultModifiers:dP});function hP(e){var x;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:s=!1,...a}=e,u=s?{}:ev(n,i),{props:c,internalRef:f}=tv({...a,externalSlotProps:u}),p=Fn(f,u==null?void 0:u.ref,(x=e.additionalProps)==null?void 0:x.ref);return Qy(t,{...c,ref:p},i)}const mP="exact-prop: ​";function gP(e){return process.env.NODE_ENV==="production"?e:{...e,[mP]:t=>{const n=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return n.length>0?new Error(`The following props are not supported: ${n.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}function yP(e){return typeof e=="function"?e():e}const su=oe.forwardRef(function(t,n){const{children:i,container:s,disablePortal:a=!1}=t,[u,c]=oe.useState(null),f=Fn(oe.isValidElement(i)?Iu(i):null,n);if(fs(()=>{a||c(yP(s)||document.body)},[s,a]),fs(()=>{if(u&&!a)return cm(n,u),()=>{cm(n,null)}},[n,u,a]),a){if(oe.isValidElement(i)){const p={ref:f};return oe.cloneElement(i,p)}return i}return u&&hT.createPortal(i,u)});process.env.NODE_ENV!=="production"&&(su.propTypes={children:b.node,container:b.oneOfType([ps,b.func]),disablePortal:b.bool});process.env.NODE_ENV!=="production"&&(su.propTypes=gP(su.propTypes));function vP(e){return Kn("MuiPopper",e)}Qn("MuiPopper",["root"]);function bP(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function au(e){return typeof e=="function"?e():e}function Au(e){return e.nodeType!==void 0}function wP(e){return!Au(e)}const xP=e=>{const{classes:t}=e;return jr({root:["root"]},vP,t)},SP={},EP=oe.forwardRef(function(t,n){const{anchorEl:i,children:s,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:x,slotProps:R={},slots:w={},TransitionProps:C,ownerState:y,...v}=t,g=oe.useRef(null),m=Fn(g,n),S=oe.useRef(null),E=Fn(S,x),T=oe.useRef(E);fs(()=>{T.current=E},[E]),oe.useImperativeHandle(x,()=>S.current,[]);const M=bP(p,a),[D,A]=oe.useState(M),[z,J]=oe.useState(au(i));oe.useEffect(()=>{S.current&&S.current.forceUpdate()}),oe.useEffect(()=>{i&&J(au(i))},[i]),fs(()=>{if(!z||!f)return;const K=fe=>{A(fe.placement)};if(process.env.NODE_ENV!=="production"&&z&&Au(z)&&z.nodeType===1){const fe=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&fe.top===0&&fe.left===0&&fe.right===0&&fe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
212
- `))}let q=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:fe})=>{K(fe)}}];c!=null&&(q=q.concat(c)),h&&h.modifiers!=null&&(q=q.concat(h.modifiers));const X=pP(z,g.current,{placement:M,...h,modifiers:q});return T.current(X),()=>{X.destroy(),T.current(null)}},[z,u,c,f,h,M]);const Z={placement:D};C!==null&&(Z.TransitionProps=C);const _=xP(t),H=w.root??"div",B=hP({elementType:H,externalSlotProps:R.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:_.root});return F.jsx(H,{...B,children:typeof s=="function"?s(Z):s})}),dv=oe.forwardRef(function(t,n){const{anchorEl:i,children:s,container:a,direction:u="ltr",disablePortal:c=!1,keepMounted:f=!1,modifiers:p,open:h,placement:x="bottom",popperOptions:R=SP,popperRef:w,style:C,transition:y=!1,slotProps:v={},slots:g={},...m}=t,[S,E]=oe.useState(!0),T=()=>{E(!1)},M=()=>{E(!0)};if(!f&&!h&&(!y||S))return null;let D;if(a)D=a;else if(i){const J=au(i);D=J&&Au(J)?lm(J).body:lm(null).body}const A=!h&&f&&(!y||S)?"none":void 0,z=y?{in:h,onEnter:T,onExited:M}:void 0;return F.jsx(su,{disablePortal:c,container:D,children:F.jsx(EP,{anchorEl:i,direction:u,disablePortal:c,modifiers:p,ref:n,open:y?!S:h,placement:x,popperOptions:R,popperRef:w,slotProps:v,slots:g,...m,style:{position:"fixed",top:0,left:0,display:A,...C},TransitionProps:z,children:s})})});process.env.NODE_ENV!=="production"&&(dv.propTypes={anchorEl:Mu(b.oneOfType([ps,b.object,b.func]),e=>{if(e.open){const t=au(e.anchorEl);if(t&&Au(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
213
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||wP(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
214
- `))}return null}),children:b.oneOfType([b.node,b.func]),container:b.oneOfType([ps,b.func]),direction:b.oneOf(["ltr","rtl"]),disablePortal:b.bool,keepMounted:b.bool,modifiers:b.arrayOf(b.shape({data:b.object,effect:b.func,enabled:b.bool,fn:b.func,name:b.any,options:b.object,phase:b.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:b.arrayOf(b.string),requiresIfExists:b.arrayOf(b.string)})),open:b.bool.isRequired,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:b.shape({modifiers:b.array,onFirstUpdate:b.func,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:b.oneOf(["absolute","fixed"])}),popperRef:wf,slotProps:b.shape({root:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType}),transition:b.bool});const OP=Lt(dv,{name:"MuiPopper",slot:"Root"})({}),Mf=oe.forwardRef(function(t,n){const i=yy(),s=xr({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:x,modifiers:R,open:w,placement:C,popperOptions:y,popperRef:v,transition:g,slots:m,slotProps:S,...E}=s,T=(m==null?void 0:m.root)??(c==null?void 0:c.Root),M={anchorEl:a,container:p,disablePortal:h,keepMounted:x,modifiers:R,open:w,placement:C,popperOptions:y,popperRef:v,transition:g,...E};return F.jsx(OP,{as:u,direction:i?"rtl":"ltr",slots:{root:T},slotProps:S??f,...M,ref:n})});process.env.NODE_ENV!=="production"&&(Mf.propTypes={anchorEl:b.oneOfType([ps,b.object,b.func]),children:b.oneOfType([b.node,b.func]),component:b.elementType,components:b.shape({Root:b.elementType}),componentsProps:b.shape({root:b.oneOfType([b.func,b.object])}),container:b.oneOfType([ps,b.func]),disablePortal:b.bool,keepMounted:b.bool,modifiers:b.arrayOf(b.shape({data:b.object,effect:b.func,enabled:b.bool,fn:b.func,name:b.any,options:b.object,phase:b.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:b.arrayOf(b.string),requiresIfExists:b.arrayOf(b.string)})),open:b.bool.isRequired,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:b.shape({modifiers:b.array,onFirstUpdate:b.func,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:b.oneOf(["absolute","fixed"])}),popperRef:wf,slotProps:b.shape({root:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),transition:b.bool});function TP(e){return Kn("MuiTooltip",e)}const gt=Qn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function CP(e){return Math.round(e*1e5)/1e5}const _P=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:s,placement:a}=e,u={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",s&&"touch",`tooltipPlacement${fn(a.split("-")[0])}`],arrow:["arrow"]};return jr(u,TP,t)},RP=Lt(Mf,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Cn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${gt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${gt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${gt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${gt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${gt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${gt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${gt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${gt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),DP=Lt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${fn(n.placement.split("-")[0])}`]]}})(Cn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${gt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${gt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${gt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${CP(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${gt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${gt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),MP=Lt("span",{name:"MuiTooltip",slot:"Arrow"})(Cn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ma=!1;const Nm=new Du;let Wo={x:0,y:0};function Pa(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const pv=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiTooltip"}),{arrow:s=!1,children:a,classes:u,components:c={},componentsProps:f={},describeChild:p=!1,disableFocusListener:h=!1,disableHoverListener:x=!1,disableInteractive:R=!1,disableTouchListener:w=!1,enterDelay:C=100,enterNextDelay:y=0,enterTouchDelay:v=700,followCursor:g=!1,id:m,leaveDelay:S=0,leaveTouchDelay:E=1500,onClose:T,onOpen:M,open:D,placement:A="bottom",PopperComponent:z,PopperProps:J={},slotProps:Z={},slots:_={},title:H,TransitionComponent:B,TransitionProps:K,...q}=i,X=oe.isValidElement(a)?a:F.jsx("span",{children:a}),fe=xs(),ae=yy(),[Y,$]=oe.useState(),[ue,ye]=oe.useState(null),pe=oe.useRef(!1),Oe=R||g,Te=hi(),ve=hi(),ee=hi(),ce=hi(),[Ee,Re]=Ry({controlled:D,default:!1,name:"Tooltip",state:"open"});let N=Ee;if(process.env.NODE_ENV!=="production"){const{current:$e}=oe.useRef(D!==void 0);oe.useEffect(()=>{Y&&Y.disabled&&!$e&&H!==""&&Y.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
215
- `))},[H,Y,$e])}const W=vR(m),G=oe.useRef(),le=to(()=>{G.current!==void 0&&(document.body.style.WebkitUserSelect=G.current,G.current=void 0),ce.clear()});oe.useEffect(()=>le,[le]);const be=$e=>{Nm.clear(),Ma=!0,Re(!0),M&&!N&&M($e)},ge=to($e=>{Nm.start(800+S,()=>{Ma=!1}),Re(!1),T&&N&&T($e),Te.start(fe.transitions.duration.shortest,()=>{pe.current=!1})}),te=$e=>{pe.current&&$e.type!=="touchstart"||(Y&&Y.removeAttribute("title"),ve.clear(),ee.clear(),C||Ma&&y?ve.start(Ma?y:C,()=>{be($e)}):be($e))},he=$e=>{ve.clear(),ee.start(S,()=>{ge($e)})},[,we]=oe.useState(!1),Ne=$e=>{nu($e.target)||(we(!1),he($e))},_e=$e=>{Y||$($e.currentTarget),nu($e.target)&&(we(!0),te($e))},Ve=$e=>{pe.current=!0;const Qt=X.props;Qt.onTouchStart&&Qt.onTouchStart($e)},_t=$e=>{Ve($e),ee.clear(),Te.clear(),le(),G.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=G.current,te($e)})},Et=$e=>{X.props.onTouchEnd&&X.props.onTouchEnd($e),le(),ee.start(E,()=>{ge($e)})};oe.useEffect(()=>{if(!N)return;function $e(Qt){Qt.key==="Escape"&&ge(Qt)}return document.addEventListener("keydown",$e),()=>{document.removeEventListener("keydown",$e)}},[ge,N]);const Jt=Fn(Iu(X),$,n);!H&&H!==0&&(N=!1);const Pt=oe.useRef(),Kt=$e=>{const Qt=X.props;Qt.onMouseMove&&Qt.onMouseMove($e),Wo={x:$e.clientX,y:$e.clientY},Pt.current&&Pt.current.update()},Rt={},Vr=typeof H=="string";p?(Rt.title=!N&&Vr&&!x?H:null,Rt["aria-describedby"]=N?W:null):(Rt["aria-label"]=Vr?H:null,Rt["aria-labelledby"]=N&&!Vr?W:null);const It={...Rt,...q,...X.props,className:at(q.className,X.props.className),onTouchStart:Ve,ref:Jt,...g?{onMouseMove:Kt}:{}};process.env.NODE_ENV!=="production"&&(It["data-mui-internal-clone-element"]=!0,oe.useEffect(()=>{Y&&!Y.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
216
- `))},[Y]));const tr={};w||(It.onTouchStart=_t,It.onTouchEnd=Et),x||(It.onMouseOver=Pa(te,It.onMouseOver),It.onMouseLeave=Pa(he,It.onMouseLeave),Oe||(tr.onMouseOver=te,tr.onMouseLeave=he)),h||(It.onFocus=Pa(_e,It.onFocus),It.onBlur=Pa(Ne,It.onBlur),Oe||(tr.onFocus=_e,tr.onBlur=Ne)),process.env.NODE_ENV!=="production"&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join(`
217
- `));const Pn={...i,isRtl:ae,arrow:s,disableInteractive:Oe,placement:A,PopperComponentProp:z,touch:pe.current},zt=typeof Z.popper=="function"?Z.popper(Pn):Z.popper,vo=oe.useMemo(()=>{var Qt,Ps;let $e=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(Qt=J.popperOptions)!=null&&Qt.modifiers&&($e=$e.concat(J.popperOptions.modifiers)),(Ps=zt==null?void 0:zt.popperOptions)!=null&&Ps.modifiers&&($e=$e.concat(zt.popperOptions.modifiers)),{...J.popperOptions,...zt==null?void 0:zt.popperOptions,modifiers:$e}},[ue,J.popperOptions,zt==null?void 0:zt.popperOptions]),Gr=_P(Pn),bo=typeof Z.transition=="function"?Z.transition(Pn):Z.transition,Ti={slots:{popper:c.Popper,transition:c.Transition??B,tooltip:c.Tooltip,arrow:c.Arrow,..._},slotProps:{arrow:Z.arrow??f.arrow,popper:{...J,...zt??f.popper},tooltip:Z.tooltip??f.tooltip,transition:{...K,...bo??f.transition}}},[ju,Hu]=Zn("popper",{elementType:RP,externalForwardedProps:Ti,ownerState:Pn,className:at(Gr.popper,J==null?void 0:J.className)}),[Ds,Ms]=Zn("transition",{elementType:iu,externalForwardedProps:Ti,ownerState:Pn}),[qu,Vu]=Zn("tooltip",{elementType:DP,className:Gr.tooltip,externalForwardedProps:Ti,ownerState:Pn}),[Gu,Yu]=Zn("arrow",{elementType:MP,className:Gr.arrow,externalForwardedProps:Ti,ownerState:Pn,ref:ye});return F.jsxs(oe.Fragment,{children:[oe.cloneElement(X,It),F.jsx(ju,{as:z??Mf,placement:A,anchorEl:g?{getBoundingClientRect:()=>({top:Wo.y,left:Wo.x,right:Wo.x,bottom:Wo.y,width:0,height:0})}:Y,popperRef:Pt,open:Y?N:!1,id:W,transition:!0,...tr,...Hu,popperOptions:vo,children:({TransitionProps:$e})=>F.jsx(Ds,{timeout:fe.transitions.duration.shorter,...$e,...Ms,children:F.jsxs(qu,{...Vu,children:[H,s?F.jsx(Gu,{...Yu}):null]})})})]})});process.env.NODE_ENV!=="production"&&(pv.propTypes={arrow:b.bool,children:Pu.isRequired,classes:b.object,className:b.string,components:b.shape({Arrow:b.elementType,Popper:b.elementType,Tooltip:b.elementType,Transition:b.elementType}),componentsProps:b.shape({arrow:b.object,popper:b.object,tooltip:b.object,transition:b.object}),describeChild:b.bool,disableFocusListener:b.bool,disableHoverListener:b.bool,disableInteractive:b.bool,disableTouchListener:b.bool,enterDelay:b.number,enterNextDelay:b.number,enterTouchDelay:b.number,followCursor:b.bool,id:b.string,leaveDelay:b.number,leaveTouchDelay:b.number,onClose:b.func,onOpen:b.func,open:b.bool,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:b.elementType,PopperProps:b.object,slotProps:b.shape({arrow:b.oneOfType([b.func,b.object]),popper:b.oneOfType([b.func,b.object]),tooltip:b.oneOfType([b.func,b.object]),transition:b.oneOfType([b.func,b.object])}),slots:b.shape({arrow:b.elementType,popper:b.elementType,tooltip:b.elementType,transition:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),title:b.node,TransitionComponent:b.elementType,TransitionProps:b.object});function PP(e){return Kn("MuiSpeedDialAction",e)}const Ia=Qn("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),IP=e=>{const{open:t,tooltipPlacement:n,classes:i}=e,s={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${fn(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return jr(s,PP,i)},NP=Lt(xf,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(Cn(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:gy(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:t})=>!t.open,style:{opacity:0,transform:"scale(0)"}}]}))),AP=Lt("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${fn(n.tooltipPlacement)}`]]}})(Cn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Ia.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:t})=>!t.open,style:{[`& .${Ia.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${Ia.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${Ia.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),kP=Lt("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(Cn(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),hv=oe.forwardRef(function(t,n){var fe;const i=xr({props:t,name:"MuiSpeedDialAction"}),{className:s,delay:a=0,FabProps:u={},icon:c,id:f,open:p,TooltipClasses:h,tooltipOpen:x=!1,tooltipPlacement:R="left",tooltipTitle:w,slots:C={},slotProps:y={},...v}=i,g={...i,tooltipPlacement:R},m=IP(g),S={slots:C,slotProps:{fab:u,...y,tooltip:wR(typeof y.tooltip=="function"?y.tooltip(g):y.tooltip,{title:w,open:x,placement:R,classes:h})}},[E,T]=oe.useState((fe=S.slotProps.tooltip)==null?void 0:fe.open),M=()=>{T(!1)},D=()=>{T(!0)},A={transitionDelay:`${a}ms`},[z,J]=Zn("fab",{elementType:NP,externalForwardedProps:S,ownerState:g,shouldForwardComponentProp:!0,className:at(m.fab,s),additionalProps:{style:A,tabIndex:-1,role:"menuitem",size:"small"}}),[Z,_]=Zn("tooltip",{elementType:pv,externalForwardedProps:S,shouldForwardComponentProp:!0,ref:n,additionalProps:{id:f},ownerState:g,getSlotProps:ae=>({...ae,onClose:Y=>{var $;($=ae.onClose)==null||$.call(ae,Y),M()},onOpen:Y=>{var $;($=ae.onOpen)==null||$.call(ae,Y),D()}})}),[H,B]=Zn("staticTooltip",{elementType:AP,externalForwardedProps:S,ownerState:g,ref:n,className:m.staticTooltip,additionalProps:{id:f}}),[K,q]=Zn("staticTooltipLabel",{elementType:kP,externalForwardedProps:S,ownerState:g,className:m.staticTooltipLabel,additionalProps:{style:A,id:`${f}-label`}}),X=F.jsx(z,{...J,children:c});return _.open?F.jsxs(H,{...B,...v,children:[F.jsx(K,{...q,children:_.title}),oe.cloneElement(X,{"aria-labelledby":`${f}-label`})]}):(!p&&E&&T(!1),F.jsx(Z,{..._,title:_.title,open:p&&E,placement:_.placement,classes:_.classes,...v,children:X}))});process.env.NODE_ENV!=="production"&&(hv.propTypes={classes:b.object,className:b.string,delay:b.number,FabProps:b.object,icon:b.node,id:b.string,open:b.bool,slotProps:b.shape({fab:b.oneOfType([b.func,b.object]),staticTooltip:b.oneOfType([b.func,b.object]),staticTooltipLabel:b.oneOfType([b.func,b.object]),tooltip:b.oneOfType([b.func,b.object])}),slots:b.shape({fab:b.elementType,staticTooltip:b.elementType,staticTooltipLabel:b.elementType,tooltip:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),TooltipClasses:b.object,tooltipOpen:b.bool,tooltipPlacement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:b.node});const $P=Qn("MuiBox",["root"]),LP=Ty(),mv=a_({themeId:yf,defaultTheme:LP,defaultClassName:$P.root,generateClassName:ty.generate});process.env.NODE_ENV!=="production"&&(mv.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const zP=({actions:e,value:t,direction:n="down",onChange:i,icons:s,openIcon:a,size:u=40})=>{const[c,f]=j.useState(!1),p=me.useTheme();return F.jsx(mv,{sx:{position:"relative",width:u,height:u},children:F.jsx(nv,{"data-testid":"speed-dial",ariaLabel:"Options",direction:n,onOpen:()=>f(!0),onClose:()=>f(!1),open:c,icon:F.jsx(Sf,{icon:s[t],openIcon:a}),FabProps:{sx:{zIndex:10,border:"none",backgroundColor:"transparent",boxShadow:"none",color:p.palette.text.primary,width:u,height:u,"&:hover":{zIndex:100,backgroundColor:"transparent",color:"transparent"}}},sx:{zIndex:10,position:"absolute",top:0,right:0,boxShadow:"none","& .MuiSpeedDial-actions":{backgroundColor:c?p.palette.background.paper:"transparent",boxShadow:"none",borderRadius:1,padding:0},"& .MuiSpeedDial-fab":{width:u,height:u,boxShadow:"none",border:"none"}},children:e.map(h=>F.jsx(hv,{icon:h.icon,tooltipTitle:h.name,onClick:()=>{i(h.value),f(!1)},FabProps:{sx:{backgroundColor:p.palette.background.paper,boxShadow:"none",color:p.palette.text.primary,width:u-4,height:u-4,"&:hover":{backgroundColor:p.palette.action.hover}}}},h.name))})})},gv=j.createContext(void 0),FP=()=>{const e=j.useContext(gv);if(!e)throw new Error("useGridItemContext must be used within a GridItemProvider");return e},WP=({children:e})=>{const[t,n]=j.useState([]),i=j.useCallback((f,p,h)=>{n(x=>{const R=x.findIndex(C=>C.id===f),w={id:f,content:p,layout:h};if(R>=0){const C=[...x];return C[R]=w,C}else return[...x,w]})},[]),s=j.useCallback(f=>{n(p=>p.filter(h=>h.id!==f))},[]),a=j.useCallback(f=>t.find(p=>p.id===f),[t]),u=j.useCallback(()=>t,[t]),c={gridItems:t,registerGridItem:i,unregisterGridItem:s,getGridItem:a,getAllGridItems:u};return F.jsx(gv.Provider,{value:c,children:e})};function BP(e){const{id:t=`grid-item-${Math.random().toString(36).substr(2,9)}`,x:n=0,y:i=0,w:s=1,h:a=1,minW:u=1,maxW:c=null,minH:f=1,maxH:p=null,static:h=!1}=e;return{i:t,x:n,y:i,w:s??12,h:a??1,minW:u,maxW:c??void 0,minH:f,maxH:p??void 0,static:h}}const Pf=()=>{const{editMode:e,toggleEditMode:t}=fo();return{editMode:e,toggleEditMode:t}},UP=({children:e,id:t,isFlexContainer:n=!1})=>{const i=me.useTheme(),{editMode:s}=Pf();return F.jsx(me.Box,{"data-grid-item-id":t,sx:{bgcolor:i.palette.background.paper,borderRadius:1,boxShadow:1,overflow:"hidden",p:1,height:"100%",display:n?"flex":"block",flexDirection:n?"column":"initial",outline:s?`2px dashed ${i.palette.primary.main}`:"none",transition:"outline 0.2s ease-in-out",position:"relative","&:hover":{outline:s?`2px solid ${i.palette.primary.main}`:"none"}},children:e})};var vc={exports:{}},Bo={},ts={exports:{}},jP=ts.exports,Am;function If(){return Am||(Am=1,function(e,t){(function(n,i){i(t)})(jP,function(n){function i(ee){return function(Ee,Re,N,W,G,le,be){return ee(Ee,Re,be)}}function s(ee){return function(Ee,Re,N,W){if(!Ee||!Re||typeof Ee!="object"||typeof Re!="object")return ee(Ee,Re,N,W);var G=W.get(Ee),le=W.get(Re);if(G&&le)return G===Re&&le===Ee;W.set(Ee,Re),W.set(Re,Ee);var be=ee(Ee,Re,N,W);return W.delete(Ee),W.delete(Re),be}}function a(ee,ce){var Ee={};for(var Re in ee)Ee[Re]=ee[Re];for(var Re in ce)Ee[Re]=ce[Re];return Ee}function u(ee){return ee.constructor===Object||ee.constructor==null}function c(ee){return typeof ee.then=="function"}function f(ee,ce){return ee===ce||ee!==ee&&ce!==ce}var p="[object Arguments]",h="[object Boolean]",x="[object Date]",R="[object RegExp]",w="[object Map]",C="[object Number]",y="[object Object]",v="[object Set]",g="[object String]",m=Object.prototype.toString;function S(ee){var ce=ee.areArraysEqual,Ee=ee.areDatesEqual,Re=ee.areMapsEqual,N=ee.areObjectsEqual,W=ee.areRegExpsEqual,G=ee.areSetsEqual,le=ee.createIsNestedEqual,be=le(ge);function ge(te,he,we){if(te===he)return!0;if(!te||!he||typeof te!="object"||typeof he!="object")return te!==te&&he!==he;if(u(te)&&u(he))return N(te,he,be,we);var Ne=Array.isArray(te),_e=Array.isArray(he);if(Ne||_e)return Ne===_e&&ce(te,he,be,we);var Ve=m.call(te);return Ve!==m.call(he)?!1:Ve===x?Ee(te,he,be,we):Ve===R?W(te,he,be,we):Ve===w?Re(te,he,be,we):Ve===v?G(te,he,be,we):Ve===y||Ve===p?c(te)||c(he)?!1:N(te,he,be,we):Ve===h||Ve===C||Ve===g?f(te.valueOf(),he.valueOf()):!1}return ge}function E(ee,ce,Ee,Re){var N=ee.length;if(ce.length!==N)return!1;for(;N-- >0;)if(!Ee(ee[N],ce[N],N,N,ee,ce,Re))return!1;return!0}var T=s(E);function M(ee,ce){return f(ee.valueOf(),ce.valueOf())}function D(ee,ce,Ee,Re){var N=ee.size===ce.size;if(!N)return!1;if(!ee.size)return!0;var W={},G=0;return ee.forEach(function(le,be){if(N){var ge=!1,te=0;ce.forEach(function(he,we){!ge&&!W[te]&&(ge=Ee(be,we,G,te,ee,ce,Re)&&Ee(le,he,be,we,ee,ce,Re))&&(W[te]=!0),te++}),G++,N=ge}}),N}var A=s(D),z="_owner",J=Object.prototype.hasOwnProperty;function Z(ee,ce,Ee,Re){var N=Object.keys(ee),W=N.length;if(Object.keys(ce).length!==W)return!1;for(var G;W-- >0;){if(G=N[W],G===z){var le=!!ee.$$typeof,be=!!ce.$$typeof;if((le||be)&&le!==be)return!1}if(!J.call(ce,G)||!Ee(ee[G],ce[G],G,G,ee,ce,Re))return!1}return!0}var _=s(Z);function H(ee,ce){return ee.source===ce.source&&ee.flags===ce.flags}function B(ee,ce,Ee,Re){var N=ee.size===ce.size;if(!N)return!1;if(!ee.size)return!0;var W={};return ee.forEach(function(G,le){if(N){var be=!1,ge=0;ce.forEach(function(te,he){!be&&!W[ge]&&(be=Ee(G,te,le,he,ee,ce,Re))&&(W[ge]=!0),ge++}),N=be}}),N}var K=s(B),q=Object.freeze({areArraysEqual:E,areDatesEqual:M,areMapsEqual:D,areObjectsEqual:Z,areRegExpsEqual:H,areSetsEqual:B,createIsNestedEqual:i}),X=Object.freeze({areArraysEqual:T,areDatesEqual:M,areMapsEqual:A,areObjectsEqual:_,areRegExpsEqual:H,areSetsEqual:K,createIsNestedEqual:i}),fe=S(q);function ae(ee,ce){return fe(ee,ce,void 0)}var Y=S(a(q,{createIsNestedEqual:function(){return f}}));function $(ee,ce){return Y(ee,ce,void 0)}var ue=S(X);function ye(ee,ce){return ue(ee,ce,new WeakMap)}var pe=S(a(X,{createIsNestedEqual:function(){return f}}));function Oe(ee,ce){return pe(ee,ce,new WeakMap)}function Te(ee){return S(a(q,ee(q)))}function ve(ee){var ce=S(a(X,ee(X)));return function(Ee,Re,N){return N===void 0&&(N=new WeakMap),ce(Ee,Re,N)}}n.circularDeepEqual=ye,n.circularShallowEqual=Oe,n.createCustomCircularEqual=ve,n.createCustomEqual=Te,n.deepEqual=ae,n.sameValueZeroEqual=f,n.shallowEqual=$,Object.defineProperty(n,"__esModule",{value:!0})})}(ts,ts.exports)),ts.exports}var Na={exports:{}},km;function Nf(){if(km)return Na.exports;km=1;function e(n){var i,s,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(s=e(n[i]))&&(a&&(a+=" "),a+=s)}else for(s in n)n[s]&&(a&&(a+=" "),a+=s);return a}function t(){for(var n,i,s=0,a="",u=arguments.length;s<u;s++)(n=arguments[s])&&(i=e(n))&&(a&&(a+=" "),a+=i);return a}return Na.exports=t,Na.exports.clsx=t,Na.exports}var qe={},bc,$m;function HP(){return $m||($m=1,bc=function(t,n,i){return t===n?!0:t.className===n.className&&i(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&i(t.verticalCompact,n.verticalCompact)&&i(t.compactType,n.compactType)&&i(t.layout,n.layout)&&i(t.margin,n.margin)&&i(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&i(t.resizeHandles,n.resizeHandles)&&i(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&i(t.droppingItem,n.droppingItem)&&i(t.innerRef,n.innerRef)}),bc}var Lm;function po(){if(Lm)return qe;Lm=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.bottom=s,qe.childrenEqual=p,qe.cloneLayout=a,qe.cloneLayoutItem=f,qe.collides=x,qe.compact=R,qe.compactItem=y,qe.compactType=ce,qe.correctBounds=v,qe.fastPositionEqual=h,qe.fastRGLPropsEqual=void 0,qe.getAllCollisions=S,qe.getFirstCollision=m,qe.getLayoutItem=g,qe.getStatics=E,qe.modifyLayout=u,qe.moveElement=T,qe.moveElementAwayFromCollision=M,qe.noop=void 0,qe.perc=D,qe.resizeItemInDirection=$,qe.setTopLeft=ye,qe.setTransform=ue,qe.sortLayoutItems=pe,qe.sortLayoutItemsByColRow=Te,qe.sortLayoutItemsByRowCol=Oe,qe.synchronizeLayoutWithChildren=ve,qe.validateLayout=ee,qe.withLayoutItem=c;var e=If(),t=n(j);function n(N){return N&&N.__esModule?N:{default:N}}const i=process.env.NODE_ENV==="production";function s(N){let W=0,G;for(let le=0,be=N.length;le<be;le++)G=N[le].y+N[le].h,G>W&&(W=G);return W}function a(N){const W=Array(N.length);for(let G=0,le=N.length;G<le;G++)W[G]=f(N[G]);return W}function u(N,W){const G=Array(N.length);for(let le=0,be=N.length;le<be;le++)W.i===N[le].i?G[le]=W:G[le]=N[le];return G}function c(N,W,G){let le=g(N,W);return le?(le=G(f(le)),N=u(N,le),[N,le]):[N,null]}function f(N){return{w:N.w,h:N.h,x:N.x,y:N.y,i:N.i,minW:N.minW,maxW:N.maxW,minH:N.minH,maxH:N.maxH,moved:!!N.moved,static:!!N.static,isDraggable:N.isDraggable,isResizable:N.isResizable,resizeHandles:N.resizeHandles,isBounded:N.isBounded}}function p(N,W){return(0,e.deepEqual)(t.default.Children.map(N,G=>G==null?void 0:G.key),t.default.Children.map(W,G=>G==null?void 0:G.key))&&(0,e.deepEqual)(t.default.Children.map(N,G=>G==null?void 0:G.props["data-grid"]),t.default.Children.map(W,G=>G==null?void 0:G.props["data-grid"]))}qe.fastRGLPropsEqual=HP();function h(N,W){return N.left===W.left&&N.top===W.top&&N.width===W.width&&N.height===W.height}function x(N,W){return!(N.i===W.i||N.x+N.w<=W.x||N.x>=W.x+W.w||N.y+N.h<=W.y||N.y>=W.y+W.h)}function R(N,W,G,le){const be=E(N),ge=pe(N,W),te=Array(N.length);for(let he=0,we=ge.length;he<we;he++){let Ne=f(ge[he]);Ne.static||(Ne=y(be,Ne,W,G,ge,le),be.push(Ne)),te[N.indexOf(ge[he])]=Ne,Ne.moved=!1}return te}const w={x:"w",y:"h"};function C(N,W,G,le){const be=w[le];W[le]+=1;const ge=N.map(te=>te.i).indexOf(W.i);for(let te=ge+1;te<N.length;te++){const he=N[te];if(!he.static){if(he.y>W.y+W.h)break;x(W,he)&&C(N,he,G+W[be],le)}}W[le]=G}function y(N,W,G,le,be,ge){const te=G==="vertical",he=G==="horizontal";if(te)for(W.y=Math.min(s(N),W.y);W.y>0&&!m(N,W);)W.y--;else if(he)for(;W.x>0&&!m(N,W);)W.x--;let we;for(;(we=m(N,W))&&!(G===null&&ge);)if(he?C(be,W,we.x+we.w,"x"):C(be,W,we.y+we.h,"y"),he&&W.x+W.w>le)for(W.x=le-W.w,W.y++;W.x>0&&!m(N,W);)W.x--;return W.y=Math.max(W.y,0),W.x=Math.max(W.x,0),W}function v(N,W){const G=E(N);for(let le=0,be=N.length;le<be;le++){const ge=N[le];if(ge.x+ge.w>W.cols&&(ge.x=W.cols-ge.w),ge.x<0&&(ge.x=0,ge.w=W.cols),!ge.static)G.push(ge);else for(;m(G,ge);)ge.y++}return N}function g(N,W){for(let G=0,le=N.length;G<le;G++)if(N[G].i===W)return N[G]}function m(N,W){for(let G=0,le=N.length;G<le;G++)if(x(N[G],W))return N[G]}function S(N,W){return N.filter(G=>x(G,W))}function E(N){return N.filter(W=>W.static)}function T(N,W,G,le,be,ge,te,he,we){if(W.static&&W.isDraggable!==!0||W.y===le&&W.x===G)return N;`${W.i}${String(G)}${String(le)}${W.x}${W.y}`;const Ne=W.x,_e=W.y;typeof G=="number"&&(W.x=G),typeof le=="number"&&(W.y=le),W.moved=!0;let Ve=pe(N,te);(te==="vertical"&&typeof le=="number"?_e>=le:te==="horizontal"&&typeof G=="number"?Ne>=G:!1)&&(Ve=Ve.reverse());const Et=S(Ve,W),Jt=Et.length>0;if(Jt&&we)return a(N);if(Jt&&ge)return`${W.i}`,W.x=Ne,W.y=_e,W.moved=!1,N;for(let Pt=0,Kt=Et.length;Pt<Kt;Pt++){const Rt=Et[Pt];`${W.i}${W.x}${W.y}${Rt.i}${Rt.x}${Rt.y}`,!Rt.moved&&(Rt.static?N=M(N,Rt,W,be,te):N=M(N,W,Rt,be,te))}return N}function M(N,W,G,le,be,ge){const te=be==="horizontal",he=be==="vertical",we=W.static;if(le){le=!1;const Ve={x:te?Math.max(W.x-G.w,0):G.x,y:he?Math.max(W.y-G.h,0):G.y,w:G.w,h:G.h,i:"-1"},_t=m(N,Ve),Et=_t&&_t.y+_t.h>W.y,Jt=_t&&W.x+W.w>_t.x;if(_t){if(Et&&he)return T(N,G,void 0,W.y+1,le,we,be);if(Et&&be==null)return W.y=G.y,G.y=G.y+G.h,N;if(Jt&&te)return T(N,W,G.x,void 0,le,we,be)}else return`${G.i}${Ve.x}${Ve.y}`,T(N,G,te?Ve.x:void 0,he?Ve.y:void 0,le,we,be)}const Ne=te?G.x+1:void 0,_e=he?G.y+1:void 0;return Ne==null&&_e==null?N:T(N,G,te?G.x+1:void 0,he?G.y+1:void 0,le,we,be)}function D(N){return N*100+"%"}const A=(N,W,G,le)=>N+G>le?W:G,z=(N,W,G)=>N<0?W:G,J=N=>Math.max(0,N),Z=N=>Math.max(0,N),_=(N,W,G)=>{let{left:le,height:be,width:ge}=W;const te=N.top-(be-N.height);return{left:le,width:ge,height:z(te,N.height,be),top:Z(te)}},H=(N,W,G)=>{let{top:le,left:be,height:ge,width:te}=W;return{top:le,height:ge,width:A(N.left,N.width,te,G),left:J(be)}},B=(N,W,G)=>{let{top:le,height:be,width:ge}=W;const te=N.left-(ge-N.width);return{height:be,width:te<0?N.width:A(N.left,N.width,ge,G),top:Z(le),left:J(te)}},K=(N,W,G)=>{let{top:le,left:be,height:ge,width:te}=W;return{width:te,left:be,height:z(le,N.height,ge),top:Z(le)}},Y={n:_,ne:function(){return _(arguments.length<=0?void 0:arguments[0],H(...arguments))},e:H,se:function(){return K(arguments.length<=0?void 0:arguments[0],H(...arguments))},s:K,sw:function(){return K(arguments.length<=0?void 0:arguments[0],B(...arguments))},w:B,nw:function(){return _(arguments.length<=0?void 0:arguments[0],B(...arguments))}};function $(N,W,G,le){const be=Y[N];return be?be(W,{...W,...G},le):G}function ue(N){let{top:W,left:G,width:le,height:be}=N;const ge=`translate(${G}px,${W}px)`;return{transform:ge,WebkitTransform:ge,MozTransform:ge,msTransform:ge,OTransform:ge,width:`${le}px`,height:`${be}px`,position:"absolute"}}function ye(N){let{top:W,left:G,width:le,height:be}=N;return{top:`${W}px`,left:`${G}px`,width:`${le}px`,height:`${be}px`,position:"absolute"}}function pe(N,W){return W==="horizontal"?Te(N):W==="vertical"?Oe(N):N}function Oe(N){return N.slice(0).sort(function(W,G){return W.y>G.y||W.y===G.y&&W.x>G.x?1:W.y===G.y&&W.x===G.x?0:-1})}function Te(N){return N.slice(0).sort(function(W,G){return W.x>G.x||W.x===G.x&&W.y>G.y?1:-1})}function ve(N,W,G,le,be){N=N||[];const ge=[];t.default.Children.forEach(W,he=>{if((he==null?void 0:he.key)==null)return;const we=g(N,String(he.key)),Ne=he.props["data-grid"];we&&Ne==null?ge.push(f(we)):Ne?(i||ee([Ne],"ReactGridLayout.children"),ge.push(f({...Ne,i:he.key}))):ge.push(f({w:1,h:1,x:0,y:s(ge),i:String(he.key)}))});const te=v(ge,{cols:G});return be?te:R(te,le,G)}function ee(N){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const G=["x","y","w","h"];if(!Array.isArray(N))throw new Error(W+" must be an array!");for(let le=0,be=N.length;le<be;le++){const ge=N[le];for(let te=0;te<G.length;te++){const he=G[te],we=ge[he];if(typeof we!="number"||Number.isNaN(we))throw new Error(`ReactGridLayout: ${W}[${le}].${he} must be a number! Received: ${we} (${typeof we})`)}if(typeof ge.i<"u"&&typeof ge.i!="string")throw new Error(`ReactGridLayout: ${W}[${le}].i must be a string! Received: ${ge.i} (${typeof ge.i})`)}}function ce(N){const{verticalCompact:W,compactType:G}=N||{};return W===!1?null:G}function Ee(){}const Re=()=>{};return qe.noop=Re,qe}var pr={},zm;function Af(){if(zm)return pr;zm=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.calcGridColWidth=e,pr.calcGridItemPosition=n,pr.calcGridItemWHPx=t,pr.calcWH=s,pr.calcXY=i,pr.clamp=a;function e(u){const{margin:c,containerPadding:f,containerWidth:p,cols:h}=u;return(p-c[0]*(h-1)-f[0]*2)/h}function t(u,c,f){return Number.isFinite(u)?Math.round(c*u+Math.max(0,u-1)*f):u}function n(u,c,f,p,h,x){const{margin:R,containerPadding:w,rowHeight:C}=u,y=e(u),v={};return x&&x.resizing?(v.width=Math.round(x.resizing.width),v.height=Math.round(x.resizing.height)):(v.width=t(p,y,R[0]),v.height=t(h,C,R[1])),x&&x.dragging?(v.top=Math.round(x.dragging.top),v.left=Math.round(x.dragging.left)):x&&x.resizing&&typeof x.resizing.top=="number"&&typeof x.resizing.left=="number"?(v.top=Math.round(x.resizing.top),v.left=Math.round(x.resizing.left)):(v.top=Math.round((C+R[1])*f+w[1]),v.left=Math.round((y+R[0])*c+w[0])),v}function i(u,c,f,p,h){const{margin:x,containerPadding:R,cols:w,rowHeight:C,maxRows:y}=u,v=e(u);let g=Math.round((f-R[0])/(v+x[0])),m=Math.round((c-R[1])/(C+x[1]));return g=a(g,0,w-p),m=a(m,0,y-h),{x:g,y:m}}function s(u,c,f,p,h,x){const{margin:R,maxRows:w,cols:C,rowHeight:y}=u,v=e(u);let g=Math.round((c+R[0])/(v+R[0])),m=Math.round((f+R[1])/(y+R[1])),S=a(g,0,C-p),E=a(m,0,w-h);return["sw","w","nw"].indexOf(x)!==-1&&(S=a(g,0,C)),["nw","n","ne"].indexOf(x)!==-1&&(E=a(m,0,w)),{w:S,h:E}}function a(u,c,f){return Math.max(Math.min(u,f),c)}return pr}var Uo={},jo={exports:{}},wc={};function yv(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=yv(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function Fm(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=yv(e))&&(i&&(i+=" "),i+=t);return i}const qP=Object.freeze(Object.defineProperty({__proto__:null,clsx:Fm,default:Fm},Symbol.toStringTag,{value:"Module"})),VP=Xg(qP);var wt={},Pr={},Wm;function ku(){if(Wm)return Pr;Wm=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.dontSetMe=s,Pr.findInArray=e,Pr.int=i,Pr.isFunction=t,Pr.isNum=n;function e(a,u){for(let c=0,f=a.length;c<f;c++)if(u.apply(u,[a[c],c,a]))return a[c]}function t(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Function]"}function n(a){return typeof a=="number"&&!isNaN(a)}function i(a){return parseInt(a,10)}function s(a,u,c){if(a[u])return new Error("Invalid prop ".concat(u," passed to ").concat(c," - do not set this, set it on the child."))}return Pr}var Ir={},Bm;function GP(){if(Bm)return Ir;Bm=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.browserPrefixToKey=n,Ir.browserPrefixToStyle=i,Ir.default=void 0,Ir.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var a;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const c=(a=window.document)===null||a===void 0||(a=a.documentElement)===null||a===void 0?void 0:a.style;if(!c||u in c)return"";for(let f=0;f<e.length;f++)if(n(u,e[f])in c)return e[f];return""}function n(a,u){return u?"".concat(u).concat(s(a)):a}function i(a,u){return u?"-".concat(u.toLowerCase(),"-").concat(a):a}function s(a){let u="",c=!0;for(let f=0;f<a.length;f++)c?(u+=a[f].toUpperCase(),c=!1):a[f]==="-"?c=!0:u+=a[f];return u}return Ir.default=t(),Ir}var Um;function kf(){if(Um)return wt;Um=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.addClassName=T,wt.addEvent=c,wt.addUserSelectStyles=S,wt.createCSSTransform=C,wt.createSVGTransform=y,wt.getTouch=g,wt.getTouchIdentifier=m,wt.getTranslation=v,wt.innerHeight=x,wt.innerWidth=R,wt.matchesSelector=a,wt.matchesSelectorAndParentsTo=u,wt.offsetXYFromParent=w,wt.outerHeight=p,wt.outerWidth=h,wt.removeClassName=M,wt.removeEvent=f,wt.removeUserSelectStyles=E;var e=ku(),t=i(GP());function n(D){if(typeof WeakMap!="function")return null;var A=new WeakMap,z=new WeakMap;return(n=function(J){return J?z:A})(D)}function i(D,A){if(D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var z=n(A);if(z&&z.has(D))return z.get(D);var J={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in D)if(_!=="default"&&Object.prototype.hasOwnProperty.call(D,_)){var H=Z?Object.getOwnPropertyDescriptor(D,_):null;H&&(H.get||H.set)?Object.defineProperty(J,_,H):J[_]=D[_]}return J.default=D,z&&z.set(D,J),J}let s="";function a(D,A){return s||(s=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(z){return(0,e.isFunction)(D[z])})),(0,e.isFunction)(D[s])?D[s](A):!1}function u(D,A,z){let J=D;do{if(a(J,A))return!0;if(J===z)return!1;J=J.parentNode}while(J);return!1}function c(D,A,z,J){if(!D)return;const Z={capture:!0,...J};D.addEventListener?D.addEventListener(A,z,Z):D.attachEvent?D.attachEvent("on"+A,z):D["on"+A]=z}function f(D,A,z,J){if(!D)return;const Z={capture:!0,...J};D.removeEventListener?D.removeEventListener(A,z,Z):D.detachEvent?D.detachEvent("on"+A,z):D["on"+A]=null}function p(D){let A=D.clientHeight;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A+=(0,e.int)(z.borderTopWidth),A+=(0,e.int)(z.borderBottomWidth),A}function h(D){let A=D.clientWidth;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A+=(0,e.int)(z.borderLeftWidth),A+=(0,e.int)(z.borderRightWidth),A}function x(D){let A=D.clientHeight;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A-=(0,e.int)(z.paddingTop),A-=(0,e.int)(z.paddingBottom),A}function R(D){let A=D.clientWidth;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A-=(0,e.int)(z.paddingLeft),A-=(0,e.int)(z.paddingRight),A}function w(D,A,z){const Z=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),_=(D.clientX+A.scrollLeft-Z.left)/z,H=(D.clientY+A.scrollTop-Z.top)/z;return{x:_,y:H}}function C(D,A){const z=v(D,A,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:z}}function y(D,A){return v(D,A,"")}function v(D,A,z){let{x:J,y:Z}=D,_="translate(".concat(J).concat(z,",").concat(Z).concat(z,")");if(A){const H="".concat(typeof A.x=="string"?A.x:A.x+z),B="".concat(typeof A.y=="string"?A.y:A.y+z);_="translate(".concat(H,", ").concat(B,")")+_}return _}function g(D,A){return D.targetTouches&&(0,e.findInArray)(D.targetTouches,z=>A===z.identifier)||D.changedTouches&&(0,e.findInArray)(D.changedTouches,z=>A===z.identifier)}function m(D){if(D.targetTouches&&D.targetTouches[0])return D.targetTouches[0].identifier;if(D.changedTouches&&D.changedTouches[0])return D.changedTouches[0].identifier}function S(D){if(!D)return;let A=D.getElementById("react-draggable-style-el");A||(A=D.createElement("style"),A.type="text/css",A.id="react-draggable-style-el",A.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
210
+ `,Ky=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:u,...c}=i,[f,p]=oe.useState([]),h=oe.useRef(0),x=oe.useRef(null);oe.useEffect(()=>{x.current&&(x.current(),x.current=null)},[f]);const R=oe.useRef(!1),w=hi(),O=oe.useRef(null),y=oe.useRef(null),v=oe.useCallback(E=>{const{pulsate:C,rippleX:M,rippleY:D,rippleSize:A,cb:z}=E;p(J=>[...J,F.jsx(WD,{classes:{ripple:at(a.ripple,Sn.ripple),rippleVisible:at(a.rippleVisible,Sn.rippleVisible),ripplePulsate:at(a.ripplePulsate,Sn.ripplePulsate),child:at(a.child,Sn.child),childLeaving:at(a.childLeaving,Sn.childLeaving),childPulsate:at(a.childPulsate,Sn.childPulsate)},timeout:Wc,pulsate:C,rippleX:M,rippleY:D,rippleSize:A},h.current)]),h.current+=1,x.current=z},[a]),g=oe.useCallback((E={},C={},M=()=>{})=>{const{pulsate:D=!1,center:A=s||C.pulsate,fakeElement:z=!1}=C;if((E==null?void 0:E.type)==="mousedown"&&R.current){R.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(R.current=!0);const J=z?null:y.current,Z=J?J.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,H,U;if(A||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)_=Math.round(Z.width/2),H=Math.round(Z.height/2);else{const{clientX:K,clientY:V}=E.touches&&E.touches.length>0?E.touches[0]:E;_=Math.round(K-Z.left),H=Math.round(V-Z.top)}if(A)U=Math.sqrt((2*Z.width**2+Z.height**2)/3),U%2===0&&(U+=1);else{const K=Math.max(Math.abs((J?J.clientWidth:0)-_),_)*2+2,V=Math.max(Math.abs((J?J.clientHeight:0)-H),H)*2+2;U=Math.sqrt(K**2+V**2)}E!=null&&E.touches?O.current===null&&(O.current=()=>{v({pulsate:D,rippleX:_,rippleY:H,rippleSize:U,cb:M})},w.start(kD,()=>{O.current&&(O.current(),O.current=null)})):v({pulsate:D,rippleX:_,rippleY:H,rippleSize:U,cb:M})},[s,v,w]),m=oe.useCallback(()=>{g({},{pulsate:!0})},[g]),S=oe.useCallback((E,C)=>{if(w.clear(),(E==null?void 0:E.type)==="touchend"&&O.current){O.current(),O.current=null,w.start(0,()=>{S(E,C)});return}O.current=null,p(M=>M.length>0?M.slice(1):M),x.current=C},[w]);return oe.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:S}),[m,g,S]),F.jsx(FD,{className:at(Sn.root,a.root,u),ref:y,...c,children:F.jsx(wf,{component:null,exit:!0,children:f})})});process.env.NODE_ENV!=="production"&&(Ky.propTypes={center:b.bool,classes:b.object,className:b.string});function BD(e){return Qn("MuiButtonBase",e)}const UD=er("MuiButtonBase",["root","disabled","focusVisible"]),jD=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:s}=e,u=jr({root:["root",t&&"disabled",n&&"focusVisible"]},BD,s);return n&&i&&(u.root+=` ${i}`),u},HD=Lt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${UD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qy=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:u,className:c,component:f="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:x=!1,focusRipple:R=!1,focusVisibleClassName:w,LinkComponent:O="a",onBlur:y,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:S,onFocusVisible:E,onKeyDown:C,onKeyUp:M,onMouseDown:D,onMouseLeave:A,onMouseUp:z,onTouchEnd:J,onTouchMove:Z,onTouchStart:_,tabIndex:H=0,TouchRippleProps:U,touchRippleRef:K,type:V,...X}=i,fe=oe.useRef(null),ae=ND(),Y=Fn(ae.ref,K),[$,ue]=oe.useState(!1);p&&$&&ue(!1),oe.useImperativeHandle(s,()=>({focusVisible:()=>{ue(!0),fe.current.focus()}}),[]);const ye=ae.shouldMount&&!h&&!p;oe.useEffect(()=>{$&&R&&!h&&ae.pulsate()},[h,R,$,ae]);const pe=pr(ae,"start",D,x),Oe=pr(ae,"stop",g,x),Te=pr(ae,"stop",m,x),ve=pr(ae,"stop",z,x),ee=pr(ae,"stop",_e=>{$&&_e.preventDefault(),A&&A(_e)},x),ce=pr(ae,"start",_,x),Ee=pr(ae,"stop",J,x),Re=pr(ae,"stop",Z,x),N=pr(ae,"stop",_e=>{iu(_e.target)||ue(!1),y&&y(_e)},!1),W=no(_e=>{fe.current||(fe.current=_e.currentTarget),iu(_e.target)&&(ue(!0),E&&E(_e)),S&&S(_e)}),G=()=>{const _e=fe.current;return f&&f!=="button"&&!(_e.tagName==="A"&&_e.href)},le=no(_e=>{R&&!_e.repeat&&$&&_e.key===" "&&ae.stop(_e,()=>{ae.start(_e)}),_e.target===_e.currentTarget&&G()&&_e.key===" "&&_e.preventDefault(),C&&C(_e),_e.target===_e.currentTarget&&G()&&_e.key==="Enter"&&!p&&(_e.preventDefault(),v&&v(_e))}),be=no(_e=>{R&&_e.key===" "&&$&&!_e.defaultPrevented&&ae.stop(_e,()=>{ae.pulsate(_e)}),M&&M(_e),v&&_e.target===_e.currentTarget&&G()&&_e.key===" "&&!_e.defaultPrevented&&v(_e)});let ge=f;ge==="button"&&(X.href||X.to)&&(ge=O);const te={};ge==="button"?(te.type=V===void 0?"button":V,te.disabled=p):(!X.href&&!X.to&&(te.role="button"),p&&(te["aria-disabled"]=p));const he=Fn(n,fe),we={...i,centerRipple:a,component:f,disabled:p,disableRipple:h,disableTouchRipple:x,focusRipple:R,tabIndex:H,focusVisible:$},Ne=jD(we);return F.jsxs(HD,{as:ge,className:at(Ne.root,c),ownerState:we,onBlur:N,onClick:v,onContextMenu:Oe,onFocus:W,onKeyDown:le,onKeyUp:be,onMouseDown:pe,onMouseLeave:ee,onMouseUp:ve,onDragLeave:Te,onTouchEnd:Ee,onTouchMove:Re,onTouchStart:ce,ref:he,tabIndex:p?-1:H,type:V,...te,...X,children:[u,ye?F.jsx(Ky,{ref:Y,center:a,...U}):null]})});function pr(e,t,n,i=!1){return no(s=>(n&&n(s),i||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Qy.propTypes={action:xf,centerRipple:b.bool,children:b.node,classes:b.object,className:b.string,component:ID,disabled:b.bool,disableRipple:b.bool,disableTouchRipple:b.bool,focusRipple:b.bool,focusVisibleClassName:b.string,href:b.any,LinkComponent:b.elementType,onBlur:b.func,onClick:b.func,onContextMenu:b.func,onDragLeave:b.func,onFocus:b.func,onFocusVisible:b.func,onKeyDown:b.func,onKeyUp:b.func,onMouseDown:b.func,onMouseLeave:b.func,onMouseUp:b.func,onTouchEnd:b.func,onTouchMove:b.func,onTouchStart:b.func,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),tabIndex:b.number,TouchRippleProps:b.object,touchRippleRef:b.oneOfType([b.func,b.shape({current:b.shape({pulsate:b.func.isRequired,start:b.func.isRequired,stop:b.func.isRequired})})]),type:b.oneOfType([b.oneOf(["button","reset","submit"]),b.string])});function VD(e){return Qn("MuiFab",e)}const Em=er("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);function qD(e){return typeof e.main=="string"}function GD(e,t=[]){if(!qD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function YD(e=[]){return([,t])=>t&&GD(t,e)}const ZD=e=>{const{color:t,variant:n,classes:i,size:s}=e,a={root:["root",n,`size${fn(s)}`,t==="inherit"?"colorInherit":t]},u=jr(a,VD,i);return{...i,...u}},XD=Lt(Qy,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Ry(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${fn(n.size)}`],n.color==="inherit"&&t.colorInherit,t[fn(n.size)],t[n.color]]}})(Cn(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Em.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),Cn(({theme:e})=>({variants:[...Object.entries(e.palette).filter(YD(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Cn(({theme:e})=>({[`&.${Em.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Sf=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiFab"}),{children:s,className:a,color:u="default",component:c="button",disabled:f=!1,disableFocusRipple:p=!1,focusVisibleClassName:h,size:x="large",variant:R="circular",...w}=i,O={...i,color:u,component:c,disabled:f,disableFocusRipple:p,size:x,variant:R},y=ZD(O);return F.jsx(XD,{className:at(y.root,a),component:c,disabled:f,focusRipple:!p,focusVisibleClassName:at(y.focusVisible,h),ownerState:O,ref:n,...w,classes:y,children:s})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["default","error","info","inherit","primary","secondary","success","warning"]),b.string]),component:b.elementType,disabled:b.bool,disableFocusRipple:b.bool,disableRipple:b.bool,focusVisibleClassName:b.string,href:b.string,size:b.oneOfType([b.oneOf(["small","medium","large"]),b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["circular","extended"]),b.string])});function JD(e){return Qn("MuiSpeedDial",e)}const _a=er("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function KD(e){return typeof e=="string"}function ev(e,t,n){return e===void 0||KD(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tv(e,t,n){return typeof e=="function"?e(t,n):e}function QD(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function Om(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function nv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:s,className:a}=e;if(!t){const w=at(n==null?void 0:n.className,a,s==null?void 0:s.className,i==null?void 0:i.className),O={...n==null?void 0:n.style,...s==null?void 0:s.style,...i==null?void 0:i.style},y={...n,...s,...i};return w.length>0&&(y.className=w),Object.keys(O).length>0&&(y.style=O),{props:y,internalRef:void 0}}const u=QD({...s,...i}),c=Om(i),f=Om(s),p=t(u),h=at(p==null?void 0:p.className,n==null?void 0:n.className,a,s==null?void 0:s.className,i==null?void 0:i.className),x={...p==null?void 0:p.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...i==null?void 0:i.style},R={...p,...n,...f,...c};return h.length>0&&(R.className=h),Object.keys(x).length>0&&(R.style=x),{props:R,internalRef:p.ref}}function Zn(e,t){const{className:n,elementType:i,ownerState:s,externalForwardedProps:a,internalForwardedProps:u,shouldForwardComponentProp:c=!1,...f}=t,{component:p,slots:h={[e]:void 0},slotProps:x={[e]:void 0},...R}=a,w=h[e]||i,O=tv(x[e],s),{props:{component:y,...v},internalRef:g}=nv({className:n,...f,externalForwardedProps:e==="root"?R:void 0,externalSlotProps:O}),m=Fn(g,O==null?void 0:O.ref,t.ref),S=e==="root"?y||p:y,E=ev(w,{...e==="root"&&!p&&!h[e]&&u,...e!=="root"&&!h[e]&&u,...v,...S&&!c&&{as:S},...S&&c&&{component:S},ref:m},s);return[w,E]}const eM=e=>{const{classes:t,open:n,direction:i}=e,s={root:["root",`direction${fn(i)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return jr(s,JD,t)};function Fo(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const Ra=32,Da=16,tM=Lt("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${fn(n.direction)}`]]}})(Cn(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${_a.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:Da+Ra}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${_a.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:Da+Ra}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${_a.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:Da+Ra}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${_a.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:Da+Ra}}}]}))),nM=Lt(Sf,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),rM=Lt("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),rv=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSpeedDial"}),s=Ss(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{ariaLabel:u,FabProps:{ref:c,...f}={},children:p,className:h,direction:x="up",hidden:R=!1,icon:w,onBlur:O,onClose:y,onFocus:v,onKeyDown:g,onMouseEnter:m,onMouseLeave:S,onOpen:E,open:C,openIcon:M,slots:D={},slotProps:A={},TransitionComponent:z,TransitionProps:J,transitionDuration:Z=a,..._}=i,[H,U]=Dy({controlled:C,default:!1,name:"SpeedDial",state:"open"}),K={...i,open:H,direction:x},V=eM(K),X=hi(),fe=oe.useRef(0),ae=oe.useRef(),Y=oe.useRef([]);Y.current=[Y.current[0]];const $=oe.useCallback(te=>{Y.current[0]=te},[]),ue=Fn(c,$),ye=(te,he,we)=>Ne=>{Y.current[te+1]=Ne,he&&he(Ne),we&&we(Ne)},pe=te=>{g&&g(te);const he=te.key.replace("Arrow","").toLowerCase(),{current:we=he}=ae;if(te.key==="Escape"){U(!1),Y.current[0].focus(),y&&y(te,"escapeKeyDown");return}if(Fo(he)===Fo(we)&&Fo(he)!==void 0){te.preventDefault();const Ne=he===we?1:-1,_e=bD(fe.current+Ne,0,Y.current.length-1);Y.current[_e].focus(),fe.current=_e,ae.current=we}};oe.useEffect(()=>{H||(fe.current=0,ae.current=void 0)},[H]);const Oe=te=>{te.type==="mouseleave"&&S&&S(te),te.type==="blur"&&O&&O(te),X.clear(),te.type==="blur"?X.start(0,()=>{U(!1),y&&y(te,"blur")}):(U(!1),y&&y(te,"mouseLeave"))},Te=te=>{f.onClick&&f.onClick(te),X.clear(),H?(U(!1),y&&y(te,"toggle")):(U(!0),E&&E(te,"toggle"))},ve=te=>{te.type==="mouseenter"&&m&&m(te),te.type==="focus"&&v&&v(te),X.clear(),H||X.start(0,()=>{U(!0),E&&E(te,{focus:"focus",mouseenter:"mouseEnter"}[te.type])})},ee=u.replace(/^[^a-z]+|[^\w:.-]+/gi,""),ce=oe.Children.toArray(p).filter(te=>(process.env.NODE_ENV!=="production"&&xi.isFragment(te)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
211
+ `)),oe.isValidElement(te))),Ee=ce.map((te,he)=>{const{FabProps:{ref:we}={},slotProps:Ne={},tooltipPlacement:_e}=te.props,{fab:{ref:qe,..._t}={},...Et}=Ne,Jt=_e||(Fo(x)==="vertical"?"left":"top");return oe.cloneElement(te,{slotProps:{fab:{..._t,ref:ye(he,we,qe)},...Et},delay:30*(H?he:ce.length-he),open:H,tooltipPlacement:Jt,id:`${ee}-action-${he}`})}),Re={transition:z,...D},N={transition:J,...A},W={slots:Re,slotProps:N},[G,le]=Zn("root",{elementType:tM,externalForwardedProps:{...W,..._},ownerState:K,ref:n,className:at(V.root,h),additionalProps:{role:"presentation"},getSlotProps:te=>({...te,onKeyDown:he=>{var we;(we=te.onKeyDown)==null||we.call(te,he),pe(he)},onBlur:he=>{var we;(we=te.onBlur)==null||we.call(te,he),Oe(he)},onFocus:he=>{var we;(we=te.onFocus)==null||we.call(te,he),ve(he)},onMouseEnter:he=>{var we;(we=te.onMouseEnter)==null||we.call(te,he),ve(he)},onMouseLeave:he=>{var we;(we=te.onMouseLeave)==null||we.call(te,he),Oe(he)}})}),[be,ge]=Zn("transition",{elementType:Xy,externalForwardedProps:W,ownerState:K});return F.jsxs(G,{...le,children:[F.jsx(be,{in:!R,timeout:Z,unmountOnExit:!0,...ge,children:F.jsx(nM,{color:"primary","aria-label":u,"aria-haspopup":"true","aria-expanded":H,"aria-controls":`${ee}-actions`,...f,onClick:Te,className:at(V.fab,f.className),ref:ue,ownerState:K,children:oe.isValidElement(w)&&gR(w,["SpeedDialIcon"])?oe.cloneElement(w,{open:H}):w})}),F.jsx(rM,{id:`${ee}-actions`,role:"menu","aria-orientation":Fo(x),className:at(V.actions,!H&&V.actionsClosed),ownerState:K,children:Ee})]})});process.env.NODE_ENV!=="production"&&(rv.propTypes={ariaLabel:b.string.isRequired,children:b.node,classes:b.object,className:b.string,direction:b.oneOf(["down","left","right","up"]),FabProps:b.object,hidden:b.bool,icon:b.node,onBlur:b.func,onClose:b.func,onFocus:b.func,onKeyDown:b.func,onMouseEnter:b.func,onMouseLeave:b.func,onOpen:b.func,open:b.bool,openIcon:b.node,slotProps:b.shape({root:b.oneOfType([b.func,b.object]),transition:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType,transition:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),TransitionComponent:b.elementType,transitionDuration:b.oneOfType([b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})]),TransitionProps:b.object});const iM=jt(F.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function oM(e){return Qn("MuiSpeedDialIcon",e)}const qn=er("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),sM=e=>{const{classes:t,open:n,openIcon:i}=e;return jr({root:["root"],icon:["icon",n&&"iconOpen",i&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},oM,t)},aM=Lt("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qn.icon}`]:t.icon},{[`& .${qn.icon}`]:n.open&&t.iconOpen},{[`& .${qn.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${qn.openIcon}`]:t.openIcon},{[`& .${qn.openIcon}`]:n.open&&t.openIconOpen},t.root]}})(Cn(({theme:e})=>({height:24,[`& .${qn.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${qn.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:t})=>t.open,style:{[`& .${qn.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:t})=>t.open&&t.openIcon,style:{[`& .${qn.icon}`]:{opacity:0}}},{props:({ownerState:t})=>t.open,style:{[`& .${qn.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),Ef=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiSpeedDialIcon"}),{className:s,icon:a,open:u,openIcon:c,...f}=i,p=i,h=sM(p);function x(R,w){return oe.isValidElement(R)?oe.cloneElement(R,{className:w}):R}return F.jsxs(aM,{className:at(h.root,s),ref:n,ownerState:p,...f,children:[c?x(c,h.openIcon):null,a?x(a,h.icon):F.jsx(iM,{className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Ef.propTypes={classes:b.object,className:b.string,icon:b.node,open:b.bool,openIcon:b.node,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});Ef.muiName="SpeedDialIcon";function Bc(e){return`scale(${e}, ${e**2})`}const uM={entering:{opacity:1,transform:Bc(1)},entered:{opacity:1,transform:"none"}},vc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),su=oe.forwardRef(function(t,n){const{addEndListener:i,appear:s=!0,children:a,easing:u,in:c,onEnter:f,onEntered:p,onEntering:h,onExit:x,onExited:R,onExiting:w,style:O,timeout:y="auto",TransitionComponent:v=tr,...g}=t,m=hi(),S=oe.useRef(),E=Ss(),C=oe.useRef(null),M=Fn(C,Nu(a),n),D=K=>V=>{if(K){const X=C.current;V===void 0?K(X):K(X,V)}},A=D(h),z=D((K,V)=>{Zy(K);const{duration:X,delay:fe,easing:ae}=ru({style:O,timeout:y,easing:u},{mode:"enter"});let Y;y==="auto"?(Y=E.transitions.getAutoHeightDuration(K.clientHeight),S.current=Y):Y=X,K.style.transition=[E.transitions.create("opacity",{duration:Y,delay:fe}),E.transitions.create("transform",{duration:vc?Y:Y*.666,delay:fe,easing:ae})].join(","),f&&f(K,V)}),J=D(p),Z=D(w),_=D(K=>{const{duration:V,delay:X,easing:fe}=ru({style:O,timeout:y,easing:u},{mode:"exit"});let ae;y==="auto"?(ae=E.transitions.getAutoHeightDuration(K.clientHeight),S.current=ae):ae=V,K.style.transition=[E.transitions.create("opacity",{duration:ae,delay:X}),E.transitions.create("transform",{duration:vc?ae:ae*.666,delay:vc?X:X||ae*.333,easing:fe})].join(","),K.style.opacity=0,K.style.transform=Bc(.75),x&&x(K)}),H=D(R),U=K=>{y==="auto"&&m.start(S.current||0,K),i&&i(C.current,K)};return F.jsx(v,{appear:s,in:c,nodeRef:C,onEnter:z,onEntered:J,onEntering:A,onExit:_,onExited:H,onExiting:Z,addEndListener:U,timeout:y==="auto"?null:y,...g,children:(K,{ownerState:V,...X})=>oe.cloneElement(a,{style:{opacity:0,transform:Bc(.75),visibility:K==="exited"&&!c?"hidden":void 0,...uM[K],...O,...a.props.style},ref:M,...X})})});process.env.NODE_ENV!=="production"&&(su.propTypes={addEndListener:b.func,appear:b.bool,children:Iu.isRequired,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,style:b.object,timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])});su&&(su.muiSupportAuto=!0);function hs(e,t,n,i,s){if(process.env.NODE_ENV==="production")return null;const a=e[t],u=s||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${i} \`${u}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Zt="top",Rn="bottom",Dn="right",Xt="left",Of="auto",Es=[Zt,Rn,Dn,Xt],oo="start",ms="end",lM="clippingParents",iv="viewport",Wo="popper",cM="reference",Tm=Es.reduce(function(e,t){return e.concat([t+"-"+oo,t+"-"+ms])},[]),ov=[].concat(Es,[Of]).reduce(function(e,t){return e.concat([t,t+"-"+oo,t+"-"+ms])},[]),fM="beforeRead",dM="read",pM="afterRead",hM="beforeMain",mM="main",gM="afterMain",yM="beforeWrite",vM="write",bM="afterWrite",wM=[fM,dM,pM,hM,mM,gM,yM,vM,bM];function Kn(e){return e?(e.nodeName||"").toLowerCase():null}function dn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ei(e){var t=dn(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=dn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tf(e){if(typeof ShadowRoot>"u")return!1;var t=dn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},a=t.elements[n];!_n(a)||!Kn(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function SM(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(i){var s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),c=u.reduce(function(f,p){return f[p]="",f},{});!_n(s)||!Kn(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const EM={name:"applyStyles",enabled:!0,phase:"write",fn:xM,effect:SM,requires:["computeStyles"]};function Xn(e){return e.split("-")[0]}var wi=Math.max,au=Math.min,so=Math.round;function Uc(){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 sv(){return!/^((?!chrome|android).)*safari/i.test(Uc())}function ao(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&_n(e)&&(s=e.offsetWidth>0&&so(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&so(i.height)/e.offsetHeight||1);var u=Ei(e)?dn(e):window,c=u.visualViewport,f=!sv()&&n,p=(i.left+(f&&c?c.offsetLeft:0))/s,h=(i.top+(f&&c?c.offsetTop:0))/a,x=i.width/s,R=i.height/a;return{width:x,height:R,top:h,right:p+x,bottom:h+R,left:p,x:p,y:h}}function Cf(e){var t=ao(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function av(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tf(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vr(e){return dn(e).getComputedStyle(e)}function OM(e){return["table","td","th"].indexOf(Kn(e))>=0}function Vr(e){return((Ei(e)?e.ownerDocument:e.document)||window.document).documentElement}function Au(e){return Kn(e)==="html"?e:e.assignedSlot||e.parentNode||(Tf(e)?e.host:null)||Vr(e)}function Cm(e){return!_n(e)||vr(e).position==="fixed"?null:e.offsetParent}function TM(e){var t=/firefox/i.test(Uc()),n=/Trident/i.test(Uc());if(n&&_n(e)){var i=vr(e);if(i.position==="fixed")return null}var s=Au(e);for(Tf(s)&&(s=s.host);_n(s)&&["html","body"].indexOf(Kn(s))<0;){var a=vr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Os(e){for(var t=dn(e),n=Cm(e);n&&OM(n)&&vr(n).position==="static";)n=Cm(n);return n&&(Kn(n)==="html"||Kn(n)==="body"&&vr(n).position==="static")?t:n||TM(e)||t}function _f(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function as(e,t,n){return wi(e,au(t,n))}function CM(e,t,n){var i=as(e,t,n);return i>n?n:i}function uv(){return{top:0,right:0,bottom:0,left:0}}function lv(e){return Object.assign({},uv(),e)}function cv(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var _M=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,lv(typeof t!="number"?t:cv(t,Es))};function RM(e){var t,n=e.state,i=e.name,s=e.options,a=n.elements.arrow,u=n.modifiersData.popperOffsets,c=Xn(n.placement),f=_f(c),p=[Xt,Dn].indexOf(c)>=0,h=p?"height":"width";if(!(!a||!u)){var x=_M(s.padding,n),R=Cf(a),w=f==="y"?Zt:Xt,O=f==="y"?Rn:Dn,y=n.rects.reference[h]+n.rects.reference[f]-u[f]-n.rects.popper[h],v=u[f]-n.rects.reference[f],g=Os(a),m=g?f==="y"?g.clientHeight||0:g.clientWidth||0:0,S=y/2-v/2,E=x[w],C=m-R[h]-x[O],M=m/2-R[h]/2+S,D=as(E,M,C),A=f;n.modifiersData[i]=(t={},t[A]=D,t.centerOffset=D-M,t)}}function DM(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||av(t.elements.popper,s)&&(t.elements.arrow=s))}const MM={name:"arrow",enabled:!0,phase:"main",fn:RM,effect:DM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uo(e){return e.split("-")[1]}var PM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IM(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:so(n*s)/s||0,y:so(i*s)/s||0}}function _m(e){var t,n=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,x=e.isFixed,R=u.x,w=R===void 0?0:R,O=u.y,y=O===void 0?0:O,v=typeof h=="function"?h({x:w,y}):{x:w,y};w=v.x,y=v.y;var g=u.hasOwnProperty("x"),m=u.hasOwnProperty("y"),S=Xt,E=Zt,C=window;if(p){var M=Os(n),D="clientHeight",A="clientWidth";if(M===dn(n)&&(M=Vr(n),vr(M).position!=="static"&&c==="absolute"&&(D="scrollHeight",A="scrollWidth")),M=M,s===Zt||(s===Xt||s===Dn)&&a===ms){E=Rn;var z=x&&M===C&&C.visualViewport?C.visualViewport.height:M[D];y-=z-i.height,y*=f?1:-1}if(s===Xt||(s===Zt||s===Rn)&&a===ms){S=Dn;var J=x&&M===C&&C.visualViewport?C.visualViewport.width:M[A];w-=J-i.width,w*=f?1:-1}}var Z=Object.assign({position:c},p&&PM),_=h===!0?IM({x:w,y},dn(n)):{x:w,y};if(w=_.x,y=_.y,f){var H;return Object.assign({},Z,(H={},H[E]=m?"0":"",H[S]=g?"0":"",H.transform=(C.devicePixelRatio||1)<=1?"translate("+w+"px, "+y+"px)":"translate3d("+w+"px, "+y+"px, 0)",H))}return Object.assign({},Z,(t={},t[E]=m?y+"px":"",t[S]=g?w+"px":"",t.transform="",t))}function NM(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,a=n.adaptive,u=a===void 0?!0:a,c=n.roundOffsets,f=c===void 0?!0:c,p={placement:Xn(t.placement),variation:uo(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,_m(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_m(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const AM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NM,data:{}};var Ma={passive:!0};function kM(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,f=dn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(h){h.addEventListener("scroll",n.update,Ma)}),c&&f.addEventListener("resize",n.update,Ma),function(){a&&p.forEach(function(h){h.removeEventListener("scroll",n.update,Ma)}),c&&f.removeEventListener("resize",n.update,Ma)}}const $M={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kM,data:{}};var LM={left:"right",right:"left",bottom:"top",top:"bottom"};function Ha(e){return e.replace(/left|right|bottom|top/g,function(t){return LM[t]})}var zM={start:"end",end:"start"};function Rm(e){return e.replace(/start|end/g,function(t){return zM[t]})}function Rf(e){var t=dn(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Df(e){return ao(Vr(e)).left+Rf(e).scrollLeft}function FM(e,t){var n=dn(e),i=Vr(e),s=n.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var p=sv();(p||!p&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Df(e),y:f}}function WM(e){var t,n=Vr(e),i=Rf(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=wi(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=wi(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Df(e),f=-i.scrollTop;return vr(s||n).direction==="rtl"&&(c+=wi(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Mf(e){var t=vr(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function fv(e){return["html","body","#document"].indexOf(Kn(e))>=0?e.ownerDocument.body:_n(e)&&Mf(e)?e:fv(Au(e))}function us(e,t){var n;t===void 0&&(t=[]);var i=fv(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),a=dn(i),u=s?[a].concat(a.visualViewport||[],Mf(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(us(Au(u)))}function jc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function BM(e,t){var n=ao(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 Dm(e,t,n){return t===iv?jc(FM(e,n)):Ei(t)?BM(t,n):jc(WM(Vr(e)))}function UM(e){var t=us(Au(e)),n=["absolute","fixed"].indexOf(vr(e).position)>=0,i=n&&_n(e)?Os(e):e;return Ei(i)?t.filter(function(s){return Ei(s)&&av(s,i)&&Kn(s)!=="body"}):[]}function jM(e,t,n,i){var s=t==="clippingParents"?UM(e):[].concat(t),a=[].concat(s,[n]),u=a[0],c=a.reduce(function(f,p){var h=Dm(e,p,i);return f.top=wi(h.top,f.top),f.right=au(h.right,f.right),f.bottom=au(h.bottom,f.bottom),f.left=wi(h.left,f.left),f},Dm(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function dv(e){var t=e.reference,n=e.element,i=e.placement,s=i?Xn(i):null,a=i?uo(i):null,u=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,f;switch(s){case Zt:f={x:u,y:t.y-n.height};break;case Rn:f={x:u,y:t.y+t.height};break;case Dn:f={x:t.x+t.width,y:c};break;case Xt:f={x:t.x-n.width,y:c};break;default:f={x:t.x,y:t.y}}var p=s?_f(s):null;if(p!=null){var h=p==="y"?"height":"width";switch(a){case oo:f[p]=f[p]-(t[h]/2-n[h]/2);break;case ms:f[p]=f[p]+(t[h]/2-n[h]/2);break}}return f}function gs(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,a=n.strategy,u=a===void 0?e.strategy:a,c=n.boundary,f=c===void 0?lM:c,p=n.rootBoundary,h=p===void 0?iv:p,x=n.elementContext,R=x===void 0?Wo:x,w=n.altBoundary,O=w===void 0?!1:w,y=n.padding,v=y===void 0?0:y,g=lv(typeof v!="number"?v:cv(v,Es)),m=R===Wo?cM:Wo,S=e.rects.popper,E=e.elements[O?m:R],C=jM(Ei(E)?E:E.contextElement||Vr(e.elements.popper),f,h,u),M=ao(e.elements.reference),D=dv({reference:M,element:S,placement:s}),A=jc(Object.assign({},S,D)),z=R===Wo?A:M,J={top:C.top-z.top+g.top,bottom:z.bottom-C.bottom+g.bottom,left:C.left-z.left+g.left,right:z.right-C.right+g.right},Z=e.modifiersData.offset;if(R===Wo&&Z){var _=Z[s];Object.keys(J).forEach(function(H){var U=[Dn,Rn].indexOf(H)>=0?1:-1,K=[Zt,Rn].indexOf(H)>=0?"y":"x";J[H]+=_[K]*U})}return J}function HM(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,a=n.rootBoundary,u=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?ov:f,h=uo(i),x=h?c?Tm:Tm.filter(function(O){return uo(O)===h}):Es,R=x.filter(function(O){return p.indexOf(O)>=0});R.length===0&&(R=x);var w=R.reduce(function(O,y){return O[y]=gs(e,{placement:y,boundary:s,rootBoundary:a,padding:u})[Xn(y)],O},{});return Object.keys(w).sort(function(O,y){return w[O]-w[y]})}function VM(e){if(Xn(e)===Of)return[];var t=Ha(e);return[Rm(e),t,Rm(t)]}function qM(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!0:u,f=n.fallbackPlacements,p=n.padding,h=n.boundary,x=n.rootBoundary,R=n.altBoundary,w=n.flipVariations,O=w===void 0?!0:w,y=n.allowedAutoPlacements,v=t.options.placement,g=Xn(v),m=g===v,S=f||(m||!O?[Ha(v)]:VM(v)),E=[v].concat(S).reduce(function(pe,Oe){return pe.concat(Xn(Oe)===Of?HM(t,{placement:Oe,boundary:h,rootBoundary:x,padding:p,flipVariations:O,allowedAutoPlacements:y}):Oe)},[]),C=t.rects.reference,M=t.rects.popper,D=new Map,A=!0,z=E[0],J=0;J<E.length;J++){var Z=E[J],_=Xn(Z),H=uo(Z)===oo,U=[Zt,Rn].indexOf(_)>=0,K=U?"width":"height",V=gs(t,{placement:Z,boundary:h,rootBoundary:x,altBoundary:R,padding:p}),X=U?H?Dn:Xt:H?Rn:Zt;C[K]>M[K]&&(X=Ha(X));var fe=Ha(X),ae=[];if(a&&ae.push(V[_]<=0),c&&ae.push(V[X]<=0,V[fe]<=0),ae.every(function(pe){return pe})){z=Z,A=!1;break}D.set(Z,ae)}if(A)for(var Y=O?3:1,$=function(Oe){var Te=E.find(function(ve){var ee=D.get(ve);if(ee)return ee.slice(0,Oe).every(function(ce){return ce})});if(Te)return z=Te,"break"},ue=Y;ue>0;ue--){var ye=$(ue);if(ye==="break")break}t.placement!==z&&(t.modifiersData[i]._skip=!0,t.placement=z,t.reset=!0)}}const GM={name:"flip",enabled:!0,phase:"main",fn:qM,requiresIfExists:["offset"],data:{_skip:!1}};function Mm(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 Pm(e){return[Zt,Dn,Rn,Xt].some(function(t){return e[t]>=0})}function YM(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=gs(t,{elementContext:"reference"}),c=gs(t,{altBoundary:!0}),f=Mm(u,i),p=Mm(c,s,a),h=Pm(f),x=Pm(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":x})}const ZM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YM};function XM(e,t,n){var i=Xn(e),s=[Xt,Zt].indexOf(i)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Xt,Dn].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function JM(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=s===void 0?[0,0]:s,u=ov.reduce(function(h,x){return h[x]=XM(x,t.rects,a),h},{}),c=u[t.placement],f=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=u}const KM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JM};function QM(e){var t=e.state,n=e.name;t.modifiersData[n]=dv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const eP={name:"popperOffsets",enabled:!0,phase:"read",fn:QM,data:{}};function tP(e){return e==="x"?"y":"x"}function nP(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!1:u,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,x=n.padding,R=n.tether,w=R===void 0?!0:R,O=n.tetherOffset,y=O===void 0?0:O,v=gs(t,{boundary:f,rootBoundary:p,padding:x,altBoundary:h}),g=Xn(t.placement),m=uo(t.placement),S=!m,E=_f(g),C=tP(E),M=t.modifiersData.popperOffsets,D=t.rects.reference,A=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,J=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(M){if(a){var H,U=E==="y"?Zt:Xt,K=E==="y"?Rn:Dn,V=E==="y"?"height":"width",X=M[E],fe=X+v[U],ae=X-v[K],Y=w?-A[V]/2:0,$=m===oo?D[V]:A[V],ue=m===oo?-A[V]:-D[V],ye=t.elements.arrow,pe=w&&ye?Cf(ye):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uv(),Te=Oe[U],ve=Oe[K],ee=as(0,D[V],pe[V]),ce=S?D[V]/2-Y-ee-Te-J.mainAxis:$-ee-Te-J.mainAxis,Ee=S?-D[V]/2+Y+ee+ve+J.mainAxis:ue+ee+ve+J.mainAxis,Re=t.elements.arrow&&Os(t.elements.arrow),N=Re?E==="y"?Re.clientTop||0:Re.clientLeft||0:0,W=(H=Z==null?void 0:Z[E])!=null?H:0,G=X+ce-W-N,le=X+Ee-W,be=as(w?au(fe,G):fe,X,w?wi(ae,le):ae);M[E]=be,_[E]=be-X}if(c){var ge,te=E==="x"?Zt:Xt,he=E==="x"?Rn:Dn,we=M[C],Ne=C==="y"?"height":"width",_e=we+v[te],qe=we-v[he],_t=[Zt,Xt].indexOf(g)!==-1,Et=(ge=Z==null?void 0:Z[C])!=null?ge:0,Jt=_t?_e:we-D[Ne]-A[Ne]-Et+J.altAxis,Pt=_t?we+D[Ne]+A[Ne]-Et-J.altAxis:qe,Kt=w&&_t?CM(Jt,we,Pt):as(w?Jt:_e,we,w?Pt:qe);M[C]=Kt,_[C]=Kt-we}t.modifiersData[i]=_}}const rP={name:"preventOverflow",enabled:!0,phase:"main",fn:nP,requiresIfExists:["offset"]};function iP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oP(e){return e===dn(e)||!_n(e)?Rf(e):iP(e)}function sP(e){var t=e.getBoundingClientRect(),n=so(t.width)/e.offsetWidth||1,i=so(t.height)/e.offsetHeight||1;return n!==1||i!==1}function aP(e,t,n){n===void 0&&(n=!1);var i=_n(t),s=_n(t)&&sP(t),a=Vr(t),u=ao(e,s,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((Kn(t)!=="body"||Mf(a))&&(c=oP(t)),_n(t)?(f=ao(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Df(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function uP(e){var t=new Map,n=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){n.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!n.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){n.has(a.name)||s(a)}),i}function lP(e){var t=uP(e);return wM.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function cP(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fP(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Im={placement:"bottom",modifiers:[],strategy:"absolute"};function Nm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function dP(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,a=s===void 0?Im:s;return function(c,f,p){p===void 0&&(p=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Im,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},x=[],R=!1,w={state:h,setOptions:function(g){var m=typeof g=="function"?g(h.options):g;y(),h.options=Object.assign({},a,h.options,m),h.scrollParents={reference:Ei(c)?us(c):c.contextElement?us(c.contextElement):[],popper:us(f)};var S=lP(fP([].concat(i,h.options.modifiers)));return h.orderedModifiers=S.filter(function(E){return E.enabled}),O(),w.update()},forceUpdate:function(){if(!R){var g=h.elements,m=g.reference,S=g.popper;if(Nm(m,S)){h.rects={reference:aP(m,Os(S),h.options.strategy==="fixed"),popper:Cf(S)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(J){return h.modifiersData[J.name]=Object.assign({},J.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var C=h.orderedModifiers[E],M=C.fn,D=C.options,A=D===void 0?{}:D,z=C.name;typeof M=="function"&&(h=M({state:h,options:A,name:z,instance:w})||h)}}}},update:cP(function(){return new Promise(function(v){w.forceUpdate(),v(h)})}),destroy:function(){y(),R=!0}};if(!Nm(c,f))return w;w.setOptions(p).then(function(v){!R&&p.onFirstUpdate&&p.onFirstUpdate(v)});function O(){h.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,S=m===void 0?{}:m,E=v.effect;if(typeof E=="function"){var C=E({state:h,name:g,instance:w,options:S}),M=function(){};x.push(C||M)}})}function y(){x.forEach(function(v){return v()}),x=[]}return w}}var pP=[$M,eP,AM,EM,KM,GM,rP,MM,ZM],hP=dP({defaultModifiers:pP});function mP(e){var x;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:s=!1,...a}=e,u=s?{}:tv(n,i),{props:c,internalRef:f}=nv({...a,externalSlotProps:u}),p=Fn(f,u==null?void 0:u.ref,(x=e.additionalProps)==null?void 0:x.ref);return ev(t,{...c,ref:p},i)}const gP="exact-prop: ​";function yP(e){return process.env.NODE_ENV==="production"?e:{...e,[gP]:t=>{const n=Object.keys(t).filter(i=>!e.hasOwnProperty(i));return n.length>0?new Error(`The following props are not supported: ${n.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}function vP(e){return typeof e=="function"?e():e}const uu=oe.forwardRef(function(t,n){const{children:i,container:s,disablePortal:a=!1}=t,[u,c]=oe.useState(null),f=Fn(oe.isValidElement(i)?Nu(i):null,n);if(ds(()=>{a||c(vP(s)||document.body)},[s,a]),ds(()=>{if(u&&!a)return fm(n,u),()=>{fm(n,null)}},[n,u,a]),a){if(oe.isValidElement(i)){const p={ref:f};return oe.cloneElement(i,p)}return i}return u&&mT.createPortal(i,u)});process.env.NODE_ENV!=="production"&&(uu.propTypes={children:b.node,container:b.oneOfType([hs,b.func]),disablePortal:b.bool});process.env.NODE_ENV!=="production"&&(uu.propTypes=yP(uu.propTypes));function bP(e){return Qn("MuiPopper",e)}er("MuiPopper",["root"]);function wP(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function lu(e){return typeof e=="function"?e():e}function ku(e){return e.nodeType!==void 0}function xP(e){return!ku(e)}const SP=e=>{const{classes:t}=e;return jr({root:["root"]},bP,t)},EP={},OP=oe.forwardRef(function(t,n){const{anchorEl:i,children:s,direction:a,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:h,popperRef:x,slotProps:R={},slots:w={},TransitionProps:O,ownerState:y,...v}=t,g=oe.useRef(null),m=Fn(g,n),S=oe.useRef(null),E=Fn(S,x),C=oe.useRef(E);ds(()=>{C.current=E},[E]),oe.useImperativeHandle(x,()=>S.current,[]);const M=wP(p,a),[D,A]=oe.useState(M),[z,J]=oe.useState(lu(i));oe.useEffect(()=>{S.current&&S.current.forceUpdate()}),oe.useEffect(()=>{i&&J(lu(i))},[i]),ds(()=>{if(!z||!f)return;const K=fe=>{A(fe.placement)};if(process.env.NODE_ENV!=="production"&&z&&ku(z)&&z.nodeType===1){const fe=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&fe.top===0&&fe.left===0&&fe.right===0&&fe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
212
+ `))}let V=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:fe})=>{K(fe)}}];c!=null&&(V=V.concat(c)),h&&h.modifiers!=null&&(V=V.concat(h.modifiers));const X=hP(z,g.current,{placement:M,...h,modifiers:V});return C.current(X),()=>{X.destroy(),C.current(null)}},[z,u,c,f,h,M]);const Z={placement:D};O!==null&&(Z.TransitionProps=O);const _=SP(t),H=w.root??"div",U=mP({elementType:H,externalSlotProps:R.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:_.root});return F.jsx(H,{...U,children:typeof s=="function"?s(Z):s})}),pv=oe.forwardRef(function(t,n){const{anchorEl:i,children:s,container:a,direction:u="ltr",disablePortal:c=!1,keepMounted:f=!1,modifiers:p,open:h,placement:x="bottom",popperOptions:R=EP,popperRef:w,style:O,transition:y=!1,slotProps:v={},slots:g={},...m}=t,[S,E]=oe.useState(!0),C=()=>{E(!1)},M=()=>{E(!0)};if(!f&&!h&&(!y||S))return null;let D;if(a)D=a;else if(i){const J=lu(i);D=J&&ku(J)?cm(J).body:cm(null).body}const A=!h&&f&&(!y||S)?"none":void 0,z=y?{in:h,onEnter:C,onExited:M}:void 0;return F.jsx(uu,{disablePortal:c,container:D,children:F.jsx(OP,{anchorEl:i,direction:u,disablePortal:c,modifiers:p,ref:n,open:y?!S:h,placement:x,popperOptions:R,popperRef:w,slotProps:v,slots:g,...m,style:{position:"fixed",top:0,left:0,display:A,...O},TransitionProps:z,children:s})})});process.env.NODE_ENV!=="production"&&(pv.propTypes={anchorEl:Pu(b.oneOfType([hs,b.object,b.func]),e=>{if(e.open){const t=lu(e.anchorEl);if(t&&ku(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
213
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||xP(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
214
+ `))}return null}),children:b.oneOfType([b.node,b.func]),container:b.oneOfType([hs,b.func]),direction:b.oneOf(["ltr","rtl"]),disablePortal:b.bool,keepMounted:b.bool,modifiers:b.arrayOf(b.shape({data:b.object,effect:b.func,enabled:b.bool,fn:b.func,name:b.any,options:b.object,phase:b.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:b.arrayOf(b.string),requiresIfExists:b.arrayOf(b.string)})),open:b.bool.isRequired,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:b.shape({modifiers:b.array,onFirstUpdate:b.func,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:b.oneOf(["absolute","fixed"])}),popperRef:xf,slotProps:b.shape({root:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType}),transition:b.bool});const TP=Lt(pv,{name:"MuiPopper",slot:"Root"})({}),Pf=oe.forwardRef(function(t,n){const i=vy(),s=xr({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:f,container:p,disablePortal:h,keepMounted:x,modifiers:R,open:w,placement:O,popperOptions:y,popperRef:v,transition:g,slots:m,slotProps:S,...E}=s,C=(m==null?void 0:m.root)??(c==null?void 0:c.Root),M={anchorEl:a,container:p,disablePortal:h,keepMounted:x,modifiers:R,open:w,placement:O,popperOptions:y,popperRef:v,transition:g,...E};return F.jsx(TP,{as:u,direction:i?"rtl":"ltr",slots:{root:C},slotProps:S??f,...M,ref:n})});process.env.NODE_ENV!=="production"&&(Pf.propTypes={anchorEl:b.oneOfType([hs,b.object,b.func]),children:b.oneOfType([b.node,b.func]),component:b.elementType,components:b.shape({Root:b.elementType}),componentsProps:b.shape({root:b.oneOfType([b.func,b.object])}),container:b.oneOfType([hs,b.func]),disablePortal:b.bool,keepMounted:b.bool,modifiers:b.arrayOf(b.shape({data:b.object,effect:b.func,enabled:b.bool,fn:b.func,name:b.any,options:b.object,phase:b.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:b.arrayOf(b.string),requiresIfExists:b.arrayOf(b.string)})),open:b.bool.isRequired,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:b.shape({modifiers:b.array,onFirstUpdate:b.func,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:b.oneOf(["absolute","fixed"])}),popperRef:xf,slotProps:b.shape({root:b.oneOfType([b.func,b.object])}),slots:b.shape({root:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),transition:b.bool});function CP(e){return Qn("MuiTooltip",e)}const gt=er("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function _P(e){return Math.round(e*1e5)/1e5}const RP=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:s,placement:a}=e,u={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",s&&"touch",`tooltipPlacement${fn(a.split("-")[0])}`],arrow:["arrow"]};return jr(u,CP,t)},DP=Lt(Pf,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Cn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${gt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${gt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${gt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${gt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${gt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${gt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${gt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${gt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),MP=Lt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${fn(n.placement.split("-")[0])}`]]}})(Cn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${gt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${gt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${gt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${_P(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${gt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${gt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${gt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${gt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),PP=Lt("span",{name:"MuiTooltip",slot:"Arrow"})(Cn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Pa=!1;const Am=new Mu;let Bo={x:0,y:0};function Ia(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const hv=oe.forwardRef(function(t,n){const i=xr({props:t,name:"MuiTooltip"}),{arrow:s=!1,children:a,classes:u,components:c={},componentsProps:f={},describeChild:p=!1,disableFocusListener:h=!1,disableHoverListener:x=!1,disableInteractive:R=!1,disableTouchListener:w=!1,enterDelay:O=100,enterNextDelay:y=0,enterTouchDelay:v=700,followCursor:g=!1,id:m,leaveDelay:S=0,leaveTouchDelay:E=1500,onClose:C,onOpen:M,open:D,placement:A="bottom",PopperComponent:z,PopperProps:J={},slotProps:Z={},slots:_={},title:H,TransitionComponent:U,TransitionProps:K,...V}=i,X=oe.isValidElement(a)?a:F.jsx("span",{children:a}),fe=Ss(),ae=vy(),[Y,$]=oe.useState(),[ue,ye]=oe.useState(null),pe=oe.useRef(!1),Oe=R||g,Te=hi(),ve=hi(),ee=hi(),ce=hi(),[Ee,Re]=Dy({controlled:D,default:!1,name:"Tooltip",state:"open"});let N=Ee;if(process.env.NODE_ENV!=="production"){const{current:$e}=oe.useRef(D!==void 0);oe.useEffect(()=>{Y&&Y.disabled&&!$e&&H!==""&&Y.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
215
+ `))},[H,Y,$e])}const W=bR(m),G=oe.useRef(),le=no(()=>{G.current!==void 0&&(document.body.style.WebkitUserSelect=G.current,G.current=void 0),ce.clear()});oe.useEffect(()=>le,[le]);const be=$e=>{Am.clear(),Pa=!0,Re(!0),M&&!N&&M($e)},ge=no($e=>{Am.start(800+S,()=>{Pa=!1}),Re(!1),C&&N&&C($e),Te.start(fe.transitions.duration.shortest,()=>{pe.current=!1})}),te=$e=>{pe.current&&$e.type!=="touchstart"||(Y&&Y.removeAttribute("title"),ve.clear(),ee.clear(),O||Pa&&y?ve.start(Pa?y:O,()=>{be($e)}):be($e))},he=$e=>{ve.clear(),ee.start(S,()=>{ge($e)})},[,we]=oe.useState(!1),Ne=$e=>{iu($e.target)||(we(!1),he($e))},_e=$e=>{Y||$($e.currentTarget),iu($e.target)&&(we(!0),te($e))},qe=$e=>{pe.current=!0;const Qt=X.props;Qt.onTouchStart&&Qt.onTouchStart($e)},_t=$e=>{qe($e),ee.clear(),Te.clear(),le(),G.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=G.current,te($e)})},Et=$e=>{X.props.onTouchEnd&&X.props.onTouchEnd($e),le(),ee.start(E,()=>{ge($e)})};oe.useEffect(()=>{if(!N)return;function $e(Qt){Qt.key==="Escape"&&ge(Qt)}return document.addEventListener("keydown",$e),()=>{document.removeEventListener("keydown",$e)}},[ge,N]);const Jt=Fn(Nu(X),$,n);!H&&H!==0&&(N=!1);const Pt=oe.useRef(),Kt=$e=>{const Qt=X.props;Qt.onMouseMove&&Qt.onMouseMove($e),Bo={x:$e.clientX,y:$e.clientY},Pt.current&&Pt.current.update()},Rt={},qr=typeof H=="string";p?(Rt.title=!N&&qr&&!x?H:null,Rt["aria-describedby"]=N?W:null):(Rt["aria-label"]=qr?H:null,Rt["aria-labelledby"]=N&&!qr?W:null);const It={...Rt,...V,...X.props,className:at(V.className,X.props.className),onTouchStart:qe,ref:Jt,...g?{onMouseMove:Kt}:{}};process.env.NODE_ENV!=="production"&&(It["data-mui-internal-clone-element"]=!0,oe.useEffect(()=>{Y&&!Y.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
216
+ `))},[Y]));const nr={};w||(It.onTouchStart=_t,It.onTouchEnd=Et),x||(It.onMouseOver=Ia(te,It.onMouseOver),It.onMouseLeave=Ia(he,It.onMouseLeave),Oe||(nr.onMouseOver=te,nr.onMouseLeave=he)),h||(It.onFocus=Ia(_e,It.onFocus),It.onBlur=Ia(Ne,It.onBlur),Oe||(nr.onFocus=_e,nr.onBlur=Ne)),process.env.NODE_ENV!=="production"&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join(`
217
+ `));const Pn={...i,isRtl:ae,arrow:s,disableInteractive:Oe,placement:A,PopperComponentProp:z,touch:pe.current},zt=typeof Z.popper=="function"?Z.popper(Pn):Z.popper,bo=oe.useMemo(()=>{var Qt,Is;let $e=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(Qt=J.popperOptions)!=null&&Qt.modifiers&&($e=$e.concat(J.popperOptions.modifiers)),(Is=zt==null?void 0:zt.popperOptions)!=null&&Is.modifiers&&($e=$e.concat(zt.popperOptions.modifiers)),{...J.popperOptions,...zt==null?void 0:zt.popperOptions,modifiers:$e}},[ue,J.popperOptions,zt==null?void 0:zt.popperOptions]),Gr=RP(Pn),wo=typeof Z.transition=="function"?Z.transition(Pn):Z.transition,Ti={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,..._},slotProps:{arrow:Z.arrow??f.arrow,popper:{...J,...zt??f.popper},tooltip:Z.tooltip??f.tooltip,transition:{...K,...wo??f.transition}}},[Hu,Vu]=Zn("popper",{elementType:DP,externalForwardedProps:Ti,ownerState:Pn,className:at(Gr.popper,J==null?void 0:J.className)}),[Ms,Ps]=Zn("transition",{elementType:su,externalForwardedProps:Ti,ownerState:Pn}),[qu,Gu]=Zn("tooltip",{elementType:MP,className:Gr.tooltip,externalForwardedProps:Ti,ownerState:Pn}),[Yu,Zu]=Zn("arrow",{elementType:PP,className:Gr.arrow,externalForwardedProps:Ti,ownerState:Pn,ref:ye});return F.jsxs(oe.Fragment,{children:[oe.cloneElement(X,It),F.jsx(Hu,{as:z??Pf,placement:A,anchorEl:g?{getBoundingClientRect:()=>({top:Bo.y,left:Bo.x,right:Bo.x,bottom:Bo.y,width:0,height:0})}:Y,popperRef:Pt,open:Y?N:!1,id:W,transition:!0,...nr,...Vu,popperOptions:bo,children:({TransitionProps:$e})=>F.jsx(Ms,{timeout:fe.transitions.duration.shorter,...$e,...Ps,children:F.jsxs(qu,{...Gu,children:[H,s?F.jsx(Yu,{...Zu}):null]})})})]})});process.env.NODE_ENV!=="production"&&(hv.propTypes={arrow:b.bool,children:Iu.isRequired,classes:b.object,className:b.string,components:b.shape({Arrow:b.elementType,Popper:b.elementType,Tooltip:b.elementType,Transition:b.elementType}),componentsProps:b.shape({arrow:b.object,popper:b.object,tooltip:b.object,transition:b.object}),describeChild:b.bool,disableFocusListener:b.bool,disableHoverListener:b.bool,disableInteractive:b.bool,disableTouchListener:b.bool,enterDelay:b.number,enterNextDelay:b.number,enterTouchDelay:b.number,followCursor:b.bool,id:b.string,leaveDelay:b.number,leaveTouchDelay:b.number,onClose:b.func,onOpen:b.func,open:b.bool,placement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:b.elementType,PopperProps:b.object,slotProps:b.shape({arrow:b.oneOfType([b.func,b.object]),popper:b.oneOfType([b.func,b.object]),tooltip:b.oneOfType([b.func,b.object]),transition:b.oneOfType([b.func,b.object])}),slots:b.shape({arrow:b.elementType,popper:b.elementType,tooltip:b.elementType,transition:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),title:b.node,TransitionComponent:b.elementType,TransitionProps:b.object});function IP(e){return Qn("MuiSpeedDialAction",e)}const Na=er("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),NP=e=>{const{open:t,tooltipPlacement:n,classes:i}=e,s={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${fn(n)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return jr(s,IP,i)},AP=Lt(Sf,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})(Cn(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:yy(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:t})=>!t.open,style:{opacity:0,transform:"scale(0)"}}]}))),kP=Lt("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${fn(n.tooltipPlacement)}`]]}})(Cn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Na.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:t})=>!t.open,style:{[`& .${Na.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${Na.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${Na.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),$P=Lt("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(Cn(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),mv=oe.forwardRef(function(t,n){var fe;const i=xr({props:t,name:"MuiSpeedDialAction"}),{className:s,delay:a=0,FabProps:u={},icon:c,id:f,open:p,TooltipClasses:h,tooltipOpen:x=!1,tooltipPlacement:R="left",tooltipTitle:w,slots:O={},slotProps:y={},...v}=i,g={...i,tooltipPlacement:R},m=NP(g),S={slots:O,slotProps:{fab:u,...y,tooltip:xR(typeof y.tooltip=="function"?y.tooltip(g):y.tooltip,{title:w,open:x,placement:R,classes:h})}},[E,C]=oe.useState((fe=S.slotProps.tooltip)==null?void 0:fe.open),M=()=>{C(!1)},D=()=>{C(!0)},A={transitionDelay:`${a}ms`},[z,J]=Zn("fab",{elementType:AP,externalForwardedProps:S,ownerState:g,shouldForwardComponentProp:!0,className:at(m.fab,s),additionalProps:{style:A,tabIndex:-1,role:"menuitem",size:"small"}}),[Z,_]=Zn("tooltip",{elementType:hv,externalForwardedProps:S,shouldForwardComponentProp:!0,ref:n,additionalProps:{id:f},ownerState:g,getSlotProps:ae=>({...ae,onClose:Y=>{var $;($=ae.onClose)==null||$.call(ae,Y),M()},onOpen:Y=>{var $;($=ae.onOpen)==null||$.call(ae,Y),D()}})}),[H,U]=Zn("staticTooltip",{elementType:kP,externalForwardedProps:S,ownerState:g,ref:n,className:m.staticTooltip,additionalProps:{id:f}}),[K,V]=Zn("staticTooltipLabel",{elementType:$P,externalForwardedProps:S,ownerState:g,className:m.staticTooltipLabel,additionalProps:{style:A,id:`${f}-label`}}),X=F.jsx(z,{...J,children:c});return _.open?F.jsxs(H,{...U,...v,children:[F.jsx(K,{...V,children:_.title}),oe.cloneElement(X,{"aria-labelledby":`${f}-label`})]}):(!p&&E&&C(!1),F.jsx(Z,{..._,title:_.title,open:p&&E,placement:_.placement,classes:_.classes,...v,children:X}))});process.env.NODE_ENV!=="production"&&(mv.propTypes={classes:b.object,className:b.string,delay:b.number,FabProps:b.object,icon:b.node,id:b.string,open:b.bool,slotProps:b.shape({fab:b.oneOfType([b.func,b.object]),staticTooltip:b.oneOfType([b.func,b.object]),staticTooltipLabel:b.oneOfType([b.func,b.object]),tooltip:b.oneOfType([b.func,b.object])}),slots:b.shape({fab:b.elementType,staticTooltip:b.elementType,staticTooltipLabel:b.elementType,tooltip:b.elementType}),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),TooltipClasses:b.object,tooltipOpen:b.bool,tooltipPlacement:b.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:b.node});const LP=er("MuiBox",["root"]),zP=Cy(),gv=u_({themeId:vf,defaultTheme:zP,defaultClassName:LP.root,generateClassName:ny.generate});process.env.NODE_ENV!=="production"&&(gv.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const FP=({actions:e,value:t,direction:n="down",onChange:i,icons:s,openIcon:a,size:u=40})=>{const[c,f]=B.useState(!1),p=me.useTheme();return F.jsx(gv,{sx:{position:"relative",width:u,height:u},children:F.jsx(rv,{"data-testid":"speed-dial",ariaLabel:"Options",direction:n,onOpen:()=>f(!0),onClose:()=>f(!1),open:c,icon:F.jsx(Ef,{icon:s[t],openIcon:a}),FabProps:{sx:{zIndex:10,border:"none",backgroundColor:"transparent",boxShadow:"none",color:p.palette.text.primary,width:u,height:u,"&:hover":{zIndex:100,backgroundColor:"transparent",color:"transparent"}}},sx:{zIndex:10,position:"absolute",top:0,right:0,boxShadow:"none","& .MuiSpeedDial-actions":{backgroundColor:c?p.palette.background.paper:"transparent",boxShadow:"none",borderRadius:1,padding:0},"& .MuiSpeedDial-fab":{width:u,height:u,boxShadow:"none",border:"none"}},children:e.map(h=>F.jsx(mv,{icon:h.icon,tooltipTitle:h.name,onClick:()=>{i(h.value),f(!1)},FabProps:{sx:{backgroundColor:p.palette.background.paper,boxShadow:"none",color:p.palette.text.primary,width:u-4,height:u-4,"&:hover":{backgroundColor:p.palette.action.hover}}}},h.name))})})},yv=B.createContext(void 0),WP=()=>{const e=B.useContext(yv);if(!e)throw new Error("useGridItemContext must be used within a GridItemProvider");return e},BP=({children:e})=>{const[t,n]=B.useState([]),i=B.useCallback((f,p,h)=>{n(x=>{const R=x.findIndex(O=>O.id===f),w={id:f,content:p,layout:h};if(R>=0){const O=[...x];return O[R]=w,O}else return[...x,w]})},[]),s=B.useCallback(f=>{n(p=>p.filter(h=>h.id!==f))},[]),a=B.useCallback(f=>t.find(p=>p.id===f),[t]),u=B.useCallback(()=>t,[t]),c={gridItems:t,registerGridItem:i,unregisterGridItem:s,getGridItem:a,getAllGridItems:u};return F.jsx(yv.Provider,{value:c,children:e})};function UP(e){const{id:t=`grid-item-${Math.random().toString(36).substr(2,9)}`,x:n=0,y:i=0,w:s=1,h:a=1,minW:u=1,maxW:c=null,minH:f=1,maxH:p=null,static:h=!1}=e;return{i:t,x:n,y:i,w:s??12,h:a??1,minW:u,maxW:c??void 0,minH:f,maxH:p??void 0,static:h}}const If=()=>{const{editMode:e,toggleEditMode:t}=po();return{editMode:e,toggleEditMode:t}},jP=({children:e,id:t,isFlexContainer:n=!1})=>{const i=me.useTheme(),{editMode:s}=If();return F.jsx(me.Box,{"data-grid-item-id":t,sx:{bgcolor:i.palette.background.paper,borderRadius:1,boxShadow:1,overflow:"hidden",p:1,height:"100%",display:n?"flex":"block",flexDirection:n?"column":"initial",outline:s?`2px dashed ${i.palette.primary.main}`:"none",transition:"outline 0.2s ease-in-out",position:"relative","&:hover":{outline:s?`2px solid ${i.palette.primary.main}`:"none"}},children:e})};var bc={exports:{}},Uo={},ns={exports:{}},HP=ns.exports,km;function Nf(){return km||(km=1,function(e,t){(function(n,i){i(t)})(HP,function(n){function i(ee){return function(Ee,Re,N,W,G,le,be){return ee(Ee,Re,be)}}function s(ee){return function(Ee,Re,N,W){if(!Ee||!Re||typeof Ee!="object"||typeof Re!="object")return ee(Ee,Re,N,W);var G=W.get(Ee),le=W.get(Re);if(G&&le)return G===Re&&le===Ee;W.set(Ee,Re),W.set(Re,Ee);var be=ee(Ee,Re,N,W);return W.delete(Ee),W.delete(Re),be}}function a(ee,ce){var Ee={};for(var Re in ee)Ee[Re]=ee[Re];for(var Re in ce)Ee[Re]=ce[Re];return Ee}function u(ee){return ee.constructor===Object||ee.constructor==null}function c(ee){return typeof ee.then=="function"}function f(ee,ce){return ee===ce||ee!==ee&&ce!==ce}var p="[object Arguments]",h="[object Boolean]",x="[object Date]",R="[object RegExp]",w="[object Map]",O="[object Number]",y="[object Object]",v="[object Set]",g="[object String]",m=Object.prototype.toString;function S(ee){var ce=ee.areArraysEqual,Ee=ee.areDatesEqual,Re=ee.areMapsEqual,N=ee.areObjectsEqual,W=ee.areRegExpsEqual,G=ee.areSetsEqual,le=ee.createIsNestedEqual,be=le(ge);function ge(te,he,we){if(te===he)return!0;if(!te||!he||typeof te!="object"||typeof he!="object")return te!==te&&he!==he;if(u(te)&&u(he))return N(te,he,be,we);var Ne=Array.isArray(te),_e=Array.isArray(he);if(Ne||_e)return Ne===_e&&ce(te,he,be,we);var qe=m.call(te);return qe!==m.call(he)?!1:qe===x?Ee(te,he,be,we):qe===R?W(te,he,be,we):qe===w?Re(te,he,be,we):qe===v?G(te,he,be,we):qe===y||qe===p?c(te)||c(he)?!1:N(te,he,be,we):qe===h||qe===O||qe===g?f(te.valueOf(),he.valueOf()):!1}return ge}function E(ee,ce,Ee,Re){var N=ee.length;if(ce.length!==N)return!1;for(;N-- >0;)if(!Ee(ee[N],ce[N],N,N,ee,ce,Re))return!1;return!0}var C=s(E);function M(ee,ce){return f(ee.valueOf(),ce.valueOf())}function D(ee,ce,Ee,Re){var N=ee.size===ce.size;if(!N)return!1;if(!ee.size)return!0;var W={},G=0;return ee.forEach(function(le,be){if(N){var ge=!1,te=0;ce.forEach(function(he,we){!ge&&!W[te]&&(ge=Ee(be,we,G,te,ee,ce,Re)&&Ee(le,he,be,we,ee,ce,Re))&&(W[te]=!0),te++}),G++,N=ge}}),N}var A=s(D),z="_owner",J=Object.prototype.hasOwnProperty;function Z(ee,ce,Ee,Re){var N=Object.keys(ee),W=N.length;if(Object.keys(ce).length!==W)return!1;for(var G;W-- >0;){if(G=N[W],G===z){var le=!!ee.$$typeof,be=!!ce.$$typeof;if((le||be)&&le!==be)return!1}if(!J.call(ce,G)||!Ee(ee[G],ce[G],G,G,ee,ce,Re))return!1}return!0}var _=s(Z);function H(ee,ce){return ee.source===ce.source&&ee.flags===ce.flags}function U(ee,ce,Ee,Re){var N=ee.size===ce.size;if(!N)return!1;if(!ee.size)return!0;var W={};return ee.forEach(function(G,le){if(N){var be=!1,ge=0;ce.forEach(function(te,he){!be&&!W[ge]&&(be=Ee(G,te,le,he,ee,ce,Re))&&(W[ge]=!0),ge++}),N=be}}),N}var K=s(U),V=Object.freeze({areArraysEqual:E,areDatesEqual:M,areMapsEqual:D,areObjectsEqual:Z,areRegExpsEqual:H,areSetsEqual:U,createIsNestedEqual:i}),X=Object.freeze({areArraysEqual:C,areDatesEqual:M,areMapsEqual:A,areObjectsEqual:_,areRegExpsEqual:H,areSetsEqual:K,createIsNestedEqual:i}),fe=S(V);function ae(ee,ce){return fe(ee,ce,void 0)}var Y=S(a(V,{createIsNestedEqual:function(){return f}}));function $(ee,ce){return Y(ee,ce,void 0)}var ue=S(X);function ye(ee,ce){return ue(ee,ce,new WeakMap)}var pe=S(a(X,{createIsNestedEqual:function(){return f}}));function Oe(ee,ce){return pe(ee,ce,new WeakMap)}function Te(ee){return S(a(V,ee(V)))}function ve(ee){var ce=S(a(X,ee(X)));return function(Ee,Re,N){return N===void 0&&(N=new WeakMap),ce(Ee,Re,N)}}n.circularDeepEqual=ye,n.circularShallowEqual=Oe,n.createCustomCircularEqual=ve,n.createCustomEqual=Te,n.deepEqual=ae,n.sameValueZeroEqual=f,n.shallowEqual=$,Object.defineProperty(n,"__esModule",{value:!0})})}(ns,ns.exports)),ns.exports}var Aa={exports:{}},$m;function Af(){if($m)return Aa.exports;$m=1;function e(n){var i,s,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(s=e(n[i]))&&(a&&(a+=" "),a+=s)}else for(s in n)n[s]&&(a&&(a+=" "),a+=s);return a}function t(){for(var n,i,s=0,a="",u=arguments.length;s<u;s++)(n=arguments[s])&&(i=e(n))&&(a&&(a+=" "),a+=i);return a}return Aa.exports=t,Aa.exports.clsx=t,Aa.exports}var Ve={},wc,Lm;function VP(){return Lm||(Lm=1,wc=function(t,n,i){return t===n?!0:t.className===n.className&&i(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&i(t.verticalCompact,n.verticalCompact)&&i(t.compactType,n.compactType)&&i(t.layout,n.layout)&&i(t.margin,n.margin)&&i(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&i(t.resizeHandles,n.resizeHandles)&&i(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&i(t.droppingItem,n.droppingItem)&&i(t.innerRef,n.innerRef)}),wc}var zm;function ho(){if(zm)return Ve;zm=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.bottom=s,Ve.childrenEqual=p,Ve.cloneLayout=a,Ve.cloneLayoutItem=f,Ve.collides=x,Ve.compact=R,Ve.compactItem=y,Ve.compactType=ce,Ve.correctBounds=v,Ve.fastPositionEqual=h,Ve.fastRGLPropsEqual=void 0,Ve.getAllCollisions=S,Ve.getFirstCollision=m,Ve.getLayoutItem=g,Ve.getStatics=E,Ve.modifyLayout=u,Ve.moveElement=C,Ve.moveElementAwayFromCollision=M,Ve.noop=void 0,Ve.perc=D,Ve.resizeItemInDirection=$,Ve.setTopLeft=ye,Ve.setTransform=ue,Ve.sortLayoutItems=pe,Ve.sortLayoutItemsByColRow=Te,Ve.sortLayoutItemsByRowCol=Oe,Ve.synchronizeLayoutWithChildren=ve,Ve.validateLayout=ee,Ve.withLayoutItem=c;var e=Nf(),t=n(B);function n(N){return N&&N.__esModule?N:{default:N}}const i=process.env.NODE_ENV==="production";function s(N){let W=0,G;for(let le=0,be=N.length;le<be;le++)G=N[le].y+N[le].h,G>W&&(W=G);return W}function a(N){const W=Array(N.length);for(let G=0,le=N.length;G<le;G++)W[G]=f(N[G]);return W}function u(N,W){const G=Array(N.length);for(let le=0,be=N.length;le<be;le++)W.i===N[le].i?G[le]=W:G[le]=N[le];return G}function c(N,W,G){let le=g(N,W);return le?(le=G(f(le)),N=u(N,le),[N,le]):[N,null]}function f(N){return{w:N.w,h:N.h,x:N.x,y:N.y,i:N.i,minW:N.minW,maxW:N.maxW,minH:N.minH,maxH:N.maxH,moved:!!N.moved,static:!!N.static,isDraggable:N.isDraggable,isResizable:N.isResizable,resizeHandles:N.resizeHandles,isBounded:N.isBounded}}function p(N,W){return(0,e.deepEqual)(t.default.Children.map(N,G=>G==null?void 0:G.key),t.default.Children.map(W,G=>G==null?void 0:G.key))&&(0,e.deepEqual)(t.default.Children.map(N,G=>G==null?void 0:G.props["data-grid"]),t.default.Children.map(W,G=>G==null?void 0:G.props["data-grid"]))}Ve.fastRGLPropsEqual=VP();function h(N,W){return N.left===W.left&&N.top===W.top&&N.width===W.width&&N.height===W.height}function x(N,W){return!(N.i===W.i||N.x+N.w<=W.x||N.x>=W.x+W.w||N.y+N.h<=W.y||N.y>=W.y+W.h)}function R(N,W,G,le){const be=E(N),ge=pe(N,W),te=Array(N.length);for(let he=0,we=ge.length;he<we;he++){let Ne=f(ge[he]);Ne.static||(Ne=y(be,Ne,W,G,ge,le),be.push(Ne)),te[N.indexOf(ge[he])]=Ne,Ne.moved=!1}return te}const w={x:"w",y:"h"};function O(N,W,G,le){const be=w[le];W[le]+=1;const ge=N.map(te=>te.i).indexOf(W.i);for(let te=ge+1;te<N.length;te++){const he=N[te];if(!he.static){if(he.y>W.y+W.h)break;x(W,he)&&O(N,he,G+W[be],le)}}W[le]=G}function y(N,W,G,le,be,ge){const te=G==="vertical",he=G==="horizontal";if(te)for(W.y=Math.min(s(N),W.y);W.y>0&&!m(N,W);)W.y--;else if(he)for(;W.x>0&&!m(N,W);)W.x--;let we;for(;(we=m(N,W))&&!(G===null&&ge);)if(he?O(be,W,we.x+we.w,"x"):O(be,W,we.y+we.h,"y"),he&&W.x+W.w>le)for(W.x=le-W.w,W.y++;W.x>0&&!m(N,W);)W.x--;return W.y=Math.max(W.y,0),W.x=Math.max(W.x,0),W}function v(N,W){const G=E(N);for(let le=0,be=N.length;le<be;le++){const ge=N[le];if(ge.x+ge.w>W.cols&&(ge.x=W.cols-ge.w),ge.x<0&&(ge.x=0,ge.w=W.cols),!ge.static)G.push(ge);else for(;m(G,ge);)ge.y++}return N}function g(N,W){for(let G=0,le=N.length;G<le;G++)if(N[G].i===W)return N[G]}function m(N,W){for(let G=0,le=N.length;G<le;G++)if(x(N[G],W))return N[G]}function S(N,W){return N.filter(G=>x(G,W))}function E(N){return N.filter(W=>W.static)}function C(N,W,G,le,be,ge,te,he,we){if(W.static&&W.isDraggable!==!0||W.y===le&&W.x===G)return N;`${W.i}${String(G)}${String(le)}${W.x}${W.y}`;const Ne=W.x,_e=W.y;typeof G=="number"&&(W.x=G),typeof le=="number"&&(W.y=le),W.moved=!0;let qe=pe(N,te);(te==="vertical"&&typeof le=="number"?_e>=le:te==="horizontal"&&typeof G=="number"?Ne>=G:!1)&&(qe=qe.reverse());const Et=S(qe,W),Jt=Et.length>0;if(Jt&&we)return a(N);if(Jt&&ge)return`${W.i}`,W.x=Ne,W.y=_e,W.moved=!1,N;for(let Pt=0,Kt=Et.length;Pt<Kt;Pt++){const Rt=Et[Pt];`${W.i}${W.x}${W.y}${Rt.i}${Rt.x}${Rt.y}`,!Rt.moved&&(Rt.static?N=M(N,Rt,W,be,te):N=M(N,W,Rt,be,te))}return N}function M(N,W,G,le,be,ge){const te=be==="horizontal",he=be==="vertical",we=W.static;if(le){le=!1;const qe={x:te?Math.max(W.x-G.w,0):G.x,y:he?Math.max(W.y-G.h,0):G.y,w:G.w,h:G.h,i:"-1"},_t=m(N,qe),Et=_t&&_t.y+_t.h>W.y,Jt=_t&&W.x+W.w>_t.x;if(_t){if(Et&&he)return C(N,G,void 0,W.y+1,le,we,be);if(Et&&be==null)return W.y=G.y,G.y=G.y+G.h,N;if(Jt&&te)return C(N,W,G.x,void 0,le,we,be)}else return`${G.i}${qe.x}${qe.y}`,C(N,G,te?qe.x:void 0,he?qe.y:void 0,le,we,be)}const Ne=te?G.x+1:void 0,_e=he?G.y+1:void 0;return Ne==null&&_e==null?N:C(N,G,te?G.x+1:void 0,he?G.y+1:void 0,le,we,be)}function D(N){return N*100+"%"}const A=(N,W,G,le)=>N+G>le?W:G,z=(N,W,G)=>N<0?W:G,J=N=>Math.max(0,N),Z=N=>Math.max(0,N),_=(N,W,G)=>{let{left:le,height:be,width:ge}=W;const te=N.top-(be-N.height);return{left:le,width:ge,height:z(te,N.height,be),top:Z(te)}},H=(N,W,G)=>{let{top:le,left:be,height:ge,width:te}=W;return{top:le,height:ge,width:A(N.left,N.width,te,G),left:J(be)}},U=(N,W,G)=>{let{top:le,height:be,width:ge}=W;const te=N.left-(ge-N.width);return{height:be,width:te<0?N.width:A(N.left,N.width,ge,G),top:Z(le),left:J(te)}},K=(N,W,G)=>{let{top:le,left:be,height:ge,width:te}=W;return{width:te,left:be,height:z(le,N.height,ge),top:Z(le)}},Y={n:_,ne:function(){return _(arguments.length<=0?void 0:arguments[0],H(...arguments))},e:H,se:function(){return K(arguments.length<=0?void 0:arguments[0],H(...arguments))},s:K,sw:function(){return K(arguments.length<=0?void 0:arguments[0],U(...arguments))},w:U,nw:function(){return _(arguments.length<=0?void 0:arguments[0],U(...arguments))}};function $(N,W,G,le){const be=Y[N];return be?be(W,{...W,...G},le):G}function ue(N){let{top:W,left:G,width:le,height:be}=N;const ge=`translate(${G}px,${W}px)`;return{transform:ge,WebkitTransform:ge,MozTransform:ge,msTransform:ge,OTransform:ge,width:`${le}px`,height:`${be}px`,position:"absolute"}}function ye(N){let{top:W,left:G,width:le,height:be}=N;return{top:`${W}px`,left:`${G}px`,width:`${le}px`,height:`${be}px`,position:"absolute"}}function pe(N,W){return W==="horizontal"?Te(N):W==="vertical"?Oe(N):N}function Oe(N){return N.slice(0).sort(function(W,G){return W.y>G.y||W.y===G.y&&W.x>G.x?1:W.y===G.y&&W.x===G.x?0:-1})}function Te(N){return N.slice(0).sort(function(W,G){return W.x>G.x||W.x===G.x&&W.y>G.y?1:-1})}function ve(N,W,G,le,be){N=N||[];const ge=[];t.default.Children.forEach(W,he=>{if((he==null?void 0:he.key)==null)return;const we=g(N,String(he.key)),Ne=he.props["data-grid"];we&&Ne==null?ge.push(f(we)):Ne?(i||ee([Ne],"ReactGridLayout.children"),ge.push(f({...Ne,i:he.key}))):ge.push(f({w:1,h:1,x:0,y:s(ge),i:String(he.key)}))});const te=v(ge,{cols:G});return be?te:R(te,le,G)}function ee(N){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const G=["x","y","w","h"];if(!Array.isArray(N))throw new Error(W+" must be an array!");for(let le=0,be=N.length;le<be;le++){const ge=N[le];for(let te=0;te<G.length;te++){const he=G[te],we=ge[he];if(typeof we!="number"||Number.isNaN(we))throw new Error(`ReactGridLayout: ${W}[${le}].${he} must be a number! Received: ${we} (${typeof we})`)}if(typeof ge.i<"u"&&typeof ge.i!="string")throw new Error(`ReactGridLayout: ${W}[${le}].i must be a string! Received: ${ge.i} (${typeof ge.i})`)}}function ce(N){const{verticalCompact:W,compactType:G}=N||{};return W===!1?null:G}function Ee(){}const Re=()=>{};return Ve.noop=Re,Ve}var hr={},Fm;function kf(){if(Fm)return hr;Fm=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.calcGridColWidth=e,hr.calcGridItemPosition=n,hr.calcGridItemWHPx=t,hr.calcWH=s,hr.calcXY=i,hr.clamp=a;function e(u){const{margin:c,containerPadding:f,containerWidth:p,cols:h}=u;return(p-c[0]*(h-1)-f[0]*2)/h}function t(u,c,f){return Number.isFinite(u)?Math.round(c*u+Math.max(0,u-1)*f):u}function n(u,c,f,p,h,x){const{margin:R,containerPadding:w,rowHeight:O}=u,y=e(u),v={};return x&&x.resizing?(v.width=Math.round(x.resizing.width),v.height=Math.round(x.resizing.height)):(v.width=t(p,y,R[0]),v.height=t(h,O,R[1])),x&&x.dragging?(v.top=Math.round(x.dragging.top),v.left=Math.round(x.dragging.left)):x&&x.resizing&&typeof x.resizing.top=="number"&&typeof x.resizing.left=="number"?(v.top=Math.round(x.resizing.top),v.left=Math.round(x.resizing.left)):(v.top=Math.round((O+R[1])*f+w[1]),v.left=Math.round((y+R[0])*c+w[0])),v}function i(u,c,f,p,h){const{margin:x,containerPadding:R,cols:w,rowHeight:O,maxRows:y}=u,v=e(u);let g=Math.round((f-R[0])/(v+x[0])),m=Math.round((c-R[1])/(O+x[1]));return g=a(g,0,w-p),m=a(m,0,y-h),{x:g,y:m}}function s(u,c,f,p,h,x){const{margin:R,maxRows:w,cols:O,rowHeight:y}=u,v=e(u);let g=Math.round((c+R[0])/(v+R[0])),m=Math.round((f+R[1])/(y+R[1])),S=a(g,0,O-p),E=a(m,0,w-h);return["sw","w","nw"].indexOf(x)!==-1&&(S=a(g,0,O)),["nw","n","ne"].indexOf(x)!==-1&&(E=a(m,0,w)),{w:S,h:E}}function a(u,c,f){return Math.max(Math.min(u,f),c)}return hr}var jo={},Ho={exports:{}},xc={};function vv(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=vv(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function Wm(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=vv(e))&&(i&&(i+=" "),i+=t);return i}const qP=Object.freeze(Object.defineProperty({__proto__:null,clsx:Wm,default:Wm},Symbol.toStringTag,{value:"Module"})),GP=Jg(qP);var wt={},Pr={},Bm;function $u(){if(Bm)return Pr;Bm=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.dontSetMe=s,Pr.findInArray=e,Pr.int=i,Pr.isFunction=t,Pr.isNum=n;function e(a,u){for(let c=0,f=a.length;c<f;c++)if(u.apply(u,[a[c],c,a]))return a[c]}function t(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Function]"}function n(a){return typeof a=="number"&&!isNaN(a)}function i(a){return parseInt(a,10)}function s(a,u,c){if(a[u])return new Error("Invalid prop ".concat(u," passed to ").concat(c," - do not set this, set it on the child."))}return Pr}var Ir={},Um;function YP(){if(Um)return Ir;Um=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.browserPrefixToKey=n,Ir.browserPrefixToStyle=i,Ir.default=void 0,Ir.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var a;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const c=(a=window.document)===null||a===void 0||(a=a.documentElement)===null||a===void 0?void 0:a.style;if(!c||u in c)return"";for(let f=0;f<e.length;f++)if(n(u,e[f])in c)return e[f];return""}function n(a,u){return u?"".concat(u).concat(s(a)):a}function i(a,u){return u?"-".concat(u.toLowerCase(),"-").concat(a):a}function s(a){let u="",c=!0;for(let f=0;f<a.length;f++)c?(u+=a[f].toUpperCase(),c=!1):a[f]==="-"?c=!0:u+=a[f];return u}return Ir.default=t(),Ir}var jm;function $f(){if(jm)return wt;jm=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.addClassName=C,wt.addEvent=c,wt.addUserSelectStyles=S,wt.createCSSTransform=O,wt.createSVGTransform=y,wt.getTouch=g,wt.getTouchIdentifier=m,wt.getTranslation=v,wt.innerHeight=x,wt.innerWidth=R,wt.matchesSelector=a,wt.matchesSelectorAndParentsTo=u,wt.offsetXYFromParent=w,wt.outerHeight=p,wt.outerWidth=h,wt.removeClassName=M,wt.removeEvent=f,wt.removeUserSelectStyles=E;var e=$u(),t=i(YP());function n(D){if(typeof WeakMap!="function")return null;var A=new WeakMap,z=new WeakMap;return(n=function(J){return J?z:A})(D)}function i(D,A){if(D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var z=n(A);if(z&&z.has(D))return z.get(D);var J={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in D)if(_!=="default"&&Object.prototype.hasOwnProperty.call(D,_)){var H=Z?Object.getOwnPropertyDescriptor(D,_):null;H&&(H.get||H.set)?Object.defineProperty(J,_,H):J[_]=D[_]}return J.default=D,z&&z.set(D,J),J}let s="";function a(D,A){return s||(s=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(z){return(0,e.isFunction)(D[z])})),(0,e.isFunction)(D[s])?D[s](A):!1}function u(D,A,z){let J=D;do{if(a(J,A))return!0;if(J===z)return!1;J=J.parentNode}while(J);return!1}function c(D,A,z,J){if(!D)return;const Z={capture:!0,...J};D.addEventListener?D.addEventListener(A,z,Z):D.attachEvent?D.attachEvent("on"+A,z):D["on"+A]=z}function f(D,A,z,J){if(!D)return;const Z={capture:!0,...J};D.removeEventListener?D.removeEventListener(A,z,Z):D.detachEvent?D.detachEvent("on"+A,z):D["on"+A]=null}function p(D){let A=D.clientHeight;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A+=(0,e.int)(z.borderTopWidth),A+=(0,e.int)(z.borderBottomWidth),A}function h(D){let A=D.clientWidth;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A+=(0,e.int)(z.borderLeftWidth),A+=(0,e.int)(z.borderRightWidth),A}function x(D){let A=D.clientHeight;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A-=(0,e.int)(z.paddingTop),A-=(0,e.int)(z.paddingBottom),A}function R(D){let A=D.clientWidth;const z=D.ownerDocument.defaultView.getComputedStyle(D);return A-=(0,e.int)(z.paddingLeft),A-=(0,e.int)(z.paddingRight),A}function w(D,A,z){const Z=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),_=(D.clientX+A.scrollLeft-Z.left)/z,H=(D.clientY+A.scrollTop-Z.top)/z;return{x:_,y:H}}function O(D,A){const z=v(D,A,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:z}}function y(D,A){return v(D,A,"")}function v(D,A,z){let{x:J,y:Z}=D,_="translate(".concat(J).concat(z,",").concat(Z).concat(z,")");if(A){const H="".concat(typeof A.x=="string"?A.x:A.x+z),U="".concat(typeof A.y=="string"?A.y:A.y+z);_="translate(".concat(H,", ").concat(U,")")+_}return _}function g(D,A){return D.targetTouches&&(0,e.findInArray)(D.targetTouches,z=>A===z.identifier)||D.changedTouches&&(0,e.findInArray)(D.changedTouches,z=>A===z.identifier)}function m(D){if(D.targetTouches&&D.targetTouches[0])return D.targetTouches[0].identifier;if(D.changedTouches&&D.changedTouches[0])return D.changedTouches[0].identifier}function S(D){if(!D)return;let A=D.getElementById("react-draggable-style-el");A||(A=D.createElement("style"),A.type="text/css",A.id="react-draggable-style-el",A.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
218
218
  `,A.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
219
- `,D.getElementsByTagName("head")[0].appendChild(A)),D.body&&T(D.body,"react-draggable-transparent-selection")}function E(D){if(D)try{if(D.body&&M(D.body,"react-draggable-transparent-selection"),D.selection)D.selection.empty();else{const A=(D.defaultView||window).getSelection();A&&A.type!=="Caret"&&A.removeAllRanges()}}catch{}}function T(D,A){D.classList?D.classList.add(A):D.className.match(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)")))||(D.className+=" ".concat(A))}function M(D,A){D.classList?D.classList.remove(A):D.className=D.className.replace(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)"),"g"),"")}return wt}var Gn={},jm;function vv(){if(jm)return Gn;jm=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.canDragX=s,Gn.canDragY=a,Gn.createCoreData=c,Gn.createDraggableData=f,Gn.getBoundPosition=n,Gn.getControlPosition=u,Gn.snapToGrid=i;var e=ku(),t=kf();function n(x,R,w){if(!x.props.bounds)return[R,w];let{bounds:C}=x.props;C=typeof C=="string"?C:p(C);const y=h(x);if(typeof C=="string"){const{ownerDocument:v}=y,g=v.defaultView;let m;if(C==="parent"?m=y.parentNode:m=v.querySelector(C),!(m instanceof g.HTMLElement))throw new Error('Bounds selector "'+C+'" could not find an element.');const S=m,E=g.getComputedStyle(y),T=g.getComputedStyle(S);C={left:-y.offsetLeft+(0,e.int)(T.paddingLeft)+(0,e.int)(E.marginLeft),top:-y.offsetTop+(0,e.int)(T.paddingTop)+(0,e.int)(E.marginTop),right:(0,t.innerWidth)(S)-(0,t.outerWidth)(y)-y.offsetLeft+(0,e.int)(T.paddingRight)-(0,e.int)(E.marginRight),bottom:(0,t.innerHeight)(S)-(0,t.outerHeight)(y)-y.offsetTop+(0,e.int)(T.paddingBottom)-(0,e.int)(E.marginBottom)}}return(0,e.isNum)(C.right)&&(R=Math.min(R,C.right)),(0,e.isNum)(C.bottom)&&(w=Math.min(w,C.bottom)),(0,e.isNum)(C.left)&&(R=Math.max(R,C.left)),(0,e.isNum)(C.top)&&(w=Math.max(w,C.top)),[R,w]}function i(x,R,w){const C=Math.round(R/x[0])*x[0],y=Math.round(w/x[1])*x[1];return[C,y]}function s(x){return x.props.axis==="both"||x.props.axis==="x"}function a(x){return x.props.axis==="both"||x.props.axis==="y"}function u(x,R,w){const C=typeof R=="number"?(0,t.getTouch)(x,R):null;if(typeof R=="number"&&!C)return null;const y=h(w),v=w.props.offsetParent||y.offsetParent||y.ownerDocument.body;return(0,t.offsetXYFromParent)(C||x,v,w.props.scale)}function c(x,R,w){const C=!(0,e.isNum)(x.lastX),y=h(x);return C?{node:y,deltaX:0,deltaY:0,lastX:R,lastY:w,x:R,y:w}:{node:y,deltaX:R-x.lastX,deltaY:w-x.lastY,lastX:x.lastX,lastY:x.lastY,x:R,y:w}}function f(x,R){const w=x.props.scale;return{node:R.node,x:x.state.x+R.deltaX/w,y:x.state.y+R.deltaY/w,deltaX:R.deltaX/w,deltaY:R.deltaY/w,lastX:x.state.x,lastY:x.state.y}}function p(x){return{left:x.left,top:x.top,right:x.right,bottom:x.bottom}}function h(x){const R=x.findDOMNode();if(!R)throw new Error("<DraggableCore>: Unmounted during event!");return R}return Gn}var Ho={},Aa={},Hm;function bv(){if(Hm)return Aa;Hm=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=e;function e(){}return Aa}var qm;function YP(){if(qm)return Ho;qm=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=void 0;var e=p(j),t=c(wr()),n=c(fi),i=kf(),s=vv(),a=ku(),u=c(bv());function c(v){return v&&v.__esModule?v:{default:v}}function f(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(f=function(S){return S?m:g})(v)}function p(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=f(g);if(m&&m.has(v))return m.get(v);var S={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in v)if(T!=="default"&&Object.prototype.hasOwnProperty.call(v,T)){var M=E?Object.getOwnPropertyDescriptor(v,T):null;M&&(M.get||M.set)?Object.defineProperty(S,T,M):S[T]=v[T]}return S.default=v,m&&m.set(v,S),S}function h(v,g,m){return g=x(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function x(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var S=m.call(v,g);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let C=w.mouse,y=class extends e.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:S}=m;if(this.props.disabled||!(g.target instanceof S.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(g.target,this.props.handle,m)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(g.target,this.props.cancel,m))return;g.type==="touchstart"&&g.preventDefault();const E=(0,i.getTouchIdentifier)(g);this.touchIdentifier=E;const T=(0,s.getControlPosition)(g,E,this);if(T==null)return;const{x:M,y:D}=T,A=(0,s.createCoreData)(this,M,D);(0,u.default)("DraggableCore: handleDragStart: %j",A),(0,u.default)("calling",this.props.onStart),!(this.props.onStart(g,A)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(S),this.dragging=!0,this.lastX=M,this.lastY=D,(0,i.addEvent)(S,C.move,this.handleDrag),(0,i.addEvent)(S,C.stop,this.handleDragStop))}),h(this,"handleDrag",g=>{const m=(0,s.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:S,y:E}=m;if(Array.isArray(this.props.grid)){let D=S-this.lastX,A=E-this.lastY;if([D,A]=(0,s.snapToGrid)(this.props.grid,D,A),!D&&!A)return;S=this.lastX+D,E=this.lastY+A}const T=(0,s.createCoreData)(this,S,E);if((0,u.default)("DraggableCore: handleDrag: %j",T),this.props.onDrag(g,T)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(A)}return}this.lastX=S,this.lastY=E}),h(this,"handleDragStop",g=>{if(!this.dragging)return;const m=(0,s.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:S,y:E}=m;if(Array.isArray(this.props.grid)){let A=S-this.lastX||0,z=E-this.lastY||0;[A,z]=(0,s.snapToGrid)(this.props.grid,A,z),S=this.lastX+A,E=this.lastY+z}const T=(0,s.createCoreData)(this,S,E);if(this.props.onStop(g,T)===!1||this.mounted===!1)return!1;const D=this.findDOMNode();D&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(D.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",T),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,D&&((0,u.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(D.ownerDocument,C.move,this.handleDrag),(0,i.removeEvent)(D.ownerDocument,C.stop,this.handleDragStop))}),h(this,"onMouseDown",g=>(C=w.mouse,this.handleDragStart(g))),h(this,"onMouseUp",g=>(C=w.mouse,this.handleDragStop(g))),h(this,"onTouchStart",g=>(C=w.touch,this.handleDragStart(g))),h(this,"onTouchEnd",g=>(C=w.touch,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,i.addEvent)(g,w.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:m}=g;(0,i.removeEvent)(m,w.mouse.move,this.handleDrag),(0,i.removeEvent)(m,w.touch.move,this.handleDrag),(0,i.removeEvent)(m,w.mouse.stop,this.handleDragStop),(0,i.removeEvent)(m,w.touch.stop,this.handleDragStop),(0,i.removeEvent)(g,w.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(m)}}findDOMNode(){var g,m;return(g=this.props)!==null&&g!==void 0&&g.nodeRef?(m=this.props)===null||m===void 0||(m=m.nodeRef)===null||m===void 0?void 0:m.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ho.default=y,h(y,"displayName","DraggableCore"),h(y,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(v,g){if(v[g]&&v[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(y,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ho}var Vm;function ZP(){return Vm||(Vm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),e.default=void 0;var t=R(j),n=h(wr()),i=h(fi),s=h(VP),a=kf(),u=vv(),c=ku(),f=h(YP()),p=h(bv());function h(m){return m&&m.__esModule?m:{default:m}}function x(m){if(typeof WeakMap!="function")return null;var S=new WeakMap,E=new WeakMap;return(x=function(T){return T?E:S})(m)}function R(m,S){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var E=x(S);if(E&&E.has(m))return E.get(m);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in m)if(D!=="default"&&Object.prototype.hasOwnProperty.call(m,D)){var A=M?Object.getOwnPropertyDescriptor(m,D):null;A&&(A.get||A.set)?Object.defineProperty(T,D,A):T[D]=m[D]}return T.default=m,E&&E.set(m,T),T}function w(){return w=Object.assign?Object.assign.bind():function(m){for(var S=1;S<arguments.length;S++){var E=arguments[S];for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(m[T]=E[T])}return m},w.apply(this,arguments)}function C(m,S,E){return S=y(S),S in m?Object.defineProperty(m,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[S]=E,m}function y(m){var S=v(m,"string");return typeof S=="symbol"?S:String(S)}function v(m,S){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var T=E.call(m,S);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(m)}class g extends t.Component{static getDerivedStateFromProps(S,E){let{position:T}=S,{prevPropsPosition:M}=E;return T&&(!M||T.x!==M.x||T.y!==M.y)?((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:T,prevPropsPosition:M}),{x:T.x,y:T.y,prevPropsPosition:{...T}}):null}constructor(S){super(S),C(this,"onDragStart",(E,T)=>{if((0,p.default)("Draggable: onDragStart: %j",T),this.props.onStart(E,(0,u.createDraggableData)(this,T))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),C(this,"onDrag",(E,T)=>{if(!this.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",T);const M=(0,u.createDraggableData)(this,T),D={x:M.x,y:M.y,slackX:0,slackY:0};if(this.props.bounds){const{x:z,y:J}=D;D.x+=this.state.slackX,D.y+=this.state.slackY;const[Z,_]=(0,u.getBoundPosition)(this,D.x,D.y);D.x=Z,D.y=_,D.slackX=this.state.slackX+(z-D.x),D.slackY=this.state.slackY+(J-D.y),M.x=D.x,M.y=D.y,M.deltaX=D.x-this.state.x,M.deltaY=D.y-this.state.y}if(this.props.onDrag(E,M)===!1)return!1;this.setState(D)}),C(this,"onDragStop",(E,T)=>{if(!this.state.dragging||this.props.onStop(E,(0,u.createDraggableData)(this,T))===!1)return!1;(0,p.default)("Draggable: onDragStop: %j",T);const D={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:z,y:J}=this.props.position;D.x=z,D.y=J}this.setState(D)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var S,E;return(S=(E=this.props)===null||E===void 0||(E=E.nodeRef)===null||E===void 0?void 0:E.current)!==null&&S!==void 0?S:i.default.findDOMNode(this)}render(){const{axis:S,bounds:E,children:T,defaultPosition:M,defaultClassName:D,defaultClassNameDragging:A,defaultClassNameDragged:z,position:J,positionOffset:Z,scale:_,...H}=this.props;let B={},K=null;const X=!!!J||this.state.dragging,fe=J||M,ae={x:(0,u.canDragX)(this)&&X?this.state.x:fe.x,y:(0,u.canDragY)(this)&&X?this.state.y:fe.y};this.state.isElementSVG?K=(0,a.createSVGTransform)(ae,Z):B=(0,a.createCSSTransform)(ae,Z);const Y=(0,s.default)(T.props.className||"",D,{[A]:this.state.dragging,[z]:this.state.dragged});return t.createElement(f.default,w({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(T),{className:Y,style:{...T.props.style,...B},transform:K}))}}e.default=g,C(g,"displayName","Draggable"),C(g,"propTypes",{...f.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),C(g,"defaultProps",{...f.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(wc)),wc}var Gm;function $f(){if(Gm)return jo.exports;Gm=1;const{default:e,DraggableCore:t}=ZP();return jo.exports=e,jo.exports.default=e,jo.exports.DraggableCore=t,jo.exports}var qo={exports:{}},Vo={},ka={},Ym;function XP(){if(Ym)return ka;Ym=1,ka.__esModule=!0,ka.cloneElement=c;var e=t(j);function t(f){return f&&f.__esModule?f:{default:f}}function n(f,p){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(f);p&&(x=x.filter(function(R){return Object.getOwnPropertyDescriptor(f,R).enumerable})),h.push.apply(h,x)}return h}function i(f){for(var p=1;p<arguments.length;p++){var h=arguments[p]!=null?arguments[p]:{};p%2?n(Object(h),!0).forEach(function(x){s(f,x,h[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):n(Object(h)).forEach(function(x){Object.defineProperty(f,x,Object.getOwnPropertyDescriptor(h,x))})}return f}function s(f,p,h){return p=a(p),p in f?Object.defineProperty(f,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[p]=h,f}function a(f){var p=u(f,"string");return typeof p=="symbol"?p:String(p)}function u(f,p){if(typeof f!="object"||f===null)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var x=h.call(f,p);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(f)}function c(f,p){return p.style&&f.props.style&&(p.style=i(i({},f.props.style),p.style)),p.className&&f.props.className&&(p.className=f.props.className+" "+p.className),e.default.cloneElement(f,p)}return ka}var Go={},Zm;function wv(){if(Zm)return Go;Zm=1,Go.__esModule=!0,Go.resizableProps=void 0;var e=t(wr());$f();function t(i){return i&&i.__esModule?i:{default:i}}var n={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];var c=a[0];if(c.axis==="both"||c.axis==="y"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];var c=a[0];if(c.axis==="both"||c.axis==="x"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)}};return Go.resizableProps=n,Go}var Xm;function xv(){if(Xm)return Vo;Xm=1,Vo.__esModule=!0,Vo.default=void 0;var e=u(j),t=$f(),n=XP(),i=wv(),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,S=new WeakMap;return(a=function(T){return T?S:m})(g)}function u(g,m){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var S=a(m);if(S&&S.has(g))return S.get(g);var E={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in g)if(M!=="default"&&Object.prototype.hasOwnProperty.call(g,M)){var D=T?Object.getOwnPropertyDescriptor(g,M):null;D&&(D.get||D.set)?Object.defineProperty(E,M,D):E[M]=g[M]}return E.default=g,S&&S.set(g,E),E}function c(){return c=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var S=arguments[m];for(var E in S)Object.prototype.hasOwnProperty.call(S,E)&&(g[E]=S[E])}return g},c.apply(this,arguments)}function f(g,m){if(g==null)return{};var S={},E=Object.keys(g),T,M;for(M=0;M<E.length;M++)T=E[M],!(m.indexOf(T)>=0)&&(S[T]=g[T]);return S}function p(g,m){var S=Object.keys(g);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);m&&(E=E.filter(function(T){return Object.getOwnPropertyDescriptor(g,T).enumerable})),S.push.apply(S,E)}return S}function h(g){for(var m=1;m<arguments.length;m++){var S=arguments[m]!=null?arguments[m]:{};m%2?p(Object(S),!0).forEach(function(E){x(g,E,S[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(S)):p(Object(S)).forEach(function(E){Object.defineProperty(g,E,Object.getOwnPropertyDescriptor(S,E))})}return g}function x(g,m,S){return m=R(m),m in g?Object.defineProperty(g,m,{value:S,enumerable:!0,configurable:!0,writable:!0}):g[m]=S,g}function R(g){var m=w(g,"string");return typeof m=="symbol"?m:String(m)}function w(g,m){if(typeof g!="object"||g===null)return g;var S=g[Symbol.toPrimitive];if(S!==void 0){var E=S.call(g,m);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}function C(g,m){g.prototype=Object.create(m.prototype),g.prototype.constructor=g,y(g,m)}function y(g,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E},y(g,m)}var v=function(g){C(m,g);function m(){for(var E,T=arguments.length,M=new Array(T),D=0;D<T;D++)M[D]=arguments[D];return E=g.call.apply(g,[this].concat(M))||this,E.handleRefs={},E.lastHandleRect=null,E.slack=null,E}var S=m.prototype;return S.componentWillUnmount=function(){this.resetData()},S.resetData=function(){this.lastHandleRect=this.slack=null},S.runConstraints=function(T,M){var D=this.props,A=D.minConstraints,z=D.maxConstraints,J=D.lockAspectRatio;if(!A&&!z&&!J)return[T,M];if(J){var Z=this.props.width/this.props.height,_=T-this.props.width,H=M-this.props.height;Math.abs(_)>Math.abs(H*Z)?M=T/Z:T=M*Z}var B=T,K=M,q=this.slack||[0,0],X=q[0],fe=q[1];return T+=X,M+=fe,A&&(T=Math.max(A[0],T),M=Math.max(A[1],M)),z&&(T=Math.min(z[0],T),M=Math.min(z[1],M)),this.slack=[X+(B-T),fe+(K-M)],[T,M]},S.resizeHandler=function(T,M){var D=this;return function(A,z){var J=z.node,Z=z.deltaX,_=z.deltaY;T==="onResizeStart"&&D.resetData();var H=(D.props.axis==="both"||D.props.axis==="x")&&M!=="n"&&M!=="s",B=(D.props.axis==="both"||D.props.axis==="y")&&M!=="e"&&M!=="w";if(!(!H&&!B)){var K=M[0],q=M[M.length-1],X=J.getBoundingClientRect();if(D.lastHandleRect!=null){if(q==="w"){var fe=X.left-D.lastHandleRect.left;Z+=fe}if(K==="n"){var ae=X.top-D.lastHandleRect.top;_+=ae}}D.lastHandleRect=X,q==="w"&&(Z=-Z),K==="n"&&(_=-_);var Y=D.props.width+(H?Z/D.props.transformScale:0),$=D.props.height+(B?_/D.props.transformScale:0),ue=D.runConstraints(Y,$);Y=ue[0],$=ue[1];var ye=Y!==D.props.width||$!==D.props.height,pe=typeof D.props[T]=="function"?D.props[T]:null,Oe=T==="onResize"&&!ye;pe&&!Oe&&(A.persist==null||A.persist(),pe(A,{node:J,size:{width:Y,height:$},handle:M})),T==="onResizeStop"&&D.resetData()}}},S.renderResizeHandle=function(T,M){var D=this.props.handle;if(!D)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+T,ref:M});if(typeof D=="function")return D(T,M);var A=typeof D.type=="string",z=h({ref:M},A?{}:{handleAxis:T});return e.cloneElement(D,z)},S.render=function(){var T=this,M=this.props,D=M.children,A=M.className,z=M.draggableOpts;M.width,M.height,M.handle,M.handleSize,M.lockAspectRatio,M.axis,M.minConstraints,M.maxConstraints,M.onResize,M.onResizeStop,M.onResizeStart;var J=M.resizeHandles;M.transformScale;var Z=f(M,s);return(0,n.cloneElement)(D,h(h({},Z),{},{className:(A?A+" ":"")+"react-resizable",children:[].concat(D.props.children,J.map(function(_){var H,B=(H=T.handleRefs[_])!=null?H:T.handleRefs[_]=e.createRef();return e.createElement(t.DraggableCore,c({},z,{nodeRef:B,key:"resizableHandle-"+_,onStop:T.resizeHandler("onResizeStop",_),onStart:T.resizeHandler("onResizeStart",_),onDrag:T.resizeHandler("onResize",_)}),T.renderResizeHandle(_,B))}))}))},m}(e.Component);return Vo.default=v,v.propTypes=i.resizableProps,v.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Vo}var Yo={},Jm;function JP(){if(Jm)return Yo;Jm=1,Yo.__esModule=!0,Yo.default=void 0;var e=c(j),t=a(wr()),n=a(xv()),i=wv(),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(m){return m&&m.__esModule?m:{default:m}}function u(m){if(typeof WeakMap!="function")return null;var S=new WeakMap,E=new WeakMap;return(u=function(M){return M?E:S})(m)}function c(m,S){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var E=u(S);if(E&&E.has(m))return E.get(m);var T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in m)if(D!=="default"&&Object.prototype.hasOwnProperty.call(m,D)){var A=M?Object.getOwnPropertyDescriptor(m,D):null;A&&(A.get||A.set)?Object.defineProperty(T,D,A):T[D]=m[D]}return T.default=m,E&&E.set(m,T),T}function f(){return f=Object.assign?Object.assign.bind():function(m){for(var S=1;S<arguments.length;S++){var E=arguments[S];for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&(m[T]=E[T])}return m},f.apply(this,arguments)}function p(m,S){var E=Object.keys(m);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(m);S&&(T=T.filter(function(M){return Object.getOwnPropertyDescriptor(m,M).enumerable})),E.push.apply(E,T)}return E}function h(m){for(var S=1;S<arguments.length;S++){var E=arguments[S]!=null?arguments[S]:{};S%2?p(Object(E),!0).forEach(function(T){x(m,T,E[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(E)):p(Object(E)).forEach(function(T){Object.defineProperty(m,T,Object.getOwnPropertyDescriptor(E,T))})}return m}function x(m,S,E){return S=R(S),S in m?Object.defineProperty(m,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[S]=E,m}function R(m){var S=w(m,"string");return typeof S=="symbol"?S:String(S)}function w(m,S){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var T=E.call(m,S);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(m)}function C(m,S){if(m==null)return{};var E={},T=Object.keys(m),M,D;for(D=0;D<T.length;D++)M=T[D],!(S.indexOf(M)>=0)&&(E[M]=m[M]);return E}function y(m,S){m.prototype=Object.create(S.prototype),m.prototype.constructor=m,v(m,S)}function v(m,S){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,M){return T.__proto__=M,T},v(m,S)}var g=function(m){y(S,m);function S(){for(var T,M=arguments.length,D=new Array(M),A=0;A<M;A++)D[A]=arguments[A];return T=m.call.apply(m,[this].concat(D))||this,T.state={width:T.props.width,height:T.props.height,propsWidth:T.props.width,propsHeight:T.props.height},T.onResize=function(z,J){var Z=J.size;T.props.onResize?(z.persist==null||z.persist(),T.setState(Z,function(){return T.props.onResize&&T.props.onResize(z,J)})):T.setState(Z)},T}S.getDerivedStateFromProps=function(M,D){return D.propsWidth!==M.width||D.propsHeight!==M.height?{width:M.width,height:M.height,propsWidth:M.width,propsHeight:M.height}:null};var E=S.prototype;return E.render=function(){var M=this.props,D=M.handle,A=M.handleSize;M.onResize;var z=M.onResizeStart,J=M.onResizeStop,Z=M.draggableOpts,_=M.minConstraints,H=M.maxConstraints,B=M.lockAspectRatio,K=M.axis;M.width,M.height;var q=M.resizeHandles,X=M.style,fe=M.transformScale,ae=C(M,s);return e.createElement(n.default,{axis:K,draggableOpts:Z,handle:D,handleSize:A,height:this.state.height,lockAspectRatio:B,maxConstraints:H,minConstraints:_,onResizeStart:z,onResize:this.onResize,onResizeStop:J,resizeHandles:q,transformScale:fe,width:this.state.width},e.createElement("div",f({},ae,{style:h(h({},X),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},S}(e.Component);return Yo.default=g,g.propTypes=h(h({},i.resizableProps),{},{children:t.default.element}),Yo}var Km;function KP(){return Km||(Km=1,qo.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},qo.exports.Resizable=xv().default,qo.exports.ResizableBox=JP().default),qo.exports}var hr={},Qm;function Sv(){if(Qm)return hr;Qm=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.resizeHandleType=hr.resizeHandleAxesType=hr.default=void 0;var e=n(wr()),t=n(j);function n(a){return a&&a.__esModule?a:{default:a}}const i=hr.resizeHandleAxesType=e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),s=hr.resizeHandleType=e.default.oneOfType([e.default.node,e.default.func]);return hr.default={className:e.default.string,style:e.default.object,width:e.default.number,autoSize:e.default.bool,cols:e.default.number,draggableCancel:e.default.string,draggableHandle:e.default.string,verticalCompact:function(a){a.verticalCompact===!1&&process.env.NODE_ENV!=="production"&&console.warn('`verticalCompact` on <ReactGridLayout> is deprecated and will be removed soon. Use `compactType`: "horizontal" | "vertical" | null.')},compactType:e.default.oneOf(["vertical","horizontal"]),layout:function(a){var u=a.layout;u!==void 0&&po().validateLayout(u,"layout")},margin:e.default.arrayOf(e.default.number),containerPadding:e.default.arrayOf(e.default.number),rowHeight:e.default.number,maxRows:e.default.number,isBounded:e.default.bool,isDraggable:e.default.bool,isResizable:e.default.bool,allowOverlap:e.default.bool,preventCollision:e.default.bool,useCSSTransforms:e.default.bool,transformScale:e.default.number,isDroppable:e.default.bool,resizeHandles:i,resizeHandle:s,onLayoutChange:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onDragStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,onResizeStop:e.default.func,onDrop:e.default.func,droppingItem:e.default.shape({i:e.default.string.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired}),children:function(a,u){const c=a[u],f={};t.default.Children.forEach(c,function(p){if((p==null?void 0:p.key)!=null){if(f[p.key])throw new Error('Duplicate child key "'+p.key+'" found! This will cause problems in ReactGridLayout.');f[p.key]=!0}})},innerRef:e.default.any},hr}var eg;function QP(){if(eg)return Uo;eg=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var e=f(j),t=f(wr()),n=$f(),i=KP(),s=po(),a=Af(),u=Sv(),c=f(Nf());function f(w){return w&&w.__esModule?w:{default:w}}function p(w,C,y){return C=h(C),C in w?Object.defineProperty(w,C,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[C]=y,w}function h(w){var C=x(w,"string");return typeof C=="symbol"?C:String(C)}function x(w,C){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var v=y.call(w,C);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(w)}let R=class extends e.default.Component{constructor(){super(...arguments),p(this,"state",{resizing:null,dragging:null,className:""}),p(this,"elementRef",e.default.createRef()),p(this,"onDragStart",(C,y)=>{let{node:v}=y;const{onDragStart:g,transformScale:m}=this.props;if(!g)return;const S={top:0,left:0},{offsetParent:E}=v;if(!E)return;const T=E.getBoundingClientRect(),M=v.getBoundingClientRect(),D=M.left/m,A=T.left/m,z=M.top/m,J=T.top/m;S.left=D-A+E.scrollLeft,S.top=z-J+E.scrollTop,this.setState({dragging:S});const{x:Z,y:_}=(0,a.calcXY)(this.getPositionParams(),S.top,S.left,this.props.w,this.props.h);return g.call(this,this.props.i,Z,_,{e:C,node:v,newPosition:S})}),p(this,"onDrag",(C,y)=>{let{node:v,deltaX:g,deltaY:m}=y;const{onDrag:S}=this.props;if(!S)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let E=this.state.dragging.top+m,T=this.state.dragging.left+g;const{isBounded:M,i:D,w:A,h:z,containerWidth:J}=this.props,Z=this.getPositionParams();if(M){const{offsetParent:K}=v;if(K){const{margin:q,rowHeight:X,containerPadding:fe}=this.props,ae=K.clientHeight-(0,a.calcGridItemWHPx)(z,X,q[1]);E=(0,a.clamp)(E-fe[1],0,ae);const Y=(0,a.calcGridColWidth)(Z),$=J-(0,a.calcGridItemWHPx)(A,Y,q[0]);T=(0,a.clamp)(T-fe[0],0,$)}}const _={top:E,left:T};this.setState({dragging:_});const{x:H,y:B}=(0,a.calcXY)(Z,E,T,A,z);return S.call(this,D,H,B,{e:C,node:v,newPosition:_})}),p(this,"onDragStop",(C,y)=>{let{node:v}=y;const{onDragStop:g}=this.props;if(!g)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:m,h:S,i:E}=this.props,{left:T,top:M}=this.state.dragging,D={top:M,left:T};this.setState({dragging:null});const{x:A,y:z}=(0,a.calcXY)(this.getPositionParams(),M,T,m,S);return g.call(this,E,A,z,{e:C,node:v,newPosition:D})}),p(this,"onResizeStop",(C,y,v)=>this.onResizeHandler(C,y,v,"onResizeStop")),p(this,"onResizeStart",(C,y,v)=>this.onResizeHandler(C,y,v,"onResizeStart")),p(this,"onResize",(C,y,v)=>this.onResizeHandler(C,y,v,"onResize"))}shouldComponentUpdate(C,y){if(this.props.children!==C.children||this.props.droppingPosition!==C.droppingPosition)return!0;const v=(0,a.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),g=(0,a.calcGridItemPosition)(this.getPositionParams(C),C.x,C.y,C.w,C.h,y);return!(0,s.fastPositionEqual)(v,g)||this.props.useCSSTransforms!==C.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(C){this.moveDroppingItem(C)}moveDroppingItem(C){const{droppingPosition:y}=this.props;if(!y)return;const v=this.elementRef.current;if(!v)return;const g=C.droppingPosition||{left:0,top:0},{dragging:m}=this.state,S=m&&y.left!==g.left||y.top!==g.top;if(!m)this.onDragStart(y.e,{node:v,deltaX:y.left,deltaY:y.top});else if(S){const E=y.left-m.left,T=y.top-m.top;this.onDrag(y.e,{node:v,deltaX:E,deltaY:T})}}getPositionParams(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:C.cols,containerPadding:C.containerPadding,containerWidth:C.containerWidth,margin:C.margin,maxRows:C.maxRows,rowHeight:C.rowHeight}}createStyle(C){const{usePercentages:y,containerWidth:v,useCSSTransforms:g}=this.props;let m;return g?m=(0,s.setTransform)(C):(m=(0,s.setTopLeft)(C),y&&(m.left=(0,s.perc)(C.left/v),m.width=(0,s.perc)(C.width/v))),m}mixinDraggable(C,y){return e.default.createElement(n.DraggableCore,{disabled:!y,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},C)}curryResizeHandler(C,y){return(v,g)=>y(v,g,C)}mixinResizable(C,y,v){const{cols:g,minW:m,minH:S,maxW:E,maxH:T,transformScale:M,resizeHandles:D,resizeHandle:A}=this.props,z=this.getPositionParams(),J=(0,a.calcGridItemPosition)(z,0,0,g,0).width,Z=(0,a.calcGridItemPosition)(z,0,0,m,S),_=(0,a.calcGridItemPosition)(z,0,0,E,T),H=[Z.width,Z.height],B=[Math.min(_.width,J),Math.min(_.height,1/0)];return e.default.createElement(i.Resizable,{draggableOpts:{disabled:!v},className:v?void 0:"react-resizable-hide",width:y.width,height:y.height,minConstraints:H,maxConstraints:B,onResizeStop:this.curryResizeHandler(y,this.onResizeStop),onResizeStart:this.curryResizeHandler(y,this.onResizeStart),onResize:this.curryResizeHandler(y,this.onResize),transformScale:M,resizeHandles:D,handle:A},C)}onResizeHandler(C,y,v,g){let{node:m,size:S,handle:E}=y;const T=this.props[g];if(!T)return;const{x:M,y:D,i:A,maxH:z,minH:J,containerWidth:Z}=this.props,{minW:_,maxW:H}=this.props;let B=S;m&&(B=(0,s.resizeItemInDirection)(E,v,S,Z),this.setState({resizing:g==="onResizeStop"?null:B}));let{w:K,h:q}=(0,a.calcWH)(this.getPositionParams(),B.width,B.height,M,D,E);K=(0,a.clamp)(K,Math.max(_,1),H),q=(0,a.clamp)(q,J,z),T.call(this,A,K,q,{e:C,node:m,size:B,handle:E})}render(){const{x:C,y,w:v,h:g,isDraggable:m,isResizable:S,droppingPosition:E,useCSSTransforms:T}=this.props,M=(0,a.calcGridItemPosition)(this.getPositionParams(),C,y,v,g,this.state),D=e.default.Children.only(this.props.children);let A=e.default.cloneElement(D,{ref:this.elementRef,className:(0,c.default)("react-grid-item",D.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":m,"react-draggable-dragging":!!this.state.dragging,dropping:!!E,cssTransforms:T}),style:{...this.props.style,...D.props.style,...this.createStyle(M)}});return A=this.mixinResizable(A,M,S),A=this.mixinDraggable(A,m),A}};return Uo.default=R,p(R,"propTypes",{children:t.default.element,cols:t.default.number.isRequired,containerWidth:t.default.number.isRequired,rowHeight:t.default.number.isRequired,margin:t.default.array.isRequired,maxRows:t.default.number.isRequired,containerPadding:t.default.array.isRequired,x:t.default.number.isRequired,y:t.default.number.isRequired,w:t.default.number.isRequired,h:t.default.number.isRequired,minW:function(w,C){const y=w[C];if(typeof y!="number")return new Error("minWidth not Number");if(y>w.w||y>w.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(w,C){const y=w[C];if(typeof y!="number")return new Error("maxWidth not Number");if(y<w.w||y<w.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(w,C){const y=w[C];if(typeof y!="number")return new Error("minHeight not Number");if(y>w.h||y>w.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(w,C){const y=w[C];if(typeof y!="number")return new Error("maxHeight not Number");if(y<w.h||y<w.minH)return new Error("maxHeight smaller than item height/minHeight")},i:t.default.string.isRequired,resizeHandles:u.resizeHandleAxesType,resizeHandle:u.resizeHandleType,onDragStop:t.default.func,onDragStart:t.default.func,onDrag:t.default.func,onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,isDraggable:t.default.bool.isRequired,isResizable:t.default.bool.isRequired,isBounded:t.default.bool.isRequired,static:t.default.bool,useCSSTransforms:t.default.bool.isRequired,transformScale:t.default.number,className:t.default.string,handle:t.default.string,cancel:t.default.string,droppingPosition:t.default.shape({e:t.default.object.isRequired,left:t.default.number.isRequired,top:t.default.number.isRequired})}),p(R,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Uo}var tg;function Ev(){if(tg)return Bo;tg=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var e=p(j),t=If(),n=c(Nf()),i=po(),s=Af(),a=c(QP()),u=c(Sv());function c(v){return v&&v.__esModule?v:{default:v}}function f(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(f=function(S){return S?m:g})(v)}function p(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=f(g);if(m&&m.has(v))return m.get(v);var S={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in v)if(T!=="default"&&Object.prototype.hasOwnProperty.call(v,T)){var M=E?Object.getOwnPropertyDescriptor(v,T):null;M&&(M.get||M.set)?Object.defineProperty(S,T,M):S[T]=v[T]}return S.default=v,m&&m.set(v,S),S}function h(v,g,m){return g=x(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function x(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var S=m.call(v,g);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w="react-grid-layout";let C=!1;try{C=/firefox/i.test(navigator.userAgent)}catch{}class y extends e.Component{constructor(){super(...arguments),h(this,"state",{activeDrag:null,layout:(0,i.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,i.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),h(this,"dragEnterCounter",0),h(this,"onDragStart",(g,m,S,E)=>{let{e:T,node:M}=E;const{layout:D}=this.state,A=(0,i.getLayoutItem)(D,g);if(!A)return;const z={w:A.w,h:A.h,x:A.x,y:A.y,placeholder:!0,i:g};return this.setState({oldDragItem:(0,i.cloneLayoutItem)(A),oldLayout:D,activeDrag:z}),this.props.onDragStart(D,A,A,null,T,M)}),h(this,"onDrag",(g,m,S,E)=>{let{e:T,node:M}=E;const{oldDragItem:D}=this.state;let{layout:A}=this.state;const{cols:z,allowOverlap:J,preventCollision:Z}=this.props,_=(0,i.getLayoutItem)(A,g);if(!_)return;const H={w:_.w,h:_.h,x:_.x,y:_.y,placeholder:!0,i:g};A=(0,i.moveElement)(A,_,m,S,!0,Z,(0,i.compactType)(this.props),z,J),this.props.onDrag(A,D,_,H,T,M),this.setState({layout:J?A:(0,i.compact)(A,(0,i.compactType)(this.props),z),activeDrag:H})}),h(this,"onDragStop",(g,m,S,E)=>{let{e:T,node:M}=E;if(!this.state.activeDrag)return;const{oldDragItem:D}=this.state;let{layout:A}=this.state;const{cols:z,preventCollision:J,allowOverlap:Z}=this.props,_=(0,i.getLayoutItem)(A,g);if(!_)return;A=(0,i.moveElement)(A,_,m,S,!0,J,(0,i.compactType)(this.props),z,Z);const B=Z?A:(0,i.compact)(A,(0,i.compactType)(this.props),z);this.props.onDragStop(B,D,_,null,T,M);const{oldLayout:K}=this.state;this.setState({activeDrag:null,layout:B,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(B,K)}),h(this,"onResizeStart",(g,m,S,E)=>{let{e:T,node:M}=E;const{layout:D}=this.state,A=(0,i.getLayoutItem)(D,g);A&&(this.setState({oldResizeItem:(0,i.cloneLayoutItem)(A),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(D,A,A,null,T,M))}),h(this,"onResize",(g,m,S,E)=>{let{e:T,node:M,size:D,handle:A}=E;const{oldResizeItem:z}=this.state,{layout:J}=this.state,{cols:Z,preventCollision:_,allowOverlap:H}=this.props;let B=!1,K,q,X;const[fe,ae]=(0,i.withLayoutItem)(J,g,$=>{let ue;return q=$.x,X=$.y,["sw","w","nw","n","ne"].indexOf(A)!==-1&&(["sw","nw","w"].indexOf(A)!==-1&&(q=$.x+($.w-m),m=$.x!==q&&q<0?$.w:m,q=q<0?0:q),["ne","n","nw"].indexOf(A)!==-1&&(X=$.y+($.h-S),S=$.y!==X&&X<0?$.h:S,X=X<0?0:X),B=!0),_&&!H&&(ue=(0,i.getAllCollisions)(J,{...$,w:m,h:S,x:q,y:X}).filter(pe=>pe.i!==$.i).length>0,ue&&(X=$.y,S=$.h,q=$.x,m=$.w,B=!1)),$.w=m,$.h=S,$});if(!ae)return;K=fe,B&&(K=(0,i.moveElement)(fe,ae,q,X,!0,this.props.preventCollision,(0,i.compactType)(this.props),Z,H));const Y={w:ae.w,h:ae.h,x:ae.x,y:ae.y,static:!0,i:g};this.props.onResize(K,z,ae,Y,T,M),this.setState({layout:H?K:(0,i.compact)(K,(0,i.compactType)(this.props),Z),activeDrag:Y})}),h(this,"onResizeStop",(g,m,S,E)=>{let{e:T,node:M}=E;const{layout:D,oldResizeItem:A}=this.state,{cols:z,allowOverlap:J}=this.props,Z=(0,i.getLayoutItem)(D,g),_=J?D:(0,i.compact)(D,(0,i.compactType)(this.props),z);this.props.onResizeStop(_,A,Z,null,T,M);const{oldLayout:H}=this.state;this.setState({activeDrag:null,layout:_,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(_,H)}),h(this,"onDragOver",g=>{var fe;if(g.preventDefault(),g.stopPropagation(),C&&!((fe=g.nativeEvent.target)!=null&&fe.classList.contains(w)))return!1;const{droppingItem:m,onDropDragOver:S,margin:E,cols:T,rowHeight:M,maxRows:D,width:A,containerPadding:z,transformScale:J}=this.props,Z=S==null?void 0:S(g);if(Z===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const _={...m,...Z},{layout:H}=this.state,B=g.currentTarget.getBoundingClientRect(),K=g.clientX-B.left,q=g.clientY-B.top,X={left:K/J,top:q/J,e:g};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:ae,top:Y}=this.state.droppingPosition;(ae!=K||Y!=q)&&this.setState({droppingPosition:X})}}else{const ae={cols:T,margin:E,maxRows:D,rowHeight:M,containerWidth:A,containerPadding:z||E},Y=(0,s.calcXY)(ae,q,K,_.w,_.h);this.setState({droppingDOMNode:e.createElement("div",{key:_.i}),droppingPosition:X,layout:[...H,{..._,x:Y.x,y:Y.y,static:!1,isDraggable:!0}]})}}),h(this,"removeDroppingPlaceholder",()=>{const{droppingItem:g,cols:m}=this.props,{layout:S}=this.state,E=(0,i.compact)(S.filter(T=>T.i!==g.i),(0,i.compactType)(this.props),m,this.props.allowOverlap);this.setState({layout:E,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),h(this,"onDragLeave",g=>{g.preventDefault(),g.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),h(this,"onDragEnter",g=>{g.preventDefault(),g.stopPropagation(),this.dragEnterCounter++}),h(this,"onDrop",g=>{g.preventDefault(),g.stopPropagation();const{droppingItem:m}=this.props,{layout:S}=this.state,E=S.find(T=>T.i===m.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(S,E,g)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(g,m){let S;return m.activeDrag?null:(!(0,t.deepEqual)(g.layout,m.propsLayout)||g.compactType!==m.compactType?S=g.layout:(0,i.childrenEqual)(g.children,m.children)||(S=m.layout),S?{layout:(0,i.synchronizeLayoutWithChildren)(S,g.children,g.cols,(0,i.compactType)(g),g.allowOverlap),compactType:g.compactType,children:g.children,propsLayout:g.layout}:null)}shouldComponentUpdate(g,m){return this.props.children!==g.children||!(0,i.fastRGLPropsEqual)(this.props,g,t.deepEqual)||this.state.activeDrag!==m.activeDrag||this.state.mounted!==m.mounted||this.state.droppingPosition!==m.droppingPosition}componentDidUpdate(g,m){if(!this.state.activeDrag){const S=this.state.layout,E=m.layout;this.onLayoutMaybeChanged(S,E)}}containerHeight(){if(!this.props.autoSize)return;const g=(0,i.bottom)(this.state.layout),m=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return g*this.props.rowHeight+(g-1)*this.props.margin[1]+m*2+"px"}onLayoutMaybeChanged(g,m){m||(m=this.state.layout),(0,t.deepEqual)(m,g)||this.props.onLayoutChange(g)}placeholder(){const{activeDrag:g}=this.state;if(!g)return null;const{width:m,cols:S,margin:E,containerPadding:T,rowHeight:M,maxRows:D,useCSSTransforms:A,transformScale:z}=this.props;return e.createElement(a.default,{w:g.w,h:g.h,x:g.x,y:g.y,i:g.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:m,cols:S,margin:E,containerPadding:T||E,maxRows:D,rowHeight:M,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:A,transformScale:z},e.createElement("div",null))}processGridItem(g,m){if(!g||!g.key)return;const S=(0,i.getLayoutItem)(this.state.layout,String(g.key));if(!S)return null;const{width:E,cols:T,margin:M,containerPadding:D,rowHeight:A,maxRows:z,isDraggable:J,isResizable:Z,isBounded:_,useCSSTransforms:H,transformScale:B,draggableCancel:K,draggableHandle:q,resizeHandles:X,resizeHandle:fe}=this.props,{mounted:ae,droppingPosition:Y}=this.state,$=typeof S.isDraggable=="boolean"?S.isDraggable:!S.static&&J,ue=typeof S.isResizable=="boolean"?S.isResizable:!S.static&&Z,ye=S.resizeHandles||X,pe=$&&_&&S.isBounded!==!1;return e.createElement(a.default,{containerWidth:E,cols:T,margin:M,containerPadding:D||M,maxRows:z,rowHeight:A,cancel:K,handle:q,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:$,isResizable:ue,isBounded:pe,useCSSTransforms:H&&ae,usePercentages:!ae,transformScale:B,w:S.w,h:S.h,x:S.x,y:S.y,i:S.i,minH:S.minH,minW:S.minW,maxH:S.maxH,maxW:S.maxW,static:S.static,droppingPosition:m?Y:void 0,resizeHandles:ye,resizeHandle:fe},g)}render(){const{className:g,style:m,isDroppable:S,innerRef:E}=this.props,T=(0,n.default)(w,g),M={height:this.containerHeight(),...m};return e.createElement("div",{ref:E,className:T,style:M,onDrop:S?this.onDrop:i.noop,onDragLeave:S?this.onDragLeave:i.noop,onDragEnter:S?this.onDragEnter:i.noop,onDragOver:S?this.onDragOver:i.noop},e.Children.map(this.props.children,D=>this.processGridItem(D)),S&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return Bo.default=y,h(y,"displayName","ReactGridLayout"),h(y,"propTypes",u.default),h(y,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:i.noop,onDragStart:i.noop,onDrag:i.noop,onDragStop:i.noop,onResizeStart:i.noop,onResize:i.noop,onResizeStop:i.noop,onDrop:i.noop,onDropDragOver:i.noop}),Bo}var Zo={},ii={},ng;function Ov(){if(ng)return ii;ng=1,Object.defineProperty(ii,"__esModule",{value:!0}),ii.findOrGenerateResponsiveLayout=i,ii.getBreakpointFromWidth=t,ii.getColsFromBreakpoint=n,ii.sortBreakpoints=s;var e=po();function t(a,u){const c=s(a);let f=c[0];for(let p=1,h=c.length;p<h;p++){const x=c[p];u>a[x]&&(f=x)}return f}function n(a,u){if(!u[a])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+a+" is missing!");return u[a]}function i(a,u,c,f,p,h){if(a[c])return(0,e.cloneLayout)(a[c]);let x=a[f];const R=s(u),w=R.slice(R.indexOf(c));for(let C=0,y=w.length;C<y;C++){const v=w[C];if(a[v]){x=a[v];break}}return x=(0,e.cloneLayout)(x||[]),(0,e.compact)((0,e.correctBounds)(x,{cols:p}),h,p)}function s(a){return Object.keys(a).sort(function(c,f){return a[c]-a[f]})}return ii}var rg;function eI(){if(rg)return Zo;rg=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.default=void 0;var e=f(j),t=u(wr()),n=If(),i=po(),s=Ov(),a=u(Ev());function u(v){return v&&v.__esModule?v:{default:v}}function c(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(c=function(S){return S?m:g})(v)}function f(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=c(g);if(m&&m.has(v))return m.get(v);var S={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in v)if(T!=="default"&&Object.prototype.hasOwnProperty.call(v,T)){var M=E?Object.getOwnPropertyDescriptor(v,T):null;M&&(M.get||M.set)?Object.defineProperty(S,T,M):S[T]=v[T]}return S.default=v,m&&m.set(v,S),S}function p(){return p=Object.assign?Object.assign.bind():function(v){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(v[S]=m[S])}return v},p.apply(this,arguments)}function h(v,g,m){return g=x(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function x(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var S=m.call(v,g);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w=v=>Object.prototype.toString.call(v);function C(v,g){return v==null?null:Array.isArray(v)?v:v[g]}let y=class extends e.Component{constructor(){super(...arguments),h(this,"state",this.generateInitialState()),h(this,"onLayoutChange",g=>{this.props.onLayoutChange(g,{...this.props.layouts,[this.state.breakpoint]:g})})}generateInitialState(){const{width:g,breakpoints:m,layouts:S,cols:E}=this.props,T=(0,s.getBreakpointFromWidth)(m,g),M=(0,s.getColsFromBreakpoint)(T,E),D=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,s.findOrGenerateResponsiveLayout)(S,m,T,T,M,D),breakpoint:T,cols:M}}static getDerivedStateFromProps(g,m){if(!(0,n.deepEqual)(g.layouts,m.layouts)){const{breakpoint:S,cols:E}=m;return{layout:(0,s.findOrGenerateResponsiveLayout)(g.layouts,g.breakpoints,S,S,E,g.compactType),layouts:g.layouts}}return null}componentDidUpdate(g){(this.props.width!=g.width||this.props.breakpoint!==g.breakpoint||!(0,n.deepEqual)(this.props.breakpoints,g.breakpoints)||!(0,n.deepEqual)(this.props.cols,g.cols))&&this.onWidthChange(g)}onWidthChange(g){const{breakpoints:m,cols:S,layouts:E,compactType:T}=this.props,M=this.props.breakpoint||(0,s.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),D=this.state.breakpoint,A=(0,s.getColsFromBreakpoint)(M,S),z={...E};if(D!==M||g.breakpoints!==m||g.cols!==S){D in z||(z[D]=(0,i.cloneLayout)(this.state.layout));let _=(0,s.findOrGenerateResponsiveLayout)(z,m,M,D,A,T);_=(0,i.synchronizeLayoutWithChildren)(_,this.props.children,A,T,this.props.allowOverlap),z[M]=_,this.props.onBreakpointChange(M,A),this.props.onLayoutChange(_,z),this.setState({breakpoint:M,layout:_,cols:A})}const J=C(this.props.margin,M),Z=C(this.props.containerPadding,M);this.props.onWidthChange(this.props.width,J,A,Z)}render(){const{breakpoint:g,breakpoints:m,cols:S,layouts:E,margin:T,containerPadding:M,onBreakpointChange:D,onLayoutChange:A,onWidthChange:z,...J}=this.props;return e.createElement(a.default,p({},J,{margin:C(T,this.state.breakpoint),containerPadding:C(M,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return Zo.default=y,h(y,"propTypes",{breakpoint:t.default.string,breakpoints:t.default.object,allowOverlap:t.default.bool,cols:t.default.object,margin:t.default.oneOfType([t.default.array,t.default.object]),containerPadding:t.default.oneOfType([t.default.array,t.default.object]),layouts(v,g){if(w(v[g])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+w(v[g]));Object.keys(v[g]).forEach(m=>{if(!(m in v.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,i.validateLayout)(v.layouts[m],"layouts."+m)})},width:t.default.number.isRequired,onBreakpointChange:t.default.func,onLayoutChange:t.default.func,onWidthChange:t.default.func}),h(y,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:i.noop,onLayoutChange:i.noop,onWidthChange:i.noop}),Zo}var $a={},Tv=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(s,a){return s[0]===n?(i=a,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=e(this.__entries__,n),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(n,i){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,s=e(i,n);~s&&i.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var s=0,a=this.__entries__;s<a.length;s++){var u=a[s];n.call(i,u[1],u[0])}},t}()}(),jc=typeof window<"u"&&typeof document<"u"&&window.document===document,uu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),tI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(uu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),nI=2;function rI(e,t){var n=!1,i=!1,s=0;function a(){n&&(n=!1,e()),i&&c()}function u(){tI(a)}function c(){var f=Date.now();if(n){if(f-s<nI)return;i=!0}else n=!0,i=!1,setTimeout(u,t);s=f}return c}var iI=20,oI=["top","right","bottom","left","width","height","size","weight"],sI=typeof MutationObserver<"u",aI=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=rI(this.refresh.bind(this),iI)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!jc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sI?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!jc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,s=oI.some(function(a){return!!~i.indexOf(a)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Cv=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},uo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||uu},_v=$u(0,0,0,0);function lu(e){return parseFloat(e)||0}function ig(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,s){var a=e["border-"+s+"-width"];return i+lu(a)},0)}function uI(e){for(var t=["top","right","bottom","left"],n={},i=0,s=t;i<s.length;i++){var a=s[i],u=e["padding-"+a];n[a]=lu(u)}return n}function lI(e){var t=e.getBBox();return $u(0,0,t.width,t.height)}function cI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _v;var i=uo(e).getComputedStyle(e),s=uI(i),a=s.left+s.right,u=s.top+s.bottom,c=lu(i.width),f=lu(i.height);if(i.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=ig(i,"left","right")+a),Math.round(f+u)!==n&&(f-=ig(i,"top","bottom")+u)),!dI(e)){var p=Math.round(c+a)-t,h=Math.round(f+u)-n;Math.abs(p)!==1&&(c-=p),Math.abs(h)!==1&&(f-=h)}return $u(s.left,s.top,c,f)}var fI=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof uo(e).SVGGraphicsElement}:function(e){return e instanceof uo(e).SVGElement&&typeof e.getBBox=="function"}}();function dI(e){return e===uo(e).document.documentElement}function pI(e){return jc?fI(e)?lI(e):cI(e):_v}function hI(e){var t=e.x,n=e.y,i=e.width,s=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(a.prototype);return Cv(u,{x:t,y:n,width:i,height:s,top:n,right:t+i,bottom:s+n,left:t}),u}function $u(e,t,n,i){return{x:e,y:t,width:n,height:i}}var mI=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$u(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=pI(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),gI=function(){function e(t,n){var i=hI(n);Cv(this,{target:t,contentRect:i})}return e}(),yI=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new Tv,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof uo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new mI(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof uo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new gI(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Rv=typeof WeakMap<"u"?new WeakMap:new Tv,Dv=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=aI.getInstance(),i=new yI(t,n,this);Rv.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Dv.prototype[e]=function(){var t;return(t=Rv.get(this))[e].apply(t,arguments)}});var vI=function(){return typeof uu.ResizeObserver<"u"?uu.ResizeObserver:Dv}();const bI=Object.freeze(Object.defineProperty({__proto__:null,default:vI},Symbol.toStringTag,{value:"Module"})),wI=Xg(bI);var og;function xI(){if(og)return $a;og=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.default=R;var e=u(j),t=s(wr()),n=s(wI),i=s(Nf());function s(w){return w&&w.__esModule?w:{default:w}}function a(w){if(typeof WeakMap!="function")return null;var C=new WeakMap,y=new WeakMap;return(a=function(v){return v?y:C})(w)}function u(w,C){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=a(C);if(y&&y.has(w))return y.get(w);var v={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in w)if(m!=="default"&&Object.prototype.hasOwnProperty.call(w,m)){var S=g?Object.getOwnPropertyDescriptor(w,m):null;S&&(S.get||S.set)?Object.defineProperty(v,m,S):v[m]=w[m]}return v.default=w,y&&y.set(w,v),v}function c(){return c=Object.assign?Object.assign.bind():function(w){for(var C=1;C<arguments.length;C++){var y=arguments[C];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(w[v]=y[v])}return w},c.apply(this,arguments)}function f(w,C,y){return C=p(C),C in w?Object.defineProperty(w,C,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[C]=y,w}function p(w){var C=h(w,"string");return typeof C=="symbol"?C:String(C)}function h(w,C){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var v=y.call(w,C);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(w)}const x="react-grid-layout";function R(w){var C;return C=class extends e.Component{constructor(){super(...arguments),f(this,"state",{width:1280}),f(this,"elementRef",e.createRef()),f(this,"mounted",!1),f(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new n.default(g=>{if(this.elementRef.current instanceof HTMLElement){const S=g[0].contentRect.width;this.setState({width:S})}});const v=this.elementRef.current;v instanceof HTMLElement&&this.resizeObserver.observe(v)}componentWillUnmount(){this.mounted=!1;const v=this.elementRef.current;v instanceof HTMLElement&&this.resizeObserver.unobserve(v),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:v,...g}=this.props;return v&&!this.mounted?e.createElement("div",{className:(0,i.default)(this.props.className,x),style:this.props.style,ref:this.elementRef}):e.createElement(w,c({innerRef:this.elementRef},g,this.state))}},f(C,"defaultProps",{measureBeforeMount:!1}),f(C,"propTypes",{measureBeforeMount:t.default.bool}),C}return $a}var sg;function SI(){return sg||(sg=1,function(e){e.exports=Ev().default,e.exports.utils=po(),e.exports.calculateUtils=Af(),e.exports.Responsive=eI().default,e.exports.Responsive.utils=Ov(),e.exports.WidthProvider=xI().default}(vc)),vc.exports}var ag=SI();const EI=ag.WidthProvider(ag.Responsive),OI=({items:e,storageKey:t,defaultLayouts:n})=>{const i=j.useRef(null),s=me.useTheme(),[a,u]=j.useState(!1),[c,f]=j.useState(n),[p,h]=j.useState(1200),{editMode:x}=Pf();j.useEffect(()=>{try{const w=localStorage.getItem(t),C=["lg","md","sm","xs"],y={lg:[],md:[],sm:[],xs:[]};let v=n;if(w)try{v=JSON.parse(w)}catch(g){console.error("Failed to parse saved layouts:",g)}for(const g of C){const m=v[g]||[],S=new Map(m.map(E=>[E.i,E]));e.forEach(E=>{const T=S.get(E.id);T?T.w===1&&T.h===1&&E.layout?y[g].push({...E.layout}):y[g].push({...T}):E.layout?y[g].push({...E.layout}):console.warn(`Grid item "${E.id}" has no registered layout. Components should register with default sizes via registerGridItem().`)})}f(y)}catch(w){console.error("Failed to load layouts:",w)}},[t,e,n]);const R=j.useCallback((w,C)=>{f(C);try{localStorage.setItem(t,JSON.stringify(C))}catch(y){console.error("Failed to save layouts:",y)}},[t]);return j.useEffect(()=>{u(!0),i.current&&h(i.current.getBoundingClientRect().width)},[]),a?F.jsxs(me.Box,{sx:{width:"100%",height:"100%",position:"relative"},ref:i,children:[x&&F.jsx(me.Box,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0,pointerEvents:"none",backgroundSize:"30px 30px",backgroundImage:`linear-gradient(to right, ${Ka(s.palette.primary.main,.05)} 1px, transparent 1px), linear-gradient(to bottom, ${Ka(s.palette.primary.main,.05)} 1px, transparent 1px)`}}),F.jsx(EI,{className:"layout",layouts:c,breakpoints:{lg:1200,md:996,sm:768,xs:480},cols:{lg:15,md:15,sm:15,xs:15},rowHeight:200,width:p,containerPadding:[0,0],isResizable:x,isDraggable:x,compactType:null,preventCollision:!0,useCSSTransforms:a,onLayoutChange:R,resizeHandles:["se","sw","ne","nw"],children:e.map(w=>F.jsx(me.Box,{sx:{borderRadius:1,overflow:"hidden",position:"relative",outline:x?`2px dashed ${s.palette.primary.main}`:"none","&:hover":{outline:x?`2px solid ${s.palette.primary.main}`:"none"}},children:F.jsx(me.Box,{sx:{pointerEvents:x?"none":"auto",overflow:"hidden",position:"relative",height:"100%",width:"100%"},children:w.content})},w.id))})]}):null};function Mv(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return console.error("Error loading from localStorage:",t),null}}function Hc(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error saving to localStorage:",n)}}const Os="user-layout-presets";function Lu(){try{const e=localStorage.getItem(Os);return e?JSON.parse(e):[]}catch(e){return console.error("Failed to load user presets:",e),[]}}function TI(e,t){try{const n=Lu(),i=`preset-${Date.now()}`,s=Date.now(),a=JSON.parse(JSON.stringify(t));return n.push({id:i,name:e,layouts:a,createdAt:s,updatedAt:s}),localStorage.setItem(Os,JSON.stringify(n)),i}catch(n){return console.error("Failed to save user preset:",n),""}}function CI(e){try{const t=Lu();if(!t.some(s=>s.id===e))return!1;const i=t.filter(s=>s.id!==e);return localStorage.setItem(Os,JSON.stringify(i)),!0}catch(t){return console.error("Failed to delete user preset:",t),!1}}function _I(e,t){try{const n=Lu(),i=n.findIndex(s=>s.id===e);return i===-1?!1:(n[i]={...n[i],...t,updatedAt:Date.now()},localStorage.setItem(Os,JSON.stringify(n)),!0)}catch(n){return console.error("Failed to update user preset:",n),!1}}function RI(e,t){try{const n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length||n.join(",")!==i.join(","))return!1;for(const s of n){const a=e[s]||[],u=t[s]||[];if(a.length!==u.length)return!1;const c=new Map(a.map(p=>[p.i,p])),f=new Map(u.map(p=>[p.i,p]));if(c.size!==f.size)return!1;for(const[p,h]of c.entries()){const x=f.get(p);if(!x||h.x!==x.x||h.y!==x.y||h.w!==x.w||h.h!==x.h||h.minW!==x.minW||h.minH!==x.minH||h.maxW!==x.maxW||h.maxH!==x.maxH||h.static!==x.static)return!1}}return!0}catch(n){return console.error("Error comparing layouts:",n),!1}}function DI({storageKey:e,defaultLayouts:t,onLayoutChangeCallback:n,debounceTime:i=500}){const[s,a]=j.useState(()=>Mv(e)||JSON.parse(JSON.stringify(t))),u=j.useRef(s),c=j.useRef(null),f=j.useRef(!1),p=j.useCallback((R,w)=>{if(f.current||RI(w,u.current))return;f.current=!0,u.current=w,a(w),c.current&&clearTimeout(c.current);const C=()=>{Hc(e,w),n&&n(w),f.current=!1};c.current=window.setTimeout(C,i)},[e,n,i]),h=j.useCallback(R=>{const w=JSON.parse(JSON.stringify(R));u.current=w,a(w),Hc(e,w),n&&n(w)},[e,n,s]),x=j.useCallback(()=>{h(t)},[h,t]);return j.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),{layouts:s,onLayoutChange:p,applyLayout:h,resetToDefault:x}}const MI=jt(F.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),PI=jt(F.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows"),ug=jt(F.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet"),II=jt(F.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone"),Ji={lg:{description:"Large screens (≥1200px)",color:"primary",icon:"desktop"},md:{description:"Medium screens (≥996px)",color:"success",icon:"tablet"},sm:{description:"Small screens (≥768px)",color:"info",icon:"tabletRotated"},xs:{description:"Extra small screens (<768px)",color:"warning",icon:"phone"}},Pv=({showLabel:e=!1})=>{const t=me.useTheme(),n=me.useMediaQuery(t.breakpoints.between("sm","md")),i=me.useMediaQuery(t.breakpoints.between("md","lg")),s=me.useMediaQuery(t.breakpoints.up("lg"));let a,u,c;return s?(a="lg",u=F.jsx(PI,{fontSize:"small"}),c=Ji.lg.color):i?(a="md",u=F.jsx(ug,{fontSize:"small"}),c=Ji.md.color):n?(a="sm",u=F.jsx(ug,{fontSize:"small",sx:{transform:"rotate(90deg)"}}),c=Ji.sm.color):(a="xs",u=F.jsx(II,{fontSize:"small"}),c=Ji.xs.color),F.jsx(me.Tooltip,{title:Ji[a].description,children:F.jsx(me.Chip,{icon:u,label:e?a.toUpperCase():void 0,color:c,size:"small",variant:"outlined",sx:{height:24,minWidth:e?48:32,".MuiChip-icon":{ml:e?void 0:"0px",mr:e?void 0:"-6px"}}})})},NI=()=>{const{editMode:e,toggleEditMode:t}=fo(),n=()=>{t()};return F.jsxs(me.Box,{display:"flex",flexDirection:"row",alignItems:"center",children:[F.jsx(me.Tooltip,{title:e?"Exit Layout Edit Mode":"Edit Layout",children:F.jsx(me.IconButton,{onClick:n,size:"small",color:e?"primary":"default",sx:{border:e?"1px solid":"none","&:hover":{backgroundColor:e?"rgba(25, 118, 210, 0.08)":void 0}},children:F.jsx(MI,{})})}),e&&F.jsxs(F.Fragment,{children:[F.jsx(me.Divider,{orientation:"vertical",flexItem:!0,sx:{mx:.5}}),F.jsx(Pv,{showLabel:!0})]})]})},AI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lf=AI?j.useLayoutEffect:j.useEffect;function kI(e){const t=j.useRef(e);return Lf(()=>{t.current=e}),j.useCallback(function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return t.current==null?void 0:t.current(...i)},[])}function $I(e,t){t===void 0&&(t=[e]);const n=j.useRef(e);return Lf(()=>{n.current!==e&&(n.current=e)},t),n}function lg(e){const t=kI(e),n=j.useRef(null),i=j.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,i]}let xc={};function LI(e,t){return j.useMemo(()=>{const n=xc[e]==null?0:xc[e]+1;return xc[e]=n,e+"-"+n},[e,t])}var cg;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(cg||(cg={}));function fg(){}const zI=Object.freeze({x:0,y:0});var Ki;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ki||(Ki={}));var dg;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(dg||(dg={}));var Ar;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ar||(Ar={}));Ar.Space,Ar.Enter,Ar.Esc,Ar.Space,Ar.Enter,Ar.Tab;var pg;(function(e){e[e.RightClick=2]="RightClick"})(pg||(pg={}));var hg;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(hg||(hg={}));var mg;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(mg||(mg={}));Ki.Backward+"",Ki.Forward+"",Ki.Backward+"",Ki.Forward+"";var qc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(qc||(qc={}));var Vc;(function(e){e.Optimized="optimized"})(Vc||(Vc={}));function FI(e,t){return j.useMemo(()=>e.reduce((n,i)=>{let{eventName:s,handler:a}=i;return n[s]=u=>{a(u,t)},n},{}),[e,t])}qc.WhileDragging,Vc.Optimized;const WI={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:fg,draggableNodes:new Map,over:null,measureDroppableContainers:fg},BI=j.createContext(WI),UI=j.createContext({...zI,scaleX:1,scaleY:1});var gg;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(gg||(gg={}));const jI=j.createContext(null),yg="button",HI="Draggable";function qI(e){let{id:t,data:n,disabled:i=!1,attributes:s}=e;const a=LI(HI),{activators:u,activatorEvent:c,active:f,activeNodeRect:p,ariaDescribedById:h,draggableNodes:x,over:R}=j.useContext(BI),{role:w=yg,roleDescription:C="draggable",tabIndex:y=0}=s??{},v=(f==null?void 0:f.id)===t,g=j.useContext(v?UI:jI),[m,S]=lg(),[E,T]=lg(),M=FI(u,t),D=$I(n);Lf(()=>(x.set(t,{id:t,key:a,node:m,activatorNode:E,data:D}),()=>{const z=x.get(t);z&&z.key===a&&x.delete(t)}),[x,t]);const A=j.useMemo(()=>({role:w,tabIndex:y,"aria-disabled":i,"aria-pressed":v&&w===yg?!0:void 0,"aria-roledescription":C,"aria-describedby":h.draggable}),[i,w,y,v,C,h.draggable]);return{active:f,activatorEvent:c,activeNodeRect:p,attributes:A,isDragging:v,listeners:i?void 0:M,node:m,over:R,setNodeRef:S,setActivatorNodeRef:T,transform:g}}function VI({id:e,children:t}){const{attributes:n,listeners:i,setNodeRef:s,transform:a}=qI({id:e}),u={transform:a?`translate(${a.x}px, ${a.y}px)`:void 0,cursor:"pointer",userSelect:"none"};return F.jsx("div",{ref:s,style:u,...n,...i,children:t})}const GI=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)},zf=co.create(e=>({notifications:[],addNotificationData:t=>{t.singular&&!GI(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(i=>i.id!==`${t}`)}))},clearNotificationsByType:t=>{e(n=>({notifications:n.notifications.filter(i=>i.type!==t)}))}})),YI=({action:e,maxAttempts:t=3,delay:n=1e3,successMessage:i="Operation successful",errorMessage:s="Operation failed, retrying...",condition:a=!0})=>{const[u,c]=j.useState(0),{addNotificationData:f,clearNotificationsByType:p}=zf(),h=j.useCallback(()=>{if(a&&u<t){const x=setTimeout(()=>{e(),c(R=>R+1)},n);return()=>clearTimeout(x)}else u>=t?f({type:"error",message:s}):a||(p("error"),f({type:"success",message:i}))},[e,u,a,t,n,s,i,p]);return j.useEffect(()=>h(),[h]),{attempts:u}},ZI=({title:e,dialogId:t,callOnOpen:n,showTitle:i=!0,onOpenDialog:s,icon:a})=>{const u=c=>{c.stopPropagation(),c.preventDefault(),s?s(t):console.warn("DialogOpener: onOpenDialog prop not provided. Please provide a dialog store handler."),n&&n(c)};return F.jsxs(me.MenuItem,{component:me.Button,onClick:u,style:{marginLeft:"auto",zIndex:1e3,width:"100%",display:"flex",justifyContent:"left",columnGap:2},children:[a," ",i&&e]})},Iv=jt(F.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Nv=({children:e,open:t,onClose:n,...i})=>{const s=me.useTheme(),a=me.useMediaQuery(s.breakpoints.down("sm"));return F.jsx(me.Dialog,{sx:{"& .MuiDialog-paper":{borderRadius:a?"0px !important":"14px",height:a?"100vh":"90vh",display:"flex",flexDirection:"column",maxHeight:a?"100vh":"90vh",margin:a?0:void 0}},open:t,onClose:n,fullScreen:a,...i,children:e})},XI=({onSubmit:e,title:t,children:n,submitText:i="Submit",disableSubmit:s=!1,showUnsavedChangesWarning:a=!1,isDirty:u=!1,onClose:c,...f})=>{const[p,h]=j.useState(!1),x=()=>{a&&u?h(!0):c?c():console.warn("FormDialog: onClose prop not provided. Please provide a close handler.")},R=()=>{h(!1),c&&c()};return F.jsxs(F.Fragment,{children:[F.jsxs(Nv,{open:!0,onClose:x,...f,children:[F.jsxs(me.DialogTitle,{sx:{m:0,p:2,pr:6},children:[t,F.jsx(me.IconButton,{"aria-label":"close",onClick:x,sx:{position:"absolute",right:8,top:8,color:w=>w.palette.grey[500]},children:F.jsx(Iv,{})})]}),F.jsx(me.DialogContent,{sx:{p:"24px",overflow:"hidden",display:"flex",flexDirection:"column",minHeight:0},children:F.jsxs("form",{onSubmit:e,style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[F.jsx(me.Box,{sx:{flex:1,minHeight:0,overflow:"auto"},children:n}),F.jsxs(me.DialogActions,{sx:{borderTop:1,borderColor:"divider"},children:[F.jsx(me.Button,{onClick:x,children:"Cancel"}),F.jsx(me.Button,{type:"submit",variant:"contained",disabled:!u||s,color:"primary",children:i})]})]})})]}),F.jsxs(me.Dialog,{open:p,onClose:()=>h(!1),children:[F.jsx(me.DialogTitle,{children:"Unsaved Changes"}),F.jsx(me.DialogContent,{children:F.jsx(me.DialogContentText,{children:"You have unsaved changes. Are you sure you want to close?"})}),F.jsxs(me.DialogActions,{children:[F.jsx(me.Button,{onClick:()=>h(!1),children:"Cancel"}),F.jsx(me.Button,{onClick:R,color:"warning",children:"Close Without Saving"})]})]})]})},Av=new Map;function JI(e,t){Av.set(e,t)}function KI(e){return Av.get(e)}function QI(e){console.warn("openDialog called but no dialog store is configured. Please use a dialog store from the main package.")}function eN(){console.warn("closeDialog called but no dialog store is configured. Please use a dialog store from the main package.")}const tN=({openDialog:e})=>{if(!e)return null;const t=KI(e);return t?F.jsx(t,{}):null},nN=jt(F.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),rN=jt(F.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),iN=6e3,oN=({notificationKey:e})=>{const[t,n]=j.useState(100),[i,s]=j.useState(!1),a=j.useRef(null),u=j.useRef(Date.now()),c=j.useRef(0);return j.useEffect(()=>{if(i){a.current&&(clearInterval(a.current),c.current+=Date.now()-u.current);return}return u.current=Date.now(),a.current=setInterval(()=>{const f=c.current+(Date.now()-u.current),p=Math.max(0,100*(1-f/iN));n(p),p<=0&&(clearInterval(a.current),af.closeSnackbar(e))},50),()=>{a.current&&clearInterval(a.current)}},[i,e]),F.jsxs(me.Box,{sx:{position:"relative",display:"inline-flex",mr:1},children:[F.jsx(me.CircularProgress,{variant:"determinate",value:t,size:24,sx:{color:"rgba(255, 255, 255, 0.7)"}}),F.jsx(me.IconButton,{size:"small",onClick:()=>s(!i),sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"rgba(255, 255, 255, 0.7)",padding:0,"&:hover":{color:"white"},width:16,height:16},children:i?F.jsx(nN,{sx:{fontSize:12}}):F.jsx(rN,{sx:{fontSize:12}})})]})},sN=e=>F.jsx(me.IconButton,{onClick:()=>{af.closeSnackbar(e)},children:F.jsx(Iv,{})}),aN=e=>F.jsxs(me.Box,{sx:{display:"flex",alignItems:"center"},children:[F.jsx(oN,{notificationKey:e}),sN(e)]}),uN=()=>{const{notifications:e,removeNotificationData:t}=zf(),{enqueueSnackbar:n}=af.useSnackbar();return j.useEffect(()=>{e.length>0&&e.forEach(i=>{n(i.message,{variant:i.type,action:aN,autoHideDuration:null,persist:!0}),t(Number(i.id))})},[e,n,t]),F.jsx(F.Fragment,{})},lN=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),cN=e=>e.toLowerCase().replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Gc=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Gc(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,i])=>{const s=cN(n);t[s]=Gc(i)}),t},Yc=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Yc(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,i])=>{const s=lN(n);t[s]=Yc(i)}),t};class Oi extends Error{}class fN extends Oi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class dN extends Oi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class pN extends Oi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Qi extends Oi{}class kv extends Oi{constructor(t){super(`Invalid unit ${t}`)}}class kt extends Oi{}class Nr extends Oi{constructor(){super("Zone is an abstract class")}}const Se="numeric",Wn="short",cn="long",cu={year:Se,month:Se,day:Se},$v={year:Se,month:Wn,day:Se},hN={year:Se,month:Wn,day:Se,weekday:Wn},Lv={year:Se,month:cn,day:Se},zv={year:Se,month:cn,day:Se,weekday:cn},Fv={hour:Se,minute:Se},Wv={hour:Se,minute:Se,second:Se},Bv={hour:Se,minute:Se,second:Se,timeZoneName:Wn},Uv={hour:Se,minute:Se,second:Se,timeZoneName:cn},jv={hour:Se,minute:Se,hourCycle:"h23"},Hv={hour:Se,minute:Se,second:Se,hourCycle:"h23"},qv={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Wn},Vv={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:cn},Gv={year:Se,month:Se,day:Se,hour:Se,minute:Se},Yv={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},Zv={year:Se,month:Wn,day:Se,hour:Se,minute:Se},Xv={year:Se,month:Wn,day:Se,hour:Se,minute:Se,second:Se},mN={year:Se,month:Wn,day:Se,weekday:Wn,hour:Se,minute:Se},Jv={year:Se,month:cn,day:Se,hour:Se,minute:Se,timeZoneName:Wn},Kv={year:Se,month:cn,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Wn},Qv={year:Se,month:cn,day:Se,weekday:cn,hour:Se,minute:Se,timeZoneName:cn},e0={year:Se,month:cn,day:Se,weekday:cn,hour:Se,minute:Se,second:Se,timeZoneName:cn};class Ts{get type(){throw new Nr}get name(){throw new Nr}get ianaName(){return this.name}get isUniversal(){throw new Nr}offsetName(t,n){throw new Nr}formatOffset(t,n){throw new Nr}offset(t){throw new Nr}equals(t){throw new Nr}get isValid(){throw new Nr}}let Sc=null;class zu extends Ts{static get instance(){return Sc===null&&(Sc=new zu),Sc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return f0(t,n,i)}formatOffset(t,n){return us(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const Zc=new Map;function gN(e){let t=Zc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Zc.set(e,t)),t}const yN={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function vN(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,a,u,c,f,p,h]=i;return[u,s,a,c,f,p,h]}function bN(e,t){const n=e.formatToParts(t),i=[];for(let s=0;s<n.length;s++){const{type:a,value:u}=n[s],c=yN[a];a==="era"?i[c]=u:Ae(c)||(i[c]=parseInt(u,10))}return i}const Ec=new Map;class br extends Ts{static create(t){let n=Ec.get(t);return n===void 0&&Ec.set(t,n=new br(t)),n}static resetCache(){Ec.clear(),Zc.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=br.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return f0(t,n,i,this.name)}formatOffset(t,n){return us(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const i=gN(this.name);let[s,a,u,c,f,p,h]=i.formatToParts?bN(i,n):vN(i,n);c==="BC"&&(s=-Math.abs(s)+1);const R=Wu({year:s,month:a,day:u,hour:f===24?0:f,minute:p,second:h,millisecond:0});let w=+n;const C=w%1e3;return w-=C>=0?C:1e3+C,(R-w)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let vg={};function wN(e,t={}){const n=JSON.stringify([e,t]);let i=vg[n];return i||(i=new Intl.ListFormat(e,t),vg[n]=i),i}const Xc=new Map;function Jc(e,t={}){const n=JSON.stringify([e,t]);let i=Xc.get(n);return i===void 0&&(i=new Intl.DateTimeFormat(e,t),Xc.set(n,i)),i}const Kc=new Map;function xN(e,t={}){const n=JSON.stringify([e,t]);let i=Kc.get(n);return i===void 0&&(i=new Intl.NumberFormat(e,t),Kc.set(n,i)),i}const Qc=new Map;function SN(e,t={}){const{base:n,...i}=t,s=JSON.stringify([e,i]);let a=Qc.get(s);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),Qc.set(s,a)),a}let ns=null;function EN(){return ns||(ns=new Intl.DateTimeFormat().resolvedOptions().locale,ns)}const ef=new Map;function t0(e){let t=ef.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),ef.set(e,t)),t}const tf=new Map;function ON(e){let t=tf.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...n0,...t}),tf.set(e,t)}return t}function TN(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let i,s;try{i=Jc(e).resolvedOptions(),s=e}catch{const f=e.substring(0,n);i=Jc(f).resolvedOptions(),s=f}const{numberingSystem:a,calendar:u}=i;return[s,a,u]}}function CN(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function _N(e){const t=[];for(let n=1;n<=12;n++){const i=ke.utc(2009,n,1);t.push(e(i))}return t}function RN(e){const t=[];for(let n=1;n<=7;n++){const i=ke.utc(2016,11,13+n);t.push(e(i))}return t}function La(e,t,n,i){const s=e.listingMode();return s==="error"?null:s==="en"?n(t):i(t)}function DN(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||t0(e.locale).numberingSystem==="latn"}class MN{constructor(t,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:a,...u}=i;if(!n||Object.keys(u).length>0){const c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=xN(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):jf(t,3);return St(n,this.padTo)}}}class PN{constructor(t,n,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const u=-1*(t.offset/60),c=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;t.offset!==0&&br.create(c).valid?(s=c,this.dt=t):(s="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,s=t.zone.name):(s="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||s,this.dtf=Jc(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class IN{constructor(t,n,i){this.opts={style:"long",...i},!n&&l0()&&(this.rtf=SN(t,i))}format(t,n){return this.rtf?this.rtf.format(t,n):eA(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const n0={firstDay:1,minimalDays:4,weekend:[6,7]};class Qe{static fromOpts(t){return Qe.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,i,s,a=!1){const u=t||yt.defaultLocale,c=u||(a?"en-US":EN()),f=n||yt.defaultNumberingSystem,p=i||yt.defaultOutputCalendar,h=rf(s)||yt.defaultWeekSettings;return new Qe(c,f,p,h,u)}static resetCache(){ns=null,Xc.clear(),Kc.clear(),Qc.clear(),ef.clear(),tf.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:i,weekSettings:s}={}){return Qe.create(t,n,i,s)}constructor(t,n,i,s,a){const[u,c,f]=TN(t);this.locale=u,this.numberingSystem=n||c||null,this.outputCalendar=i||f||null,this.weekSettings=s,this.intl=CN(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=DN(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Qe.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,rf(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return La(this,t,h0,()=>{const i=this.intl==="ja"||this.intl.startsWith("ja-");n&=!i;const s=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";if(!this.monthsCache[a][t]){const u=i?c=>this.dtFormatter(c,s).format():c=>this.extract(c,s,"month");this.monthsCache[a][t]=_N(u)}return this.monthsCache[a][t]})}weekdays(t,n=!1){return La(this,t,y0,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},s=n?"format":"standalone";return this.weekdaysCache[s][t]||(this.weekdaysCache[s][t]=RN(a=>this.extract(a,i,"weekday"))),this.weekdaysCache[s][t]})}meridiems(){return La(this,void 0,()=>v0,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ke.utc(2016,11,13,9),ke.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return La(this,t,b0,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ke.utc(-40,1,1),ke.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[t]})}extract(t,n,i){const s=this.dtFormatter(t,n),a=s.formatToParts(),u=a.find(c=>c.type.toLowerCase()===i);return u?u.value:null}numberFormatter(t={}){return new MN(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new PN(t,this.intl,n)}relFormatter(t={}){return new IN(this.intl,this.isEnglish(),t)}listFormatter(t={}){return wN(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||t0(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:c0()?ON(this.locale):n0}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Oc=null;class Ut extends Ts{static get utcInstance(){return Oc===null&&(Oc=new Ut(0)),Oc}static instance(t){return t===0?Ut.utcInstance:new Ut(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Ut(Bu(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${us(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${us(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return us(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class NN extends Ts{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function zr(e,t){if(Ae(e)||e===null)return t;if(e instanceof Ts)return e;if(FN(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?zu.instance:n==="utc"||n==="gmt"?Ut.utcInstance:Ut.parseSpecifier(n)||br.create(e)}else return Wr(e)?Ut.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new NN(e)}const Ff={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},bg={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},AN=Ff.hanidec.replace(/[\[|\]]/g,"").split("");function kN(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(e[n].search(Ff.hanidec)!==-1)t+=AN.indexOf(e[n]);else for(const s in bg){const[a,u]=bg[s];i>=a&&i<=u&&(t+=i-a)}}return parseInt(t,10)}else return t}const nf=new Map;function $N(){nf.clear()}function $n({numberingSystem:e},t=""){const n=e||"latn";let i=nf.get(n);i===void 0&&(i=new Map,nf.set(n,i));let s=i.get(t);return s===void 0&&(s=new RegExp(`${Ff[n]}${t}`),i.set(t,s)),s}let wg=()=>Date.now(),xg="system",Sg=null,Eg=null,Og=null,Tg=60,Cg,_g=null;class yt{static get now(){return wg}static set now(t){wg=t}static set defaultZone(t){xg=t}static get defaultZone(){return zr(xg,zu.instance)}static get defaultLocale(){return Sg}static set defaultLocale(t){Sg=t}static get defaultNumberingSystem(){return Eg}static set defaultNumberingSystem(t){Eg=t}static get defaultOutputCalendar(){return Og}static set defaultOutputCalendar(t){Og=t}static get defaultWeekSettings(){return _g}static set defaultWeekSettings(t){_g=rf(t)}static get twoDigitCutoffYear(){return Tg}static set twoDigitCutoffYear(t){Tg=t%100}static get throwOnInvalid(){return Cg}static set throwOnInvalid(t){Cg=t}static resetCaches(){Qe.resetCache(),br.resetCache(),ke.resetCache(),$N()}}class zn{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const r0=[0,31,59,90,120,151,181,212,243,273,304,334],i0=[0,31,60,91,121,152,182,213,244,274,305,335];function On(e,t){return new zn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Wf(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function o0(e,t,n){return n+(Cs(e)?i0:r0)[t-1]}function s0(e,t){const n=Cs(e)?i0:r0,i=n.findIndex(a=>a<t),s=t-n[i];return{month:i+1,day:s}}function Bf(e,t){return(e-t+7)%7+1}function fu(e,t=4,n=1){const{year:i,month:s,day:a}=e,u=o0(i,s,a),c=Bf(Wf(i,s,a),n);let f=Math.floor((u-c+14-t)/7),p;return f<1?(p=i-1,f=gs(p,t,n)):f>gs(i,t,n)?(p=i+1,f=1):p=i,{weekYear:p,weekNumber:f,weekday:c,...Uu(e)}}function Rg(e,t=4,n=1){const{weekYear:i,weekNumber:s,weekday:a}=e,u=Bf(Wf(i,1,t),n),c=no(i);let f=s*7+a-u-7+t,p;f<1?(p=i-1,f+=no(p)):f>c?(p=i+1,f-=no(i)):p=i;const{month:h,day:x}=s0(p,f);return{year:p,month:h,day:x,...Uu(e)}}function Tc(e){const{year:t,month:n,day:i}=e,s=o0(t,n,i);return{year:t,ordinal:s,...Uu(e)}}function Dg(e){const{year:t,ordinal:n}=e,{month:i,day:s}=s0(t,n);return{year:t,month:i,day:s,...Uu(e)}}function Mg(e,t){if(!Ae(e.localWeekday)||!Ae(e.localWeekNumber)||!Ae(e.localWeekYear)){if(!Ae(e.weekday)||!Ae(e.weekNumber)||!Ae(e.weekYear))throw new Qi("Cannot mix locale-based week fields with ISO-based week fields");return Ae(e.localWeekday)||(e.weekday=e.localWeekday),Ae(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ae(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function LN(e,t=4,n=1){const i=Fu(e.weekYear),s=Tn(e.weekNumber,1,gs(e.weekYear,t,n)),a=Tn(e.weekday,1,7);return i?s?a?!1:On("weekday",e.weekday):On("week",e.weekNumber):On("weekYear",e.weekYear)}function zN(e){const t=Fu(e.year),n=Tn(e.ordinal,1,no(e.year));return t?n?!1:On("ordinal",e.ordinal):On("year",e.year)}function a0(e){const t=Fu(e.year),n=Tn(e.month,1,12),i=Tn(e.day,1,du(e.year,e.month));return t?n?i?!1:On("day",e.day):On("month",e.month):On("year",e.year)}function u0(e){const{hour:t,minute:n,second:i,millisecond:s}=e,a=Tn(t,0,23)||t===24&&n===0&&i===0&&s===0,u=Tn(n,0,59),c=Tn(i,0,59),f=Tn(s,0,999);return a?u?c?f?!1:On("millisecond",s):On("second",i):On("minute",n):On("hour",t)}function Ae(e){return typeof e>"u"}function Wr(e){return typeof e=="number"}function Fu(e){return typeof e=="number"&&e%1===0}function FN(e){return typeof e=="string"}function WN(e){return Object.prototype.toString.call(e)==="[object Date]"}function l0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function c0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function BN(e){return Array.isArray(e)?e:[e]}function Pg(e,t,n){if(e.length!==0)return e.reduce((i,s)=>{const a=[t(s),s];return i&&n(i[0],a[0])===i[0]?i:a},null)[1]}function UN(e,t){return t.reduce((n,i)=>(n[i]=e[i],n),{})}function lo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rf(e){if(e==null)return null;if(typeof e!="object")throw new kt("Week settings must be an object");if(!Tn(e.firstDay,1,7)||!Tn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Tn(t,1,7)))throw new kt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Tn(e,t,n){return Fu(e)&&e>=t&&e<=n}function jN(e,t){return e-t*Math.floor(e/t)}function St(e,t=2){const n=e<0;let i;return n?i="-"+(""+-e).padStart(t,"0"):i=(""+e).padStart(t,"0"),i}function kr(e){if(!(Ae(e)||e===null||e===""))return parseInt(e,10)}function oi(e){if(!(Ae(e)||e===null||e===""))return parseFloat(e)}function Uf(e){if(!(Ae(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function jf(e,t,n="round"){const i=10**t;switch(n){case"expand":return e>0?Math.ceil(e*i)/i:Math.floor(e*i)/i;case"trunc":return Math.trunc(e*i)/i;case"round":return Math.round(e*i)/i;case"floor":return Math.floor(e*i)/i;case"ceil":return Math.ceil(e*i)/i;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Cs(e){return e%4===0&&(e%100!==0||e%400===0)}function no(e){return Cs(e)?366:365}function du(e,t){const n=jN(t-1,12)+1,i=e+(t-n)/12;return n===2?Cs(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Wu(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Ig(e,t,n){return-Bf(Wf(e,1,t),n)+t-1}function gs(e,t=4,n=1){const i=Ig(e,t,n),s=Ig(e+1,t,n);return(no(e)-i+s)/7}function of(e){return e>99?e:e>yt.twoDigitCutoffYear?1900+e:2e3+e}function f0(e,t,n,i=null){const s=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(a.timeZone=i);const u={timeZoneName:t,...a},c=new Intl.DateTimeFormat(n,u).formatToParts(s).find(f=>f.type.toLowerCase()==="timezonename");return c?c.value:null}function Bu(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0,s=n<0||Object.is(n,-0)?-i:i;return n*60+s}function d0(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new kt(`Invalid unit value ${e}`);return t}function pu(e,t){const n={};for(const i in e)if(lo(e,i)){const s=e[i];if(s==null)continue;n[t(i)]=d0(s)}return n}function us(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${St(n,2)}:${St(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${St(n,2)}${St(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Uu(e){return UN(e,["hour","minute","second","millisecond"])}const HN=["January","February","March","April","May","June","July","August","September","October","November","December"],p0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qN=["J","F","M","A","M","J","J","A","S","O","N","D"];function h0(e){switch(e){case"narrow":return[...qN];case"short":return[...p0];case"long":return[...HN];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const m0=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],g0=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],VN=["M","T","W","T","F","S","S"];function y0(e){switch(e){case"narrow":return[...VN];case"short":return[...g0];case"long":return[...m0];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const v0=["AM","PM"],GN=["Before Christ","Anno Domini"],YN=["BC","AD"],ZN=["B","A"];function b0(e){switch(e){case"narrow":return[...ZN];case"short":return[...YN];case"long":return[...GN];default:return null}}function XN(e){return v0[e.hour<12?0:1]}function JN(e,t){return y0(t)[e.weekday-1]}function KN(e,t){return h0(t)[e.month-1]}function QN(e,t){return b0(t)[e.year<0?0:1]}function eA(e,t,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const x=e==="days";switch(t){case 1:return x?"tomorrow":`next ${s[e][0]}`;case-1:return x?"yesterday":`last ${s[e][0]}`;case 0:return x?"today":`this ${s[e][0]}`}}const u=Object.is(t,-0)||t<0,c=Math.abs(t),f=c===1,p=s[e],h=i?f?p[1]:p[2]||p[1]:f?s[e][0]:e;return u?`${c} ${h} ago`:`in ${c} ${h}`}function Ng(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const tA={D:cu,DD:$v,DDD:Lv,DDDD:zv,t:Fv,tt:Wv,ttt:Bv,tttt:Uv,T:jv,TT:Hv,TTT:qv,TTTT:Vv,f:Gv,ff:Zv,fff:Jv,ffff:Qv,F:Yv,FF:Xv,FFF:Kv,FFFF:e0};class $t{static create(t,n={}){return new $t(t,n)}static parseFormat(t){let n=null,i="",s=!1;const a=[];for(let u=0;u<t.length;u++){const c=t.charAt(u);c==="'"?((i.length>0||s)&&a.push({literal:s||/^\s+$/.test(i),val:i===""?"'":i}),n=null,i="",s=!s):s||c===n?i+=c:(i.length>0&&a.push({literal:/^\s+$/.test(i),val:i}),i=c,n=c)}return i.length>0&&a.push({literal:s||/^\s+$/.test(i),val:i}),a}static macroTokenToFormatOpts(t){return tA[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,i=void 0){if(this.opts.forceSimple)return St(t,n);const s={...this.opts};return n>0&&(s.padTo=n),i&&(s.signDisplay=i),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,n){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(w,C)=>this.loc.extract(t,w,C),u=w=>t.isOffsetFixed&&t.offset===0&&w.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,w.format):"",c=()=>i?XN(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),f=(w,C)=>i?KN(t,w):a(C?{month:w}:{month:w,day:"numeric"},"month"),p=(w,C)=>i?JN(t,w):a(C?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),h=w=>{const C=$t.macroTokenToFormatOpts(w);return C?this.formatWithSystemDefault(t,C):w},x=w=>i?QN(t,w):a({era:w},"era"),R=w=>{switch(w){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return s?a({day:"numeric"},"day"):this.num(t.day);case"dd":return s?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return p("short",!0);case"cccc":return p("long",!0);case"ccccc":return p("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return p("short",!1);case"EEEE":return p("long",!1);case"EEEEE":return p("narrow",!1);case"L":return s?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return f("short",!0);case"LLLL":return f("long",!0);case"LLLLL":return f("narrow",!0);case"M":return s?a({month:"numeric"},"month"):this.num(t.month);case"MM":return s?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return f("short",!1);case"MMMM":return f("long",!1);case"MMMMM":return f("narrow",!1);case"y":return s?a({year:"numeric"},"year"):this.num(t.year);case"yy":return s?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(w)}};return Ng($t.parseFormat(n),R)}formatDurationFromString(t,n){const i=this.opts.signMode==="negativeLargestOnly"?-1:1,s=h=>{switch(h[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},a=(h,x)=>R=>{const w=s(R);if(w){const C=x.isNegativeDuration&&w!==x.largestUnit?i:1;let y;return this.opts.signMode==="negativeLargestOnly"&&w!==x.largestUnit?y="never":this.opts.signMode==="all"?y="always":y="auto",this.num(h.get(w)*C,R.length,y)}else return R},u=$t.parseFormat(n),c=u.reduce((h,{literal:x,val:R})=>x?h:h.concat(R),[]),f=t.shiftTo(...c.map(s).filter(h=>h)),p={isNegativeDuration:f<0,largestUnit:Object.keys(f.values)[0]};return Ng(u,a(f,p))}}const w0=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ho(...e){const t=e.reduce((n,i)=>n+i.source,"");return RegExp(`^${t}$`)}function mo(...e){return t=>e.reduce(([n,i,s],a)=>{const[u,c,f]=a(t,s);return[{...n,...u},c||i,f]},[{},null,1]).slice(0,2)}function go(e,...t){if(e==null)return[null,null];for(const[n,i]of t){const s=n.exec(e);if(s)return i(s)}return[null,null]}function x0(...e){return(t,n)=>{const i={};let s;for(s=0;s<e.length;s++)i[e[s]]=kr(t[n+s]);return[i,null,n+s]}}const S0=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,nA=`(?:${S0.source}?(?:\\[(${w0.source})\\])?)?`,Hf=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,E0=RegExp(`${Hf.source}${nA}`),qf=RegExp(`(?:[Tt]${E0.source})?`),rA=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,iA=/(\d{4})-?W(\d\d)(?:-?(\d))?/,oA=/(\d{4})-?(\d{3})/,sA=x0("weekYear","weekNumber","weekDay"),aA=x0("year","ordinal"),uA=/(\d{4})-(\d\d)-(\d\d)/,O0=RegExp(`${Hf.source} ?(?:${S0.source}|(${w0.source}))?`),lA=RegExp(`(?: ${O0.source})?`);function ro(e,t,n){const i=e[t];return Ae(i)?n:kr(i)}function cA(e,t){return[{year:ro(e,t),month:ro(e,t+1,1),day:ro(e,t+2,1)},null,t+3]}function yo(e,t){return[{hours:ro(e,t,0),minutes:ro(e,t+1,0),seconds:ro(e,t+2,0),milliseconds:Uf(e[t+3])},null,t+4]}function _s(e,t){const n=!e[t]&&!e[t+1],i=Bu(e[t+1],e[t+2]),s=n?null:Ut.instance(i);return[{},s,t+3]}function Rs(e,t){const n=e[t]?br.create(e[t]):null;return[{},n,t+1]}const fA=RegExp(`^T?${Hf.source}$`),dA=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function pA(e){const[t,n,i,s,a,u,c,f,p]=e,h=t[0]==="-",x=f&&f[0]==="-",R=(w,C=!1)=>w!==void 0&&(C||w&&h)?-w:w;return[{years:R(oi(n)),months:R(oi(i)),weeks:R(oi(s)),days:R(oi(a)),hours:R(oi(u)),minutes:R(oi(c)),seconds:R(oi(f),f==="-0"),milliseconds:R(Uf(p),x)}]}const hA={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Vf(e,t,n,i,s,a,u){const c={year:t.length===2?of(kr(t)):kr(t),month:p0.indexOf(n)+1,day:kr(i),hour:kr(s),minute:kr(a)};return u&&(c.second=kr(u)),e&&(c.weekday=e.length>3?m0.indexOf(e)+1:g0.indexOf(e)+1),c}const mA=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function gA(e){const[,t,n,i,s,a,u,c,f,p,h,x]=e,R=Vf(t,s,i,n,a,u,c);let w;return f?w=hA[f]:p?w=0:w=Bu(h,x),[R,new Ut(w)]}function yA(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const vA=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,bA=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,wA=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ag(e){const[,t,n,i,s,a,u,c]=e;return[Vf(t,s,i,n,a,u,c),Ut.utcInstance]}function xA(e){const[,t,n,i,s,a,u,c]=e;return[Vf(t,c,n,i,s,a,u),Ut.utcInstance]}const SA=ho(rA,qf),EA=ho(iA,qf),OA=ho(oA,qf),TA=ho(E0),T0=mo(cA,yo,_s,Rs),CA=mo(sA,yo,_s,Rs),_A=mo(aA,yo,_s,Rs),RA=mo(yo,_s,Rs);function DA(e){return go(e,[SA,T0],[EA,CA],[OA,_A],[TA,RA])}function MA(e){return go(yA(e),[mA,gA])}function PA(e){return go(e,[vA,Ag],[bA,Ag],[wA,xA])}function IA(e){return go(e,[dA,pA])}const NA=mo(yo);function AA(e){return go(e,[fA,NA])}const kA=ho(uA,lA),$A=ho(O0),LA=mo(yo,_s,Rs);function zA(e){return go(e,[kA,T0],[$A,LA])}const kg="Invalid Duration",C0={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},FA={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...C0},xn=146097/400,Gi=146097/4800,WA={years:{quarters:4,months:12,weeks:xn/7,days:xn,hours:xn*24,minutes:xn*24*60,seconds:xn*24*60*60,milliseconds:xn*24*60*60*1e3},quarters:{months:3,weeks:xn/28,days:xn/4,hours:xn*24/4,minutes:xn*24*60/4,seconds:xn*24*60*60/4,milliseconds:xn*24*60*60*1e3/4},months:{weeks:Gi/7,days:Gi,hours:Gi*24,minutes:Gi*24*60,seconds:Gi*24*60*60,milliseconds:Gi*24*60*60*1e3},...C0},gi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],BA=gi.slice(0).reverse();function mr(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ge(i)}function _0(e,t){let n=t.milliseconds??0;for(const i of BA.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function $g(e,t){const n=_0(e,t)<0?-1:1;gi.reduceRight((i,s)=>{if(Ae(t[s]))return i;if(i){const a=t[i]*n,u=e[s][i],c=Math.floor(a/u);t[s]+=c*n,t[i]-=c*u*n}return s},null),gi.reduce((i,s)=>{if(Ae(t[s]))return i;if(i){const a=t[i]%1;t[i]-=a,t[s]+=a*e[i][s]}return s},null)}function Lg(e){const t={};for(const[n,i]of Object.entries(e))i!==0&&(t[n]=i);return t}class Ge{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let i=n?WA:FA;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||Qe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,n){return Ge.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new kt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ge({values:pu(t,Ge.normalizeUnit),loc:Qe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Wr(t))return Ge.fromMillis(t);if(Ge.isDuration(t))return t;if(typeof t=="object")return Ge.fromObject(t);throw new kt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[i]=IA(t);return i?Ge.fromObject(i,n):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[i]=AA(t);return i?Ge.fromObject(i,n):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the Duration is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new pN(i);return new Ge({invalid:i})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new kv(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?$t.create(this.loc,i).formatDurationFromString(this,t):kg}toHuman(t={}){if(!this.isValid)return kg;const n=t.showZeros!==!1,i=gi.map(s=>{const a=this.values[s];return Ae(a)||a===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:s.slice(0,-1)}).format(a)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=jf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ke.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?_0(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t),i={};for(const s of gi)(lo(n.values,s)||lo(this.values,s))&&(i[s]=n.get(s)+this.get(s));return mr(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=d0(t(this.values[i],i));return mr(this,{values:n},!0)}get(t){return this[Ge.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...pu(t,Ge.normalizeUnit)};return mr(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:i,matrix:s}={}){const u={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:s,conversionAccuracy:i};return mr(this,u)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return $g(this.matrix,t),mr(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Lg(this.normalize().shiftToAll().toObject());return mr(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(u=>Ge.normalizeUnit(u));const n={},i={},s=this.toObject();let a;for(const u of gi)if(t.indexOf(u)>=0){a=u;let c=0;for(const p in i)c+=this.matrix[p][u]*i[p],i[p]=0;Wr(s[u])&&(c+=s[u]);const f=Math.trunc(c);n[u]=f,i[u]=(c*1e3-f*1e3)/1e3}else Wr(s[u])&&(i[u]=s[u]);for(const u in i)i[u]!==0&&(n[a]+=u===a?i[u]:i[u]/this.matrix[a][u]);return $g(this.matrix,n),mr(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return mr(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=Lg(this.values);return mr(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of gi)if(!n(this.values[i],t.values[i]))return!1;return!0}}const Yi="Invalid Interval";function UA(e,t){return!e||!e.isValid?mt.invalid("missing or invalid start"):!t||!t.isValid?mt.invalid("missing or invalid end"):t<e?mt.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the Interval is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new dN(i);return new mt({invalid:i})}static fromDateTimes(t,n){const i=Xo(t),s=Xo(n),a=UA(i,s);return a??new mt({start:i,end:s})}static after(t,n){const i=Ge.fromDurationLike(n),s=Xo(t);return mt.fromDateTimes(s,s.plus(i))}static before(t,n){const i=Ge.fromDurationLike(n),s=Xo(t);return mt.fromDateTimes(s.minus(i),s)}static fromISO(t,n){const[i,s]=(t||"").split("/",2);if(i&&s){let a,u;try{a=ke.fromISO(i,n),u=a.isValid}catch{u=!1}let c,f;try{c=ke.fromISO(s,n),f=c.isValid}catch{f=!1}if(u&&f)return mt.fromDateTimes(a,c);if(u){const p=Ge.fromISO(s,n);if(p.isValid)return mt.after(a,p)}else if(f){const p=Ge.fromISO(i,n);if(p.isValid)return mt.before(c,p)}}return mt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(t,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(t,n),Math.floor(s.diff(i,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Xo).filter(u=>this.contains(u)).sort((u,c)=>u.toMillis()-c.toMillis()),i=[];let{s}=this,a=0;for(;s<this.e;){const u=n[a]||this.e,c=+u>+this.e?this.e:u;i.push(mt.fromDateTimes(s,c)),s=c,a+=1}return i}splitBy(t){const n=Ge.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,s=1,a;const u=[];for(;i<this.e;){const c=this.start.plus(n.mapUnits(f=>f*s));a=+c>+this.e?this.e:c,u.push(mt.fromDateTimes(i,a)),i=a,s+=1}return u}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return n>=i?null:mt.fromDateTimes(n,i)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return mt.fromDateTimes(n,i)}static merge(t){const[n,i]=t.sort((s,a)=>s.s-a.s).reduce(([s,a],u)=>a?a.overlaps(u)||a.abutsStart(u)?[s,a.union(u)]:[s.concat([a]),u]:[s,u],[[],null]);return i&&n.push(i),n}static xor(t){let n=null,i=0;const s=[],a=t.map(f=>[{time:f.s,type:"s"},{time:f.e,type:"e"}]),u=Array.prototype.concat(...a),c=u.sort((f,p)=>f.time-p.time);for(const f of c)i+=f.type==="s"?1:-1,i===1?n=f.time:(n&&+n!=+f.time&&s.push(mt.fromDateTimes(n,f.time)),n=null);return mt.merge(s)}difference(...t){return mt.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Yi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=cu,n={}){return this.isValid?$t.create(this.s.loc.clone(n),t).formatInterval(this):Yi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Yi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Yi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Yi}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Yi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ge.invalid(this.invalidReason)}mapEndpoints(t){return mt.fromDateTimes(t(this.s),t(this.e))}}class za{static hasDST(t=yt.defaultZone){const n=ke.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return br.isValidZone(t)}static normalizeZone(t){return zr(t,yt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Qe.create(n,i,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Qe.create(n,i,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Qe.create(n,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Qe.create(n,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Qe.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Qe.create(n,null,"gregory").eras(t)}static features(){return{relative:l0(),localeWeek:c0()}}}function zg(e,t){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(Ge.fromMillis(i).as("days"))}function jA(e,t,n){const i=[["years",(f,p)=>p.year-f.year],["quarters",(f,p)=>p.quarter-f.quarter+(p.year-f.year)*4],["months",(f,p)=>p.month-f.month+(p.year-f.year)*12],["weeks",(f,p)=>{const h=zg(f,p);return(h-h%7)/7}],["days",zg]],s={},a=e;let u,c;for(const[f,p]of i)n.indexOf(f)>=0&&(u=f,s[f]=p(e,t),c=a.plus(s),c>t?(s[f]--,e=a.plus(s),e>t&&(c=e,s[f]--,e=a.plus(s))):e=c);return[e,s,c,u]}function HA(e,t,n,i){let[s,a,u,c]=jA(e,t,n);const f=t-s,p=n.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);p.length===0&&(u<t&&(u=s.plus({[c]:1})),u!==s&&(a[c]=(a[c]||0)+f/(u-s)));const h=Ge.fromObject(a,i);return p.length>0?Ge.fromMillis(f,i).shiftTo(...p).plus(h):h}const qA="missing Intl.DateTimeFormat.formatToParts support";function Ze(e,t=n=>n){return{regex:e,deser:([n])=>t(kN(n))}}const VA=" ",R0=`[ ${VA}]`,D0=new RegExp(R0,"g");function GA(e){return e.replace(/\./g,"\\.?").replace(D0,R0)}function Fg(e){return e.replace(/\./g,"").replace(D0," ").toLowerCase()}function Ln(e,t){return e===null?null:{regex:RegExp(e.map(GA).join("|")),deser:([n])=>e.findIndex(i=>Fg(n)===Fg(i))+t}}function Wg(e,t){return{regex:e,deser:([,n,i])=>Bu(n,i),groups:t}}function Fa(e){return{regex:e,deser:([t])=>t}}function YA(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ZA(e,t){const n=$n(t),i=$n(t,"{2}"),s=$n(t,"{3}"),a=$n(t,"{4}"),u=$n(t,"{6}"),c=$n(t,"{1,2}"),f=$n(t,"{1,3}"),p=$n(t,"{1,6}"),h=$n(t,"{1,9}"),x=$n(t,"{2,4}"),R=$n(t,"{4,6}"),w=v=>({regex:RegExp(YA(v.val)),deser:([g])=>g,literal:!0}),y=(v=>{if(e.literal)return w(v);switch(v.val){case"G":return Ln(t.eras("short"),0);case"GG":return Ln(t.eras("long"),0);case"y":return Ze(p);case"yy":return Ze(x,of);case"yyyy":return Ze(a);case"yyyyy":return Ze(R);case"yyyyyy":return Ze(u);case"M":return Ze(c);case"MM":return Ze(i);case"MMM":return Ln(t.months("short",!0),1);case"MMMM":return Ln(t.months("long",!0),1);case"L":return Ze(c);case"LL":return Ze(i);case"LLL":return Ln(t.months("short",!1),1);case"LLLL":return Ln(t.months("long",!1),1);case"d":return Ze(c);case"dd":return Ze(i);case"o":return Ze(f);case"ooo":return Ze(s);case"HH":return Ze(i);case"H":return Ze(c);case"hh":return Ze(i);case"h":return Ze(c);case"mm":return Ze(i);case"m":return Ze(c);case"q":return Ze(c);case"qq":return Ze(i);case"s":return Ze(c);case"ss":return Ze(i);case"S":return Ze(f);case"SSS":return Ze(s);case"u":return Fa(h);case"uu":return Fa(c);case"uuu":return Ze(n);case"a":return Ln(t.meridiems(),0);case"kkkk":return Ze(a);case"kk":return Ze(x,of);case"W":return Ze(c);case"WW":return Ze(i);case"E":case"c":return Ze(n);case"EEE":return Ln(t.weekdays("short",!1),1);case"EEEE":return Ln(t.weekdays("long",!1),1);case"ccc":return Ln(t.weekdays("short",!0),1);case"cccc":return Ln(t.weekdays("long",!0),1);case"Z":case"ZZ":return Wg(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return Wg(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return Fa(/[a-z_+-/]{1,256}?/i);case" ":return Fa(/[^\S\n\r]/);default:return w(v)}})(e)||{invalidReason:qA};return y.token=e,y}const XA={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function JA(e,t,n){const{type:i,value:s}=e;if(i==="literal"){const f=/^\s+$/.test(s);return{literal:!f,val:f?" ":s}}const a=t[i];let u=i;i==="hour"&&(t.hour12!=null?u=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?u="hour12":u="hour24":u=n.hour12?"hour12":"hour24");let c=XA[u];if(typeof c=="object"&&(c=c[a]),c)return{literal:!1,val:c}}function KA(e){return[`^${e.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,e]}function QA(e,t,n){const i=e.match(t);if(i){const s={};let a=1;for(const u in n)if(lo(n,u)){const c=n[u],f=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(a,a+f))),a+=f}return[i,s]}else return[i,{}]}function ek(e){const t=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Ae(e.z)||(n=br.create(e.z)),Ae(e.Z)||(n||(n=new Ut(e.Z)),i=e.Z),Ae(e.q)||(e.M=(e.q-1)*3+1),Ae(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ae(e.u)||(e.S=Uf(e.u)),[Object.keys(e).reduce((a,u)=>{const c=t(u);return c&&(a[c]=e[u]),a},{}),n,i]}let Cc=null;function tk(){return Cc||(Cc=ke.fromMillis(1555555555555)),Cc}function nk(e,t){if(e.literal)return e;const n=$t.macroTokenToFormatOpts(e.val),i=N0(n,t);return i==null||i.includes(void 0)?e:i}function M0(e,t){return Array.prototype.concat(...e.map(n=>nk(n,t)))}class P0{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=M0($t.parseFormat(n),t),this.units=this.tokens.map(i=>ZA(i,t)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,s]=KA(this.units);this.regex=RegExp(i,"i"),this.handlers=s}}explainFromTokens(t){if(this.isValid){const[n,i]=QA(t,this.regex,this.handlers),[s,a,u]=i?ek(i):[null,null,void 0];if(lo(i,"a")&&lo(i,"H"))throw new Qi("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:s,zone:a,specificOffset:u}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function I0(e,t,n){return new P0(e,n).explainFromTokens(t)}function rk(e,t,n){const{result:i,zone:s,specificOffset:a,invalidReason:u}=I0(e,t,n);return[i,s,a,u]}function N0(e,t){if(!e)return null;const i=$t.create(t,e).dtFormatter(tk()),s=i.formatToParts(),a=i.resolvedOptions();return s.map(u=>JA(u,e,a))}const _c="Invalid DateTime",ik=864e13;function rs(e){return new zn("unsupported zone",`the zone "${e.name}" is not supported`)}function Rc(e){return e.weekData===null&&(e.weekData=fu(e.c)),e.weekData}function Dc(e){return e.localWeekData===null&&(e.localWeekData=fu(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function si(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ke({...n,...t,old:n})}function A0(e,t,n){let i=e-t*60*1e3;const s=n.offset(i);if(t===s)return[i,t];i-=(s-t)*60*1e3;const a=n.offset(i);return s===a?[i,s]:[e-Math.min(s,a)*60*1e3,Math.max(s,a)]}function Wa(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ha(e,t,n){return A0(Wu(e),t,n)}function Bg(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:i,month:s,day:Math.min(e.c.day,du(i,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},u=Ge.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=Wu(a);let[f,p]=A0(c,n,e.zone);return u!==0&&(f+=u,p=e.zone.offset(f)),{ts:f,o:p}}function Zi(e,t,n,i,s,a){const{setZone:u,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const f=t||c,p=ke.fromObject(e,{...n,zone:f,specificOffset:a});return u?p:p.setZone(c)}else return ke.invalid(new zn("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Ba(e,t,n=!0){return e.isValid?$t.create(Qe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Mc(e,t,n){const i=e.c.year>9999||e.c.year<0;let s="";if(i&&e.c.year>=0&&(s+="+"),s+=St(e.c.year,i?6:4),n==="year")return s;if(t){if(s+="-",s+=St(e.c.month),n==="month")return s;s+="-"}else if(s+=St(e.c.month),n==="month")return s;return s+=St(e.c.day),s}function Ug(e,t,n,i,s,a,u){let c=!n||e.c.millisecond!==0||e.c.second!==0,f="";switch(u){case"day":case"month":case"year":break;default:if(f+=St(e.c.hour),u==="hour")break;if(t){if(f+=":",f+=St(e.c.minute),u==="minute")break;c&&(f+=":",f+=St(e.c.second))}else{if(f+=St(e.c.minute),u==="minute")break;c&&(f+=St(e.c.second))}if(u==="second")break;c&&(!i||e.c.millisecond!==0)&&(f+=".",f+=St(e.c.millisecond,3))}return s&&(e.isOffsetFixed&&e.offset===0&&!a?f+="Z":e.o<0?(f+="-",f+=St(Math.trunc(-e.o/60)),f+=":",f+=St(Math.trunc(-e.o%60))):(f+="+",f+=St(Math.trunc(e.o/60)),f+=":",f+=St(Math.trunc(e.o%60)))),a&&(f+="["+e.zone.ianaName+"]"),f}const k0={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ok={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sk={ordinal:1,hour:0,minute:0,second:0,millisecond:0},qa=["year","month","day","hour","minute","second","millisecond"],ak=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],uk=["year","ordinal","hour","minute","second","millisecond"];function Va(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new kv(e);return t}function jg(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Va(e)}}function lk(e){if(is===void 0&&(is=yt.now()),e.type!=="iana")return e.offset(is);const t=e.name;let n=sf.get(t);return n===void 0&&(n=e.offset(is),sf.set(t,n)),n}function Hg(e,t){const n=zr(t.zone,yt.defaultZone);if(!n.isValid)return ke.invalid(rs(n));const i=Qe.fromObject(t);let s,a;if(Ae(e.year))s=yt.now();else{for(const f of qa)Ae(e[f])&&(e[f]=k0[f]);const u=a0(e)||u0(e);if(u)return ke.invalid(u);const c=lk(n);[s,a]=Ha(e,c,n)}return new ke({ts:s,zone:n,loc:i,o:a})}function qg(e,t,n){const i=Ae(n.round)?!0:n.round,s=Ae(n.rounding)?"trunc":n.rounding,a=(c,f)=>(c=jf(c,i||n.calendary?0:2,n.calendary?"round":s),t.loc.clone(n).relFormatter(n).format(c,f)),u=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return a(u(n.unit),n.unit);for(const c of n.units){const f=u(c);if(Math.abs(f)>=1)return a(f,c)}return a(e>t?-0:0,n.units[n.units.length-1])}function Vg(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let is;const sf=new Map;class ke{constructor(t){const n=t.zone||yt.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new zn("invalid input"):null)||(n.isValid?null:rs(n));this.ts=Ae(t.ts)?yt.now():t.ts;let s=null,a=null;if(!i)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[s,a]=[t.old.c,t.old.o];else{const c=Wr(t.o)&&!t.old?t.o:n.offset(this.ts);s=Wa(this.ts,c),i=Number.isNaN(s.year)?new zn("invalid input"):null,s=i?null:s,a=i?null:c}this._zone=n,this.loc=t.loc||Qe.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=a,this.isLuxonDateTime=!0}static now(){return new ke({})}static local(){const[t,n]=Vg(arguments),[i,s,a,u,c,f,p]=n;return Hg({year:i,month:s,day:a,hour:u,minute:c,second:f,millisecond:p},t)}static utc(){const[t,n]=Vg(arguments),[i,s,a,u,c,f,p]=n;return t.zone=Ut.utcInstance,Hg({year:i,month:s,day:a,hour:u,minute:c,second:f,millisecond:p},t)}static fromJSDate(t,n={}){const i=WN(t)?t.valueOf():NaN;if(Number.isNaN(i))return ke.invalid("invalid input");const s=zr(n.zone,yt.defaultZone);return s.isValid?new ke({ts:i,zone:s,loc:Qe.fromObject(n)}):ke.invalid(rs(s))}static fromMillis(t,n={}){if(Wr(t))return t<-864e13||t>ik?ke.invalid("Timestamp out of range"):new ke({ts:t,zone:zr(n.zone,yt.defaultZone),loc:Qe.fromObject(n)});throw new kt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Wr(t))return new ke({ts:t*1e3,zone:zr(n.zone,yt.defaultZone),loc:Qe.fromObject(n)});throw new kt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const i=zr(n.zone,yt.defaultZone);if(!i.isValid)return ke.invalid(rs(i));const s=Qe.fromObject(n),a=pu(t,jg),{minDaysInFirstWeek:u,startOfWeek:c}=Mg(a,s),f=yt.now(),p=Ae(n.specificOffset)?i.offset(f):n.specificOffset,h=!Ae(a.ordinal),x=!Ae(a.year),R=!Ae(a.month)||!Ae(a.day),w=x||R,C=a.weekYear||a.weekNumber;if((w||h)&&C)throw new Qi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(R&&h)throw new Qi("Can't mix ordinal dates with month/day");const y=C||a.weekday&&!w;let v,g,m=Wa(f,p);y?(v=ak,g=ok,m=fu(m,u,c)):h?(v=uk,g=sk,m=Tc(m)):(v=qa,g=k0);let S=!1;for(const J of v){const Z=a[J];Ae(Z)?S?a[J]=g[J]:a[J]=m[J]:S=!0}const E=y?LN(a,u,c):h?zN(a):a0(a),T=E||u0(a);if(T)return ke.invalid(T);const M=y?Rg(a,u,c):h?Dg(a):a,[D,A]=Ha(M,p,i),z=new ke({ts:D,zone:i,o:A,loc:s});return a.weekday&&w&&t.weekday!==z.weekday?ke.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${z.toISO()}`):z.isValid?z:ke.invalid(z.invalid)}static fromISO(t,n={}){const[i,s]=DA(t);return Zi(i,s,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[i,s]=MA(t);return Zi(i,s,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[i,s]=PA(t);return Zi(i,s,n,"HTTP",n)}static fromFormat(t,n,i={}){if(Ae(t)||Ae(n))throw new kt("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0}),[c,f,p,h]=rk(u,t,n);return h?ke.invalid(h):Zi(c,f,i,`format ${n}`,t,p)}static fromString(t,n,i={}){return ke.fromFormat(t,n,i)}static fromSQL(t,n={}){const[i,s]=zA(t);return Zi(i,s,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the DateTime is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new fN(i);return new ke({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const i=N0(t,Qe.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(t,n={}){return M0($t.parseFormat(t),Qe.fromObject(n)).map(s=>s.val).join("")}static resetCache(){is=void 0,sf.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Rc(this).weekYear:NaN}get weekNumber(){return this.isValid?Rc(this).weekNumber:NaN}get weekday(){return this.isValid?Rc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Dc(this).weekday:NaN}get localWeekNumber(){return this.isValid?Dc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Dc(this).weekYear:NaN}get ordinal(){return this.isValid?Tc(this.c).ordinal:NaN}get monthShort(){return this.isValid?za.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?za.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?za.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?za.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,i=Wu(this.c),s=this.zone.offset(i-t),a=this.zone.offset(i+t),u=this.zone.offset(i-s*n),c=this.zone.offset(i-a*n);if(u===c)return[this];const f=i-u*n,p=i-c*n,h=Wa(f,u),x=Wa(p,c);return h.hour===x.hour&&h.minute===x.minute&&h.second===x.second&&h.millisecond===x.millisecond?[si(this,{ts:f}),si(this,{ts:p})]:[this]}get isInLeapYear(){return Cs(this.year)}get daysInMonth(){return du(this.year,this.month)}get daysInYear(){return this.isValid?no(this.year):NaN}get weeksInWeekYear(){return this.isValid?gs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?gs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:i,calendar:s}=$t.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:s}}toUTC(t=0,n={}){return this.setZone(Ut.instance(t),n)}toLocal(){return this.setZone(yt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(t=zr(t,yt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let s=this.ts;if(n||i){const a=t.offset(this.ts),u=this.toObject();[s]=Ha(u,a,t)}return si(this,{ts:s,zone:t})}else return ke.invalid(rs(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:i}={}){const s=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:i});return si(this,{loc:s})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=pu(t,jg),{minDaysInFirstWeek:i,startOfWeek:s}=Mg(n,this.loc),a=!Ae(n.weekYear)||!Ae(n.weekNumber)||!Ae(n.weekday),u=!Ae(n.ordinal),c=!Ae(n.year),f=!Ae(n.month)||!Ae(n.day),p=c||f,h=n.weekYear||n.weekNumber;if((p||u)&&h)throw new Qi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Qi("Can't mix ordinal dates with month/day");let x;a?x=Rg({...fu(this.c,i,s),...n},i,s):Ae(n.ordinal)?(x={...this.toObject(),...n},Ae(n.day)&&(x.day=Math.min(du(x.year,x.month),x.day))):x=Dg({...Tc(this.c),...n});const[R,w]=Ha(x,this.o,this.zone);return si(this,{ts:R,o:w})}plus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t);return si(this,Bg(this,n))}minus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t).negate();return si(this,Bg(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},s=Ge.normalizeUnit(t);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(s==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:u}=this;u<a&&(i.weekNumber=this.weekNumber-1),i.weekday=a}else i.weekday=1;if(s==="quarters"){const a=Math.ceil(this.month/3);i.month=(a-1)*3+1}return this.set(i)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?$t.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):_c}toLocaleString(t=cu,n={}){return this.isValid?$t.create(this.loc.clone(n),t).formatDateTime(this):_c}toLocaleParts(t={}){return this.isValid?$t.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:a=!1,precision:u="milliseconds"}={}){if(!this.isValid)return null;u=Va(u);const c=t==="extended";let f=Mc(this,c,u);return qa.indexOf(u)>=3&&(f+="T"),f+=Ug(this,c,n,i,s,a,u),f}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Mc(this,t==="extended",Va(n)):null}toISOWeekDate(){return Ba(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:a=!1,format:u="extended",precision:c="milliseconds"}={}){return this.isValid?(c=Va(c),(s&&qa.indexOf(c)>=3?"T":"")+Ug(this,u==="extended",n,t,i,a,c)):null}toRFC2822(){return Ba(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ba(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Mc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(n||t)&&(i&&(s+=" "),n?s+="z":t&&(s+="ZZ")),Ba(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():_c}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",i={}){if(!this.isValid||!t.isValid)return Ge.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},a=BN(n).map(Ge.normalizeUnit),u=t.valueOf()>this.valueOf(),c=u?this:t,f=u?t:this,p=HA(c,f,a,s);return u?p.negate():p}diffNow(t="milliseconds",n={}){return this.diff(ke.now(),t,n)}until(t){return this.isValid?mt.fromDateTimes(this,t):this}hasSame(t,n,i){if(!this.isValid)return!1;const s=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,i)<=s&&s<=a.endOf(n,i)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||ke.fromObject({},{zone:this.zone}),i=t.padding?this<n?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(s=t.unit,a=void 0),qg(n,this.plus(i),{...t,numeric:"always",units:s,unit:a})}toRelativeCalendar(t={}){return this.isValid?qg(t.base||ke.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(ke.isDateTime))throw new kt("min requires all arguments be DateTimes");return Pg(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(ke.isDateTime))throw new kt("max requires all arguments be DateTimes");return Pg(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,i={}){const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0});return I0(u,t,n)}static fromStringExplain(t,n,i={}){return ke.fromFormatExplain(t,n,i)}static buildFormatParser(t,n={}){const{locale:i=null,numberingSystem:s=null}=n,a=Qe.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return new P0(a,t)}static fromFormatParser(t,n,i={}){if(Ae(t)||Ae(n))throw new kt("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0});if(!u.equals(n.locale))throw new kt(`fromFormatParser called with a locale of ${u}, but the format parser was created for ${n.locale}`);const{result:c,zone:f,specificOffset:p,invalidReason:h}=n.explainFromTokens(t);return h?ke.invalid(h):Zi(c,f,i,`format ${n.format}`,t,p)}static get DATE_SHORT(){return cu}static get DATE_MED(){return $v}static get DATE_MED_WITH_WEEKDAY(){return hN}static get DATE_FULL(){return Lv}static get DATE_HUGE(){return zv}static get TIME_SIMPLE(){return Fv}static get TIME_WITH_SECONDS(){return Wv}static get TIME_WITH_SHORT_OFFSET(){return Bv}static get TIME_WITH_LONG_OFFSET(){return Uv}static get TIME_24_SIMPLE(){return jv}static get TIME_24_WITH_SECONDS(){return Hv}static get TIME_24_WITH_SHORT_OFFSET(){return qv}static get TIME_24_WITH_LONG_OFFSET(){return Vv}static get DATETIME_SHORT(){return Gv}static get DATETIME_SHORT_WITH_SECONDS(){return Yv}static get DATETIME_MED(){return Zv}static get DATETIME_MED_WITH_SECONDS(){return Xv}static get DATETIME_MED_WITH_WEEKDAY(){return mN}static get DATETIME_FULL(){return Jv}static get DATETIME_FULL_WITH_SECONDS(){return Kv}static get DATETIME_HUGE(){return Qv}static get DATETIME_HUGE_WITH_SECONDS(){return e0}}function Xo(e){if(ke.isDateTime(e))return e;if(e&&e.valueOf&&Wr(e.valueOf()))return ke.fromJSDate(e);if(e&&typeof e=="object")return ke.fromObject(e);throw new kt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const ck=e=>e?ke.fromISO(e):null,fk=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),$0=()=>"",L0="color-scheme";function z0(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.substring(0,e.length+1)===e+"=")return decodeURIComponent(i.substring(e.length+1))}return null}function F0(e,t,n=365){if(typeof document>"u")return;const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),document.cookie=`${e}=${encodeURIComponent(t)};expires=${i.toUTCString()};path=/;SameSite=Lax`}function dk(){const e=z0(L0);return e==="light"||e==="dark"||e==="system"?e:"system"}function pk(e){F0(L0,e)}function hk(e){return e==="system"?typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}function mk(e){typeof document>"u"||(document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;SameSite=Lax`)}function gk(e,t,n){if(!t)return e;if(t.startsWith("http://")||t.startsWith("https://")){let u=t;return n&&Object.entries(n).forEach(([c,f])=>{u=u.replace(`:${c}`,encodeURIComponent(String(f)))}),u}let i=t;n&&Object.entries(n).forEach(([u,c])=>{const f=encodeURIComponent(String(c));i=i.replace(`:${u}`,f)});const s=e.endsWith("/")?e.slice(0,-1):e,a=i.startsWith("/")?i:`/${i}`;return`${s}${a}`}function Gf(e){switch(e){case"courses":return{get:"api/courses/",getById:"api/courses/:id",getByUrl:"api/courses/?encoded_url=:encodedUrl",post:"api/courses/",put:"api/courses/:id/",delete:"api/chat/courses/:id"};case"users":return{getCurrent:"api/users/current/",get:"api/users/",post:"api/users/",put:"api/users/:id/",delete:"api/users/:id/",logout:"/auth/lti_logout/"};case"calendar":return{get:"api/calendar/",getById:"api/calendar/:id",post:"api/calendar/",put:"api/calendar/:id/",delete:"api/calendar/:id/"};default:return{}}}function Yf(e,t){return t?{...e,...t}:e}let hu=null,mu=null;const yk=()=>hu,Zf=j.createContext(void 0),vk=({baseUrl:e="/",children:t})=>{const[n,i]=j.useState(new Map),s=j.useMemo(()=>{const c={endpoints:n,baseUrl:e};return hu=c,c},[n,e]),a=j.useCallback((c,f)=>{i(p=>{const h=Gf(c),x=Yf(h,f),R=new Map(p);return R.set(c,x),R})},[]),u=j.useRef(a);return u.current=a,mu=u.current,j.useEffect(()=>()=>{mu=null},[]),F.jsx(Zf.Provider,{value:s,children:t})},bk=(e,t)=>{if(mu)mu(e,t);else if(hu){const n=Gf(e),i=Yf(n,t);hu.endpoints.set(e,i)}else console.warn(`ApiConfig not initialized. Cannot register endpoints for '${e}'. Make sure ApiConfigProvider is rendered.`)},wk=e=>{const t=j.useContext(Zf);if(t===void 0)throw new Error("useServiceApiConfig must be used within an ApiConfigProvider");return t.endpoints.get(e)},xk=()=>{const e=j.useContext(Zf);if(e===void 0)throw new Error("useApiConfigContext must be used within an ApiConfigProvider");return e};exports.ApiConfigProvider=vk;exports.BREAKPOINT_INFO=Ji;exports.BreakpointIndicator=Pv;exports.CenteredHeading=OR;exports.CollapsingButtons=mD;exports.CompoundPanel=fD;exports.DialogOpener=ZI;exports.Dialogs=tN;exports.DraggableItem=VI;exports.EditModeToggler=NI;exports.EventBus=Ga;exports.ExtendedDialog=Nv;exports.FormDialog=XI;exports.GridItem=UP;exports.GridItemProvider=WP;exports.LoadingScreen=AR;exports.NavigationFilter=SR;exports.NavigationSectionBuilder=ER;exports.Notifications=uN;exports.Panel=Uy;exports.PanelProvider=ky;exports.ResponsiveGridLayout=OI;exports.Scroller=pi;exports.ScrollerProvider=My;exports.Section=jy;exports.SpeedDialButton=zP;exports.USER_PRESETS_KEY=Os;exports.UserBus=Ya;exports.apiPrefix=$0;exports.buildUrl=gk;exports.calculateNavigationFromSections=uf;exports.closeDialog=eN;exports.convertObjectKeysToCamelCase=Gc;exports.convertObjectKeysToUnderscore=Yc;exports.createGridItem=BP;exports.deleteCookie=mk;exports.deleteUserPreset=CI;exports.eventBus=mT;exports.filterNavigationByRole=CT;exports.getAllMicroservices=ey;exports.getAllRegisteredMicroservices=Jg;exports.getApiConfig=yk;exports.getApiPrefix=$0;exports.getColorSchemePreference=dk;exports.getCookie=z0;exports.getDefaultEndpoints=Gf;exports.getEffectiveColorScheme=hk;exports.getFromLS=Mv;exports.getMicroservice=DT;exports.getMicroserviceIds=MT;exports.getUserPresets=Lu;exports.isMicroserviceRegistered=PT;exports.mergeEndpoints=Yf;exports.openDialog=QI;exports.parseDate=ck;exports.registerApiEndpoints=bk;exports.registerDialog=JI;exports.registerMicroservice=_T;exports.registerRouteProvider=IT;exports.saveToLS=Hc;exports.saveUserPreset=TI;exports.setColorSchemePreference=pk;exports.setCookie=F0;exports.slugify=fk;exports.unregisterMicroservice=RT;exports.unregisterRouteProvider=NT;exports.updateMicroserviceNavigationForSections=Kg;exports.updateUserPreset=_I;exports.useApiConfigContext=xk;exports.useCurrentUser=Yg;exports.useGridItemContext=FP;exports.useGridLayout=Pf;exports.useGridLayoutManagement=DI;exports.useMicroserviceNavigation=kT;exports.useMicroserviceRegistryStore=lf;exports.useMicroserviceRoutes=AT;exports.useNavigationFilterStore=Br;exports.useNavigationSectionManager=$T;exports.useNavigationStore=gr;exports.useNotificationStore=zf;exports.usePanelContext=Bn;exports.usePanelStore=fo;exports.useRetry=YI;exports.useScrollContext=Py;exports.useServiceApiConfig=wk;exports.useSyncNavigationFilters=BT;exports.useUserActions=Zg;exports.useUserPreferences=gT;exports.userBus=Yt;
219
+ `,D.getElementsByTagName("head")[0].appendChild(A)),D.body&&C(D.body,"react-draggable-transparent-selection")}function E(D){if(D)try{if(D.body&&M(D.body,"react-draggable-transparent-selection"),D.selection)D.selection.empty();else{const A=(D.defaultView||window).getSelection();A&&A.type!=="Caret"&&A.removeAllRanges()}}catch{}}function C(D,A){D.classList?D.classList.add(A):D.className.match(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)")))||(D.className+=" ".concat(A))}function M(D,A){D.classList?D.classList.remove(A):D.className=D.className.replace(new RegExp("(?:^|\\s)".concat(A,"(?!\\S)"),"g"),"")}return wt}var Gn={},Hm;function bv(){if(Hm)return Gn;Hm=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.canDragX=s,Gn.canDragY=a,Gn.createCoreData=c,Gn.createDraggableData=f,Gn.getBoundPosition=n,Gn.getControlPosition=u,Gn.snapToGrid=i;var e=$u(),t=$f();function n(x,R,w){if(!x.props.bounds)return[R,w];let{bounds:O}=x.props;O=typeof O=="string"?O:p(O);const y=h(x);if(typeof O=="string"){const{ownerDocument:v}=y,g=v.defaultView;let m;if(O==="parent"?m=y.parentNode:m=v.querySelector(O),!(m instanceof g.HTMLElement))throw new Error('Bounds selector "'+O+'" could not find an element.');const S=m,E=g.getComputedStyle(y),C=g.getComputedStyle(S);O={left:-y.offsetLeft+(0,e.int)(C.paddingLeft)+(0,e.int)(E.marginLeft),top:-y.offsetTop+(0,e.int)(C.paddingTop)+(0,e.int)(E.marginTop),right:(0,t.innerWidth)(S)-(0,t.outerWidth)(y)-y.offsetLeft+(0,e.int)(C.paddingRight)-(0,e.int)(E.marginRight),bottom:(0,t.innerHeight)(S)-(0,t.outerHeight)(y)-y.offsetTop+(0,e.int)(C.paddingBottom)-(0,e.int)(E.marginBottom)}}return(0,e.isNum)(O.right)&&(R=Math.min(R,O.right)),(0,e.isNum)(O.bottom)&&(w=Math.min(w,O.bottom)),(0,e.isNum)(O.left)&&(R=Math.max(R,O.left)),(0,e.isNum)(O.top)&&(w=Math.max(w,O.top)),[R,w]}function i(x,R,w){const O=Math.round(R/x[0])*x[0],y=Math.round(w/x[1])*x[1];return[O,y]}function s(x){return x.props.axis==="both"||x.props.axis==="x"}function a(x){return x.props.axis==="both"||x.props.axis==="y"}function u(x,R,w){const O=typeof R=="number"?(0,t.getTouch)(x,R):null;if(typeof R=="number"&&!O)return null;const y=h(w),v=w.props.offsetParent||y.offsetParent||y.ownerDocument.body;return(0,t.offsetXYFromParent)(O||x,v,w.props.scale)}function c(x,R,w){const O=!(0,e.isNum)(x.lastX),y=h(x);return O?{node:y,deltaX:0,deltaY:0,lastX:R,lastY:w,x:R,y:w}:{node:y,deltaX:R-x.lastX,deltaY:w-x.lastY,lastX:x.lastX,lastY:x.lastY,x:R,y:w}}function f(x,R){const w=x.props.scale;return{node:R.node,x:x.state.x+R.deltaX/w,y:x.state.y+R.deltaY/w,deltaX:R.deltaX/w,deltaY:R.deltaY/w,lastX:x.state.x,lastY:x.state.y}}function p(x){return{left:x.left,top:x.top,right:x.right,bottom:x.bottom}}function h(x){const R=x.findDOMNode();if(!R)throw new Error("<DraggableCore>: Unmounted during event!");return R}return Gn}var Vo={},ka={},Vm;function wv(){if(Vm)return ka;Vm=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.default=e;function e(){}return ka}var qm;function ZP(){if(qm)return Vo;qm=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;var e=p(B),t=c(wr()),n=c(fi),i=$f(),s=bv(),a=$u(),u=c(wv());function c(v){return v&&v.__esModule?v:{default:v}}function f(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(f=function(S){return S?m:g})(v)}function p(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=f(g);if(m&&m.has(v))return m.get(v);var S={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in v)if(C!=="default"&&Object.prototype.hasOwnProperty.call(v,C)){var M=E?Object.getOwnPropertyDescriptor(v,C):null;M&&(M.get||M.set)?Object.defineProperty(S,C,M):S[C]=v[C]}return S.default=v,m&&m.set(v,S),S}function h(v,g,m){return g=x(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function x(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var S=m.call(v,g);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let O=w.mouse,y=class extends e.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:S}=m;if(this.props.disabled||!(g.target instanceof S.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(g.target,this.props.handle,m)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(g.target,this.props.cancel,m))return;g.type==="touchstart"&&g.preventDefault();const E=(0,i.getTouchIdentifier)(g);this.touchIdentifier=E;const C=(0,s.getControlPosition)(g,E,this);if(C==null)return;const{x:M,y:D}=C,A=(0,s.createCoreData)(this,M,D);(0,u.default)("DraggableCore: handleDragStart: %j",A),(0,u.default)("calling",this.props.onStart),!(this.props.onStart(g,A)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(S),this.dragging=!0,this.lastX=M,this.lastY=D,(0,i.addEvent)(S,O.move,this.handleDrag),(0,i.addEvent)(S,O.stop,this.handleDragStop))}),h(this,"handleDrag",g=>{const m=(0,s.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:S,y:E}=m;if(Array.isArray(this.props.grid)){let D=S-this.lastX,A=E-this.lastY;if([D,A]=(0,s.snapToGrid)(this.props.grid,D,A),!D&&!A)return;S=this.lastX+D,E=this.lastY+A}const C=(0,s.createCoreData)(this,S,E);if((0,u.default)("DraggableCore: handleDrag: %j",C),this.props.onDrag(g,C)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(A)}return}this.lastX=S,this.lastY=E}),h(this,"handleDragStop",g=>{if(!this.dragging)return;const m=(0,s.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x:S,y:E}=m;if(Array.isArray(this.props.grid)){let A=S-this.lastX||0,z=E-this.lastY||0;[A,z]=(0,s.snapToGrid)(this.props.grid,A,z),S=this.lastX+A,E=this.lastY+z}const C=(0,s.createCoreData)(this,S,E);if(this.props.onStop(g,C)===!1||this.mounted===!1)return!1;const D=this.findDOMNode();D&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(D.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",C),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,D&&((0,u.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(D.ownerDocument,O.move,this.handleDrag),(0,i.removeEvent)(D.ownerDocument,O.stop,this.handleDragStop))}),h(this,"onMouseDown",g=>(O=w.mouse,this.handleDragStart(g))),h(this,"onMouseUp",g=>(O=w.mouse,this.handleDragStop(g))),h(this,"onTouchStart",g=>(O=w.touch,this.handleDragStart(g))),h(this,"onTouchEnd",g=>(O=w.touch,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,i.addEvent)(g,w.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:m}=g;(0,i.removeEvent)(m,w.mouse.move,this.handleDrag),(0,i.removeEvent)(m,w.touch.move,this.handleDrag),(0,i.removeEvent)(m,w.mouse.stop,this.handleDragStop),(0,i.removeEvent)(m,w.touch.stop,this.handleDragStop),(0,i.removeEvent)(g,w.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(m)}}findDOMNode(){var g,m;return(g=this.props)!==null&&g!==void 0&&g.nodeRef?(m=this.props)===null||m===void 0||(m=m.nodeRef)===null||m===void 0?void 0:m.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Vo.default=y,h(y,"displayName","DraggableCore"),h(y,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(v,g){if(v[g]&&v[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(y,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Vo}var Gm;function XP(){return Gm||(Gm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),e.default=void 0;var t=R(B),n=h(wr()),i=h(fi),s=h(GP),a=$f(),u=bv(),c=$u(),f=h(ZP()),p=h(wv());function h(m){return m&&m.__esModule?m:{default:m}}function x(m){if(typeof WeakMap!="function")return null;var S=new WeakMap,E=new WeakMap;return(x=function(C){return C?E:S})(m)}function R(m,S){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var E=x(S);if(E&&E.has(m))return E.get(m);var C={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in m)if(D!=="default"&&Object.prototype.hasOwnProperty.call(m,D)){var A=M?Object.getOwnPropertyDescriptor(m,D):null;A&&(A.get||A.set)?Object.defineProperty(C,D,A):C[D]=m[D]}return C.default=m,E&&E.set(m,C),C}function w(){return w=Object.assign?Object.assign.bind():function(m){for(var S=1;S<arguments.length;S++){var E=arguments[S];for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(m[C]=E[C])}return m},w.apply(this,arguments)}function O(m,S,E){return S=y(S),S in m?Object.defineProperty(m,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[S]=E,m}function y(m){var S=v(m,"string");return typeof S=="symbol"?S:String(S)}function v(m,S){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var C=E.call(m,S);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(m)}class g extends t.Component{static getDerivedStateFromProps(S,E){let{position:C}=S,{prevPropsPosition:M}=E;return C&&(!M||C.x!==M.x||C.y!==M.y)?((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:C,prevPropsPosition:M}),{x:C.x,y:C.y,prevPropsPosition:{...C}}):null}constructor(S){super(S),O(this,"onDragStart",(E,C)=>{if((0,p.default)("Draggable: onDragStart: %j",C),this.props.onStart(E,(0,u.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(E,C)=>{if(!this.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",C);const M=(0,u.createDraggableData)(this,C),D={x:M.x,y:M.y,slackX:0,slackY:0};if(this.props.bounds){const{x:z,y:J}=D;D.x+=this.state.slackX,D.y+=this.state.slackY;const[Z,_]=(0,u.getBoundPosition)(this,D.x,D.y);D.x=Z,D.y=_,D.slackX=this.state.slackX+(z-D.x),D.slackY=this.state.slackY+(J-D.y),M.x=D.x,M.y=D.y,M.deltaX=D.x-this.state.x,M.deltaY=D.y-this.state.y}if(this.props.onDrag(E,M)===!1)return!1;this.setState(D)}),O(this,"onDragStop",(E,C)=>{if(!this.state.dragging||this.props.onStop(E,(0,u.createDraggableData)(this,C))===!1)return!1;(0,p.default)("Draggable: onDragStop: %j",C);const D={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:z,y:J}=this.props.position;D.x=z,D.y=J}this.setState(D)}),this.state={dragging:!1,dragged:!1,x:S.position?S.position.x:S.defaultPosition.x,y:S.position?S.position.y:S.defaultPosition.y,prevPropsPosition:{...S.position},slackX:0,slackY:0,isElementSVG:!1},S.position&&!(S.onDrag||S.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var S,E;return(S=(E=this.props)===null||E===void 0||(E=E.nodeRef)===null||E===void 0?void 0:E.current)!==null&&S!==void 0?S:i.default.findDOMNode(this)}render(){const{axis:S,bounds:E,children:C,defaultPosition:M,defaultClassName:D,defaultClassNameDragging:A,defaultClassNameDragged:z,position:J,positionOffset:Z,scale:_,...H}=this.props;let U={},K=null;const X=!!!J||this.state.dragging,fe=J||M,ae={x:(0,u.canDragX)(this)&&X?this.state.x:fe.x,y:(0,u.canDragY)(this)&&X?this.state.y:fe.y};this.state.isElementSVG?K=(0,a.createSVGTransform)(ae,Z):U=(0,a.createCSSTransform)(ae,Z);const Y=(0,s.default)(C.props.className||"",D,{[A]:this.state.dragging,[z]:this.state.dragged});return t.createElement(f.default,w({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(C),{className:Y,style:{...C.props.style,...U},transform:K}))}}e.default=g,O(g,"displayName","Draggable"),O(g,"propTypes",{...f.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),O(g,"defaultProps",{...f.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(xc)),xc}var Ym;function Lf(){if(Ym)return Ho.exports;Ym=1;const{default:e,DraggableCore:t}=XP();return Ho.exports=e,Ho.exports.default=e,Ho.exports.DraggableCore=t,Ho.exports}var qo={exports:{}},Go={},$a={},Zm;function JP(){if(Zm)return $a;Zm=1,$a.__esModule=!0,$a.cloneElement=c;var e=t(B);function t(f){return f&&f.__esModule?f:{default:f}}function n(f,p){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(f);p&&(x=x.filter(function(R){return Object.getOwnPropertyDescriptor(f,R).enumerable})),h.push.apply(h,x)}return h}function i(f){for(var p=1;p<arguments.length;p++){var h=arguments[p]!=null?arguments[p]:{};p%2?n(Object(h),!0).forEach(function(x){s(f,x,h[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):n(Object(h)).forEach(function(x){Object.defineProperty(f,x,Object.getOwnPropertyDescriptor(h,x))})}return f}function s(f,p,h){return p=a(p),p in f?Object.defineProperty(f,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[p]=h,f}function a(f){var p=u(f,"string");return typeof p=="symbol"?p:String(p)}function u(f,p){if(typeof f!="object"||f===null)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var x=h.call(f,p);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(f)}function c(f,p){return p.style&&f.props.style&&(p.style=i(i({},f.props.style),p.style)),p.className&&f.props.className&&(p.className=f.props.className+" "+p.className),e.default.cloneElement(f,p)}return $a}var Yo={},Xm;function xv(){if(Xm)return Yo;Xm=1,Yo.__esModule=!0,Yo.resizableProps=void 0;var e=t(wr());Lf();function t(i){return i&&i.__esModule?i:{default:i}}var n={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];var c=a[0];if(c.axis==="both"||c.axis==="y"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];var c=a[0];if(c.axis==="both"||c.axis==="x"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)}};return Yo.resizableProps=n,Yo}var Jm;function Sv(){if(Jm)return Go;Jm=1,Go.__esModule=!0,Go.default=void 0;var e=u(B),t=Lf(),n=JP(),i=xv(),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,S=new WeakMap;return(a=function(C){return C?S:m})(g)}function u(g,m){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var S=a(m);if(S&&S.has(g))return S.get(g);var E={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in g)if(M!=="default"&&Object.prototype.hasOwnProperty.call(g,M)){var D=C?Object.getOwnPropertyDescriptor(g,M):null;D&&(D.get||D.set)?Object.defineProperty(E,M,D):E[M]=g[M]}return E.default=g,S&&S.set(g,E),E}function c(){return c=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var S=arguments[m];for(var E in S)Object.prototype.hasOwnProperty.call(S,E)&&(g[E]=S[E])}return g},c.apply(this,arguments)}function f(g,m){if(g==null)return{};var S={},E=Object.keys(g),C,M;for(M=0;M<E.length;M++)C=E[M],!(m.indexOf(C)>=0)&&(S[C]=g[C]);return S}function p(g,m){var S=Object.keys(g);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);m&&(E=E.filter(function(C){return Object.getOwnPropertyDescriptor(g,C).enumerable})),S.push.apply(S,E)}return S}function h(g){for(var m=1;m<arguments.length;m++){var S=arguments[m]!=null?arguments[m]:{};m%2?p(Object(S),!0).forEach(function(E){x(g,E,S[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(S)):p(Object(S)).forEach(function(E){Object.defineProperty(g,E,Object.getOwnPropertyDescriptor(S,E))})}return g}function x(g,m,S){return m=R(m),m in g?Object.defineProperty(g,m,{value:S,enumerable:!0,configurable:!0,writable:!0}):g[m]=S,g}function R(g){var m=w(g,"string");return typeof m=="symbol"?m:String(m)}function w(g,m){if(typeof g!="object"||g===null)return g;var S=g[Symbol.toPrimitive];if(S!==void 0){var E=S.call(g,m);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}function O(g,m){g.prototype=Object.create(m.prototype),g.prototype.constructor=g,y(g,m)}function y(g,m){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,C){return E.__proto__=C,E},y(g,m)}var v=function(g){O(m,g);function m(){for(var E,C=arguments.length,M=new Array(C),D=0;D<C;D++)M[D]=arguments[D];return E=g.call.apply(g,[this].concat(M))||this,E.handleRefs={},E.lastHandleRect=null,E.slack=null,E}var S=m.prototype;return S.componentWillUnmount=function(){this.resetData()},S.resetData=function(){this.lastHandleRect=this.slack=null},S.runConstraints=function(C,M){var D=this.props,A=D.minConstraints,z=D.maxConstraints,J=D.lockAspectRatio;if(!A&&!z&&!J)return[C,M];if(J){var Z=this.props.width/this.props.height,_=C-this.props.width,H=M-this.props.height;Math.abs(_)>Math.abs(H*Z)?M=C/Z:C=M*Z}var U=C,K=M,V=this.slack||[0,0],X=V[0],fe=V[1];return C+=X,M+=fe,A&&(C=Math.max(A[0],C),M=Math.max(A[1],M)),z&&(C=Math.min(z[0],C),M=Math.min(z[1],M)),this.slack=[X+(U-C),fe+(K-M)],[C,M]},S.resizeHandler=function(C,M){var D=this;return function(A,z){var J=z.node,Z=z.deltaX,_=z.deltaY;C==="onResizeStart"&&D.resetData();var H=(D.props.axis==="both"||D.props.axis==="x")&&M!=="n"&&M!=="s",U=(D.props.axis==="both"||D.props.axis==="y")&&M!=="e"&&M!=="w";if(!(!H&&!U)){var K=M[0],V=M[M.length-1],X=J.getBoundingClientRect();if(D.lastHandleRect!=null){if(V==="w"){var fe=X.left-D.lastHandleRect.left;Z+=fe}if(K==="n"){var ae=X.top-D.lastHandleRect.top;_+=ae}}D.lastHandleRect=X,V==="w"&&(Z=-Z),K==="n"&&(_=-_);var Y=D.props.width+(H?Z/D.props.transformScale:0),$=D.props.height+(U?_/D.props.transformScale:0),ue=D.runConstraints(Y,$);Y=ue[0],$=ue[1];var ye=Y!==D.props.width||$!==D.props.height,pe=typeof D.props[C]=="function"?D.props[C]:null,Oe=C==="onResize"&&!ye;pe&&!Oe&&(A.persist==null||A.persist(),pe(A,{node:J,size:{width:Y,height:$},handle:M})),C==="onResizeStop"&&D.resetData()}}},S.renderResizeHandle=function(C,M){var D=this.props.handle;if(!D)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+C,ref:M});if(typeof D=="function")return D(C,M);var A=typeof D.type=="string",z=h({ref:M},A?{}:{handleAxis:C});return e.cloneElement(D,z)},S.render=function(){var C=this,M=this.props,D=M.children,A=M.className,z=M.draggableOpts;M.width,M.height,M.handle,M.handleSize,M.lockAspectRatio,M.axis,M.minConstraints,M.maxConstraints,M.onResize,M.onResizeStop,M.onResizeStart;var J=M.resizeHandles;M.transformScale;var Z=f(M,s);return(0,n.cloneElement)(D,h(h({},Z),{},{className:(A?A+" ":"")+"react-resizable",children:[].concat(D.props.children,J.map(function(_){var H,U=(H=C.handleRefs[_])!=null?H:C.handleRefs[_]=e.createRef();return e.createElement(t.DraggableCore,c({},z,{nodeRef:U,key:"resizableHandle-"+_,onStop:C.resizeHandler("onResizeStop",_),onStart:C.resizeHandler("onResizeStart",_),onDrag:C.resizeHandler("onResize",_)}),C.renderResizeHandle(_,U))}))}))},m}(e.Component);return Go.default=v,v.propTypes=i.resizableProps,v.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Go}var Zo={},Km;function KP(){if(Km)return Zo;Km=1,Zo.__esModule=!0,Zo.default=void 0;var e=c(B),t=a(wr()),n=a(Sv()),i=xv(),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(m){return m&&m.__esModule?m:{default:m}}function u(m){if(typeof WeakMap!="function")return null;var S=new WeakMap,E=new WeakMap;return(u=function(M){return M?E:S})(m)}function c(m,S){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var E=u(S);if(E&&E.has(m))return E.get(m);var C={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in m)if(D!=="default"&&Object.prototype.hasOwnProperty.call(m,D)){var A=M?Object.getOwnPropertyDescriptor(m,D):null;A&&(A.get||A.set)?Object.defineProperty(C,D,A):C[D]=m[D]}return C.default=m,E&&E.set(m,C),C}function f(){return f=Object.assign?Object.assign.bind():function(m){for(var S=1;S<arguments.length;S++){var E=arguments[S];for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(m[C]=E[C])}return m},f.apply(this,arguments)}function p(m,S){var E=Object.keys(m);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(m);S&&(C=C.filter(function(M){return Object.getOwnPropertyDescriptor(m,M).enumerable})),E.push.apply(E,C)}return E}function h(m){for(var S=1;S<arguments.length;S++){var E=arguments[S]!=null?arguments[S]:{};S%2?p(Object(E),!0).forEach(function(C){x(m,C,E[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(E)):p(Object(E)).forEach(function(C){Object.defineProperty(m,C,Object.getOwnPropertyDescriptor(E,C))})}return m}function x(m,S,E){return S=R(S),S in m?Object.defineProperty(m,S,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[S]=E,m}function R(m){var S=w(m,"string");return typeof S=="symbol"?S:String(S)}function w(m,S){if(typeof m!="object"||m===null)return m;var E=m[Symbol.toPrimitive];if(E!==void 0){var C=E.call(m,S);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(m)}function O(m,S){if(m==null)return{};var E={},C=Object.keys(m),M,D;for(D=0;D<C.length;D++)M=C[D],!(S.indexOf(M)>=0)&&(E[M]=m[M]);return E}function y(m,S){m.prototype=Object.create(S.prototype),m.prototype.constructor=m,v(m,S)}function v(m,S){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,M){return C.__proto__=M,C},v(m,S)}var g=function(m){y(S,m);function S(){for(var C,M=arguments.length,D=new Array(M),A=0;A<M;A++)D[A]=arguments[A];return C=m.call.apply(m,[this].concat(D))||this,C.state={width:C.props.width,height:C.props.height,propsWidth:C.props.width,propsHeight:C.props.height},C.onResize=function(z,J){var Z=J.size;C.props.onResize?(z.persist==null||z.persist(),C.setState(Z,function(){return C.props.onResize&&C.props.onResize(z,J)})):C.setState(Z)},C}S.getDerivedStateFromProps=function(M,D){return D.propsWidth!==M.width||D.propsHeight!==M.height?{width:M.width,height:M.height,propsWidth:M.width,propsHeight:M.height}:null};var E=S.prototype;return E.render=function(){var M=this.props,D=M.handle,A=M.handleSize;M.onResize;var z=M.onResizeStart,J=M.onResizeStop,Z=M.draggableOpts,_=M.minConstraints,H=M.maxConstraints,U=M.lockAspectRatio,K=M.axis;M.width,M.height;var V=M.resizeHandles,X=M.style,fe=M.transformScale,ae=O(M,s);return e.createElement(n.default,{axis:K,draggableOpts:Z,handle:D,handleSize:A,height:this.state.height,lockAspectRatio:U,maxConstraints:H,minConstraints:_,onResizeStart:z,onResize:this.onResize,onResizeStop:J,resizeHandles:V,transformScale:fe,width:this.state.width},e.createElement("div",f({},ae,{style:h(h({},X),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},S}(e.Component);return Zo.default=g,g.propTypes=h(h({},i.resizableProps),{},{children:t.default.element}),Zo}var Qm;function QP(){return Qm||(Qm=1,qo.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},qo.exports.Resizable=Sv().default,qo.exports.ResizableBox=KP().default),qo.exports}var mr={},eg;function Ev(){if(eg)return mr;eg=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.resizeHandleType=mr.resizeHandleAxesType=mr.default=void 0;var e=n(wr()),t=n(B);function n(a){return a&&a.__esModule?a:{default:a}}const i=mr.resizeHandleAxesType=e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),s=mr.resizeHandleType=e.default.oneOfType([e.default.node,e.default.func]);return mr.default={className:e.default.string,style:e.default.object,width:e.default.number,autoSize:e.default.bool,cols:e.default.number,draggableCancel:e.default.string,draggableHandle:e.default.string,verticalCompact:function(a){a.verticalCompact===!1&&process.env.NODE_ENV!=="production"&&console.warn('`verticalCompact` on <ReactGridLayout> is deprecated and will be removed soon. Use `compactType`: "horizontal" | "vertical" | null.')},compactType:e.default.oneOf(["vertical","horizontal"]),layout:function(a){var u=a.layout;u!==void 0&&ho().validateLayout(u,"layout")},margin:e.default.arrayOf(e.default.number),containerPadding:e.default.arrayOf(e.default.number),rowHeight:e.default.number,maxRows:e.default.number,isBounded:e.default.bool,isDraggable:e.default.bool,isResizable:e.default.bool,allowOverlap:e.default.bool,preventCollision:e.default.bool,useCSSTransforms:e.default.bool,transformScale:e.default.number,isDroppable:e.default.bool,resizeHandles:i,resizeHandle:s,onLayoutChange:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onDragStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,onResizeStop:e.default.func,onDrop:e.default.func,droppingItem:e.default.shape({i:e.default.string.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired}),children:function(a,u){const c=a[u],f={};t.default.Children.forEach(c,function(p){if((p==null?void 0:p.key)!=null){if(f[p.key])throw new Error('Duplicate child key "'+p.key+'" found! This will cause problems in ReactGridLayout.');f[p.key]=!0}})},innerRef:e.default.any},mr}var tg;function eI(){if(tg)return jo;tg=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;var e=f(B),t=f(wr()),n=Lf(),i=QP(),s=ho(),a=kf(),u=Ev(),c=f(Af());function f(w){return w&&w.__esModule?w:{default:w}}function p(w,O,y){return O=h(O),O in w?Object.defineProperty(w,O,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[O]=y,w}function h(w){var O=x(w,"string");return typeof O=="symbol"?O:String(O)}function x(w,O){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var v=y.call(w,O);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(w)}let R=class extends e.default.Component{constructor(){super(...arguments),p(this,"state",{resizing:null,dragging:null,className:""}),p(this,"elementRef",e.default.createRef()),p(this,"onDragStart",(O,y)=>{let{node:v}=y;const{onDragStart:g,transformScale:m}=this.props;if(!g)return;const S={top:0,left:0},{offsetParent:E}=v;if(!E)return;const C=E.getBoundingClientRect(),M=v.getBoundingClientRect(),D=M.left/m,A=C.left/m,z=M.top/m,J=C.top/m;S.left=D-A+E.scrollLeft,S.top=z-J+E.scrollTop,this.setState({dragging:S});const{x:Z,y:_}=(0,a.calcXY)(this.getPositionParams(),S.top,S.left,this.props.w,this.props.h);return g.call(this,this.props.i,Z,_,{e:O,node:v,newPosition:S})}),p(this,"onDrag",(O,y)=>{let{node:v,deltaX:g,deltaY:m}=y;const{onDrag:S}=this.props;if(!S)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let E=this.state.dragging.top+m,C=this.state.dragging.left+g;const{isBounded:M,i:D,w:A,h:z,containerWidth:J}=this.props,Z=this.getPositionParams();if(M){const{offsetParent:K}=v;if(K){const{margin:V,rowHeight:X,containerPadding:fe}=this.props,ae=K.clientHeight-(0,a.calcGridItemWHPx)(z,X,V[1]);E=(0,a.clamp)(E-fe[1],0,ae);const Y=(0,a.calcGridColWidth)(Z),$=J-(0,a.calcGridItemWHPx)(A,Y,V[0]);C=(0,a.clamp)(C-fe[0],0,$)}}const _={top:E,left:C};this.setState({dragging:_});const{x:H,y:U}=(0,a.calcXY)(Z,E,C,A,z);return S.call(this,D,H,U,{e:O,node:v,newPosition:_})}),p(this,"onDragStop",(O,y)=>{let{node:v}=y;const{onDragStop:g}=this.props;if(!g)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:m,h:S,i:E}=this.props,{left:C,top:M}=this.state.dragging,D={top:M,left:C};this.setState({dragging:null});const{x:A,y:z}=(0,a.calcXY)(this.getPositionParams(),M,C,m,S);return g.call(this,E,A,z,{e:O,node:v,newPosition:D})}),p(this,"onResizeStop",(O,y,v)=>this.onResizeHandler(O,y,v,"onResizeStop")),p(this,"onResizeStart",(O,y,v)=>this.onResizeHandler(O,y,v,"onResizeStart")),p(this,"onResize",(O,y,v)=>this.onResizeHandler(O,y,v,"onResize"))}shouldComponentUpdate(O,y){if(this.props.children!==O.children||this.props.droppingPosition!==O.droppingPosition)return!0;const v=(0,a.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),g=(0,a.calcGridItemPosition)(this.getPositionParams(O),O.x,O.y,O.w,O.h,y);return!(0,s.fastPositionEqual)(v,g)||this.props.useCSSTransforms!==O.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(O){this.moveDroppingItem(O)}moveDroppingItem(O){const{droppingPosition:y}=this.props;if(!y)return;const v=this.elementRef.current;if(!v)return;const g=O.droppingPosition||{left:0,top:0},{dragging:m}=this.state,S=m&&y.left!==g.left||y.top!==g.top;if(!m)this.onDragStart(y.e,{node:v,deltaX:y.left,deltaY:y.top});else if(S){const E=y.left-m.left,C=y.top-m.top;this.onDrag(y.e,{node:v,deltaX:E,deltaY:C})}}getPositionParams(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:O.cols,containerPadding:O.containerPadding,containerWidth:O.containerWidth,margin:O.margin,maxRows:O.maxRows,rowHeight:O.rowHeight}}createStyle(O){const{usePercentages:y,containerWidth:v,useCSSTransforms:g}=this.props;let m;return g?m=(0,s.setTransform)(O):(m=(0,s.setTopLeft)(O),y&&(m.left=(0,s.perc)(O.left/v),m.width=(0,s.perc)(O.width/v))),m}mixinDraggable(O,y){return e.default.createElement(n.DraggableCore,{disabled:!y,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},O)}curryResizeHandler(O,y){return(v,g)=>y(v,g,O)}mixinResizable(O,y,v){const{cols:g,minW:m,minH:S,maxW:E,maxH:C,transformScale:M,resizeHandles:D,resizeHandle:A}=this.props,z=this.getPositionParams(),J=(0,a.calcGridItemPosition)(z,0,0,g,0).width,Z=(0,a.calcGridItemPosition)(z,0,0,m,S),_=(0,a.calcGridItemPosition)(z,0,0,E,C),H=[Z.width,Z.height],U=[Math.min(_.width,J),Math.min(_.height,1/0)];return e.default.createElement(i.Resizable,{draggableOpts:{disabled:!v},className:v?void 0:"react-resizable-hide",width:y.width,height:y.height,minConstraints:H,maxConstraints:U,onResizeStop:this.curryResizeHandler(y,this.onResizeStop),onResizeStart:this.curryResizeHandler(y,this.onResizeStart),onResize:this.curryResizeHandler(y,this.onResize),transformScale:M,resizeHandles:D,handle:A},O)}onResizeHandler(O,y,v,g){let{node:m,size:S,handle:E}=y;const C=this.props[g];if(!C)return;const{x:M,y:D,i:A,maxH:z,minH:J,containerWidth:Z}=this.props,{minW:_,maxW:H}=this.props;let U=S;m&&(U=(0,s.resizeItemInDirection)(E,v,S,Z),this.setState({resizing:g==="onResizeStop"?null:U}));let{w:K,h:V}=(0,a.calcWH)(this.getPositionParams(),U.width,U.height,M,D,E);K=(0,a.clamp)(K,Math.max(_,1),H),V=(0,a.clamp)(V,J,z),C.call(this,A,K,V,{e:O,node:m,size:U,handle:E})}render(){const{x:O,y,w:v,h:g,isDraggable:m,isResizable:S,droppingPosition:E,useCSSTransforms:C}=this.props,M=(0,a.calcGridItemPosition)(this.getPositionParams(),O,y,v,g,this.state),D=e.default.Children.only(this.props.children);let A=e.default.cloneElement(D,{ref:this.elementRef,className:(0,c.default)("react-grid-item",D.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":m,"react-draggable-dragging":!!this.state.dragging,dropping:!!E,cssTransforms:C}),style:{...this.props.style,...D.props.style,...this.createStyle(M)}});return A=this.mixinResizable(A,M,S),A=this.mixinDraggable(A,m),A}};return jo.default=R,p(R,"propTypes",{children:t.default.element,cols:t.default.number.isRequired,containerWidth:t.default.number.isRequired,rowHeight:t.default.number.isRequired,margin:t.default.array.isRequired,maxRows:t.default.number.isRequired,containerPadding:t.default.array.isRequired,x:t.default.number.isRequired,y:t.default.number.isRequired,w:t.default.number.isRequired,h:t.default.number.isRequired,minW:function(w,O){const y=w[O];if(typeof y!="number")return new Error("minWidth not Number");if(y>w.w||y>w.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(w,O){const y=w[O];if(typeof y!="number")return new Error("maxWidth not Number");if(y<w.w||y<w.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(w,O){const y=w[O];if(typeof y!="number")return new Error("minHeight not Number");if(y>w.h||y>w.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(w,O){const y=w[O];if(typeof y!="number")return new Error("maxHeight not Number");if(y<w.h||y<w.minH)return new Error("maxHeight smaller than item height/minHeight")},i:t.default.string.isRequired,resizeHandles:u.resizeHandleAxesType,resizeHandle:u.resizeHandleType,onDragStop:t.default.func,onDragStart:t.default.func,onDrag:t.default.func,onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,isDraggable:t.default.bool.isRequired,isResizable:t.default.bool.isRequired,isBounded:t.default.bool.isRequired,static:t.default.bool,useCSSTransforms:t.default.bool.isRequired,transformScale:t.default.number,className:t.default.string,handle:t.default.string,cancel:t.default.string,droppingPosition:t.default.shape({e:t.default.object.isRequired,left:t.default.number.isRequired,top:t.default.number.isRequired})}),p(R,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),jo}var ng;function Ov(){if(ng)return Uo;ng=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var e=p(B),t=Nf(),n=c(Af()),i=ho(),s=kf(),a=c(eI()),u=c(Ev());function c(v){return v&&v.__esModule?v:{default:v}}function f(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(f=function(S){return S?m:g})(v)}function p(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=f(g);if(m&&m.has(v))return m.get(v);var S={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in v)if(C!=="default"&&Object.prototype.hasOwnProperty.call(v,C)){var M=E?Object.getOwnPropertyDescriptor(v,C):null;M&&(M.get||M.set)?Object.defineProperty(S,C,M):S[C]=v[C]}return S.default=v,m&&m.set(v,S),S}function h(v,g,m){return g=x(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function x(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var S=m.call(v,g);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w="react-grid-layout";let O=!1;try{O=/firefox/i.test(navigator.userAgent)}catch{}class y extends e.Component{constructor(){super(...arguments),h(this,"state",{activeDrag:null,layout:(0,i.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,i.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),h(this,"dragEnterCounter",0),h(this,"onDragStart",(g,m,S,E)=>{let{e:C,node:M}=E;const{layout:D}=this.state,A=(0,i.getLayoutItem)(D,g);if(!A)return;const z={w:A.w,h:A.h,x:A.x,y:A.y,placeholder:!0,i:g};return this.setState({oldDragItem:(0,i.cloneLayoutItem)(A),oldLayout:D,activeDrag:z}),this.props.onDragStart(D,A,A,null,C,M)}),h(this,"onDrag",(g,m,S,E)=>{let{e:C,node:M}=E;const{oldDragItem:D}=this.state;let{layout:A}=this.state;const{cols:z,allowOverlap:J,preventCollision:Z}=this.props,_=(0,i.getLayoutItem)(A,g);if(!_)return;const H={w:_.w,h:_.h,x:_.x,y:_.y,placeholder:!0,i:g};A=(0,i.moveElement)(A,_,m,S,!0,Z,(0,i.compactType)(this.props),z,J),this.props.onDrag(A,D,_,H,C,M),this.setState({layout:J?A:(0,i.compact)(A,(0,i.compactType)(this.props),z),activeDrag:H})}),h(this,"onDragStop",(g,m,S,E)=>{let{e:C,node:M}=E;if(!this.state.activeDrag)return;const{oldDragItem:D}=this.state;let{layout:A}=this.state;const{cols:z,preventCollision:J,allowOverlap:Z}=this.props,_=(0,i.getLayoutItem)(A,g);if(!_)return;A=(0,i.moveElement)(A,_,m,S,!0,J,(0,i.compactType)(this.props),z,Z);const U=Z?A:(0,i.compact)(A,(0,i.compactType)(this.props),z);this.props.onDragStop(U,D,_,null,C,M);const{oldLayout:K}=this.state;this.setState({activeDrag:null,layout:U,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(U,K)}),h(this,"onResizeStart",(g,m,S,E)=>{let{e:C,node:M}=E;const{layout:D}=this.state,A=(0,i.getLayoutItem)(D,g);A&&(this.setState({oldResizeItem:(0,i.cloneLayoutItem)(A),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(D,A,A,null,C,M))}),h(this,"onResize",(g,m,S,E)=>{let{e:C,node:M,size:D,handle:A}=E;const{oldResizeItem:z}=this.state,{layout:J}=this.state,{cols:Z,preventCollision:_,allowOverlap:H}=this.props;let U=!1,K,V,X;const[fe,ae]=(0,i.withLayoutItem)(J,g,$=>{let ue;return V=$.x,X=$.y,["sw","w","nw","n","ne"].indexOf(A)!==-1&&(["sw","nw","w"].indexOf(A)!==-1&&(V=$.x+($.w-m),m=$.x!==V&&V<0?$.w:m,V=V<0?0:V),["ne","n","nw"].indexOf(A)!==-1&&(X=$.y+($.h-S),S=$.y!==X&&X<0?$.h:S,X=X<0?0:X),U=!0),_&&!H&&(ue=(0,i.getAllCollisions)(J,{...$,w:m,h:S,x:V,y:X}).filter(pe=>pe.i!==$.i).length>0,ue&&(X=$.y,S=$.h,V=$.x,m=$.w,U=!1)),$.w=m,$.h=S,$});if(!ae)return;K=fe,U&&(K=(0,i.moveElement)(fe,ae,V,X,!0,this.props.preventCollision,(0,i.compactType)(this.props),Z,H));const Y={w:ae.w,h:ae.h,x:ae.x,y:ae.y,static:!0,i:g};this.props.onResize(K,z,ae,Y,C,M),this.setState({layout:H?K:(0,i.compact)(K,(0,i.compactType)(this.props),Z),activeDrag:Y})}),h(this,"onResizeStop",(g,m,S,E)=>{let{e:C,node:M}=E;const{layout:D,oldResizeItem:A}=this.state,{cols:z,allowOverlap:J}=this.props,Z=(0,i.getLayoutItem)(D,g),_=J?D:(0,i.compact)(D,(0,i.compactType)(this.props),z);this.props.onResizeStop(_,A,Z,null,C,M);const{oldLayout:H}=this.state;this.setState({activeDrag:null,layout:_,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(_,H)}),h(this,"onDragOver",g=>{var fe;if(g.preventDefault(),g.stopPropagation(),O&&!((fe=g.nativeEvent.target)!=null&&fe.classList.contains(w)))return!1;const{droppingItem:m,onDropDragOver:S,margin:E,cols:C,rowHeight:M,maxRows:D,width:A,containerPadding:z,transformScale:J}=this.props,Z=S==null?void 0:S(g);if(Z===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const _={...m,...Z},{layout:H}=this.state,U=g.currentTarget.getBoundingClientRect(),K=g.clientX-U.left,V=g.clientY-U.top,X={left:K/J,top:V/J,e:g};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:ae,top:Y}=this.state.droppingPosition;(ae!=K||Y!=V)&&this.setState({droppingPosition:X})}}else{const ae={cols:C,margin:E,maxRows:D,rowHeight:M,containerWidth:A,containerPadding:z||E},Y=(0,s.calcXY)(ae,V,K,_.w,_.h);this.setState({droppingDOMNode:e.createElement("div",{key:_.i}),droppingPosition:X,layout:[...H,{..._,x:Y.x,y:Y.y,static:!1,isDraggable:!0}]})}}),h(this,"removeDroppingPlaceholder",()=>{const{droppingItem:g,cols:m}=this.props,{layout:S}=this.state,E=(0,i.compact)(S.filter(C=>C.i!==g.i),(0,i.compactType)(this.props),m,this.props.allowOverlap);this.setState({layout:E,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),h(this,"onDragLeave",g=>{g.preventDefault(),g.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),h(this,"onDragEnter",g=>{g.preventDefault(),g.stopPropagation(),this.dragEnterCounter++}),h(this,"onDrop",g=>{g.preventDefault(),g.stopPropagation();const{droppingItem:m}=this.props,{layout:S}=this.state,E=S.find(C=>C.i===m.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(S,E,g)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(g,m){let S;return m.activeDrag?null:(!(0,t.deepEqual)(g.layout,m.propsLayout)||g.compactType!==m.compactType?S=g.layout:(0,i.childrenEqual)(g.children,m.children)||(S=m.layout),S?{layout:(0,i.synchronizeLayoutWithChildren)(S,g.children,g.cols,(0,i.compactType)(g),g.allowOverlap),compactType:g.compactType,children:g.children,propsLayout:g.layout}:null)}shouldComponentUpdate(g,m){return this.props.children!==g.children||!(0,i.fastRGLPropsEqual)(this.props,g,t.deepEqual)||this.state.activeDrag!==m.activeDrag||this.state.mounted!==m.mounted||this.state.droppingPosition!==m.droppingPosition}componentDidUpdate(g,m){if(!this.state.activeDrag){const S=this.state.layout,E=m.layout;this.onLayoutMaybeChanged(S,E)}}containerHeight(){if(!this.props.autoSize)return;const g=(0,i.bottom)(this.state.layout),m=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return g*this.props.rowHeight+(g-1)*this.props.margin[1]+m*2+"px"}onLayoutMaybeChanged(g,m){m||(m=this.state.layout),(0,t.deepEqual)(m,g)||this.props.onLayoutChange(g)}placeholder(){const{activeDrag:g}=this.state;if(!g)return null;const{width:m,cols:S,margin:E,containerPadding:C,rowHeight:M,maxRows:D,useCSSTransforms:A,transformScale:z}=this.props;return e.createElement(a.default,{w:g.w,h:g.h,x:g.x,y:g.y,i:g.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:m,cols:S,margin:E,containerPadding:C||E,maxRows:D,rowHeight:M,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:A,transformScale:z},e.createElement("div",null))}processGridItem(g,m){if(!g||!g.key)return;const S=(0,i.getLayoutItem)(this.state.layout,String(g.key));if(!S)return null;const{width:E,cols:C,margin:M,containerPadding:D,rowHeight:A,maxRows:z,isDraggable:J,isResizable:Z,isBounded:_,useCSSTransforms:H,transformScale:U,draggableCancel:K,draggableHandle:V,resizeHandles:X,resizeHandle:fe}=this.props,{mounted:ae,droppingPosition:Y}=this.state,$=typeof S.isDraggable=="boolean"?S.isDraggable:!S.static&&J,ue=typeof S.isResizable=="boolean"?S.isResizable:!S.static&&Z,ye=S.resizeHandles||X,pe=$&&_&&S.isBounded!==!1;return e.createElement(a.default,{containerWidth:E,cols:C,margin:M,containerPadding:D||M,maxRows:z,rowHeight:A,cancel:K,handle:V,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:$,isResizable:ue,isBounded:pe,useCSSTransforms:H&&ae,usePercentages:!ae,transformScale:U,w:S.w,h:S.h,x:S.x,y:S.y,i:S.i,minH:S.minH,minW:S.minW,maxH:S.maxH,maxW:S.maxW,static:S.static,droppingPosition:m?Y:void 0,resizeHandles:ye,resizeHandle:fe},g)}render(){const{className:g,style:m,isDroppable:S,innerRef:E}=this.props,C=(0,n.default)(w,g),M={height:this.containerHeight(),...m};return e.createElement("div",{ref:E,className:C,style:M,onDrop:S?this.onDrop:i.noop,onDragLeave:S?this.onDragLeave:i.noop,onDragEnter:S?this.onDragEnter:i.noop,onDragOver:S?this.onDragOver:i.noop},e.Children.map(this.props.children,D=>this.processGridItem(D)),S&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return Uo.default=y,h(y,"displayName","ReactGridLayout"),h(y,"propTypes",u.default),h(y,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:i.noop,onDragStart:i.noop,onDrag:i.noop,onDragStop:i.noop,onResizeStart:i.noop,onResize:i.noop,onResizeStop:i.noop,onDrop:i.noop,onDropDragOver:i.noop}),Uo}var Xo={},ii={},rg;function Tv(){if(rg)return ii;rg=1,Object.defineProperty(ii,"__esModule",{value:!0}),ii.findOrGenerateResponsiveLayout=i,ii.getBreakpointFromWidth=t,ii.getColsFromBreakpoint=n,ii.sortBreakpoints=s;var e=ho();function t(a,u){const c=s(a);let f=c[0];for(let p=1,h=c.length;p<h;p++){const x=c[p];u>a[x]&&(f=x)}return f}function n(a,u){if(!u[a])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+a+" is missing!");return u[a]}function i(a,u,c,f,p,h){if(a[c])return(0,e.cloneLayout)(a[c]);let x=a[f];const R=s(u),w=R.slice(R.indexOf(c));for(let O=0,y=w.length;O<y;O++){const v=w[O];if(a[v]){x=a[v];break}}return x=(0,e.cloneLayout)(x||[]),(0,e.compact)((0,e.correctBounds)(x,{cols:p}),h,p)}function s(a){return Object.keys(a).sort(function(c,f){return a[c]-a[f]})}return ii}var ig;function tI(){if(ig)return Xo;ig=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=void 0;var e=f(B),t=u(wr()),n=Nf(),i=ho(),s=Tv(),a=u(Ov());function u(v){return v&&v.__esModule?v:{default:v}}function c(v){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(c=function(S){return S?m:g})(v)}function f(v,g){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var m=c(g);if(m&&m.has(v))return m.get(v);var S={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in v)if(C!=="default"&&Object.prototype.hasOwnProperty.call(v,C)){var M=E?Object.getOwnPropertyDescriptor(v,C):null;M&&(M.get||M.set)?Object.defineProperty(S,C,M):S[C]=v[C]}return S.default=v,m&&m.set(v,S),S}function p(){return p=Object.assign?Object.assign.bind():function(v){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(v[S]=m[S])}return v},p.apply(this,arguments)}function h(v,g,m){return g=x(g),g in v?Object.defineProperty(v,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):v[g]=m,v}function x(v){var g=R(v,"string");return typeof g=="symbol"?g:String(g)}function R(v,g){if(typeof v!="object"||v===null)return v;var m=v[Symbol.toPrimitive];if(m!==void 0){var S=m.call(v,g);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(v)}const w=v=>Object.prototype.toString.call(v);function O(v,g){return v==null?null:Array.isArray(v)?v:v[g]}let y=class extends e.Component{constructor(){super(...arguments),h(this,"state",this.generateInitialState()),h(this,"onLayoutChange",g=>{this.props.onLayoutChange(g,{...this.props.layouts,[this.state.breakpoint]:g})})}generateInitialState(){const{width:g,breakpoints:m,layouts:S,cols:E}=this.props,C=(0,s.getBreakpointFromWidth)(m,g),M=(0,s.getColsFromBreakpoint)(C,E),D=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,s.findOrGenerateResponsiveLayout)(S,m,C,C,M,D),breakpoint:C,cols:M}}static getDerivedStateFromProps(g,m){if(!(0,n.deepEqual)(g.layouts,m.layouts)){const{breakpoint:S,cols:E}=m;return{layout:(0,s.findOrGenerateResponsiveLayout)(g.layouts,g.breakpoints,S,S,E,g.compactType),layouts:g.layouts}}return null}componentDidUpdate(g){(this.props.width!=g.width||this.props.breakpoint!==g.breakpoint||!(0,n.deepEqual)(this.props.breakpoints,g.breakpoints)||!(0,n.deepEqual)(this.props.cols,g.cols))&&this.onWidthChange(g)}onWidthChange(g){const{breakpoints:m,cols:S,layouts:E,compactType:C}=this.props,M=this.props.breakpoint||(0,s.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),D=this.state.breakpoint,A=(0,s.getColsFromBreakpoint)(M,S),z={...E};if(D!==M||g.breakpoints!==m||g.cols!==S){D in z||(z[D]=(0,i.cloneLayout)(this.state.layout));let _=(0,s.findOrGenerateResponsiveLayout)(z,m,M,D,A,C);_=(0,i.synchronizeLayoutWithChildren)(_,this.props.children,A,C,this.props.allowOverlap),z[M]=_,this.props.onBreakpointChange(M,A),this.props.onLayoutChange(_,z),this.setState({breakpoint:M,layout:_,cols:A})}const J=O(this.props.margin,M),Z=O(this.props.containerPadding,M);this.props.onWidthChange(this.props.width,J,A,Z)}render(){const{breakpoint:g,breakpoints:m,cols:S,layouts:E,margin:C,containerPadding:M,onBreakpointChange:D,onLayoutChange:A,onWidthChange:z,...J}=this.props;return e.createElement(a.default,p({},J,{margin:O(C,this.state.breakpoint),containerPadding:O(M,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return Xo.default=y,h(y,"propTypes",{breakpoint:t.default.string,breakpoints:t.default.object,allowOverlap:t.default.bool,cols:t.default.object,margin:t.default.oneOfType([t.default.array,t.default.object]),containerPadding:t.default.oneOfType([t.default.array,t.default.object]),layouts(v,g){if(w(v[g])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+w(v[g]));Object.keys(v[g]).forEach(m=>{if(!(m in v.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,i.validateLayout)(v.layouts[m],"layouts."+m)})},width:t.default.number.isRequired,onBreakpointChange:t.default.func,onLayoutChange:t.default.func,onWidthChange:t.default.func}),h(y,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:i.noop,onLayoutChange:i.noop,onWidthChange:i.noop}),Xo}var La={},Cv=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(s,a){return s[0]===n?(i=a,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=e(this.__entries__,n),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(n,i){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,s=e(i,n);~s&&i.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var s=0,a=this.__entries__;s<a.length;s++){var u=a[s];n.call(i,u[1],u[0])}},t}()}(),Hc=typeof window<"u"&&typeof document<"u"&&window.document===document,cu=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),nI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(cu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),rI=2;function iI(e,t){var n=!1,i=!1,s=0;function a(){n&&(n=!1,e()),i&&c()}function u(){nI(a)}function c(){var f=Date.now();if(n){if(f-s<rI)return;i=!0}else n=!0,i=!1,setTimeout(u,t);s=f}return c}var oI=20,sI=["top","right","bottom","left","width","height","size","weight"],aI=typeof MutationObserver<"u",uI=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=iI(this.refresh.bind(this),oI)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,i=n.indexOf(t);~i&&n.splice(i,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Hc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),aI?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Hc||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,s=sI.some(function(a){return!!~i.indexOf(a)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_v=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},lo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||cu},Rv=Lu(0,0,0,0);function fu(e){return parseFloat(e)||0}function og(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(i,s){var a=e["border-"+s+"-width"];return i+fu(a)},0)}function lI(e){for(var t=["top","right","bottom","left"],n={},i=0,s=t;i<s.length;i++){var a=s[i],u=e["padding-"+a];n[a]=fu(u)}return n}function cI(e){var t=e.getBBox();return Lu(0,0,t.width,t.height)}function fI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Rv;var i=lo(e).getComputedStyle(e),s=lI(i),a=s.left+s.right,u=s.top+s.bottom,c=fu(i.width),f=fu(i.height);if(i.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=og(i,"left","right")+a),Math.round(f+u)!==n&&(f-=og(i,"top","bottom")+u)),!pI(e)){var p=Math.round(c+a)-t,h=Math.round(f+u)-n;Math.abs(p)!==1&&(c-=p),Math.abs(h)!==1&&(f-=h)}return Lu(s.left,s.top,c,f)}var dI=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof lo(e).SVGGraphicsElement}:function(e){return e instanceof lo(e).SVGElement&&typeof e.getBBox=="function"}}();function pI(e){return e===lo(e).document.documentElement}function hI(e){return Hc?dI(e)?cI(e):fI(e):Rv}function mI(e){var t=e.x,n=e.y,i=e.width,s=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(a.prototype);return _v(u,{x:t,y:n,width:i,height:s,top:n,right:t+i,bottom:s+n,left:t}),u}function Lu(e,t,n,i){return{x:e,y:t,width:n,height:i}}var gI=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Lu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=hI(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),yI=function(){function e(t,n){var i=mI(n);_v(this,{target:t,contentRect:i})}return e}(),vI=function(){function e(t,n,i){if(this.activeObservations_=[],this.observations_=new Cv,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=i}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof lo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new gI(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof lo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new yI(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Dv=typeof WeakMap<"u"?new WeakMap:new Cv,Mv=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=uI.getInstance(),i=new vI(t,n,this);Dv.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Mv.prototype[e]=function(){var t;return(t=Dv.get(this))[e].apply(t,arguments)}});var bI=function(){return typeof cu.ResizeObserver<"u"?cu.ResizeObserver:Mv}();const wI=Object.freeze(Object.defineProperty({__proto__:null,default:bI},Symbol.toStringTag,{value:"Module"})),xI=Jg(wI);var sg;function SI(){if(sg)return La;sg=1,Object.defineProperty(La,"__esModule",{value:!0}),La.default=R;var e=u(B),t=s(wr()),n=s(xI),i=s(Af());function s(w){return w&&w.__esModule?w:{default:w}}function a(w){if(typeof WeakMap!="function")return null;var O=new WeakMap,y=new WeakMap;return(a=function(v){return v?y:O})(w)}function u(w,O){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=a(O);if(y&&y.has(w))return y.get(w);var v={__proto__:null},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in w)if(m!=="default"&&Object.prototype.hasOwnProperty.call(w,m)){var S=g?Object.getOwnPropertyDescriptor(w,m):null;S&&(S.get||S.set)?Object.defineProperty(v,m,S):v[m]=w[m]}return v.default=w,y&&y.set(w,v),v}function c(){return c=Object.assign?Object.assign.bind():function(w){for(var O=1;O<arguments.length;O++){var y=arguments[O];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(w[v]=y[v])}return w},c.apply(this,arguments)}function f(w,O,y){return O=p(O),O in w?Object.defineProperty(w,O,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[O]=y,w}function p(w){var O=h(w,"string");return typeof O=="symbol"?O:String(O)}function h(w,O){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var v=y.call(w,O);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(w)}const x="react-grid-layout";function R(w){var O;return O=class extends e.Component{constructor(){super(...arguments),f(this,"state",{width:1280}),f(this,"elementRef",e.createRef()),f(this,"mounted",!1),f(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new n.default(g=>{if(this.elementRef.current instanceof HTMLElement){const S=g[0].contentRect.width;this.setState({width:S})}});const v=this.elementRef.current;v instanceof HTMLElement&&this.resizeObserver.observe(v)}componentWillUnmount(){this.mounted=!1;const v=this.elementRef.current;v instanceof HTMLElement&&this.resizeObserver.unobserve(v),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:v,...g}=this.props;return v&&!this.mounted?e.createElement("div",{className:(0,i.default)(this.props.className,x),style:this.props.style,ref:this.elementRef}):e.createElement(w,c({innerRef:this.elementRef},g,this.state))}},f(O,"defaultProps",{measureBeforeMount:!1}),f(O,"propTypes",{measureBeforeMount:t.default.bool}),O}return La}var ag;function EI(){return ag||(ag=1,function(e){e.exports=Ov().default,e.exports.utils=ho(),e.exports.calculateUtils=kf(),e.exports.Responsive=tI().default,e.exports.Responsive.utils=Tv(),e.exports.WidthProvider=SI().default}(bc)),bc.exports}var ug=EI();const OI=ug.WidthProvider(ug.Responsive),TI=({items:e,storageKey:t,defaultLayouts:n})=>{const i=B.useRef(null),s=me.useTheme(),[a,u]=B.useState(!1),[c,f]=B.useState(n),[p,h]=B.useState(1200),{editMode:x}=If();B.useEffect(()=>{try{const w=localStorage.getItem(t),O=["lg","md","sm","xs"],y={lg:[],md:[],sm:[],xs:[]};let v=n;if(w)try{v=JSON.parse(w)}catch(g){console.error("Failed to parse saved layouts:",g)}for(const g of O){const m=v[g]||[],S=new Map(m.map(E=>[E.i,E]));e.forEach(E=>{const C=S.get(E.id);C?C.w===1&&C.h===1&&E.layout?y[g].push({...E.layout}):y[g].push({...C}):E.layout?y[g].push({...E.layout}):console.warn(`Grid item "${E.id}" has no registered layout. Components should register with default sizes via registerGridItem().`)})}f(y)}catch(w){console.error("Failed to load layouts:",w)}},[t,e,n]);const R=B.useCallback((w,O)=>{f(O);try{localStorage.setItem(t,JSON.stringify(O))}catch(y){console.error("Failed to save layouts:",y)}},[t]);return B.useEffect(()=>{u(!0),i.current&&h(i.current.getBoundingClientRect().width)},[]),a?F.jsxs(me.Box,{sx:{width:"100%",height:"100%",position:"relative"},ref:i,children:[x&&F.jsx(me.Box,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0,pointerEvents:"none",backgroundSize:"30px 30px",backgroundImage:`linear-gradient(to right, ${eu(s.palette.primary.main,.05)} 1px, transparent 1px), linear-gradient(to bottom, ${eu(s.palette.primary.main,.05)} 1px, transparent 1px)`}}),F.jsx(OI,{className:"layout",layouts:c,breakpoints:{lg:1200,md:996,sm:768,xs:480},cols:{lg:15,md:15,sm:15,xs:15},rowHeight:200,width:p,containerPadding:[0,0],isResizable:x,isDraggable:x,compactType:null,preventCollision:!0,useCSSTransforms:a,onLayoutChange:R,resizeHandles:["se","sw","ne","nw"],children:e.map(w=>F.jsx(me.Box,{sx:{borderRadius:1,overflow:"hidden",position:"relative",outline:x?`2px dashed ${s.palette.primary.main}`:"none","&:hover":{outline:x?`2px solid ${s.palette.primary.main}`:"none"}},children:F.jsx(me.Box,{sx:{pointerEvents:x?"none":"auto",overflow:"hidden",position:"relative",height:"100%",width:"100%"},children:w.content})},w.id))})]}):null};function Pv(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return console.error("Error loading from localStorage:",t),null}}function Vc(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("Error saving to localStorage:",n)}}const Ts="user-layout-presets";function zu(){try{const e=localStorage.getItem(Ts);return e?JSON.parse(e):[]}catch(e){return console.error("Failed to load user presets:",e),[]}}function CI(e,t){try{const n=zu(),i=`preset-${Date.now()}`,s=Date.now(),a=JSON.parse(JSON.stringify(t));return n.push({id:i,name:e,layouts:a,createdAt:s,updatedAt:s}),localStorage.setItem(Ts,JSON.stringify(n)),i}catch(n){return console.error("Failed to save user preset:",n),""}}function _I(e){try{const t=zu();if(!t.some(s=>s.id===e))return!1;const i=t.filter(s=>s.id!==e);return localStorage.setItem(Ts,JSON.stringify(i)),!0}catch(t){return console.error("Failed to delete user preset:",t),!1}}function RI(e,t){try{const n=zu(),i=n.findIndex(s=>s.id===e);return i===-1?!1:(n[i]={...n[i],...t,updatedAt:Date.now()},localStorage.setItem(Ts,JSON.stringify(n)),!0)}catch(n){return console.error("Failed to update user preset:",n),!1}}function DI(e,t){try{const n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length||n.join(",")!==i.join(","))return!1;for(const s of n){const a=e[s]||[],u=t[s]||[];if(a.length!==u.length)return!1;const c=new Map(a.map(p=>[p.i,p])),f=new Map(u.map(p=>[p.i,p]));if(c.size!==f.size)return!1;for(const[p,h]of c.entries()){const x=f.get(p);if(!x||h.x!==x.x||h.y!==x.y||h.w!==x.w||h.h!==x.h||h.minW!==x.minW||h.minH!==x.minH||h.maxW!==x.maxW||h.maxH!==x.maxH||h.static!==x.static)return!1}}return!0}catch(n){return console.error("Error comparing layouts:",n),!1}}function MI({storageKey:e,defaultLayouts:t,onLayoutChangeCallback:n,debounceTime:i=500}){const[s,a]=B.useState(()=>Pv(e)||JSON.parse(JSON.stringify(t))),u=B.useRef(s),c=B.useRef(null),f=B.useRef(!1),p=B.useCallback((R,w)=>{if(f.current||DI(w,u.current))return;f.current=!0,u.current=w,a(w),c.current&&clearTimeout(c.current);const O=()=>{Vc(e,w),n&&n(w),f.current=!1};c.current=window.setTimeout(O,i)},[e,n,i]),h=B.useCallback(R=>{const w=JSON.parse(JSON.stringify(R));u.current=w,a(w),Vc(e,w),n&&n(w)},[e,n,s]),x=B.useCallback(()=>{h(t)},[h,t]);return B.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),{layouts:s,onLayoutChange:p,applyLayout:h,resetToDefault:x}}const PI=jt(F.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule"),II=jt(F.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows"),lg=jt(F.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet"),NI=jt(F.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone"),Ji={lg:{description:"Large screens (≥1200px)",color:"primary",icon:"desktop"},md:{description:"Medium screens (≥996px)",color:"success",icon:"tablet"},sm:{description:"Small screens (≥768px)",color:"info",icon:"tabletRotated"},xs:{description:"Extra small screens (<768px)",color:"warning",icon:"phone"}},Iv=({showLabel:e=!1})=>{const t=me.useTheme(),n=me.useMediaQuery(t.breakpoints.between("sm","md")),i=me.useMediaQuery(t.breakpoints.between("md","lg")),s=me.useMediaQuery(t.breakpoints.up("lg"));let a,u,c;return s?(a="lg",u=F.jsx(II,{fontSize:"small"}),c=Ji.lg.color):i?(a="md",u=F.jsx(lg,{fontSize:"small"}),c=Ji.md.color):n?(a="sm",u=F.jsx(lg,{fontSize:"small",sx:{transform:"rotate(90deg)"}}),c=Ji.sm.color):(a="xs",u=F.jsx(NI,{fontSize:"small"}),c=Ji.xs.color),F.jsx(me.Tooltip,{title:Ji[a].description,children:F.jsx(me.Chip,{icon:u,label:e?a.toUpperCase():void 0,color:c,size:"small",variant:"outlined",sx:{height:24,minWidth:e?48:32,".MuiChip-icon":{ml:e?void 0:"0px",mr:e?void 0:"-6px"}}})})},AI=()=>{const{editMode:e,toggleEditMode:t}=po(),n=()=>{t()};return F.jsxs(me.Box,{display:"flex",flexDirection:"row",alignItems:"center",children:[F.jsx(me.Tooltip,{title:e?"Exit Layout Edit Mode":"Edit Layout",children:F.jsx(me.IconButton,{onClick:n,size:"small",color:e?"primary":"default",sx:{border:e?"1px solid":"none","&:hover":{backgroundColor:e?"rgba(25, 118, 210, 0.08)":void 0}},children:F.jsx(PI,{})})}),e&&F.jsxs(F.Fragment,{children:[F.jsx(me.Divider,{orientation:"vertical",flexItem:!0,sx:{mx:.5}}),F.jsx(Iv,{showLabel:!0})]})]})},kI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zf=kI?B.useLayoutEffect:B.useEffect;function $I(e){const t=B.useRef(e);return zf(()=>{t.current=e}),B.useCallback(function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return t.current==null?void 0:t.current(...i)},[])}function LI(e,t){t===void 0&&(t=[e]);const n=B.useRef(e);return zf(()=>{n.current!==e&&(n.current=e)},t),n}function cg(e){const t=$I(e),n=B.useRef(null),i=B.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,i]}let Sc={};function zI(e,t){return B.useMemo(()=>{const n=Sc[e]==null?0:Sc[e]+1;return Sc[e]=n,e+"-"+n},[e,t])}var fg;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(fg||(fg={}));function dg(){}const FI=Object.freeze({x:0,y:0});var Ki;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ki||(Ki={}));var pg;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(pg||(pg={}));var Ar;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ar||(Ar={}));Ar.Space,Ar.Enter,Ar.Esc,Ar.Space,Ar.Enter,Ar.Tab;var hg;(function(e){e[e.RightClick=2]="RightClick"})(hg||(hg={}));var mg;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(mg||(mg={}));var gg;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(gg||(gg={}));Ki.Backward+"",Ki.Forward+"",Ki.Backward+"",Ki.Forward+"";var qc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(qc||(qc={}));var Gc;(function(e){e.Optimized="optimized"})(Gc||(Gc={}));function WI(e,t){return B.useMemo(()=>e.reduce((n,i)=>{let{eventName:s,handler:a}=i;return n[s]=u=>{a(u,t)},n},{}),[e,t])}qc.WhileDragging,Gc.Optimized;const BI={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:dg,draggableNodes:new Map,over:null,measureDroppableContainers:dg},UI=B.createContext(BI),jI=B.createContext({...FI,scaleX:1,scaleY:1});var yg;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(yg||(yg={}));const HI=B.createContext(null),vg="button",VI="Draggable";function qI(e){let{id:t,data:n,disabled:i=!1,attributes:s}=e;const a=zI(VI),{activators:u,activatorEvent:c,active:f,activeNodeRect:p,ariaDescribedById:h,draggableNodes:x,over:R}=B.useContext(UI),{role:w=vg,roleDescription:O="draggable",tabIndex:y=0}=s??{},v=(f==null?void 0:f.id)===t,g=B.useContext(v?jI:HI),[m,S]=cg(),[E,C]=cg(),M=WI(u,t),D=LI(n);zf(()=>(x.set(t,{id:t,key:a,node:m,activatorNode:E,data:D}),()=>{const z=x.get(t);z&&z.key===a&&x.delete(t)}),[x,t]);const A=B.useMemo(()=>({role:w,tabIndex:y,"aria-disabled":i,"aria-pressed":v&&w===vg?!0:void 0,"aria-roledescription":O,"aria-describedby":h.draggable}),[i,w,y,v,O,h.draggable]);return{active:f,activatorEvent:c,activeNodeRect:p,attributes:A,isDragging:v,listeners:i?void 0:M,node:m,over:R,setNodeRef:S,setActivatorNodeRef:C,transform:g}}function GI({id:e,children:t}){const{attributes:n,listeners:i,setNodeRef:s,transform:a}=qI({id:e}),u={transform:a?`translate(${a.x}px, ${a.y}px)`:void 0,cursor:"pointer",userSelect:"none"};return F.jsx("div",{ref:s,style:u,...n,...i,children:t})}const YI=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)},Ff=fo.create(e=>({notifications:[],addNotificationData:t=>{t.singular&&!YI(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(i=>i.id!==`${t}`)}))},clearNotificationsByType:t=>{e(n=>({notifications:n.notifications.filter(i=>i.type!==t)}))}})),ZI=({action:e,maxAttempts:t=3,delay:n=1e3,successMessage:i="Operation successful",errorMessage:s="Operation failed, retrying...",condition:a=!0})=>{const[u,c]=B.useState(0),{addNotificationData:f,clearNotificationsByType:p}=Ff(),h=B.useRef(null),x=B.useRef(!1),R=B.useRef(a);return B.useEffect(()=>{!a&&R.current&&u>0&&(c(0),x.current=!1,p("error"),f({type:"success",message:i})),R.current=a},[a,u,i,p,f]),B.useEffect(()=>(h.current&&(clearTimeout(h.current),h.current=null),a&&u<t?h.current=setTimeout(()=>{e(),c(w=>w+1)},n):u>=t&&!x.current&&(x.current=!0,f({type:"error",message:s})),()=>{h.current&&(clearTimeout(h.current),h.current=null)}),[a,u,t,n,e,s,f]),{attempts:u}},XI=({title:e,dialogId:t,callOnOpen:n,showTitle:i=!0,onOpenDialog:s,icon:a})=>{const u=c=>{c.stopPropagation(),c.preventDefault(),s?s(t):console.warn("DialogOpener: onOpenDialog prop not provided. Please provide a dialog store handler."),n&&n(c)};return F.jsxs(me.MenuItem,{component:me.Button,onClick:u,style:{marginLeft:"auto",zIndex:1e3,width:"100%",display:"flex",justifyContent:"left",columnGap:2},children:[a," ",i&&e]})},Nv=jt(F.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Av=({children:e,open:t,onClose:n,...i})=>{const s=me.useTheme(),a=me.useMediaQuery(s.breakpoints.down("sm"));return F.jsx(me.Dialog,{sx:{"& .MuiDialog-paper":{borderRadius:a?"0px !important":"14px",height:a?"100vh":"90vh",display:"flex",flexDirection:"column",maxHeight:a?"100vh":"90vh",margin:a?0:void 0}},open:t,onClose:n,fullScreen:a,...i,children:e})},JI=({onSubmit:e,title:t,children:n,submitText:i="Submit",disableSubmit:s=!1,showUnsavedChangesWarning:a=!1,isDirty:u=!1,onClose:c,...f})=>{const[p,h]=B.useState(!1),x=()=>{a&&u?h(!0):c?c():console.warn("FormDialog: onClose prop not provided. Please provide a close handler.")},R=()=>{h(!1),c&&c()};return F.jsxs(F.Fragment,{children:[F.jsxs(Av,{open:!0,onClose:x,...f,children:[F.jsxs(me.DialogTitle,{sx:{m:0,p:2,pr:6},children:[t,F.jsx(me.IconButton,{"aria-label":"close",onClick:x,sx:{position:"absolute",right:8,top:8,color:w=>w.palette.grey[500]},children:F.jsx(Nv,{})})]}),F.jsx(me.DialogContent,{sx:{p:"24px",overflow:"hidden",display:"flex",flexDirection:"column",minHeight:0},children:F.jsxs("form",{onSubmit:e,style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[F.jsx(me.Box,{sx:{flex:1,minHeight:0,overflow:"auto"},children:n}),F.jsxs(me.DialogActions,{sx:{borderTop:1,borderColor:"divider"},children:[F.jsx(me.Button,{onClick:x,children:"Cancel"}),F.jsx(me.Button,{type:"submit",variant:"contained",disabled:!u||s,color:"primary",children:i})]})]})})]}),F.jsxs(me.Dialog,{open:p,onClose:()=>h(!1),children:[F.jsx(me.DialogTitle,{children:"Unsaved Changes"}),F.jsx(me.DialogContent,{children:F.jsx(me.DialogContentText,{children:"You have unsaved changes. Are you sure you want to close?"})}),F.jsxs(me.DialogActions,{children:[F.jsx(me.Button,{onClick:()=>h(!1),children:"Cancel"}),F.jsx(me.Button,{onClick:R,color:"warning",children:"Close Without Saving"})]})]})]})},kv=new Map;function KI(e,t){kv.set(e,t)}function QI(e){return kv.get(e)}function eN(e){console.warn("openDialog called but no dialog store is configured. Please use a dialog store from the main package.")}function tN(){console.warn("closeDialog called but no dialog store is configured. Please use a dialog store from the main package.")}const nN=({openDialog:e})=>{if(!e)return null;const t=QI(e);return t?F.jsx(t,{}):null},rN=jt(F.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),iN=jt(F.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),oN=6e3,sN=({notificationKey:e})=>{const[t,n]=B.useState(100),[i,s]=B.useState(!1),a=B.useRef(null),u=B.useRef(Date.now()),c=B.useRef(0);return B.useEffect(()=>{if(i){a.current&&(clearInterval(a.current),c.current+=Date.now()-u.current);return}return u.current=Date.now(),a.current=setInterval(()=>{const f=c.current+(Date.now()-u.current),p=Math.max(0,100*(1-f/oN));n(p),p<=0&&(clearInterval(a.current),uf.closeSnackbar(e))},50),()=>{a.current&&clearInterval(a.current)}},[i,e]),F.jsxs(me.Box,{sx:{position:"relative",display:"inline-flex",mr:1},children:[F.jsx(me.CircularProgress,{variant:"determinate",value:t,size:24,sx:{color:"rgba(255, 255, 255, 0.7)"}}),F.jsx(me.IconButton,{size:"small",onClick:()=>s(!i),sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"rgba(255, 255, 255, 0.7)",padding:0,"&:hover":{color:"white"},width:16,height:16},children:i?F.jsx(rN,{sx:{fontSize:12}}):F.jsx(iN,{sx:{fontSize:12}})})]})},aN=e=>F.jsx(me.IconButton,{onClick:()=>{uf.closeSnackbar(e)},children:F.jsx(Nv,{})}),uN=e=>F.jsxs(me.Box,{sx:{display:"flex",alignItems:"center"},children:[F.jsx(sN,{notificationKey:e}),aN(e)]}),lN=()=>{const{notifications:e,removeNotificationData:t}=Ff(),{enqueueSnackbar:n}=uf.useSnackbar();return B.useEffect(()=>{e.length>0&&e.forEach(i=>{n(i.message,{variant:i.type,action:uN,autoHideDuration:null,persist:!0}),t(Number(i.id))})},[e,n,t]),F.jsx(F.Fragment,{})},cN=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),fN=e=>e.toLowerCase().replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Yc=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Yc(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,i])=>{const s=fN(n);t[s]=Yc(i)}),t},Zc=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Zc(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,i])=>{const s=cN(n);t[s]=Zc(i)}),t};class Oi extends Error{}class dN extends Oi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class pN extends Oi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class hN extends Oi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Qi extends Oi{}class $v extends Oi{constructor(t){super(`Invalid unit ${t}`)}}class kt extends Oi{}class Nr extends Oi{constructor(){super("Zone is an abstract class")}}const Se="numeric",Wn="short",cn="long",du={year:Se,month:Se,day:Se},Lv={year:Se,month:Wn,day:Se},mN={year:Se,month:Wn,day:Se,weekday:Wn},zv={year:Se,month:cn,day:Se},Fv={year:Se,month:cn,day:Se,weekday:cn},Wv={hour:Se,minute:Se},Bv={hour:Se,minute:Se,second:Se},Uv={hour:Se,minute:Se,second:Se,timeZoneName:Wn},jv={hour:Se,minute:Se,second:Se,timeZoneName:cn},Hv={hour:Se,minute:Se,hourCycle:"h23"},Vv={hour:Se,minute:Se,second:Se,hourCycle:"h23"},qv={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Wn},Gv={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:cn},Yv={year:Se,month:Se,day:Se,hour:Se,minute:Se},Zv={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},Xv={year:Se,month:Wn,day:Se,hour:Se,minute:Se},Jv={year:Se,month:Wn,day:Se,hour:Se,minute:Se,second:Se},gN={year:Se,month:Wn,day:Se,weekday:Wn,hour:Se,minute:Se},Kv={year:Se,month:cn,day:Se,hour:Se,minute:Se,timeZoneName:Wn},Qv={year:Se,month:cn,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Wn},e0={year:Se,month:cn,day:Se,weekday:cn,hour:Se,minute:Se,timeZoneName:cn},t0={year:Se,month:cn,day:Se,weekday:cn,hour:Se,minute:Se,second:Se,timeZoneName:cn};class Cs{get type(){throw new Nr}get name(){throw new Nr}get ianaName(){return this.name}get isUniversal(){throw new Nr}offsetName(t,n){throw new Nr}formatOffset(t,n){throw new Nr}offset(t){throw new Nr}equals(t){throw new Nr}get isValid(){throw new Nr}}let Ec=null;class Fu extends Cs{static get instance(){return Ec===null&&(Ec=new Fu),Ec}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return d0(t,n,i)}formatOffset(t,n){return ls(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const Xc=new Map;function yN(e){let t=Xc.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Xc.set(e,t)),t}const vN={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function bN(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,a,u,c,f,p,h]=i;return[u,s,a,c,f,p,h]}function wN(e,t){const n=e.formatToParts(t),i=[];for(let s=0;s<n.length;s++){const{type:a,value:u}=n[s],c=vN[a];a==="era"?i[c]=u:Ae(c)||(i[c]=parseInt(u,10))}return i}const Oc=new Map;class br extends Cs{static create(t){let n=Oc.get(t);return n===void 0&&Oc.set(t,n=new br(t)),n}static resetCache(){Oc.clear(),Xc.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=br.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:i}){return d0(t,n,i,this.name)}formatOffset(t,n){return ls(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const i=yN(this.name);let[s,a,u,c,f,p,h]=i.formatToParts?wN(i,n):bN(i,n);c==="BC"&&(s=-Math.abs(s)+1);const R=Bu({year:s,month:a,day:u,hour:f===24?0:f,minute:p,second:h,millisecond:0});let w=+n;const O=w%1e3;return w-=O>=0?O:1e3+O,(R-w)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let bg={};function xN(e,t={}){const n=JSON.stringify([e,t]);let i=bg[n];return i||(i=new Intl.ListFormat(e,t),bg[n]=i),i}const Jc=new Map;function Kc(e,t={}){const n=JSON.stringify([e,t]);let i=Jc.get(n);return i===void 0&&(i=new Intl.DateTimeFormat(e,t),Jc.set(n,i)),i}const Qc=new Map;function SN(e,t={}){const n=JSON.stringify([e,t]);let i=Qc.get(n);return i===void 0&&(i=new Intl.NumberFormat(e,t),Qc.set(n,i)),i}const ef=new Map;function EN(e,t={}){const{base:n,...i}=t,s=JSON.stringify([e,i]);let a=ef.get(s);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),ef.set(s,a)),a}let rs=null;function ON(){return rs||(rs=new Intl.DateTimeFormat().resolvedOptions().locale,rs)}const tf=new Map;function n0(e){let t=tf.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),tf.set(e,t)),t}const nf=new Map;function TN(e){let t=nf.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...r0,...t}),nf.set(e,t)}return t}function CN(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let i,s;try{i=Kc(e).resolvedOptions(),s=e}catch{const f=e.substring(0,n);i=Kc(f).resolvedOptions(),s=f}const{numberingSystem:a,calendar:u}=i;return[s,a,u]}}function _N(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function RN(e){const t=[];for(let n=1;n<=12;n++){const i=ke.utc(2009,n,1);t.push(e(i))}return t}function DN(e){const t=[];for(let n=1;n<=7;n++){const i=ke.utc(2016,11,13+n);t.push(e(i))}return t}function za(e,t,n,i){const s=e.listingMode();return s==="error"?null:s==="en"?n(t):i(t)}function MN(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||n0(e.locale).numberingSystem==="latn"}class PN{constructor(t,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:s,floor:a,...u}=i;if(!n||Object.keys(u).length>0){const c={useGrouping:!1,...i};i.padTo>0&&(c.minimumIntegerDigits=i.padTo),this.inf=SN(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Hf(t,3);return St(n,this.padTo)}}}class IN{constructor(t,n,i){this.opts=i,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const u=-1*(t.offset/60),c=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;t.offset!==0&&br.create(c).valid?(s=c,this.dt=t):(s="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,s=t.zone.name):(s="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||s,this.dtf=Kc(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class NN{constructor(t,n,i){this.opts={style:"long",...i},!n&&c0()&&(this.rtf=EN(t,i))}format(t,n){return this.rtf?this.rtf.format(t,n):tA(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const r0={firstDay:1,minimalDays:4,weekend:[6,7]};class Qe{static fromOpts(t){return Qe.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,i,s,a=!1){const u=t||yt.defaultLocale,c=u||(a?"en-US":ON()),f=n||yt.defaultNumberingSystem,p=i||yt.defaultOutputCalendar,h=of(s)||yt.defaultWeekSettings;return new Qe(c,f,p,h,u)}static resetCache(){rs=null,Jc.clear(),Qc.clear(),ef.clear(),tf.clear(),nf.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:i,weekSettings:s}={}){return Qe.create(t,n,i,s)}constructor(t,n,i,s,a){const[u,c,f]=CN(t);this.locale=u,this.numberingSystem=n||c||null,this.outputCalendar=i||f||null,this.weekSettings=s,this.intl=_N(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=MN(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Qe.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,of(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return za(this,t,m0,()=>{const i=this.intl==="ja"||this.intl.startsWith("ja-");n&=!i;const s=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";if(!this.monthsCache[a][t]){const u=i?c=>this.dtFormatter(c,s).format():c=>this.extract(c,s,"month");this.monthsCache[a][t]=RN(u)}return this.monthsCache[a][t]})}weekdays(t,n=!1){return za(this,t,v0,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},s=n?"format":"standalone";return this.weekdaysCache[s][t]||(this.weekdaysCache[s][t]=DN(a=>this.extract(a,i,"weekday"))),this.weekdaysCache[s][t]})}meridiems(){return za(this,void 0,()=>b0,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ke.utc(2016,11,13,9),ke.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return za(this,t,w0,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ke.utc(-40,1,1),ke.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[t]})}extract(t,n,i){const s=this.dtFormatter(t,n),a=s.formatToParts(),u=a.find(c=>c.type.toLowerCase()===i);return u?u.value:null}numberFormatter(t={}){return new PN(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new IN(t,this.intl,n)}relFormatter(t={}){return new NN(this.intl,this.isEnglish(),t)}listFormatter(t={}){return xN(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||n0(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:f0()?TN(this.locale):r0}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Tc=null;class Ut extends Cs{static get utcInstance(){return Tc===null&&(Tc=new Ut(0)),Tc}static instance(t){return t===0?Ut.utcInstance:new Ut(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Ut(Uu(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ls(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ls(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return ls(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class AN extends Cs{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function zr(e,t){if(Ae(e)||e===null)return t;if(e instanceof Cs)return e;if(WN(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Fu.instance:n==="utc"||n==="gmt"?Ut.utcInstance:Ut.parseSpecifier(n)||br.create(e)}else return Wr(e)?Ut.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new AN(e)}const Wf={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},wg={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},kN=Wf.hanidec.replace(/[\[|\]]/g,"").split("");function $N(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(e[n].search(Wf.hanidec)!==-1)t+=kN.indexOf(e[n]);else for(const s in wg){const[a,u]=wg[s];i>=a&&i<=u&&(t+=i-a)}}return parseInt(t,10)}else return t}const rf=new Map;function LN(){rf.clear()}function $n({numberingSystem:e},t=""){const n=e||"latn";let i=rf.get(n);i===void 0&&(i=new Map,rf.set(n,i));let s=i.get(t);return s===void 0&&(s=new RegExp(`${Wf[n]}${t}`),i.set(t,s)),s}let xg=()=>Date.now(),Sg="system",Eg=null,Og=null,Tg=null,Cg=60,_g,Rg=null;class yt{static get now(){return xg}static set now(t){xg=t}static set defaultZone(t){Sg=t}static get defaultZone(){return zr(Sg,Fu.instance)}static get defaultLocale(){return Eg}static set defaultLocale(t){Eg=t}static get defaultNumberingSystem(){return Og}static set defaultNumberingSystem(t){Og=t}static get defaultOutputCalendar(){return Tg}static set defaultOutputCalendar(t){Tg=t}static get defaultWeekSettings(){return Rg}static set defaultWeekSettings(t){Rg=of(t)}static get twoDigitCutoffYear(){return Cg}static set twoDigitCutoffYear(t){Cg=t%100}static get throwOnInvalid(){return _g}static set throwOnInvalid(t){_g=t}static resetCaches(){Qe.resetCache(),br.resetCache(),ke.resetCache(),LN()}}class zn{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const i0=[0,31,59,90,120,151,181,212,243,273,304,334],o0=[0,31,60,91,121,152,182,213,244,274,305,335];function On(e,t){return new zn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Bf(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return s===0?7:s}function s0(e,t,n){return n+(_s(e)?o0:i0)[t-1]}function a0(e,t){const n=_s(e)?o0:i0,i=n.findIndex(a=>a<t),s=t-n[i];return{month:i+1,day:s}}function Uf(e,t){return(e-t+7)%7+1}function pu(e,t=4,n=1){const{year:i,month:s,day:a}=e,u=s0(i,s,a),c=Uf(Bf(i,s,a),n);let f=Math.floor((u-c+14-t)/7),p;return f<1?(p=i-1,f=ys(p,t,n)):f>ys(i,t,n)?(p=i+1,f=1):p=i,{weekYear:p,weekNumber:f,weekday:c,...ju(e)}}function Dg(e,t=4,n=1){const{weekYear:i,weekNumber:s,weekday:a}=e,u=Uf(Bf(i,1,t),n),c=ro(i);let f=s*7+a-u-7+t,p;f<1?(p=i-1,f+=ro(p)):f>c?(p=i+1,f-=ro(i)):p=i;const{month:h,day:x}=a0(p,f);return{year:p,month:h,day:x,...ju(e)}}function Cc(e){const{year:t,month:n,day:i}=e,s=s0(t,n,i);return{year:t,ordinal:s,...ju(e)}}function Mg(e){const{year:t,ordinal:n}=e,{month:i,day:s}=a0(t,n);return{year:t,month:i,day:s,...ju(e)}}function Pg(e,t){if(!Ae(e.localWeekday)||!Ae(e.localWeekNumber)||!Ae(e.localWeekYear)){if(!Ae(e.weekday)||!Ae(e.weekNumber)||!Ae(e.weekYear))throw new Qi("Cannot mix locale-based week fields with ISO-based week fields");return Ae(e.localWeekday)||(e.weekday=e.localWeekday),Ae(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ae(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function zN(e,t=4,n=1){const i=Wu(e.weekYear),s=Tn(e.weekNumber,1,ys(e.weekYear,t,n)),a=Tn(e.weekday,1,7);return i?s?a?!1:On("weekday",e.weekday):On("week",e.weekNumber):On("weekYear",e.weekYear)}function FN(e){const t=Wu(e.year),n=Tn(e.ordinal,1,ro(e.year));return t?n?!1:On("ordinal",e.ordinal):On("year",e.year)}function u0(e){const t=Wu(e.year),n=Tn(e.month,1,12),i=Tn(e.day,1,hu(e.year,e.month));return t?n?i?!1:On("day",e.day):On("month",e.month):On("year",e.year)}function l0(e){const{hour:t,minute:n,second:i,millisecond:s}=e,a=Tn(t,0,23)||t===24&&n===0&&i===0&&s===0,u=Tn(n,0,59),c=Tn(i,0,59),f=Tn(s,0,999);return a?u?c?f?!1:On("millisecond",s):On("second",i):On("minute",n):On("hour",t)}function Ae(e){return typeof e>"u"}function Wr(e){return typeof e=="number"}function Wu(e){return typeof e=="number"&&e%1===0}function WN(e){return typeof e=="string"}function BN(e){return Object.prototype.toString.call(e)==="[object Date]"}function c0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function f0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function UN(e){return Array.isArray(e)?e:[e]}function Ig(e,t,n){if(e.length!==0)return e.reduce((i,s)=>{const a=[t(s),s];return i&&n(i[0],a[0])===i[0]?i:a},null)[1]}function jN(e,t){return t.reduce((n,i)=>(n[i]=e[i],n),{})}function co(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function of(e){if(e==null)return null;if(typeof e!="object")throw new kt("Week settings must be an object");if(!Tn(e.firstDay,1,7)||!Tn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Tn(t,1,7)))throw new kt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Tn(e,t,n){return Wu(e)&&e>=t&&e<=n}function HN(e,t){return e-t*Math.floor(e/t)}function St(e,t=2){const n=e<0;let i;return n?i="-"+(""+-e).padStart(t,"0"):i=(""+e).padStart(t,"0"),i}function kr(e){if(!(Ae(e)||e===null||e===""))return parseInt(e,10)}function oi(e){if(!(Ae(e)||e===null||e===""))return parseFloat(e)}function jf(e){if(!(Ae(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Hf(e,t,n="round"){const i=10**t;switch(n){case"expand":return e>0?Math.ceil(e*i)/i:Math.floor(e*i)/i;case"trunc":return Math.trunc(e*i)/i;case"round":return Math.round(e*i)/i;case"floor":return Math.floor(e*i)/i;case"ceil":return Math.ceil(e*i)/i;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function _s(e){return e%4===0&&(e%100!==0||e%400===0)}function ro(e){return _s(e)?366:365}function hu(e,t){const n=HN(t-1,12)+1,i=e+(t-n)/12;return n===2?_s(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Bu(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Ng(e,t,n){return-Uf(Bf(e,1,t),n)+t-1}function ys(e,t=4,n=1){const i=Ng(e,t,n),s=Ng(e+1,t,n);return(ro(e)-i+s)/7}function sf(e){return e>99?e:e>yt.twoDigitCutoffYear?1900+e:2e3+e}function d0(e,t,n,i=null){const s=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(a.timeZone=i);const u={timeZoneName:t,...a},c=new Intl.DateTimeFormat(n,u).formatToParts(s).find(f=>f.type.toLowerCase()==="timezonename");return c?c.value:null}function Uu(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0,s=n<0||Object.is(n,-0)?-i:i;return n*60+s}function p0(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new kt(`Invalid unit value ${e}`);return t}function mu(e,t){const n={};for(const i in e)if(co(e,i)){const s=e[i];if(s==null)continue;n[t(i)]=p0(s)}return n}function ls(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${St(n,2)}:${St(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${St(n,2)}${St(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function ju(e){return jN(e,["hour","minute","second","millisecond"])}const VN=["January","February","March","April","May","June","July","August","September","October","November","December"],h0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qN=["J","F","M","A","M","J","J","A","S","O","N","D"];function m0(e){switch(e){case"narrow":return[...qN];case"short":return[...h0];case"long":return[...VN];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const g0=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],y0=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],GN=["M","T","W","T","F","S","S"];function v0(e){switch(e){case"narrow":return[...GN];case"short":return[...y0];case"long":return[...g0];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const b0=["AM","PM"],YN=["Before Christ","Anno Domini"],ZN=["BC","AD"],XN=["B","A"];function w0(e){switch(e){case"narrow":return[...XN];case"short":return[...ZN];case"long":return[...YN];default:return null}}function JN(e){return b0[e.hour<12?0:1]}function KN(e,t){return v0(t)[e.weekday-1]}function QN(e,t){return m0(t)[e.month-1]}function eA(e,t){return w0(t)[e.year<0?0:1]}function tA(e,t,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const x=e==="days";switch(t){case 1:return x?"tomorrow":`next ${s[e][0]}`;case-1:return x?"yesterday":`last ${s[e][0]}`;case 0:return x?"today":`this ${s[e][0]}`}}const u=Object.is(t,-0)||t<0,c=Math.abs(t),f=c===1,p=s[e],h=i?f?p[1]:p[2]||p[1]:f?s[e][0]:e;return u?`${c} ${h} ago`:`in ${c} ${h}`}function Ag(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const nA={D:du,DD:Lv,DDD:zv,DDDD:Fv,t:Wv,tt:Bv,ttt:Uv,tttt:jv,T:Hv,TT:Vv,TTT:qv,TTTT:Gv,f:Yv,ff:Xv,fff:Kv,ffff:e0,F:Zv,FF:Jv,FFF:Qv,FFFF:t0};class $t{static create(t,n={}){return new $t(t,n)}static parseFormat(t){let n=null,i="",s=!1;const a=[];for(let u=0;u<t.length;u++){const c=t.charAt(u);c==="'"?((i.length>0||s)&&a.push({literal:s||/^\s+$/.test(i),val:i===""?"'":i}),n=null,i="",s=!s):s||c===n?i+=c:(i.length>0&&a.push({literal:/^\s+$/.test(i),val:i}),i=c,n=c)}return i.length>0&&a.push({literal:s||/^\s+$/.test(i),val:i}),a}static macroTokenToFormatOpts(t){return nA[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,i=void 0){if(this.opts.forceSimple)return St(t,n);const s={...this.opts};return n>0&&(s.padTo=n),i&&(s.signDisplay=i),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,n){const i=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(w,O)=>this.loc.extract(t,w,O),u=w=>t.isOffsetFixed&&t.offset===0&&w.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,w.format):"",c=()=>i?JN(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),f=(w,O)=>i?QN(t,w):a(O?{month:w}:{month:w,day:"numeric"},"month"),p=(w,O)=>i?KN(t,w):a(O?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),h=w=>{const O=$t.macroTokenToFormatOpts(w);return O?this.formatWithSystemDefault(t,O):w},x=w=>i?eA(t,w):a({era:w},"era"),R=w=>{switch(w){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return s?a({day:"numeric"},"day"):this.num(t.day);case"dd":return s?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return p("short",!0);case"cccc":return p("long",!0);case"ccccc":return p("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return p("short",!1);case"EEEE":return p("long",!1);case"EEEEE":return p("narrow",!1);case"L":return s?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return f("short",!0);case"LLLL":return f("long",!0);case"LLLLL":return f("narrow",!0);case"M":return s?a({month:"numeric"},"month"):this.num(t.month);case"MM":return s?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return f("short",!1);case"MMMM":return f("long",!1);case"MMMMM":return f("narrow",!1);case"y":return s?a({year:"numeric"},"year"):this.num(t.year);case"yy":return s?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(w)}};return Ag($t.parseFormat(n),R)}formatDurationFromString(t,n){const i=this.opts.signMode==="negativeLargestOnly"?-1:1,s=h=>{switch(h[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},a=(h,x)=>R=>{const w=s(R);if(w){const O=x.isNegativeDuration&&w!==x.largestUnit?i:1;let y;return this.opts.signMode==="negativeLargestOnly"&&w!==x.largestUnit?y="never":this.opts.signMode==="all"?y="always":y="auto",this.num(h.get(w)*O,R.length,y)}else return R},u=$t.parseFormat(n),c=u.reduce((h,{literal:x,val:R})=>x?h:h.concat(R),[]),f=t.shiftTo(...c.map(s).filter(h=>h)),p={isNegativeDuration:f<0,largestUnit:Object.keys(f.values)[0]};return Ag(u,a(f,p))}}const x0=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function mo(...e){const t=e.reduce((n,i)=>n+i.source,"");return RegExp(`^${t}$`)}function go(...e){return t=>e.reduce(([n,i,s],a)=>{const[u,c,f]=a(t,s);return[{...n,...u},c||i,f]},[{},null,1]).slice(0,2)}function yo(e,...t){if(e==null)return[null,null];for(const[n,i]of t){const s=n.exec(e);if(s)return i(s)}return[null,null]}function S0(...e){return(t,n)=>{const i={};let s;for(s=0;s<e.length;s++)i[e[s]]=kr(t[n+s]);return[i,null,n+s]}}const E0=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,rA=`(?:${E0.source}?(?:\\[(${x0.source})\\])?)?`,Vf=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,O0=RegExp(`${Vf.source}${rA}`),qf=RegExp(`(?:[Tt]${O0.source})?`),iA=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,oA=/(\d{4})-?W(\d\d)(?:-?(\d))?/,sA=/(\d{4})-?(\d{3})/,aA=S0("weekYear","weekNumber","weekDay"),uA=S0("year","ordinal"),lA=/(\d{4})-(\d\d)-(\d\d)/,T0=RegExp(`${Vf.source} ?(?:${E0.source}|(${x0.source}))?`),cA=RegExp(`(?: ${T0.source})?`);function io(e,t,n){const i=e[t];return Ae(i)?n:kr(i)}function fA(e,t){return[{year:io(e,t),month:io(e,t+1,1),day:io(e,t+2,1)},null,t+3]}function vo(e,t){return[{hours:io(e,t,0),minutes:io(e,t+1,0),seconds:io(e,t+2,0),milliseconds:jf(e[t+3])},null,t+4]}function Rs(e,t){const n=!e[t]&&!e[t+1],i=Uu(e[t+1],e[t+2]),s=n?null:Ut.instance(i);return[{},s,t+3]}function Ds(e,t){const n=e[t]?br.create(e[t]):null;return[{},n,t+1]}const dA=RegExp(`^T?${Vf.source}$`),pA=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function hA(e){const[t,n,i,s,a,u,c,f,p]=e,h=t[0]==="-",x=f&&f[0]==="-",R=(w,O=!1)=>w!==void 0&&(O||w&&h)?-w:w;return[{years:R(oi(n)),months:R(oi(i)),weeks:R(oi(s)),days:R(oi(a)),hours:R(oi(u)),minutes:R(oi(c)),seconds:R(oi(f),f==="-0"),milliseconds:R(jf(p),x)}]}const mA={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Gf(e,t,n,i,s,a,u){const c={year:t.length===2?sf(kr(t)):kr(t),month:h0.indexOf(n)+1,day:kr(i),hour:kr(s),minute:kr(a)};return u&&(c.second=kr(u)),e&&(c.weekday=e.length>3?g0.indexOf(e)+1:y0.indexOf(e)+1),c}const gA=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function yA(e){const[,t,n,i,s,a,u,c,f,p,h,x]=e,R=Gf(t,s,i,n,a,u,c);let w;return f?w=mA[f]:p?w=0:w=Uu(h,x),[R,new Ut(w)]}function vA(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const bA=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,wA=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,xA=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function kg(e){const[,t,n,i,s,a,u,c]=e;return[Gf(t,s,i,n,a,u,c),Ut.utcInstance]}function SA(e){const[,t,n,i,s,a,u,c]=e;return[Gf(t,c,n,i,s,a,u),Ut.utcInstance]}const EA=mo(iA,qf),OA=mo(oA,qf),TA=mo(sA,qf),CA=mo(O0),C0=go(fA,vo,Rs,Ds),_A=go(aA,vo,Rs,Ds),RA=go(uA,vo,Rs,Ds),DA=go(vo,Rs,Ds);function MA(e){return yo(e,[EA,C0],[OA,_A],[TA,RA],[CA,DA])}function PA(e){return yo(vA(e),[gA,yA])}function IA(e){return yo(e,[bA,kg],[wA,kg],[xA,SA])}function NA(e){return yo(e,[pA,hA])}const AA=go(vo);function kA(e){return yo(e,[dA,AA])}const $A=mo(lA,cA),LA=mo(T0),zA=go(vo,Rs,Ds);function FA(e){return yo(e,[$A,C0],[LA,zA])}const $g="Invalid Duration",_0={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},WA={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},..._0},xn=146097/400,Gi=146097/4800,BA={years:{quarters:4,months:12,weeks:xn/7,days:xn,hours:xn*24,minutes:xn*24*60,seconds:xn*24*60*60,milliseconds:xn*24*60*60*1e3},quarters:{months:3,weeks:xn/28,days:xn/4,hours:xn*24/4,minutes:xn*24*60/4,seconds:xn*24*60*60/4,milliseconds:xn*24*60*60*1e3/4},months:{weeks:Gi/7,days:Gi,hours:Gi*24,minutes:Gi*24*60,seconds:Gi*24*60*60,milliseconds:Gi*24*60*60*1e3},..._0},gi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],UA=gi.slice(0).reverse();function gr(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ge(i)}function R0(e,t){let n=t.milliseconds??0;for(const i of UA.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function Lg(e,t){const n=R0(e,t)<0?-1:1;gi.reduceRight((i,s)=>{if(Ae(t[s]))return i;if(i){const a=t[i]*n,u=e[s][i],c=Math.floor(a/u);t[s]+=c*n,t[i]-=c*u*n}return s},null),gi.reduce((i,s)=>{if(Ae(t[s]))return i;if(i){const a=t[i]%1;t[i]-=a,t[s]+=a*e[i][s]}return s},null)}function zg(e){const t={};for(const[n,i]of Object.entries(e))i!==0&&(t[n]=i);return t}class Ge{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let i=n?BA:WA;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||Qe.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,n){return Ge.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new kt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ge({values:mu(t,Ge.normalizeUnit),loc:Qe.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Wr(t))return Ge.fromMillis(t);if(Ge.isDuration(t))return t;if(typeof t=="object")return Ge.fromObject(t);throw new kt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[i]=NA(t);return i?Ge.fromObject(i,n):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[i]=kA(t);return i?Ge.fromObject(i,n):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the Duration is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new hN(i);return new Ge({invalid:i})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new $v(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?$t.create(this.loc,i).formatDurationFromString(this,t):$g}toHuman(t={}){if(!this.isValid)return $g;const n=t.showZeros!==!1,i=gi.map(s=>{const a=this.values[s];return Ae(a)||a===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:s.slice(0,-1)}).format(a)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Hf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ke.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?R0(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t),i={};for(const s of gi)(co(n.values,s)||co(this.values,s))&&(i[s]=n.get(s)+this.get(s));return gr(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=p0(t(this.values[i],i));return gr(this,{values:n},!0)}get(t){return this[Ge.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...mu(t,Ge.normalizeUnit)};return gr(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:i,matrix:s}={}){const u={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:s,conversionAccuracy:i};return gr(this,u)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Lg(this.matrix,t),gr(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=zg(this.normalize().shiftToAll().toObject());return gr(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(u=>Ge.normalizeUnit(u));const n={},i={},s=this.toObject();let a;for(const u of gi)if(t.indexOf(u)>=0){a=u;let c=0;for(const p in i)c+=this.matrix[p][u]*i[p],i[p]=0;Wr(s[u])&&(c+=s[u]);const f=Math.trunc(c);n[u]=f,i[u]=(c*1e3-f*1e3)/1e3}else Wr(s[u])&&(i[u]=s[u]);for(const u in i)i[u]!==0&&(n[a]+=u===a?i[u]:i[u]/this.matrix[a][u]);return Lg(this.matrix,n),gr(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return gr(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=zg(this.values);return gr(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(i,s){return i===void 0||i===0?s===void 0||s===0:i===s}for(const i of gi)if(!n(this.values[i],t.values[i]))return!1;return!0}}const Yi="Invalid Interval";function jA(e,t){return!e||!e.isValid?mt.invalid("missing or invalid start"):!t||!t.isValid?mt.invalid("missing or invalid end"):t<e?mt.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the Interval is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new pN(i);return new mt({invalid:i})}static fromDateTimes(t,n){const i=Jo(t),s=Jo(n),a=jA(i,s);return a??new mt({start:i,end:s})}static after(t,n){const i=Ge.fromDurationLike(n),s=Jo(t);return mt.fromDateTimes(s,s.plus(i))}static before(t,n){const i=Ge.fromDurationLike(n),s=Jo(t);return mt.fromDateTimes(s.minus(i),s)}static fromISO(t,n){const[i,s]=(t||"").split("/",2);if(i&&s){let a,u;try{a=ke.fromISO(i,n),u=a.isValid}catch{u=!1}let c,f;try{c=ke.fromISO(s,n),f=c.isValid}catch{f=!1}if(u&&f)return mt.fromDateTimes(a,c);if(u){const p=Ge.fromISO(s,n);if(p.isValid)return mt.after(a,p)}else if(f){const p=Ge.fromISO(i,n);if(p.isValid)return mt.before(c,p)}}return mt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(t,n);let s;return n!=null&&n.useLocaleWeeks?s=this.end.reconfigure({locale:i.locale}):s=this.end,s=s.startOf(t,n),Math.floor(s.diff(i,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Jo).filter(u=>this.contains(u)).sort((u,c)=>u.toMillis()-c.toMillis()),i=[];let{s}=this,a=0;for(;s<this.e;){const u=n[a]||this.e,c=+u>+this.e?this.e:u;i.push(mt.fromDateTimes(s,c)),s=c,a+=1}return i}splitBy(t){const n=Ge.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,s=1,a;const u=[];for(;i<this.e;){const c=this.start.plus(n.mapUnits(f=>f*s));a=+c>+this.e?this.e:c,u.push(mt.fromDateTimes(i,a)),i=a,s+=1}return u}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return n>=i?null:mt.fromDateTimes(n,i)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return mt.fromDateTimes(n,i)}static merge(t){const[n,i]=t.sort((s,a)=>s.s-a.s).reduce(([s,a],u)=>a?a.overlaps(u)||a.abutsStart(u)?[s,a.union(u)]:[s.concat([a]),u]:[s,u],[[],null]);return i&&n.push(i),n}static xor(t){let n=null,i=0;const s=[],a=t.map(f=>[{time:f.s,type:"s"},{time:f.e,type:"e"}]),u=Array.prototype.concat(...a),c=u.sort((f,p)=>f.time-p.time);for(const f of c)i+=f.type==="s"?1:-1,i===1?n=f.time:(n&&+n!=+f.time&&s.push(mt.fromDateTimes(n,f.time)),n=null);return mt.merge(s)}difference(...t){return mt.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Yi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=du,n={}){return this.isValid?$t.create(this.s.loc.clone(n),t).formatInterval(this):Yi}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Yi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Yi}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Yi}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Yi}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ge.invalid(this.invalidReason)}mapEndpoints(t){return mt.fromDateTimes(t(this.s),t(this.e))}}class Fa{static hasDST(t=yt.defaultZone){const n=ke.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return br.isValidZone(t)}static normalizeZone(t){return zr(t,yt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Qe.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Qe.create(n,i,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Qe.create(n,i,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Qe.create(n,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:i=null,locObj:s=null}={}){return(s||Qe.create(n,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Qe.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Qe.create(n,null,"gregory").eras(t)}static features(){return{relative:c0(),localeWeek:f0()}}}function Fg(e,t){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(Ge.fromMillis(i).as("days"))}function HA(e,t,n){const i=[["years",(f,p)=>p.year-f.year],["quarters",(f,p)=>p.quarter-f.quarter+(p.year-f.year)*4],["months",(f,p)=>p.month-f.month+(p.year-f.year)*12],["weeks",(f,p)=>{const h=Fg(f,p);return(h-h%7)/7}],["days",Fg]],s={},a=e;let u,c;for(const[f,p]of i)n.indexOf(f)>=0&&(u=f,s[f]=p(e,t),c=a.plus(s),c>t?(s[f]--,e=a.plus(s),e>t&&(c=e,s[f]--,e=a.plus(s))):e=c);return[e,s,c,u]}function VA(e,t,n,i){let[s,a,u,c]=HA(e,t,n);const f=t-s,p=n.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);p.length===0&&(u<t&&(u=s.plus({[c]:1})),u!==s&&(a[c]=(a[c]||0)+f/(u-s)));const h=Ge.fromObject(a,i);return p.length>0?Ge.fromMillis(f,i).shiftTo(...p).plus(h):h}const qA="missing Intl.DateTimeFormat.formatToParts support";function Ze(e,t=n=>n){return{regex:e,deser:([n])=>t($N(n))}}const GA=" ",D0=`[ ${GA}]`,M0=new RegExp(D0,"g");function YA(e){return e.replace(/\./g,"\\.?").replace(M0,D0)}function Wg(e){return e.replace(/\./g,"").replace(M0," ").toLowerCase()}function Ln(e,t){return e===null?null:{regex:RegExp(e.map(YA).join("|")),deser:([n])=>e.findIndex(i=>Wg(n)===Wg(i))+t}}function Bg(e,t){return{regex:e,deser:([,n,i])=>Uu(n,i),groups:t}}function Wa(e){return{regex:e,deser:([t])=>t}}function ZA(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function XA(e,t){const n=$n(t),i=$n(t,"{2}"),s=$n(t,"{3}"),a=$n(t,"{4}"),u=$n(t,"{6}"),c=$n(t,"{1,2}"),f=$n(t,"{1,3}"),p=$n(t,"{1,6}"),h=$n(t,"{1,9}"),x=$n(t,"{2,4}"),R=$n(t,"{4,6}"),w=v=>({regex:RegExp(ZA(v.val)),deser:([g])=>g,literal:!0}),y=(v=>{if(e.literal)return w(v);switch(v.val){case"G":return Ln(t.eras("short"),0);case"GG":return Ln(t.eras("long"),0);case"y":return Ze(p);case"yy":return Ze(x,sf);case"yyyy":return Ze(a);case"yyyyy":return Ze(R);case"yyyyyy":return Ze(u);case"M":return Ze(c);case"MM":return Ze(i);case"MMM":return Ln(t.months("short",!0),1);case"MMMM":return Ln(t.months("long",!0),1);case"L":return Ze(c);case"LL":return Ze(i);case"LLL":return Ln(t.months("short",!1),1);case"LLLL":return Ln(t.months("long",!1),1);case"d":return Ze(c);case"dd":return Ze(i);case"o":return Ze(f);case"ooo":return Ze(s);case"HH":return Ze(i);case"H":return Ze(c);case"hh":return Ze(i);case"h":return Ze(c);case"mm":return Ze(i);case"m":return Ze(c);case"q":return Ze(c);case"qq":return Ze(i);case"s":return Ze(c);case"ss":return Ze(i);case"S":return Ze(f);case"SSS":return Ze(s);case"u":return Wa(h);case"uu":return Wa(c);case"uuu":return Ze(n);case"a":return Ln(t.meridiems(),0);case"kkkk":return Ze(a);case"kk":return Ze(x,sf);case"W":return Ze(c);case"WW":return Ze(i);case"E":case"c":return Ze(n);case"EEE":return Ln(t.weekdays("short",!1),1);case"EEEE":return Ln(t.weekdays("long",!1),1);case"ccc":return Ln(t.weekdays("short",!0),1);case"cccc":return Ln(t.weekdays("long",!0),1);case"Z":case"ZZ":return Bg(new RegExp(`([+-]${c.source})(?::(${i.source}))?`),2);case"ZZZ":return Bg(new RegExp(`([+-]${c.source})(${i.source})?`),2);case"z":return Wa(/[a-z_+-/]{1,256}?/i);case" ":return Wa(/[^\S\n\r]/);default:return w(v)}})(e)||{invalidReason:qA};return y.token=e,y}const JA={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function KA(e,t,n){const{type:i,value:s}=e;if(i==="literal"){const f=/^\s+$/.test(s);return{literal:!f,val:f?" ":s}}const a=t[i];let u=i;i==="hour"&&(t.hour12!=null?u=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?u="hour12":u="hour24":u=n.hour12?"hour12":"hour24");let c=JA[u];if(typeof c=="object"&&(c=c[a]),c)return{literal:!1,val:c}}function QA(e){return[`^${e.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,e]}function ek(e,t,n){const i=e.match(t);if(i){const s={};let a=1;for(const u in n)if(co(n,u)){const c=n[u],f=c.groups?c.groups+1:1;!c.literal&&c.token&&(s[c.token.val[0]]=c.deser(i.slice(a,a+f))),a+=f}return[i,s]}else return[i,{}]}function tk(e){const t=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return Ae(e.z)||(n=br.create(e.z)),Ae(e.Z)||(n||(n=new Ut(e.Z)),i=e.Z),Ae(e.q)||(e.M=(e.q-1)*3+1),Ae(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ae(e.u)||(e.S=jf(e.u)),[Object.keys(e).reduce((a,u)=>{const c=t(u);return c&&(a[c]=e[u]),a},{}),n,i]}let _c=null;function nk(){return _c||(_c=ke.fromMillis(1555555555555)),_c}function rk(e,t){if(e.literal)return e;const n=$t.macroTokenToFormatOpts(e.val),i=A0(n,t);return i==null||i.includes(void 0)?e:i}function P0(e,t){return Array.prototype.concat(...e.map(n=>rk(n,t)))}class I0{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=P0($t.parseFormat(n),t),this.units=this.tokens.map(i=>XA(i,t)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,s]=QA(this.units);this.regex=RegExp(i,"i"),this.handlers=s}}explainFromTokens(t){if(this.isValid){const[n,i]=ek(t,this.regex,this.handlers),[s,a,u]=i?tk(i):[null,null,void 0];if(co(i,"a")&&co(i,"H"))throw new Qi("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:s,zone:a,specificOffset:u}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function N0(e,t,n){return new I0(e,n).explainFromTokens(t)}function ik(e,t,n){const{result:i,zone:s,specificOffset:a,invalidReason:u}=N0(e,t,n);return[i,s,a,u]}function A0(e,t){if(!e)return null;const i=$t.create(t,e).dtFormatter(nk()),s=i.formatToParts(),a=i.resolvedOptions();return s.map(u=>KA(u,e,a))}const Rc="Invalid DateTime",ok=864e13;function is(e){return new zn("unsupported zone",`the zone "${e.name}" is not supported`)}function Dc(e){return e.weekData===null&&(e.weekData=pu(e.c)),e.weekData}function Mc(e){return e.localWeekData===null&&(e.localWeekData=pu(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function si(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ke({...n,...t,old:n})}function k0(e,t,n){let i=e-t*60*1e3;const s=n.offset(i);if(t===s)return[i,t];i-=(s-t)*60*1e3;const a=n.offset(i);return s===a?[i,s]:[e-Math.min(s,a)*60*1e3,Math.max(s,a)]}function Ba(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Va(e,t,n){return k0(Bu(e),t,n)}function Ug(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:i,month:s,day:Math.min(e.c.day,hu(i,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},u=Ge.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=Bu(a);let[f,p]=k0(c,n,e.zone);return u!==0&&(f+=u,p=e.zone.offset(f)),{ts:f,o:p}}function Zi(e,t,n,i,s,a){const{setZone:u,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const f=t||c,p=ke.fromObject(e,{...n,zone:f,specificOffset:a});return u?p:p.setZone(c)}else return ke.invalid(new zn("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Ua(e,t,n=!0){return e.isValid?$t.create(Qe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Pc(e,t,n){const i=e.c.year>9999||e.c.year<0;let s="";if(i&&e.c.year>=0&&(s+="+"),s+=St(e.c.year,i?6:4),n==="year")return s;if(t){if(s+="-",s+=St(e.c.month),n==="month")return s;s+="-"}else if(s+=St(e.c.month),n==="month")return s;return s+=St(e.c.day),s}function jg(e,t,n,i,s,a,u){let c=!n||e.c.millisecond!==0||e.c.second!==0,f="";switch(u){case"day":case"month":case"year":break;default:if(f+=St(e.c.hour),u==="hour")break;if(t){if(f+=":",f+=St(e.c.minute),u==="minute")break;c&&(f+=":",f+=St(e.c.second))}else{if(f+=St(e.c.minute),u==="minute")break;c&&(f+=St(e.c.second))}if(u==="second")break;c&&(!i||e.c.millisecond!==0)&&(f+=".",f+=St(e.c.millisecond,3))}return s&&(e.isOffsetFixed&&e.offset===0&&!a?f+="Z":e.o<0?(f+="-",f+=St(Math.trunc(-e.o/60)),f+=":",f+=St(Math.trunc(-e.o%60))):(f+="+",f+=St(Math.trunc(e.o/60)),f+=":",f+=St(Math.trunc(e.o%60)))),a&&(f+="["+e.zone.ianaName+"]"),f}const $0={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},sk={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ak={ordinal:1,hour:0,minute:0,second:0,millisecond:0},qa=["year","month","day","hour","minute","second","millisecond"],uk=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],lk=["year","ordinal","hour","minute","second","millisecond"];function Ga(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new $v(e);return t}function Hg(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ga(e)}}function ck(e){if(os===void 0&&(os=yt.now()),e.type!=="iana")return e.offset(os);const t=e.name;let n=af.get(t);return n===void 0&&(n=e.offset(os),af.set(t,n)),n}function Vg(e,t){const n=zr(t.zone,yt.defaultZone);if(!n.isValid)return ke.invalid(is(n));const i=Qe.fromObject(t);let s,a;if(Ae(e.year))s=yt.now();else{for(const f of qa)Ae(e[f])&&(e[f]=$0[f]);const u=u0(e)||l0(e);if(u)return ke.invalid(u);const c=ck(n);[s,a]=Va(e,c,n)}return new ke({ts:s,zone:n,loc:i,o:a})}function qg(e,t,n){const i=Ae(n.round)?!0:n.round,s=Ae(n.rounding)?"trunc":n.rounding,a=(c,f)=>(c=Hf(c,i||n.calendary?0:2,n.calendary?"round":s),t.loc.clone(n).relFormatter(n).format(c,f)),u=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return a(u(n.unit),n.unit);for(const c of n.units){const f=u(c);if(Math.abs(f)>=1)return a(f,c)}return a(e>t?-0:0,n.units[n.units.length-1])}function Gg(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let os;const af=new Map;class ke{constructor(t){const n=t.zone||yt.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new zn("invalid input"):null)||(n.isValid?null:is(n));this.ts=Ae(t.ts)?yt.now():t.ts;let s=null,a=null;if(!i)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[s,a]=[t.old.c,t.old.o];else{const c=Wr(t.o)&&!t.old?t.o:n.offset(this.ts);s=Ba(this.ts,c),i=Number.isNaN(s.year)?new zn("invalid input"):null,s=i?null:s,a=i?null:c}this._zone=n,this.loc=t.loc||Qe.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=s,this.o=a,this.isLuxonDateTime=!0}static now(){return new ke({})}static local(){const[t,n]=Gg(arguments),[i,s,a,u,c,f,p]=n;return Vg({year:i,month:s,day:a,hour:u,minute:c,second:f,millisecond:p},t)}static utc(){const[t,n]=Gg(arguments),[i,s,a,u,c,f,p]=n;return t.zone=Ut.utcInstance,Vg({year:i,month:s,day:a,hour:u,minute:c,second:f,millisecond:p},t)}static fromJSDate(t,n={}){const i=BN(t)?t.valueOf():NaN;if(Number.isNaN(i))return ke.invalid("invalid input");const s=zr(n.zone,yt.defaultZone);return s.isValid?new ke({ts:i,zone:s,loc:Qe.fromObject(n)}):ke.invalid(is(s))}static fromMillis(t,n={}){if(Wr(t))return t<-864e13||t>ok?ke.invalid("Timestamp out of range"):new ke({ts:t,zone:zr(n.zone,yt.defaultZone),loc:Qe.fromObject(n)});throw new kt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Wr(t))return new ke({ts:t*1e3,zone:zr(n.zone,yt.defaultZone),loc:Qe.fromObject(n)});throw new kt("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const i=zr(n.zone,yt.defaultZone);if(!i.isValid)return ke.invalid(is(i));const s=Qe.fromObject(n),a=mu(t,Hg),{minDaysInFirstWeek:u,startOfWeek:c}=Pg(a,s),f=yt.now(),p=Ae(n.specificOffset)?i.offset(f):n.specificOffset,h=!Ae(a.ordinal),x=!Ae(a.year),R=!Ae(a.month)||!Ae(a.day),w=x||R,O=a.weekYear||a.weekNumber;if((w||h)&&O)throw new Qi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(R&&h)throw new Qi("Can't mix ordinal dates with month/day");const y=O||a.weekday&&!w;let v,g,m=Ba(f,p);y?(v=uk,g=sk,m=pu(m,u,c)):h?(v=lk,g=ak,m=Cc(m)):(v=qa,g=$0);let S=!1;for(const J of v){const Z=a[J];Ae(Z)?S?a[J]=g[J]:a[J]=m[J]:S=!0}const E=y?zN(a,u,c):h?FN(a):u0(a),C=E||l0(a);if(C)return ke.invalid(C);const M=y?Dg(a,u,c):h?Mg(a):a,[D,A]=Va(M,p,i),z=new ke({ts:D,zone:i,o:A,loc:s});return a.weekday&&w&&t.weekday!==z.weekday?ke.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${z.toISO()}`):z.isValid?z:ke.invalid(z.invalid)}static fromISO(t,n={}){const[i,s]=MA(t);return Zi(i,s,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[i,s]=PA(t);return Zi(i,s,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[i,s]=IA(t);return Zi(i,s,n,"HTTP",n)}static fromFormat(t,n,i={}){if(Ae(t)||Ae(n))throw new kt("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0}),[c,f,p,h]=ik(u,t,n);return h?ke.invalid(h):Zi(c,f,i,`format ${n}`,t,p)}static fromString(t,n,i={}){return ke.fromFormat(t,n,i)}static fromSQL(t,n={}){const[i,s]=FA(t);return Zi(i,s,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new kt("need to specify a reason the DateTime is invalid");const i=t instanceof zn?t:new zn(t,n);if(yt.throwOnInvalid)throw new dN(i);return new ke({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const i=A0(t,Qe.fromObject(n));return i?i.map(s=>s?s.val:null).join(""):null}static expandFormat(t,n={}){return P0($t.parseFormat(t),Qe.fromObject(n)).map(s=>s.val).join("")}static resetCache(){os=void 0,af.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Dc(this).weekYear:NaN}get weekNumber(){return this.isValid?Dc(this).weekNumber:NaN}get weekday(){return this.isValid?Dc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Mc(this).weekday:NaN}get localWeekNumber(){return this.isValid?Mc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Mc(this).weekYear:NaN}get ordinal(){return this.isValid?Cc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fa.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fa.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,i=Bu(this.c),s=this.zone.offset(i-t),a=this.zone.offset(i+t),u=this.zone.offset(i-s*n),c=this.zone.offset(i-a*n);if(u===c)return[this];const f=i-u*n,p=i-c*n,h=Ba(f,u),x=Ba(p,c);return h.hour===x.hour&&h.minute===x.minute&&h.second===x.second&&h.millisecond===x.millisecond?[si(this,{ts:f}),si(this,{ts:p})]:[this]}get isInLeapYear(){return _s(this.year)}get daysInMonth(){return hu(this.year,this.month)}get daysInYear(){return this.isValid?ro(this.year):NaN}get weeksInWeekYear(){return this.isValid?ys(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ys(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:i,calendar:s}=$t.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:s}}toUTC(t=0,n={}){return this.setZone(Ut.instance(t),n)}toLocal(){return this.setZone(yt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(t=zr(t,yt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let s=this.ts;if(n||i){const a=t.offset(this.ts),u=this.toObject();[s]=Va(u,a,t)}return si(this,{ts:s,zone:t})}else return ke.invalid(is(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:i}={}){const s=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:i});return si(this,{loc:s})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=mu(t,Hg),{minDaysInFirstWeek:i,startOfWeek:s}=Pg(n,this.loc),a=!Ae(n.weekYear)||!Ae(n.weekNumber)||!Ae(n.weekday),u=!Ae(n.ordinal),c=!Ae(n.year),f=!Ae(n.month)||!Ae(n.day),p=c||f,h=n.weekYear||n.weekNumber;if((p||u)&&h)throw new Qi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Qi("Can't mix ordinal dates with month/day");let x;a?x=Dg({...pu(this.c,i,s),...n},i,s):Ae(n.ordinal)?(x={...this.toObject(),...n},Ae(n.day)&&(x.day=Math.min(hu(x.year,x.month),x.day))):x=Mg({...Cc(this.c),...n});const[R,w]=Va(x,this.o,this.zone);return si(this,{ts:R,o:w})}plus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t);return si(this,Ug(this,n))}minus(t){if(!this.isValid)return this;const n=Ge.fromDurationLike(t).negate();return si(this,Ug(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},s=Ge.normalizeUnit(t);switch(s){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(s==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:u}=this;u<a&&(i.weekNumber=this.weekNumber-1),i.weekday=a}else i.weekday=1;if(s==="quarters"){const a=Math.ceil(this.month/3);i.month=(a-1)*3+1}return this.set(i)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?$t.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Rc}toLocaleString(t=du,n={}){return this.isValid?$t.create(this.loc.clone(n),t).formatDateTime(this):Rc}toLocaleParts(t={}){return this.isValid?$t.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:s=!0,extendedZone:a=!1,precision:u="milliseconds"}={}){if(!this.isValid)return null;u=Ga(u);const c=t==="extended";let f=Pc(this,c,u);return qa.indexOf(u)>=3&&(f+="T"),f+=jg(this,c,n,i,s,a,u),f}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Pc(this,t==="extended",Ga(n)):null}toISOWeekDate(){return Ua(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:s=!1,extendedZone:a=!1,format:u="extended",precision:c="milliseconds"}={}){return this.isValid?(c=Ga(c),(s&&qa.indexOf(c)>=3?"T":"")+jg(this,u==="extended",n,t,i,a,c)):null}toRFC2822(){return Ua(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ua(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Pc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let s="HH:mm:ss.SSS";return(n||t)&&(i&&(s+=" "),n?s+="z":t&&(s+="ZZ")),Ua(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Rc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",i={}){if(!this.isValid||!t.isValid)return Ge.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...i},a=UN(n).map(Ge.normalizeUnit),u=t.valueOf()>this.valueOf(),c=u?this:t,f=u?t:this,p=VA(c,f,a,s);return u?p.negate():p}diffNow(t="milliseconds",n={}){return this.diff(ke.now(),t,n)}until(t){return this.isValid?mt.fromDateTimes(this,t):this}hasSame(t,n,i){if(!this.isValid)return!1;const s=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,i)<=s&&s<=a.endOf(n,i)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||ke.fromObject({},{zone:this.zone}),i=t.padding?this<n?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(s=t.unit,a=void 0),qg(n,this.plus(i),{...t,numeric:"always",units:s,unit:a})}toRelativeCalendar(t={}){return this.isValid?qg(t.base||ke.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(ke.isDateTime))throw new kt("min requires all arguments be DateTimes");return Ig(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(ke.isDateTime))throw new kt("max requires all arguments be DateTimes");return Ig(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,i={}){const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0});return N0(u,t,n)}static fromStringExplain(t,n,i={}){return ke.fromFormatExplain(t,n,i)}static buildFormatParser(t,n={}){const{locale:i=null,numberingSystem:s=null}=n,a=Qe.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return new I0(a,t)}static fromFormatParser(t,n,i={}){if(Ae(t)||Ae(n))throw new kt("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:a=null}=i,u=Qe.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0});if(!u.equals(n.locale))throw new kt(`fromFormatParser called with a locale of ${u}, but the format parser was created for ${n.locale}`);const{result:c,zone:f,specificOffset:p,invalidReason:h}=n.explainFromTokens(t);return h?ke.invalid(h):Zi(c,f,i,`format ${n.format}`,t,p)}static get DATE_SHORT(){return du}static get DATE_MED(){return Lv}static get DATE_MED_WITH_WEEKDAY(){return mN}static get DATE_FULL(){return zv}static get DATE_HUGE(){return Fv}static get TIME_SIMPLE(){return Wv}static get TIME_WITH_SECONDS(){return Bv}static get TIME_WITH_SHORT_OFFSET(){return Uv}static get TIME_WITH_LONG_OFFSET(){return jv}static get TIME_24_SIMPLE(){return Hv}static get TIME_24_WITH_SECONDS(){return Vv}static get TIME_24_WITH_SHORT_OFFSET(){return qv}static get TIME_24_WITH_LONG_OFFSET(){return Gv}static get DATETIME_SHORT(){return Yv}static get DATETIME_SHORT_WITH_SECONDS(){return Zv}static get DATETIME_MED(){return Xv}static get DATETIME_MED_WITH_SECONDS(){return Jv}static get DATETIME_MED_WITH_WEEKDAY(){return gN}static get DATETIME_FULL(){return Kv}static get DATETIME_FULL_WITH_SECONDS(){return Qv}static get DATETIME_HUGE(){return e0}static get DATETIME_HUGE_WITH_SECONDS(){return t0}}function Jo(e){if(ke.isDateTime(e))return e;if(e&&e.valueOf&&Wr(e.valueOf()))return ke.fromJSDate(e);if(e&&typeof e=="object")return ke.fromObject(e);throw new kt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const fk=e=>e?ke.fromISO(e):null,dk=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),L0=()=>"",z0="color-scheme";function F0(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.substring(0,e.length+1)===e+"=")return decodeURIComponent(i.substring(e.length+1))}return null}function W0(e,t,n=365){if(typeof document>"u")return;const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),document.cookie=`${e}=${encodeURIComponent(t)};expires=${i.toUTCString()};path=/;SameSite=Lax`}function pk(){const e=F0(z0);return e==="light"||e==="dark"||e==="system"?e:"system"}function hk(e){W0(z0,e)}function mk(e){return e==="system"?typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}function gk(e){typeof document>"u"||(document.cookie=`${e}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;SameSite=Lax`)}function yk(e,t,n){if(!t)return e;if(t.startsWith("http://")||t.startsWith("https://")){let u=t;return n&&Object.entries(n).forEach(([c,f])=>{u=u.replace(`:${c}`,encodeURIComponent(String(f)))}),u}let i=t;n&&Object.entries(n).forEach(([u,c])=>{const f=encodeURIComponent(String(c));i=i.replace(`:${u}`,f)});const s=e.endsWith("/")?e.slice(0,-1):e,a=i.startsWith("/")?i:`/${i}`;return`${s}${a}`}function Yf(e){switch(e){case"courses":return{get:"api/courses/",getById:"api/courses/:id",getByUrl:"api/courses/?encoded_url=:encodedUrl",post:"api/courses/",put:"api/courses/:id/",delete:"api/chat/courses/:id"};case"users":return{getCurrent:"api/users/current/",get:"api/users/",post:"api/users/",put:"api/users/:id/",delete:"api/users/:id/",logout:"/auth/lti_logout/"};case"calendar":return{get:"api/calendar/",getById:"api/calendar/:id",post:"api/calendar/",put:"api/calendar/:id/",delete:"api/calendar/:id/"};default:return{}}}function Zf(e,t){return t?{...e,...t}:e}let gu=null,eo=null;const Ya=[],vk=()=>gu,Xf=B.createContext(void 0),bk=({baseUrl:e="/",children:t})=>{const[n,i]=B.useState(new Map),s=B.useMemo(()=>{const c={endpoints:n,baseUrl:e};return gu=c,c},[n,e]),a=B.useCallback((c,f)=>{i(p=>{const h=Yf(c),x=Zf(h,f),R=new Map(p);return R.set(c,x),R})},[]),u=B.useRef(a);return u.current=a,eo=u.current,B.useEffect(()=>{eo&&Ya.length>0&&(Ya.forEach(({serviceKey:c,endpoints:f})=>{eo(c,f)}),Ya.length=0)},[]),B.useEffect(()=>()=>{eo=null},[]),F.jsx(Xf.Provider,{value:s,children:t})},wk=(e,t)=>{if(eo)eo(e,t);else if(gu){const n=Yf(e),i=Zf(n,t);gu.endpoints.set(e,i)}else Ya.push({serviceKey:e,endpoints:t})},xk=e=>{const t=B.useContext(Xf);if(t===void 0)throw new Error("useServiceApiConfig must be used within an ApiConfigProvider");return t.endpoints.get(e)},Sk=()=>{const e=B.useContext(Xf);if(e===void 0)throw new Error("useApiConfigContext must be used within an ApiConfigProvider");return e};exports.ApiConfigProvider=bk;exports.BREAKPOINT_INFO=Ji;exports.BreakpointIndicator=Iv;exports.CenteredHeading=TR;exports.CollapsingButtons=gD;exports.CompoundPanel=dD;exports.DialogOpener=XI;exports.Dialogs=nN;exports.DraggableItem=GI;exports.EditModeToggler=AI;exports.EventBus=Za;exports.ExtendedDialog=Av;exports.FormDialog=JI;exports.GridItem=jP;exports.GridItemProvider=BP;exports.LoadingScreen=kR;exports.NavigationFilter=ER;exports.NavigationSectionBuilder=OR;exports.Notifications=lN;exports.Panel=jy;exports.PanelProvider=$y;exports.ResponsiveGridLayout=TI;exports.Scroller=pi;exports.ScrollerProvider=Py;exports.Section=Hy;exports.SpeedDialButton=FP;exports.USER_PRESETS_KEY=Ts;exports.UserBus=Xa;exports.apiPrefix=L0;exports.buildUrl=yk;exports.calculateNavigationFromSections=lf;exports.closeDialog=tN;exports.convertObjectKeysToCamelCase=Yc;exports.convertObjectKeysToUnderscore=Zc;exports.createGridItem=UP;exports.deleteCookie=gk;exports.deleteUserPreset=_I;exports.eventBus=gT;exports.filterNavigationByRole=_T;exports.getAllMicroservices=ty;exports.getAllRegisteredMicroservices=Kg;exports.getApiConfig=vk;exports.getApiPrefix=L0;exports.getColorSchemePreference=pk;exports.getCookie=F0;exports.getDefaultEndpoints=Yf;exports.getEffectiveColorScheme=mk;exports.getFromLS=Pv;exports.getMicroservice=MT;exports.getMicroserviceIds=PT;exports.getUserPresets=zu;exports.isMicroserviceRegistered=IT;exports.mergeEndpoints=Zf;exports.openDialog=eN;exports.parseDate=fk;exports.registerApiEndpoints=wk;exports.registerDialog=KI;exports.registerMicroservice=RT;exports.registerRouteProvider=NT;exports.saveToLS=Vc;exports.saveUserPreset=CI;exports.setColorSchemePreference=hk;exports.setCookie=W0;exports.slugify=dk;exports.unregisterMicroservice=DT;exports.unregisterRouteProvider=AT;exports.updateMicroserviceNavigationForSections=Qg;exports.updateUserPreset=RI;exports.useApiConfigContext=Sk;exports.useCurrentUser=Zg;exports.useGridItemContext=WP;exports.useGridLayout=If;exports.useGridLayoutManagement=MI;exports.useMicroserviceNavigation=$T;exports.useMicroserviceRegistryStore=cf;exports.useMicroserviceRoutes=kT;exports.useNavigationFilterStore=Br;exports.useNavigationSectionManager=LT;exports.useNavigationStore=Jn;exports.useNotificationStore=Ff;exports.usePanelContext=Bn;exports.usePanelStore=po;exports.useRetry=ZI;exports.useScrollContext=Iy;exports.useServiceApiConfig=xk;exports.useSyncNavigationFilters=UT;exports.useUserActions=Xg;exports.useUserPreferences=yT;exports.userBus=Yt;