@qwickapps/server 1.5.1 → 1.6.0
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/CHANGELOG.md +43 -0
- package/dist/core/control-panel.d.ts.map +1 -1
- package/dist/core/control-panel.js +41 -0
- package/dist/core/control-panel.js.map +1 -1
- package/dist/core/guards.d.ts.map +1 -1
- package/dist/core/guards.js +77 -0
- package/dist/core/guards.js.map +1 -1
- package/dist/core/health-manager.d.ts +4 -0
- package/dist/core/health-manager.d.ts.map +1 -1
- package/dist/core/health-manager.js +6 -1
- package/dist/core/health-manager.js.map +1 -1
- package/dist/core/plugin-registry.d.ts +55 -5
- package/dist/core/plugin-registry.d.ts.map +1 -1
- package/dist/core/plugin-registry.js +57 -19
- package/dist/core/plugin-registry.js.map +1 -1
- package/dist/core/types.d.ts +2 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/plugins/api-keys/api-keys-plugin.d.ts +46 -0
- package/dist/plugins/api-keys/api-keys-plugin.d.ts.map +1 -0
- package/dist/plugins/api-keys/api-keys-plugin.js +329 -0
- package/dist/plugins/api-keys/api-keys-plugin.js.map +1 -0
- package/dist/plugins/api-keys/index.d.ts +14 -0
- package/dist/plugins/api-keys/index.d.ts.map +1 -0
- package/dist/plugins/api-keys/index.js +17 -0
- package/dist/plugins/api-keys/index.js.map +1 -0
- package/dist/plugins/api-keys/middleware/bearer-token-auth.d.ts +74 -0
- package/dist/plugins/api-keys/middleware/bearer-token-auth.d.ts.map +1 -0
- package/dist/plugins/api-keys/middleware/bearer-token-auth.js +201 -0
- package/dist/plugins/api-keys/middleware/bearer-token-auth.js.map +1 -0
- package/dist/plugins/api-keys/middleware/index.d.ts +7 -0
- package/dist/plugins/api-keys/middleware/index.d.ts.map +1 -0
- package/dist/plugins/api-keys/middleware/index.js +7 -0
- package/dist/plugins/api-keys/middleware/index.js.map +1 -0
- package/dist/plugins/api-keys/stores/index.d.ts +7 -0
- package/dist/plugins/api-keys/stores/index.d.ts.map +1 -0
- package/dist/plugins/api-keys/stores/index.js +7 -0
- package/dist/plugins/api-keys/stores/index.js.map +1 -0
- package/dist/plugins/api-keys/stores/postgres-store.d.ts +34 -0
- package/dist/plugins/api-keys/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/api-keys/stores/postgres-store.js +360 -0
- package/dist/plugins/api-keys/stores/postgres-store.js.map +1 -0
- package/dist/plugins/api-keys/types.d.ts +268 -0
- package/dist/plugins/api-keys/types.d.ts.map +1 -0
- package/dist/plugins/api-keys/types.js +56 -0
- package/dist/plugins/api-keys/types.js.map +1 -0
- package/dist/plugins/auth/auth-plugin.d.ts.map +1 -1
- package/dist/plugins/auth/auth-plugin.js +17 -1
- package/dist/plugins/auth/auth-plugin.js.map +1 -1
- package/dist/plugins/auth/auth-plugin.test.js +133 -0
- package/dist/plugins/auth/auth-plugin.test.js.map +1 -1
- package/dist/plugins/auth/env-config.d.ts.map +1 -1
- package/dist/plugins/auth/env-config.js +6 -2
- package/dist/plugins/auth/env-config.js.map +1 -1
- package/dist/plugins/auth/types.d.ts +10 -0
- package/dist/plugins/auth/types.d.ts.map +1 -1
- package/dist/plugins/auth/types.js.map +1 -1
- package/dist/plugins/devices/__tests__/token-utils.test.js +4 -2
- package/dist/plugins/devices/__tests__/token-utils.test.js.map +1 -1
- package/dist/plugins/frontend-app-plugin.d.ts.map +1 -1
- package/dist/plugins/frontend-app-plugin.js +21 -4
- package/dist/plugins/frontend-app-plugin.js.map +1 -1
- package/dist/plugins/index.d.ts +2 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/qwickbrain/index.d.ts +25 -0
- package/dist/plugins/qwickbrain/index.d.ts.map +1 -0
- package/dist/plugins/qwickbrain/index.js +24 -0
- package/dist/plugins/qwickbrain/index.js.map +1 -0
- package/dist/plugins/qwickbrain/qwickbrain-plugin.d.ts +23 -0
- package/dist/plugins/qwickbrain/qwickbrain-plugin.d.ts.map +1 -0
- package/dist/plugins/qwickbrain/qwickbrain-plugin.js +528 -0
- package/dist/plugins/qwickbrain/qwickbrain-plugin.js.map +1 -0
- package/dist/plugins/qwickbrain/types.d.ts +131 -0
- package/dist/plugins/qwickbrain/types.d.ts.map +1 -0
- package/dist/plugins/qwickbrain/types.js +9 -0
- package/dist/plugins/qwickbrain/types.js.map +1 -0
- package/dist/plugins/users/__tests__/postgres-store.test.js +1 -0
- package/dist/plugins/users/__tests__/postgres-store.test.js.map +1 -1
- package/dist/plugins/users/__tests__/users-plugin.test.js +3 -0
- package/dist/plugins/users/__tests__/users-plugin.test.js.map +1 -1
- package/dist/plugins/users/stores/postgres-store.d.ts.map +1 -1
- package/dist/plugins/users/stores/postgres-store.js +59 -1
- package/dist/plugins/users/stores/postgres-store.js.map +1 -1
- package/dist/plugins/users/types.d.ts +22 -0
- package/dist/plugins/users/types.d.ts.map +1 -1
- package/dist-ui/assets/index-5nX8fM1a.js +469 -0
- package/dist-ui/assets/index-5nX8fM1a.js.map +1 -0
- package/dist-ui/index.html +1 -1
- package/dist-ui-lib/api/controlPanelApi.d.ts +68 -0
- package/dist-ui-lib/components/index.d.ts +2 -1
- package/dist-ui-lib/index.js +2642 -2281
- package/dist-ui-lib/index.js.map +1 -1
- package/dist-ui-lib/pages/APIKeysPage.d.ts +13 -0
- package/dist-ui-lib/pages/AcceptInvitationPage.d.ts +28 -0
- package/package.json +3 -2
- package/src/core/control-panel.ts +47 -0
- package/src/core/guards.ts +89 -0
- package/src/core/health-manager.ts +6 -1
- package/src/core/plugin-registry.ts +123 -25
- package/src/core/types.ts +2 -0
- package/src/index.ts +11 -0
- package/src/plugins/api-keys/api-keys-plugin.ts +397 -0
- package/src/plugins/api-keys/index.ts +49 -0
- package/src/plugins/api-keys/middleware/bearer-token-auth.ts +250 -0
- package/src/plugins/api-keys/middleware/index.ts +12 -0
- package/src/plugins/api-keys/stores/index.ts +7 -0
- package/src/plugins/api-keys/stores/postgres-store.ts +487 -0
- package/src/plugins/api-keys/types.ts +243 -0
- package/src/plugins/auth/auth-plugin.test.ts +167 -0
- package/src/plugins/auth/auth-plugin.ts +17 -1
- package/src/plugins/auth/env-config.ts +6 -2
- package/src/plugins/auth/types.ts +10 -0
- package/src/plugins/devices/__tests__/token-utils.test.ts +4 -2
- package/src/plugins/frontend-app-plugin.ts +24 -4
- package/src/plugins/index.ts +15 -0
- package/src/plugins/qwickbrain/index.ts +33 -0
- package/src/plugins/qwickbrain/qwickbrain-plugin.ts +642 -0
- package/src/plugins/qwickbrain/types.ts +146 -0
- package/src/plugins/users/__tests__/postgres-store.test.ts +1 -0
- package/src/plugins/users/__tests__/users-plugin.test.ts +3 -0
- package/src/plugins/users/stores/postgres-store.ts +69 -0
- package/src/plugins/users/types.ts +25 -0
- package/ui/src/App.tsx +6 -1
- package/ui/src/api/controlPanelApi.ts +206 -37
- package/ui/src/components/index.ts +6 -0
- package/ui/src/pages/APIKeysPage.tsx +661 -0
- package/ui/src/pages/AcceptInvitationPage.tsx +169 -0
- package/ui/src/pages/UsersPage.tsx +225 -2
- package/dist-ui/assets/index-CynOqPkb.js +0 -469
- package/dist-ui/assets/index-CynOqPkb.js.map +0 -1
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
var ZP=Object.defineProperty;var e4=(t,e,r)=>e in t?ZP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Aa=(t,e,r)=>e4(t,typeof e!="symbol"?e+"":e,r);function t4(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var y1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ig={exports:{}},hu={},Mg={exports:{}},Gt={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var v1;function r4(){if(v1)return Gt;v1=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function m(X){return X===null||typeof X!="object"?null:(X=v&&X[v]||X["@@iterator"],typeof X=="function"?X:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function C(X,re,de){this.props=X,this.context=re,this.refs=w,this.updater=de||y}C.prototype.isReactComponent={},C.prototype.setState=function(X,re){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,re,"setState")},C.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function j(){}j.prototype=C.prototype;function k(X,re,de){this.props=X,this.context=re,this.refs=w,this.updater=de||y}var I=k.prototype=new j;I.constructor=k,x(I,C.prototype),I.isPureReactComponent=!0;var E=Array.isArray,M=Object.prototype.hasOwnProperty,R={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function A(X,re,de){var J,oe={},Z=null,pe=null;if(re!=null)for(J in re.ref!==void 0&&(pe=re.ref),re.key!==void 0&&(Z=""+re.key),re)M.call(re,J)&&!L.hasOwnProperty(J)&&(oe[J]=re[J]);var Se=arguments.length-2;if(Se===1)oe.children=de;else if(1<Se){for(var se=Array(Se),ae=0;ae<Se;ae++)se[ae]=arguments[ae+2];oe.children=se}if(X&&X.defaultProps)for(J in Se=X.defaultProps,Se)oe[J]===void 0&&(oe[J]=Se[J]);return{$$typeof:t,type:X,key:Z,ref:pe,props:oe,_owner:R.current}}function F(X,re){return{$$typeof:t,type:X.type,key:re,ref:X.ref,props:X.props,_owner:X._owner}}function G(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function $(X){var re={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(de){return re[de]})}var P=/\/+/g;function q(X,re){return typeof X=="object"&&X!==null&&X.key!=null?$(""+X.key):re.toString(36)}function V(X,re,de,J,oe){var Z=typeof X;(Z==="undefined"||Z==="boolean")&&(X=null);var pe=!1;if(X===null)pe=!0;else switch(Z){case"string":case"number":pe=!0;break;case"object":switch(X.$$typeof){case t:case e:pe=!0}}if(pe)return pe=X,oe=oe(pe),X=J===""?"."+q(pe,0):J,E(oe)?(de="",X!=null&&(de=X.replace(P,"$&/")+"/"),V(oe,re,de,"",function(ae){return ae})):oe!=null&&(G(oe)&&(oe=F(oe,de+(!oe.key||pe&&pe.key===oe.key?"":(""+oe.key).replace(P,"$&/")+"/")+X)),re.push(oe)),1;if(pe=0,J=J===""?".":J+":",E(X))for(var Se=0;Se<X.length;Se++){Z=X[Se];var se=J+q(Z,Se);pe+=V(Z,re,de,se,oe)}else if(se=m(X),typeof se=="function")for(X=se.call(X),Se=0;!(Z=X.next()).done;)Z=Z.value,se=J+q(Z,Se++),pe+=V(Z,re,de,se,oe);else if(Z==="object")throw re=String(X),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.");return pe}function O(X,re,de){if(X==null)return X;var J=[],oe=0;return V(X,J,"","",function(Z){return re.call(de,Z,oe++)}),J}function U(X){if(X._status===-1){var re=X._result;re=re(),re.then(function(de){(X._status===0||X._status===-1)&&(X._status=1,X._result=de)},function(de){(X._status===0||X._status===-1)&&(X._status=2,X._result=de)}),X._status===-1&&(X._status=0,X._result=re)}if(X._status===1)return X._result.default;throw X._result}var K={current:null},Y={transition:null},te={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:Y,ReactCurrentOwner:R};function Q(){throw Error("act(...) is not supported in production builds of React.")}return Gt.Children={map:O,forEach:function(X,re,de){O(X,function(){re.apply(this,arguments)},de)},count:function(X){var re=0;return O(X,function(){re++}),re},toArray:function(X){return O(X,function(re){return re})||[]},only:function(X){if(!G(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Gt.Component=C,Gt.Fragment=r,Gt.Profiler=o,Gt.PureComponent=k,Gt.StrictMode=n,Gt.Suspense=d,Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,Gt.act=Q,Gt.cloneElement=function(X,re,de){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var J=x({},X.props),oe=X.key,Z=X.ref,pe=X._owner;if(re!=null){if(re.ref!==void 0&&(Z=re.ref,pe=R.current),re.key!==void 0&&(oe=""+re.key),X.type&&X.type.defaultProps)var Se=X.type.defaultProps;for(se in re)M.call(re,se)&&!L.hasOwnProperty(se)&&(J[se]=re[se]===void 0&&Se!==void 0?Se[se]:re[se])}var se=arguments.length-2;if(se===1)J.children=de;else if(1<se){Se=Array(se);for(var ae=0;ae<se;ae++)Se[ae]=arguments[ae+2];J.children=Se}return{$$typeof:t,type:X.type,key:oe,ref:Z,props:J,_owner:pe}},Gt.createContext=function(X){return X={$$typeof:c,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:s,_context:X},X.Consumer=X},Gt.createElement=A,Gt.createFactory=function(X){var re=A.bind(null,X);return re.type=X,re},Gt.createRef=function(){return{current:null}},Gt.forwardRef=function(X){return{$$typeof:u,render:X}},Gt.isValidElement=G,Gt.lazy=function(X){return{$$typeof:h,_payload:{_status:-1,_result:X},_init:U}},Gt.memo=function(X,re){return{$$typeof:f,type:X,compare:re===void 0?null:re}},Gt.startTransition=function(X){var re=Y.transition;Y.transition={};try{X()}finally{Y.transition=re}},Gt.unstable_act=Q,Gt.useCallback=function(X,re){return K.current.useCallback(X,re)},Gt.useContext=function(X){return K.current.useContext(X)},Gt.useDebugValue=function(){},Gt.useDeferredValue=function(X){return K.current.useDeferredValue(X)},Gt.useEffect=function(X,re){return K.current.useEffect(X,re)},Gt.useId=function(){return K.current.useId()},Gt.useImperativeHandle=function(X,re,de){return K.current.useImperativeHandle(X,re,de)},Gt.useInsertionEffect=function(X,re){return K.current.useInsertionEffect(X,re)},Gt.useLayoutEffect=function(X,re){return K.current.useLayoutEffect(X,re)},Gt.useMemo=function(X,re){return K.current.useMemo(X,re)},Gt.useReducer=function(X,re,de){return K.current.useReducer(X,re,de)},Gt.useRef=function(X){return K.current.useRef(X)},Gt.useState=function(X){return K.current.useState(X)},Gt.useSyncExternalStore=function(X,re,de){return K.current.useSyncExternalStore(X,re,de)},Gt.useTransition=function(){return K.current.useTransition()},Gt.version="18.3.1",Gt}var x1;function Cv(){return x1||(x1=1,Mg.exports=r4()),Mg.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var b1;function n4(){if(b1)return hu;b1=1;var t=Cv(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(u,d,f){var h,v={},m=null,y=null;f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(y=d.ref);for(h in d)n.call(d,h)&&!s.hasOwnProperty(h)&&(v[h]=d[h]);if(u&&u.defaultProps)for(h in d=u.defaultProps,d)v[h]===void 0&&(v[h]=d[h]);return{$$typeof:e,type:u,key:m,ref:y,props:v,_owner:o.current}}return hu.Fragment=r,hu.jsx=c,hu.jsxs=c,hu}var w1;function o4(){return w1||(w1=1,Ig.exports=n4()),Ig.exports}var l=o4(),b=Cv();const $t=nh(b),Uu=t4({__proto__:null,default:$t},[b]);var Dp={},Rg={exports:{}},Xn={},Ag={exports:{}},_g={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var S1;function i4(){return S1||(S1=1,(function(t){function e(Y,te){var Q=Y.length;Y.push(te);e:for(;0<Q;){var X=Q-1>>>1,re=Y[X];if(0<o(re,te))Y[X]=te,Y[Q]=re,Q=X;else break e}}function r(Y){return Y.length===0?null:Y[0]}function n(Y){if(Y.length===0)return null;var te=Y[0],Q=Y.pop();if(Q!==te){Y[0]=Q;e:for(var X=0,re=Y.length,de=re>>>1;X<de;){var J=2*(X+1)-1,oe=Y[J],Z=J+1,pe=Y[Z];if(0>o(oe,Q))Z<re&&0>o(pe,oe)?(Y[X]=pe,Y[Z]=Q,X=Z):(Y[X]=oe,Y[J]=Q,X=J);else if(Z<re&&0>o(pe,Q))Y[X]=pe,Y[Z]=Q,X=Z;else break e}}return te}function o(Y,te){var Q=Y.sortIndex-te.sortIndex;return Q!==0?Q:Y.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,u=c.now();t.unstable_now=function(){return c.now()-u}}var d=[],f=[],h=1,v=null,m=3,y=!1,x=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(Y){for(var te=r(f);te!==null;){if(te.callback===null)n(f);else if(te.startTime<=Y)n(f),te.sortIndex=te.expirationTime,e(d,te);else break;te=r(f)}}function E(Y){if(w=!1,I(Y),!x)if(r(d)!==null)x=!0,U(M);else{var te=r(f);te!==null&&K(E,te.startTime-Y)}}function M(Y,te){x=!1,w&&(w=!1,j(A),A=-1),y=!0;var Q=m;try{for(I(te),v=r(d);v!==null&&(!(v.expirationTime>te)||Y&&!$());){var X=v.callback;if(typeof X=="function"){v.callback=null,m=v.priorityLevel;var re=X(v.expirationTime<=te);te=t.unstable_now(),typeof re=="function"?v.callback=re:v===r(d)&&n(d),I(te)}else n(d);v=r(d)}if(v!==null)var de=!0;else{var J=r(f);J!==null&&K(E,J.startTime-te),de=!1}return de}finally{v=null,m=Q,y=!1}}var R=!1,L=null,A=-1,F=5,G=-1;function $(){return!(t.unstable_now()-G<F)}function P(){if(L!==null){var Y=t.unstable_now();G=Y;var te=!0;try{te=L(!0,Y)}finally{te?q():(R=!1,L=null)}}else R=!1}var q;if(typeof k=="function")q=function(){k(P)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,O=V.port2;V.port1.onmessage=P,q=function(){O.postMessage(null)}}else q=function(){C(P,0)};function U(Y){L=Y,R||(R=!0,q())}function K(Y,te){A=C(function(){Y(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Y){Y.callback=null},t.unstable_continueExecution=function(){x||y||(x=!0,U(M))},t.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<Y?Math.floor(1e3/Y):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_getFirstCallbackNode=function(){return r(d)},t.unstable_next=function(Y){switch(m){case 1:case 2:case 3:var te=3;break;default:te=m}var Q=m;m=te;try{return Y()}finally{m=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(Y,te){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var Q=m;m=Y;try{return te()}finally{m=Q}},t.unstable_scheduleCallback=function(Y,te,Q){var X=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?X+Q:X):Q=X,Y){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=Q+re,Y={id:h++,callback:te,priorityLevel:Y,startTime:Q,expirationTime:re,sortIndex:-1},Q>X?(Y.sortIndex=Q,e(f,Y),r(d)===null&&Y===r(f)&&(w?(j(A),A=-1):w=!0,K(E,Q-X))):(Y.sortIndex=re,e(d,Y),x||y||(x=!0,U(M))),Y},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(Y){var te=m;return function(){var Q=m;m=te;try{return Y.apply(this,arguments)}finally{m=Q}}}})(_g)),_g}var C1;function s4(){return C1||(C1=1,Ag.exports=i4()),Ag.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var E1;function a4(){if(E1)return Xn;E1=1;var t=Cv(),e=s4();function r(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p<arguments.length;p++)a+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,o={};function s(i,a){c(i,a),c(i+"Capture",a)}function c(i,a){for(o[i]=a,i=0;i<a.length;i++)n.add(a[i])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},v={};function m(i){return d.call(v,i)?!0:d.call(h,i)?!1:f.test(i)?v[i]=!0:(h[i]=!0,!1)}function y(i,a,p,g){if(p!==null&&p.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function x(i,a,p,g){if(a===null||typeof a>"u"||y(i,a,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function w(i,a,p,g,S,T,N){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=g,this.attributeNamespace=S,this.mustUseProperty=p,this.propertyName=i,this.type=a,this.sanitizeURL=T,this.removeEmptyString=N}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){C[i]=new w(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];C[a]=new w(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){C[i]=new w(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){C[i]=new w(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){C[i]=new w(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){C[i]=new w(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){C[i]=new w(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){C[i]=new w(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){C[i]=new w(i,5,!1,i.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function k(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var a=i.replace(j,k);C[a]=new w(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace(j,k);C[a]=new w(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(j,k);C[a]=new w(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){C[i]=new w(i,1,!1,i.toLowerCase(),null,!1,!1)}),C.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){C[i]=new w(i,1,!1,i.toLowerCase(),null,!0,!0)});function I(i,a,p,g){var S=C.hasOwnProperty(a)?C[a]:null;(S!==null?S.type!==0:g||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(x(a,p,S,g)&&(p=null),g||S===null?m(a)&&(p===null?i.removeAttribute(a):i.setAttribute(a,""+p)):S.mustUseProperty?i[S.propertyName]=p===null?S.type===3?!1:"":p:(a=S.attributeName,g=S.attributeNamespace,p===null?i.removeAttribute(a):(S=S.type,p=S===3||S===4&&p===!0?"":""+p,g?i.setAttributeNS(g,a,p):i.setAttribute(a,p))))}var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),R=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),$=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),Y=Symbol.iterator;function te(i){return i===null||typeof i!="object"?null:(i=Y&&i[Y]||i["@@iterator"],typeof i=="function"?i:null)}var Q=Object.assign,X;function re(i){if(X===void 0)try{throw Error()}catch(p){var a=p.stack.trim().match(/\n( *(at )?)/);X=a&&a[1]||""}return`
|
|
34
|
+
`+X+i}var de=!1;function J(i,a){if(!i||de)return"";de=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(xe){var g=xe}Reflect.construct(i,[],a)}else{try{a.call()}catch(xe){g=xe}i.call(a.prototype)}else{try{throw Error()}catch(xe){g=xe}i()}}catch(xe){if(xe&&g&&typeof xe.stack=="string"){for(var S=xe.stack.split(`
|
|
35
|
+
`),T=g.stack.split(`
|
|
36
|
+
`),N=S.length-1,ne=T.length-1;1<=N&&0<=ne&&S[N]!==T[ne];)ne--;for(;1<=N&&0<=ne;N--,ne--)if(S[N]!==T[ne]){if(N!==1||ne!==1)do if(N--,ne--,0>ne||S[N]!==T[ne]){var le=`
|
|
37
|
+
`+S[N].replace(" at new "," at ");return i.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",i.displayName)),le}while(1<=N&&0<=ne);break}}}finally{de=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?re(i):""}function oe(i){switch(i.tag){case 5:return re(i.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return i=J(i.type,!1),i;case 11:return i=J(i.type.render,!1),i;case 1:return i=J(i.type,!0),i;default:return""}}function Z(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case L:return"Fragment";case R:return"Portal";case F:return"Profiler";case A:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case $:return(i.displayName||"Context")+".Consumer";case G:return(i._context.displayName||"Context")+".Provider";case P:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case O:return a=i.displayName||null,a!==null?a:Z(i.type)||"Memo";case U:a=i._payload,i=i._init;try{return Z(i(a))}catch{}}return null}function pe(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(a);case 8:return a===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Se(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function se(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ae(i){var a=se(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),g=""+i[a];if(!i.hasOwnProperty(a)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var S=p.get,T=p.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return S.call(this)},set:function(N){g=""+N,T.call(this,N)}}),Object.defineProperty(i,a,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(N){g=""+N},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function Fe(i){i._valueTracker||(i._valueTracker=ae(i))}function ze(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var p=a.getValue(),g="";return i&&(g=se(i)?i.checked?"true":"false":i.value),i=g,i!==p?(a.setValue(i),!0):!1}function Oe(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Be(i,a){var p=a.checked;return Q({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function Le(i,a){var p=a.defaultValue==null?"":a.defaultValue,g=a.checked!=null?a.checked:a.defaultChecked;p=Se(a.value!=null?a.value:p),i._wrapperState={initialChecked:g,initialValue:p,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function Ke(i,a){a=a.checked,a!=null&&I(i,"checked",a,!1)}function pt(i,a){Ke(i,a);var p=Se(a.value),g=a.type;if(p!=null)g==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(g==="submit"||g==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?De(i,a.type,p):a.hasOwnProperty("defaultValue")&&De(i,a.type,Se(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function ce(i,a,p){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var g=a.type;if(!(g!=="submit"&&g!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,p||a===i.value||(i.value=a),i.defaultValue=a}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function De(i,a,p){(a!=="number"||Oe(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var We=Array.isArray;function gt(i,a,p,g){if(i=i.options,a){a={};for(var S=0;S<p.length;S++)a["$"+p[S]]=!0;for(p=0;p<i.length;p++)S=a.hasOwnProperty("$"+i[p].value),i[p].selected!==S&&(i[p].selected=S),S&&g&&(i[p].defaultSelected=!0)}else{for(p=""+Se(p),a=null,S=0;S<i.length;S++){if(i[S].value===p){i[S].selected=!0,g&&(i[S].defaultSelected=!0);return}a!==null||i[S].disabled||(a=i[S])}a!==null&&(a.selected=!0)}}function $e(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(r(91));return Q({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function zt(i,a){var p=a.value;if(p==null){if(p=a.children,a=a.defaultValue,p!=null){if(a!=null)throw Error(r(92));if(We(p)){if(1<p.length)throw Error(r(93));p=p[0]}a=p}a==null&&(a=""),p=a}i._wrapperState={initialValue:Se(p)}}function vt(i,a){var p=Se(a.value),g=Se(a.defaultValue);p!=null&&(p=""+p,p!==i.value&&(i.value=p),a.defaultValue==null&&i.defaultValue!==p&&(i.defaultValue=p)),g!=null&&(i.defaultValue=""+g)}function fe(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function be(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pe(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?be(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Ae,qe=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,p,g,S){MSApp.execUnsafeLocalFunction(function(){return i(a,p,g,S)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(Ae=Ae||document.createElement("div"),Ae.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=Ae.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function Je(i,a){if(a){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=a;return}}i.textContent=a}var Ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ge=["Webkit","ms","Moz","O"];Object.keys(Ce).forEach(function(i){Ge.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Ce[a]=Ce[i]})});function Ue(i,a,p){return a==null||typeof a=="boolean"||a===""?"":p||typeof a!="number"||a===0||Ce.hasOwnProperty(i)&&Ce[i]?(""+a).trim():a+"px"}function Xe(i,a){i=i.style;for(var p in a)if(a.hasOwnProperty(p)){var g=p.indexOf("--")===0,S=Ue(p,a[p],g);p==="float"&&(p="cssFloat"),g?i.setProperty(p,S):i[p]=S}}var Mt=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zt(i,a){if(a){if(Mt[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(r(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(r(61))}if(a.style!=null&&typeof a.style!="object")throw Error(r(62))}}function yr(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Br=null;function Yr(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var on=null,rt=null,bt=null;function Yt(i){if(i=Zc(i)){if(typeof on!="function")throw Error(r(280));var a=i.stateNode;a&&(a=tp(a),on(i.stateNode,i.type,a))}}function dr(i){rt?bt?bt.push(i):bt=[i]:rt=i}function we(){if(rt){var i=rt,a=bt;if(bt=rt=null,Yt(i),a)for(i=0;i<a.length;i++)Yt(a[i])}}function Ct(i,a){return i(a)}function St(){}var or=!1;function Qe(i,a,p){if(or)return i(a,p);or=!0;try{return Ct(i,a,p)}finally{or=!1,(rt!==null||bt!==null)&&(St(),we())}}function lt(i,a){var p=i.stateNode;if(p===null)return null;var g=tp(p);if(g===null)return null;p=g[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(i=i.type,g=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!g;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(r(231,a,typeof p));return p}var Ot=!1;if(u)try{var Nt={};Object.defineProperty(Nt,"passive",{get:function(){Ot=!0}}),window.addEventListener("test",Nt,Nt),window.removeEventListener("test",Nt,Nt)}catch{Ot=!1}function ar(i,a,p,g,S,T,N,ne,le){var xe=Array.prototype.slice.call(arguments,3);try{a.apply(p,xe)}catch(_e){this.onError(_e)}}var Ur=!1,bn=null,Hn=!1,gi=null,Ko={onError:function(i){Ur=!0,bn=i}};function zr(i,a,p,g,S,T,N,ne,le){Ur=!1,bn=null,ar.apply(Ko,arguments)}function Vr(i,a,p,g,S,T,N,ne,le){if(zr.apply(this,arguments),Ur){if(Ur){var xe=bn;Ur=!1,bn=null}else throw Error(r(198));Hn||(Hn=!0,gi=xe)}}function wn(i){var a=i,p=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(p=a.return),i=a.return;while(i)}return a.tag===3?p:null}function cl(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function Ts(i){if(wn(i)!==i)throw Error(r(188))}function ul(i){var a=i.alternate;if(!a){if(a=wn(i),a===null)throw Error(r(188));return a!==i?null:i}for(var p=i,g=a;;){var S=p.return;if(S===null)break;var T=S.alternate;if(T===null){if(g=S.return,g!==null){p=g;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===p)return Ts(S),i;if(T===g)return Ts(S),a;T=T.sibling}throw Error(r(188))}if(p.return!==g.return)p=S,g=T;else{for(var N=!1,ne=S.child;ne;){if(ne===p){N=!0,p=S,g=T;break}if(ne===g){N=!0,g=S,p=T;break}ne=ne.sibling}if(!N){for(ne=T.child;ne;){if(ne===p){N=!0,p=T,g=S;break}if(ne===g){N=!0,g=T,p=S;break}ne=ne.sibling}if(!N)throw Error(r(189))}}if(p.alternate!==g)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:a}function ke(i){return i=ul(i),i!==null?Te(i):null}function Te(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Te(i);if(a!==null)return a;i=i.sibling}return null}var st=e.unstable_scheduleCallback,Rt=e.unstable_cancelCallback,Lt=e.unstable_shouldYield,Wr=e.unstable_requestPaint,Bt=e.unstable_now,uo=e.unstable_getCurrentPriorityLevel,ks=e.unstable_ImmediatePriority,Lc=e.unstable_UserBlockingPriority,es=e.unstable_NormalPriority,dl=e.unstable_LowPriority,Jt=e.unstable_IdlePriority,po=null,Jr=null;function xa(i){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(po,i,void 0,(i.current.flags&128)===128)}catch{}}var Qo=Math.clz32?Math.clz32:yj,mj=Math.log,gj=Math.LN2;function yj(i){return i>>>=0,i===0?32:31-(mj(i)/gj|0)|0}var Nd=64,Bd=4194304;function Oc(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function zd(i,a){var p=i.pendingLanes;if(p===0)return 0;var g=0,S=i.suspendedLanes,T=i.pingedLanes,N=p&268435455;if(N!==0){var ne=N&~S;ne!==0?g=Oc(ne):(T&=N,T!==0&&(g=Oc(T)))}else N=p&~S,N!==0?g=Oc(N):T!==0&&(g=Oc(T));if(g===0)return 0;if(a!==0&&a!==g&&(a&S)===0&&(S=g&-g,T=a&-a,S>=T||S===16&&(T&4194240)!==0))return a;if((g&4)!==0&&(g|=p&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=g;0<a;)p=31-Qo(a),S=1<<p,g|=i[p],a&=~S;return g}function vj(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xj(i,a){for(var p=i.suspendedLanes,g=i.pingedLanes,S=i.expirationTimes,T=i.pendingLanes;0<T;){var N=31-Qo(T),ne=1<<N,le=S[N];le===-1?((ne&p)===0||(ne&g)!==0)&&(S[N]=vj(ne,a)):le<=a&&(i.expiredLanes|=ne),T&=~ne}}function Qh(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function X0(){var i=Nd;return Nd<<=1,(Nd&4194240)===0&&(Nd=64),i}function Yh(i){for(var a=[],p=0;31>p;p++)a.push(i);return a}function $c(i,a,p){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-Qo(a),i[a]=p}function bj(i,a){var p=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var g=i.eventTimes;for(i=i.expirationTimes;0<p;){var S=31-Qo(p),T=1<<S;a[S]=0,g[S]=-1,i[S]=-1,p&=~T}}function Jh(i,a){var p=i.entangledLanes|=a;for(i=i.entanglements;p;){var g=31-Qo(p),S=1<<g;S&a|i[g]&a&&(i[g]|=a),p&=~S}}var pr=0;function K0(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var Q0,Zh,Y0,J0,Z0,em=!1,Dd=[],js=null,Ps=null,Is=null,Nc=new Map,Bc=new Map,Ms=[],wj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ex(i,a){switch(i){case"focusin":case"focusout":js=null;break;case"dragenter":case"dragleave":Ps=null;break;case"mouseover":case"mouseout":Is=null;break;case"pointerover":case"pointerout":Nc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bc.delete(a.pointerId)}}function zc(i,a,p,g,S,T){return i===null||i.nativeEvent!==T?(i={blockedOn:a,domEventName:p,eventSystemFlags:g,nativeEvent:T,targetContainers:[S]},a!==null&&(a=Zc(a),a!==null&&Zh(a)),i):(i.eventSystemFlags|=g,a=i.targetContainers,S!==null&&a.indexOf(S)===-1&&a.push(S),i)}function Sj(i,a,p,g,S){switch(a){case"focusin":return js=zc(js,i,a,p,g,S),!0;case"dragenter":return Ps=zc(Ps,i,a,p,g,S),!0;case"mouseover":return Is=zc(Is,i,a,p,g,S),!0;case"pointerover":var T=S.pointerId;return Nc.set(T,zc(Nc.get(T)||null,i,a,p,g,S)),!0;case"gotpointercapture":return T=S.pointerId,Bc.set(T,zc(Bc.get(T)||null,i,a,p,g,S)),!0}return!1}function tx(i){var a=ba(i.target);if(a!==null){var p=wn(a);if(p!==null){if(a=p.tag,a===13){if(a=cl(p),a!==null){i.blockedOn=a,Z0(i.priority,function(){Y0(p)});return}}else if(a===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Fd(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var p=rm(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(p===null){p=i.nativeEvent;var g=new p.constructor(p.type,p);Br=g,p.target.dispatchEvent(g),Br=null}else return a=Zc(p),a!==null&&Zh(a),i.blockedOn=p,!1;a.shift()}return!0}function rx(i,a,p){Fd(i)&&p.delete(a)}function Cj(){em=!1,js!==null&&Fd(js)&&(js=null),Ps!==null&&Fd(Ps)&&(Ps=null),Is!==null&&Fd(Is)&&(Is=null),Nc.forEach(rx),Bc.forEach(rx)}function Dc(i,a){i.blockedOn===a&&(i.blockedOn=null,em||(em=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Cj)))}function Fc(i){function a(S){return Dc(S,i)}if(0<Dd.length){Dc(Dd[0],i);for(var p=1;p<Dd.length;p++){var g=Dd[p];g.blockedOn===i&&(g.blockedOn=null)}}for(js!==null&&Dc(js,i),Ps!==null&&Dc(Ps,i),Is!==null&&Dc(Is,i),Nc.forEach(a),Bc.forEach(a),p=0;p<Ms.length;p++)g=Ms[p],g.blockedOn===i&&(g.blockedOn=null);for(;0<Ms.length&&(p=Ms[0],p.blockedOn===null);)tx(p),p.blockedOn===null&&Ms.shift()}var pl=E.ReactCurrentBatchConfig,Hd=!0;function Ej(i,a,p,g){var S=pr,T=pl.transition;pl.transition=null;try{pr=1,tm(i,a,p,g)}finally{pr=S,pl.transition=T}}function Tj(i,a,p,g){var S=pr,T=pl.transition;pl.transition=null;try{pr=4,tm(i,a,p,g)}finally{pr=S,pl.transition=T}}function tm(i,a,p,g){if(Hd){var S=rm(i,a,p,g);if(S===null)xm(i,a,g,Ud,p),ex(i,g);else if(Sj(S,i,a,p,g))g.stopPropagation();else if(ex(i,g),a&4&&-1<wj.indexOf(i)){for(;S!==null;){var T=Zc(S);if(T!==null&&Q0(T),T=rm(i,a,p,g),T===null&&xm(i,a,g,Ud,p),T===S)break;S=T}S!==null&&g.stopPropagation()}else xm(i,a,g,null,p)}}var Ud=null;function rm(i,a,p,g){if(Ud=null,i=Yr(g),i=ba(i),i!==null)if(a=wn(i),a===null)i=null;else if(p=a.tag,p===13){if(i=cl(a),i!==null)return i;i=null}else if(p===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return Ud=i,null}function nx(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(uo()){case ks:return 1;case Lc:return 4;case es:case dl:return 16;case Jt:return 536870912;default:return 16}default:return 16}}var Rs=null,nm=null,Vd=null;function ox(){if(Vd)return Vd;var i,a=nm,p=a.length,g,S="value"in Rs?Rs.value:Rs.textContent,T=S.length;for(i=0;i<p&&a[i]===S[i];i++);var N=p-i;for(g=1;g<=N&&a[p-g]===S[T-g];g++);return Vd=S.slice(i,1<g?1-g:void 0)}function Wd(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function qd(){return!0}function ix(){return!1}function fo(i){function a(p,g,S,T,N){this._reactName=p,this._targetInst=S,this.type=g,this.nativeEvent=T,this.target=N,this.currentTarget=null;for(var ne in i)i.hasOwnProperty(ne)&&(p=i[ne],this[ne]=p?p(T):T[ne]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?qd:ix,this.isPropagationStopped=ix,this}return Q(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=qd)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=qd)},persist:function(){},isPersistent:qd}),a}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},om=fo(fl),Hc=Q({},fl,{view:0,detail:0}),kj=fo(Hc),im,sm,Uc,Gd=Q({},Hc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Uc&&(Uc&&i.type==="mousemove"?(im=i.screenX-Uc.screenX,sm=i.screenY-Uc.screenY):sm=im=0,Uc=i),im)},movementY:function(i){return"movementY"in i?i.movementY:sm}}),sx=fo(Gd),jj=Q({},Gd,{dataTransfer:0}),Pj=fo(jj),Ij=Q({},Hc,{relatedTarget:0}),am=fo(Ij),Mj=Q({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),Rj=fo(Mj),Aj=Q({},fl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),_j=fo(Aj),Lj=Q({},fl,{data:0}),ax=fo(Lj),Oj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$j={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Nj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bj(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=Nj[i])?!!a[i]:!1}function lm(){return Bj}var zj=Q({},Hc,{key:function(i){if(i.key){var a=Oj[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=Wd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?$j[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lm,charCode:function(i){return i.type==="keypress"?Wd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Wd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Dj=fo(zj),Fj=Q({},Gd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lx=fo(Fj),Hj=Q({},Hc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lm}),Uj=fo(Hj),Vj=Q({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wj=fo(Vj),qj=Q({},Gd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Gj=fo(qj),Xj=[9,13,27,32],cm=u&&"CompositionEvent"in window,Vc=null;u&&"documentMode"in document&&(Vc=document.documentMode);var Kj=u&&"TextEvent"in window&&!Vc,cx=u&&(!cm||Vc&&8<Vc&&11>=Vc),ux=" ",dx=!1;function px(i,a){switch(i){case"keyup":return Xj.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fx(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var hl=!1;function Qj(i,a){switch(i){case"compositionend":return fx(a);case"keypress":return a.which!==32?null:(dx=!0,ux);case"textInput":return i=a.data,i===ux&&dx?null:i;default:return null}}function Yj(i,a){if(hl)return i==="compositionend"||!cm&&px(i,a)?(i=ox(),Vd=nm=Rs=null,hl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return cx&&a.locale!=="ko"?null:a.data;default:return null}}var Jj={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hx(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!Jj[i.type]:a==="textarea"}function mx(i,a,p,g){dr(g),a=Jd(a,"onChange"),0<a.length&&(p=new om("onChange","change",null,p,g),i.push({event:p,listeners:a}))}var Wc=null,qc=null;function Zj(i){_x(i,0)}function Xd(i){var a=xl(i);if(ze(a))return i}function eP(i,a){if(i==="change")return a}var gx=!1;if(u){var um;if(u){var dm="oninput"in document;if(!dm){var yx=document.createElement("div");yx.setAttribute("oninput","return;"),dm=typeof yx.oninput=="function"}um=dm}else um=!1;gx=um&&(!document.documentMode||9<document.documentMode)}function vx(){Wc&&(Wc.detachEvent("onpropertychange",xx),qc=Wc=null)}function xx(i){if(i.propertyName==="value"&&Xd(qc)){var a=[];mx(a,qc,i,Yr(i)),Qe(Zj,a)}}function tP(i,a,p){i==="focusin"?(vx(),Wc=a,qc=p,Wc.attachEvent("onpropertychange",xx)):i==="focusout"&&vx()}function rP(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Xd(qc)}function nP(i,a){if(i==="click")return Xd(a)}function oP(i,a){if(i==="input"||i==="change")return Xd(a)}function iP(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Yo=typeof Object.is=="function"?Object.is:iP;function Gc(i,a){if(Yo(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var p=Object.keys(i),g=Object.keys(a);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var S=p[g];if(!d.call(a,S)||!Yo(i[S],a[S]))return!1}return!0}function bx(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function wx(i,a){var p=bx(i);i=0;for(var g;p;){if(p.nodeType===3){if(g=i+p.textContent.length,i<=a&&g>=a)return{node:p,offset:a-i};i=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=bx(p)}}function Sx(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?Sx(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Cx(){for(var i=window,a=Oe();a instanceof i.HTMLIFrameElement;){try{var p=typeof a.contentWindow.location.href=="string"}catch{p=!1}if(p)i=a.contentWindow;else break;a=Oe(i.document)}return a}function pm(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function sP(i){var a=Cx(),p=i.focusedElem,g=i.selectionRange;if(a!==p&&p&&p.ownerDocument&&Sx(p.ownerDocument.documentElement,p)){if(g!==null&&pm(p)){if(a=g.start,i=g.end,i===void 0&&(i=a),"selectionStart"in p)p.selectionStart=a,p.selectionEnd=Math.min(i,p.value.length);else if(i=(a=p.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var S=p.textContent.length,T=Math.min(g.start,S);g=g.end===void 0?T:Math.min(g.end,S),!i.extend&&T>g&&(S=g,g=T,T=S),S=wx(p,T);var N=wx(p,g);S&&N&&(i.rangeCount!==1||i.anchorNode!==S.node||i.anchorOffset!==S.offset||i.focusNode!==N.node||i.focusOffset!==N.offset)&&(a=a.createRange(),a.setStart(S.node,S.offset),i.removeAllRanges(),T>g?(i.addRange(a),i.extend(N.node,N.offset)):(a.setEnd(N.node,N.offset),i.addRange(a)))}}for(a=[],i=p;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<a.length;p++)i=a[p],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var aP=u&&"documentMode"in document&&11>=document.documentMode,ml=null,fm=null,Xc=null,hm=!1;function Ex(i,a,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;hm||ml==null||ml!==Oe(g)||(g=ml,"selectionStart"in g&&pm(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Xc&&Gc(Xc,g)||(Xc=g,g=Jd(fm,"onSelect"),0<g.length&&(a=new om("onSelect","select",null,a,p),i.push({event:a,listeners:g}),a.target=ml)))}function Kd(i,a){var p={};return p[i.toLowerCase()]=a.toLowerCase(),p["Webkit"+i]="webkit"+a,p["Moz"+i]="moz"+a,p}var gl={animationend:Kd("Animation","AnimationEnd"),animationiteration:Kd("Animation","AnimationIteration"),animationstart:Kd("Animation","AnimationStart"),transitionend:Kd("Transition","TransitionEnd")},mm={},Tx={};u&&(Tx=document.createElement("div").style,"AnimationEvent"in window||(delete gl.animationend.animation,delete gl.animationiteration.animation,delete gl.animationstart.animation),"TransitionEvent"in window||delete gl.transitionend.transition);function Qd(i){if(mm[i])return mm[i];if(!gl[i])return i;var a=gl[i],p;for(p in a)if(a.hasOwnProperty(p)&&p in Tx)return mm[i]=a[p];return i}var kx=Qd("animationend"),jx=Qd("animationiteration"),Px=Qd("animationstart"),Ix=Qd("transitionend"),Mx=new Map,Rx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function As(i,a){Mx.set(i,a),s(a,[i])}for(var gm=0;gm<Rx.length;gm++){var ym=Rx[gm],lP=ym.toLowerCase(),cP=ym[0].toUpperCase()+ym.slice(1);As(lP,"on"+cP)}As(kx,"onAnimationEnd"),As(jx,"onAnimationIteration"),As(Px,"onAnimationStart"),As("dblclick","onDoubleClick"),As("focusin","onFocus"),As("focusout","onBlur"),As(Ix,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),uP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kc));function Ax(i,a,p){var g=i.type||"unknown-event";i.currentTarget=p,Vr(g,a,void 0,i),i.currentTarget=null}function _x(i,a){a=(a&4)!==0;for(var p=0;p<i.length;p++){var g=i[p],S=g.event;g=g.listeners;e:{var T=void 0;if(a)for(var N=g.length-1;0<=N;N--){var ne=g[N],le=ne.instance,xe=ne.currentTarget;if(ne=ne.listener,le!==T&&S.isPropagationStopped())break e;Ax(S,ne,xe),T=le}else for(N=0;N<g.length;N++){if(ne=g[N],le=ne.instance,xe=ne.currentTarget,ne=ne.listener,le!==T&&S.isPropagationStopped())break e;Ax(S,ne,xe),T=le}}}if(Hn)throw i=gi,Hn=!1,gi=null,i}function Tr(i,a){var p=a[Tm];p===void 0&&(p=a[Tm]=new Set);var g=i+"__bubble";p.has(g)||(Lx(a,i,2,!1),p.add(g))}function vm(i,a,p){var g=0;a&&(g|=4),Lx(p,i,g,a)}var Yd="_reactListening"+Math.random().toString(36).slice(2);function Qc(i){if(!i[Yd]){i[Yd]=!0,n.forEach(function(p){p!=="selectionchange"&&(uP.has(p)||vm(p,!1,i),vm(p,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Yd]||(a[Yd]=!0,vm("selectionchange",!1,a))}}function Lx(i,a,p,g){switch(nx(a)){case 1:var S=Ej;break;case 4:S=Tj;break;default:S=tm}p=S.bind(null,a,p,i),S=void 0,!Ot||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(S=!0),g?S!==void 0?i.addEventListener(a,p,{capture:!0,passive:S}):i.addEventListener(a,p,!0):S!==void 0?i.addEventListener(a,p,{passive:S}):i.addEventListener(a,p,!1)}function xm(i,a,p,g,S){var T=g;if((a&1)===0&&(a&2)===0&&g!==null)e:for(;;){if(g===null)return;var N=g.tag;if(N===3||N===4){var ne=g.stateNode.containerInfo;if(ne===S||ne.nodeType===8&&ne.parentNode===S)break;if(N===4)for(N=g.return;N!==null;){var le=N.tag;if((le===3||le===4)&&(le=N.stateNode.containerInfo,le===S||le.nodeType===8&&le.parentNode===S))return;N=N.return}for(;ne!==null;){if(N=ba(ne),N===null)return;if(le=N.tag,le===5||le===6){g=T=N;continue e}ne=ne.parentNode}}g=g.return}Qe(function(){var xe=T,_e=Yr(p),Ne=[];e:{var Re=Mx.get(i);if(Re!==void 0){var at=om,dt=i;switch(i){case"keypress":if(Wd(p)===0)break e;case"keydown":case"keyup":at=Dj;break;case"focusin":dt="focus",at=am;break;case"focusout":dt="blur",at=am;break;case"beforeblur":case"afterblur":at=am;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":at=sx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":at=Pj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":at=Uj;break;case kx:case jx:case Px:at=Rj;break;case Ix:at=Wj;break;case"scroll":at=kj;break;case"wheel":at=Gj;break;case"copy":case"cut":case"paste":at=_j;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":at=lx}var yt=(a&4)!==0,Dr=!yt&&i==="scroll",me=yt?Re!==null?Re+"Capture":null:Re;yt=[];for(var ue=xe,ge;ue!==null;){ge=ue;var He=ge.stateNode;if(ge.tag===5&&He!==null&&(ge=He,me!==null&&(He=lt(ue,me),He!=null&&yt.push(Yc(ue,He,ge)))),Dr)break;ue=ue.return}0<yt.length&&(Re=new at(Re,dt,null,p,_e),Ne.push({event:Re,listeners:yt}))}}if((a&7)===0){e:{if(Re=i==="mouseover"||i==="pointerover",at=i==="mouseout"||i==="pointerout",Re&&p!==Br&&(dt=p.relatedTarget||p.fromElement)&&(ba(dt)||dt[ts]))break e;if((at||Re)&&(Re=_e.window===_e?_e:(Re=_e.ownerDocument)?Re.defaultView||Re.parentWindow:window,at?(dt=p.relatedTarget||p.toElement,at=xe,dt=dt?ba(dt):null,dt!==null&&(Dr=wn(dt),dt!==Dr||dt.tag!==5&&dt.tag!==6)&&(dt=null)):(at=null,dt=xe),at!==dt)){if(yt=sx,He="onMouseLeave",me="onMouseEnter",ue="mouse",(i==="pointerout"||i==="pointerover")&&(yt=lx,He="onPointerLeave",me="onPointerEnter",ue="pointer"),Dr=at==null?Re:xl(at),ge=dt==null?Re:xl(dt),Re=new yt(He,ue+"leave",at,p,_e),Re.target=Dr,Re.relatedTarget=ge,He=null,ba(_e)===xe&&(yt=new yt(me,ue+"enter",dt,p,_e),yt.target=ge,yt.relatedTarget=Dr,He=yt),Dr=He,at&&dt)t:{for(yt=at,me=dt,ue=0,ge=yt;ge;ge=yl(ge))ue++;for(ge=0,He=me;He;He=yl(He))ge++;for(;0<ue-ge;)yt=yl(yt),ue--;for(;0<ge-ue;)me=yl(me),ge--;for(;ue--;){if(yt===me||me!==null&&yt===me.alternate)break t;yt=yl(yt),me=yl(me)}yt=null}else yt=null;at!==null&&Ox(Ne,Re,at,yt,!1),dt!==null&&Dr!==null&&Ox(Ne,Dr,dt,yt,!0)}}e:{if(Re=xe?xl(xe):window,at=Re.nodeName&&Re.nodeName.toLowerCase(),at==="select"||at==="input"&&Re.type==="file")var xt=eP;else if(hx(Re))if(gx)xt=oP;else{xt=rP;var Tt=tP}else(at=Re.nodeName)&&at.toLowerCase()==="input"&&(Re.type==="checkbox"||Re.type==="radio")&&(xt=nP);if(xt&&(xt=xt(i,xe))){mx(Ne,xt,p,_e);break e}Tt&&Tt(i,Re,xe),i==="focusout"&&(Tt=Re._wrapperState)&&Tt.controlled&&Re.type==="number"&&De(Re,"number",Re.value)}switch(Tt=xe?xl(xe):window,i){case"focusin":(hx(Tt)||Tt.contentEditable==="true")&&(ml=Tt,fm=xe,Xc=null);break;case"focusout":Xc=fm=ml=null;break;case"mousedown":hm=!0;break;case"contextmenu":case"mouseup":case"dragend":hm=!1,Ex(Ne,p,_e);break;case"selectionchange":if(aP)break;case"keydown":case"keyup":Ex(Ne,p,_e)}var kt;if(cm)e:{switch(i){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else hl?px(i,p)&&(At="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(At="onCompositionStart");At&&(cx&&p.locale!=="ko"&&(hl||At!=="onCompositionStart"?At==="onCompositionEnd"&&hl&&(kt=ox()):(Rs=_e,nm="value"in Rs?Rs.value:Rs.textContent,hl=!0)),Tt=Jd(xe,At),0<Tt.length&&(At=new ax(At,i,null,p,_e),Ne.push({event:At,listeners:Tt}),kt?At.data=kt:(kt=fx(p),kt!==null&&(At.data=kt)))),(kt=Kj?Qj(i,p):Yj(i,p))&&(xe=Jd(xe,"onBeforeInput"),0<xe.length&&(_e=new ax("onBeforeInput","beforeinput",null,p,_e),Ne.push({event:_e,listeners:xe}),_e.data=kt))}_x(Ne,a)})}function Yc(i,a,p){return{instance:i,listener:a,currentTarget:p}}function Jd(i,a){for(var p=a+"Capture",g=[];i!==null;){var S=i,T=S.stateNode;S.tag===5&&T!==null&&(S=T,T=lt(i,p),T!=null&&g.unshift(Yc(i,T,S)),T=lt(i,a),T!=null&&g.push(Yc(i,T,S))),i=i.return}return g}function yl(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Ox(i,a,p,g,S){for(var T=a._reactName,N=[];p!==null&&p!==g;){var ne=p,le=ne.alternate,xe=ne.stateNode;if(le!==null&&le===g)break;ne.tag===5&&xe!==null&&(ne=xe,S?(le=lt(p,T),le!=null&&N.unshift(Yc(p,le,ne))):S||(le=lt(p,T),le!=null&&N.push(Yc(p,le,ne)))),p=p.return}N.length!==0&&i.push({event:a,listeners:N})}var dP=/\r\n?/g,pP=/\u0000|\uFFFD/g;function $x(i){return(typeof i=="string"?i:""+i).replace(dP,`
|
|
38
|
+
`).replace(pP,"")}function Zd(i,a,p){if(a=$x(a),$x(i)!==a&&p)throw Error(r(425))}function ep(){}var bm=null,wm=null;function Sm(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Cm=typeof setTimeout=="function"?setTimeout:void 0,fP=typeof clearTimeout=="function"?clearTimeout:void 0,Nx=typeof Promise=="function"?Promise:void 0,hP=typeof queueMicrotask=="function"?queueMicrotask:typeof Nx<"u"?function(i){return Nx.resolve(null).then(i).catch(mP)}:Cm;function mP(i){setTimeout(function(){throw i})}function Em(i,a){var p=a,g=0;do{var S=p.nextSibling;if(i.removeChild(p),S&&S.nodeType===8)if(p=S.data,p==="/$"){if(g===0){i.removeChild(S),Fc(a);return}g--}else p!=="$"&&p!=="$?"&&p!=="$!"||g++;p=S}while(p);Fc(a)}function _s(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function Bx(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(a===0)return i;a--}else p==="/$"&&a++}i=i.previousSibling}return null}var vl=Math.random().toString(36).slice(2),yi="__reactFiber$"+vl,Jc="__reactProps$"+vl,ts="__reactContainer$"+vl,Tm="__reactEvents$"+vl,gP="__reactListeners$"+vl,yP="__reactHandles$"+vl;function ba(i){var a=i[yi];if(a)return a;for(var p=i.parentNode;p;){if(a=p[ts]||p[yi]){if(p=a.alternate,a.child!==null||p!==null&&p.child!==null)for(i=Bx(i);i!==null;){if(p=i[yi])return p;i=Bx(i)}return a}i=p,p=i.parentNode}return null}function Zc(i){return i=i[yi]||i[ts],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function xl(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(r(33))}function tp(i){return i[Jc]||null}var km=[],bl=-1;function Ls(i){return{current:i}}function kr(i){0>bl||(i.current=km[bl],km[bl]=null,bl--)}function Cr(i,a){bl++,km[bl]=i.current,i.current=a}var Os={},Sn=Ls(Os),Un=Ls(!1),wa=Os;function wl(i,a){var p=i.type.contextTypes;if(!p)return Os;var g=i.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===a)return g.__reactInternalMemoizedMaskedChildContext;var S={},T;for(T in p)S[T]=a[T];return g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=S),S}function Vn(i){return i=i.childContextTypes,i!=null}function rp(){kr(Un),kr(Sn)}function zx(i,a,p){if(Sn.current!==Os)throw Error(r(168));Cr(Sn,a),Cr(Un,p)}function Dx(i,a,p){var g=i.stateNode;if(a=a.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var S in g)if(!(S in a))throw Error(r(108,pe(i)||"Unknown",S));return Q({},p,g)}function np(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Os,wa=Sn.current,Cr(Sn,i),Cr(Un,Un.current),!0}function Fx(i,a,p){var g=i.stateNode;if(!g)throw Error(r(169));p?(i=Dx(i,a,wa),g.__reactInternalMemoizedMergedChildContext=i,kr(Un),kr(Sn),Cr(Sn,i)):kr(Un),Cr(Un,p)}var rs=null,op=!1,jm=!1;function Hx(i){rs===null?rs=[i]:rs.push(i)}function vP(i){op=!0,Hx(i)}function $s(){if(!jm&&rs!==null){jm=!0;var i=0,a=pr;try{var p=rs;for(pr=1;i<p.length;i++){var g=p[i];do g=g(!0);while(g!==null)}rs=null,op=!1}catch(S){throw rs!==null&&(rs=rs.slice(i+1)),st(ks,$s),S}finally{pr=a,jm=!1}}return null}var Sl=[],Cl=0,ip=null,sp=0,jo=[],Po=0,Sa=null,ns=1,os="";function Ca(i,a){Sl[Cl++]=sp,Sl[Cl++]=ip,ip=i,sp=a}function Ux(i,a,p){jo[Po++]=ns,jo[Po++]=os,jo[Po++]=Sa,Sa=i;var g=ns;i=os;var S=32-Qo(g)-1;g&=~(1<<S),p+=1;var T=32-Qo(a)+S;if(30<T){var N=S-S%5;T=(g&(1<<N)-1).toString(32),g>>=N,S-=N,ns=1<<32-Qo(a)+S|p<<S|g,os=T+i}else ns=1<<T|p<<S|g,os=i}function Pm(i){i.return!==null&&(Ca(i,1),Ux(i,1,0))}function Im(i){for(;i===ip;)ip=Sl[--Cl],Sl[Cl]=null,sp=Sl[--Cl],Sl[Cl]=null;for(;i===Sa;)Sa=jo[--Po],jo[Po]=null,os=jo[--Po],jo[Po]=null,ns=jo[--Po],jo[Po]=null}var ho=null,mo=null,Pr=!1,Jo=null;function Vx(i,a){var p=Ao(5,null,null,0);p.elementType="DELETED",p.stateNode=a,p.return=i,a=i.deletions,a===null?(i.deletions=[p],i.flags|=16):a.push(p)}function Wx(i,a){switch(i.tag){case 5:var p=i.type;return a=a.nodeType!==1||p.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,ho=i,mo=_s(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,ho=i,mo=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(p=Sa!==null?{id:ns,overflow:os}:null,i.memoizedState={dehydrated:a,treeContext:p,retryLane:1073741824},p=Ao(18,null,null,0),p.stateNode=a,p.return=i,i.child=p,ho=i,mo=null,!0):!1;default:return!1}}function Mm(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Rm(i){if(Pr){var a=mo;if(a){var p=a;if(!Wx(i,a)){if(Mm(i))throw Error(r(418));a=_s(p.nextSibling);var g=ho;a&&Wx(i,a)?Vx(g,p):(i.flags=i.flags&-4097|2,Pr=!1,ho=i)}}else{if(Mm(i))throw Error(r(418));i.flags=i.flags&-4097|2,Pr=!1,ho=i}}}function qx(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;ho=i}function ap(i){if(i!==ho)return!1;if(!Pr)return qx(i),Pr=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!Sm(i.type,i.memoizedProps)),a&&(a=mo)){if(Mm(i))throw Gx(),Error(r(418));for(;a;)Vx(i,a),a=_s(a.nextSibling)}if(qx(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var p=i.data;if(p==="/$"){if(a===0){mo=_s(i.nextSibling);break e}a--}else p!=="$"&&p!=="$!"&&p!=="$?"||a++}i=i.nextSibling}mo=null}}else mo=ho?_s(i.stateNode.nextSibling):null;return!0}function Gx(){for(var i=mo;i;)i=_s(i.nextSibling)}function El(){mo=ho=null,Pr=!1}function Am(i){Jo===null?Jo=[i]:Jo.push(i)}var xP=E.ReactCurrentBatchConfig;function eu(i,a,p){if(i=p.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var g=p.stateNode}if(!g)throw Error(r(147,i));var S=g,T=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===T?a.ref:(a=function(N){var ne=S.refs;N===null?delete ne[T]:ne[T]=N},a._stringRef=T,a)}if(typeof i!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,i))}return i}function lp(i,a){throw i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function Xx(i){var a=i._init;return a(i._payload)}function Kx(i){function a(me,ue){if(i){var ge=me.deletions;ge===null?(me.deletions=[ue],me.flags|=16):ge.push(ue)}}function p(me,ue){if(!i)return null;for(;ue!==null;)a(me,ue),ue=ue.sibling;return null}function g(me,ue){for(me=new Map;ue!==null;)ue.key!==null?me.set(ue.key,ue):me.set(ue.index,ue),ue=ue.sibling;return me}function S(me,ue){return me=Vs(me,ue),me.index=0,me.sibling=null,me}function T(me,ue,ge){return me.index=ge,i?(ge=me.alternate,ge!==null?(ge=ge.index,ge<ue?(me.flags|=2,ue):ge):(me.flags|=2,ue)):(me.flags|=1048576,ue)}function N(me){return i&&me.alternate===null&&(me.flags|=2),me}function ne(me,ue,ge,He){return ue===null||ue.tag!==6?(ue=Cg(ge,me.mode,He),ue.return=me,ue):(ue=S(ue,ge),ue.return=me,ue)}function le(me,ue,ge,He){var xt=ge.type;return xt===L?_e(me,ue,ge.props.children,He,ge.key):ue!==null&&(ue.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===U&&Xx(xt)===ue.type)?(He=S(ue,ge.props),He.ref=eu(me,ue,ge),He.return=me,He):(He=Ap(ge.type,ge.key,ge.props,null,me.mode,He),He.ref=eu(me,ue,ge),He.return=me,He)}function xe(me,ue,ge,He){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==ge.containerInfo||ue.stateNode.implementation!==ge.implementation?(ue=Eg(ge,me.mode,He),ue.return=me,ue):(ue=S(ue,ge.children||[]),ue.return=me,ue)}function _e(me,ue,ge,He,xt){return ue===null||ue.tag!==7?(ue=Ra(ge,me.mode,He,xt),ue.return=me,ue):(ue=S(ue,ge),ue.return=me,ue)}function Ne(me,ue,ge){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=Cg(""+ue,me.mode,ge),ue.return=me,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case M:return ge=Ap(ue.type,ue.key,ue.props,null,me.mode,ge),ge.ref=eu(me,null,ue),ge.return=me,ge;case R:return ue=Eg(ue,me.mode,ge),ue.return=me,ue;case U:var He=ue._init;return Ne(me,He(ue._payload),ge)}if(We(ue)||te(ue))return ue=Ra(ue,me.mode,ge,null),ue.return=me,ue;lp(me,ue)}return null}function Re(me,ue,ge,He){var xt=ue!==null?ue.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return xt!==null?null:ne(me,ue,""+ge,He);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case M:return ge.key===xt?le(me,ue,ge,He):null;case R:return ge.key===xt?xe(me,ue,ge,He):null;case U:return xt=ge._init,Re(me,ue,xt(ge._payload),He)}if(We(ge)||te(ge))return xt!==null?null:_e(me,ue,ge,He,null);lp(me,ge)}return null}function at(me,ue,ge,He,xt){if(typeof He=="string"&&He!==""||typeof He=="number")return me=me.get(ge)||null,ne(ue,me,""+He,xt);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case M:return me=me.get(He.key===null?ge:He.key)||null,le(ue,me,He,xt);case R:return me=me.get(He.key===null?ge:He.key)||null,xe(ue,me,He,xt);case U:var Tt=He._init;return at(me,ue,ge,Tt(He._payload),xt)}if(We(He)||te(He))return me=me.get(ge)||null,_e(ue,me,He,xt,null);lp(ue,He)}return null}function dt(me,ue,ge,He){for(var xt=null,Tt=null,kt=ue,At=ue=0,ln=null;kt!==null&&At<ge.length;At++){kt.index>At?(ln=kt,kt=null):ln=kt.sibling;var rr=Re(me,kt,ge[At],He);if(rr===null){kt===null&&(kt=ln);break}i&&kt&&rr.alternate===null&&a(me,kt),ue=T(rr,ue,At),Tt===null?xt=rr:Tt.sibling=rr,Tt=rr,kt=ln}if(At===ge.length)return p(me,kt),Pr&&Ca(me,At),xt;if(kt===null){for(;At<ge.length;At++)kt=Ne(me,ge[At],He),kt!==null&&(ue=T(kt,ue,At),Tt===null?xt=kt:Tt.sibling=kt,Tt=kt);return Pr&&Ca(me,At),xt}for(kt=g(me,kt);At<ge.length;At++)ln=at(kt,me,At,ge[At],He),ln!==null&&(i&&ln.alternate!==null&&kt.delete(ln.key===null?At:ln.key),ue=T(ln,ue,At),Tt===null?xt=ln:Tt.sibling=ln,Tt=ln);return i&&kt.forEach(function(Ws){return a(me,Ws)}),Pr&&Ca(me,At),xt}function yt(me,ue,ge,He){var xt=te(ge);if(typeof xt!="function")throw Error(r(150));if(ge=xt.call(ge),ge==null)throw Error(r(151));for(var Tt=xt=null,kt=ue,At=ue=0,ln=null,rr=ge.next();kt!==null&&!rr.done;At++,rr=ge.next()){kt.index>At?(ln=kt,kt=null):ln=kt.sibling;var Ws=Re(me,kt,rr.value,He);if(Ws===null){kt===null&&(kt=ln);break}i&&kt&&Ws.alternate===null&&a(me,kt),ue=T(Ws,ue,At),Tt===null?xt=Ws:Tt.sibling=Ws,Tt=Ws,kt=ln}if(rr.done)return p(me,kt),Pr&&Ca(me,At),xt;if(kt===null){for(;!rr.done;At++,rr=ge.next())rr=Ne(me,rr.value,He),rr!==null&&(ue=T(rr,ue,At),Tt===null?xt=rr:Tt.sibling=rr,Tt=rr);return Pr&&Ca(me,At),xt}for(kt=g(me,kt);!rr.done;At++,rr=ge.next())rr=at(kt,me,At,rr.value,He),rr!==null&&(i&&rr.alternate!==null&&kt.delete(rr.key===null?At:rr.key),ue=T(rr,ue,At),Tt===null?xt=rr:Tt.sibling=rr,Tt=rr);return i&&kt.forEach(function(JP){return a(me,JP)}),Pr&&Ca(me,At),xt}function Dr(me,ue,ge,He){if(typeof ge=="object"&&ge!==null&&ge.type===L&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case M:e:{for(var xt=ge.key,Tt=ue;Tt!==null;){if(Tt.key===xt){if(xt=ge.type,xt===L){if(Tt.tag===7){p(me,Tt.sibling),ue=S(Tt,ge.props.children),ue.return=me,me=ue;break e}}else if(Tt.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===U&&Xx(xt)===Tt.type){p(me,Tt.sibling),ue=S(Tt,ge.props),ue.ref=eu(me,Tt,ge),ue.return=me,me=ue;break e}p(me,Tt);break}else a(me,Tt);Tt=Tt.sibling}ge.type===L?(ue=Ra(ge.props.children,me.mode,He,ge.key),ue.return=me,me=ue):(He=Ap(ge.type,ge.key,ge.props,null,me.mode,He),He.ref=eu(me,ue,ge),He.return=me,me=He)}return N(me);case R:e:{for(Tt=ge.key;ue!==null;){if(ue.key===Tt)if(ue.tag===4&&ue.stateNode.containerInfo===ge.containerInfo&&ue.stateNode.implementation===ge.implementation){p(me,ue.sibling),ue=S(ue,ge.children||[]),ue.return=me,me=ue;break e}else{p(me,ue);break}else a(me,ue);ue=ue.sibling}ue=Eg(ge,me.mode,He),ue.return=me,me=ue}return N(me);case U:return Tt=ge._init,Dr(me,ue,Tt(ge._payload),He)}if(We(ge))return dt(me,ue,ge,He);if(te(ge))return yt(me,ue,ge,He);lp(me,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,ue!==null&&ue.tag===6?(p(me,ue.sibling),ue=S(ue,ge),ue.return=me,me=ue):(p(me,ue),ue=Cg(ge,me.mode,He),ue.return=me,me=ue),N(me)):p(me,ue)}return Dr}var Tl=Kx(!0),Qx=Kx(!1),cp=Ls(null),up=null,kl=null,_m=null;function Lm(){_m=kl=up=null}function Om(i){var a=cp.current;kr(cp),i._currentValue=a}function $m(i,a,p){for(;i!==null;){var g=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,g!==null&&(g.childLanes|=a)):g!==null&&(g.childLanes&a)!==a&&(g.childLanes|=a),i===p)break;i=i.return}}function jl(i,a){up=i,_m=kl=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(Wn=!0),i.firstContext=null)}function Io(i){var a=i._currentValue;if(_m!==i)if(i={context:i,memoizedValue:a,next:null},kl===null){if(up===null)throw Error(r(308));kl=i,up.dependencies={lanes:0,firstContext:i}}else kl=kl.next=i;return a}var Ea=null;function Nm(i){Ea===null?Ea=[i]:Ea.push(i)}function Yx(i,a,p,g){var S=a.interleaved;return S===null?(p.next=p,Nm(a)):(p.next=S.next,S.next=p),a.interleaved=p,is(i,g)}function is(i,a){i.lanes|=a;var p=i.alternate;for(p!==null&&(p.lanes|=a),p=i,i=i.return;i!==null;)i.childLanes|=a,p=i.alternate,p!==null&&(p.childLanes|=a),p=i,i=i.return;return p.tag===3?p.stateNode:null}var Ns=!1;function Bm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jx(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ss(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function Bs(i,a,p){var g=i.updateQueue;if(g===null)return null;if(g=g.shared,(er&2)!==0){var S=g.pending;return S===null?a.next=a:(a.next=S.next,S.next=a),g.pending=a,is(i,p)}return S=g.interleaved,S===null?(a.next=a,Nm(g)):(a.next=S.next,S.next=a),g.interleaved=a,is(i,p)}function dp(i,a,p){if(a=a.updateQueue,a!==null&&(a=a.shared,(p&4194240)!==0)){var g=a.lanes;g&=i.pendingLanes,p|=g,a.lanes=p,Jh(i,p)}}function Zx(i,a){var p=i.updateQueue,g=i.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var S=null,T=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};T===null?S=T=N:T=T.next=N,p=p.next}while(p!==null);T===null?S=T=a:T=T.next=a}else S=T=a;p={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:g.shared,effects:g.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=a:i.next=a,p.lastBaseUpdate=a}function pp(i,a,p,g){var S=i.updateQueue;Ns=!1;var T=S.firstBaseUpdate,N=S.lastBaseUpdate,ne=S.shared.pending;if(ne!==null){S.shared.pending=null;var le=ne,xe=le.next;le.next=null,N===null?T=xe:N.next=xe,N=le;var _e=i.alternate;_e!==null&&(_e=_e.updateQueue,ne=_e.lastBaseUpdate,ne!==N&&(ne===null?_e.firstBaseUpdate=xe:ne.next=xe,_e.lastBaseUpdate=le))}if(T!==null){var Ne=S.baseState;N=0,_e=xe=le=null,ne=T;do{var Re=ne.lane,at=ne.eventTime;if((g&Re)===Re){_e!==null&&(_e=_e.next={eventTime:at,lane:0,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null});e:{var dt=i,yt=ne;switch(Re=a,at=p,yt.tag){case 1:if(dt=yt.payload,typeof dt=="function"){Ne=dt.call(at,Ne,Re);break e}Ne=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=yt.payload,Re=typeof dt=="function"?dt.call(at,Ne,Re):dt,Re==null)break e;Ne=Q({},Ne,Re);break e;case 2:Ns=!0}}ne.callback!==null&&ne.lane!==0&&(i.flags|=64,Re=S.effects,Re===null?S.effects=[ne]:Re.push(ne))}else at={eventTime:at,lane:Re,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},_e===null?(xe=_e=at,le=Ne):_e=_e.next=at,N|=Re;if(ne=ne.next,ne===null){if(ne=S.shared.pending,ne===null)break;Re=ne,ne=Re.next,Re.next=null,S.lastBaseUpdate=Re,S.shared.pending=null}}while(!0);if(_e===null&&(le=Ne),S.baseState=le,S.firstBaseUpdate=xe,S.lastBaseUpdate=_e,a=S.shared.interleaved,a!==null){S=a;do N|=S.lane,S=S.next;while(S!==a)}else T===null&&(S.shared.lanes=0);ja|=N,i.lanes=N,i.memoizedState=Ne}}function eb(i,a,p){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var g=i[a],S=g.callback;if(S!==null){if(g.callback=null,g=p,typeof S!="function")throw Error(r(191,S));S.call(g)}}}var tu={},vi=Ls(tu),ru=Ls(tu),nu=Ls(tu);function Ta(i){if(i===tu)throw Error(r(174));return i}function zm(i,a){switch(Cr(nu,a),Cr(ru,i),Cr(vi,tu),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Pe(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=Pe(a,i)}kr(vi),Cr(vi,a)}function Pl(){kr(vi),kr(ru),kr(nu)}function tb(i){Ta(nu.current);var a=Ta(vi.current),p=Pe(a,i.type);a!==p&&(Cr(ru,i),Cr(vi,p))}function Dm(i){ru.current===i&&(kr(vi),kr(ru))}var Mr=Ls(0);function fp(i){for(var a=i;a!==null;){if(a.tag===13){var p=a.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Fm=[];function Hm(){for(var i=0;i<Fm.length;i++)Fm[i]._workInProgressVersionPrimary=null;Fm.length=0}var hp=E.ReactCurrentDispatcher,Um=E.ReactCurrentBatchConfig,ka=0,Rr=null,Zr=null,sn=null,mp=!1,ou=!1,iu=0,bP=0;function Cn(){throw Error(r(321))}function Vm(i,a){if(a===null)return!1;for(var p=0;p<a.length&&p<i.length;p++)if(!Yo(i[p],a[p]))return!1;return!0}function Wm(i,a,p,g,S,T){if(ka=T,Rr=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,hp.current=i===null||i.memoizedState===null?EP:TP,i=p(g,S),ou){T=0;do{if(ou=!1,iu=0,25<=T)throw Error(r(301));T+=1,sn=Zr=null,a.updateQueue=null,hp.current=kP,i=p(g,S)}while(ou)}if(hp.current=vp,a=Zr!==null&&Zr.next!==null,ka=0,sn=Zr=Rr=null,mp=!1,a)throw Error(r(300));return i}function qm(){var i=iu!==0;return iu=0,i}function xi(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sn===null?Rr.memoizedState=sn=i:sn=sn.next=i,sn}function Mo(){if(Zr===null){var i=Rr.alternate;i=i!==null?i.memoizedState:null}else i=Zr.next;var a=sn===null?Rr.memoizedState:sn.next;if(a!==null)sn=a,Zr=i;else{if(i===null)throw Error(r(310));Zr=i,i={memoizedState:Zr.memoizedState,baseState:Zr.baseState,baseQueue:Zr.baseQueue,queue:Zr.queue,next:null},sn===null?Rr.memoizedState=sn=i:sn=sn.next=i}return sn}function su(i,a){return typeof a=="function"?a(i):a}function Gm(i){var a=Mo(),p=a.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=Zr,S=g.baseQueue,T=p.pending;if(T!==null){if(S!==null){var N=S.next;S.next=T.next,T.next=N}g.baseQueue=S=T,p.pending=null}if(S!==null){T=S.next,g=g.baseState;var ne=N=null,le=null,xe=T;do{var _e=xe.lane;if((ka&_e)===_e)le!==null&&(le=le.next={lane:0,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null}),g=xe.hasEagerState?xe.eagerState:i(g,xe.action);else{var Ne={lane:_e,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null};le===null?(ne=le=Ne,N=g):le=le.next=Ne,Rr.lanes|=_e,ja|=_e}xe=xe.next}while(xe!==null&&xe!==T);le===null?N=g:le.next=ne,Yo(g,a.memoizedState)||(Wn=!0),a.memoizedState=g,a.baseState=N,a.baseQueue=le,p.lastRenderedState=g}if(i=p.interleaved,i!==null){S=i;do T=S.lane,Rr.lanes|=T,ja|=T,S=S.next;while(S!==i)}else S===null&&(p.lanes=0);return[a.memoizedState,p.dispatch]}function Xm(i){var a=Mo(),p=a.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var g=p.dispatch,S=p.pending,T=a.memoizedState;if(S!==null){p.pending=null;var N=S=S.next;do T=i(T,N.action),N=N.next;while(N!==S);Yo(T,a.memoizedState)||(Wn=!0),a.memoizedState=T,a.baseQueue===null&&(a.baseState=T),p.lastRenderedState=T}return[T,g]}function rb(){}function nb(i,a){var p=Rr,g=Mo(),S=a(),T=!Yo(g.memoizedState,S);if(T&&(g.memoizedState=S,Wn=!0),g=g.queue,Km(sb.bind(null,p,g,i),[i]),g.getSnapshot!==a||T||sn!==null&&sn.memoizedState.tag&1){if(p.flags|=2048,au(9,ib.bind(null,p,g,S,a),void 0,null),an===null)throw Error(r(349));(ka&30)!==0||ob(p,a,S)}return S}function ob(i,a,p){i.flags|=16384,i={getSnapshot:a,value:p},a=Rr.updateQueue,a===null?(a={lastEffect:null,stores:null},Rr.updateQueue=a,a.stores=[i]):(p=a.stores,p===null?a.stores=[i]:p.push(i))}function ib(i,a,p,g){a.value=p,a.getSnapshot=g,ab(a)&&lb(i)}function sb(i,a,p){return p(function(){ab(a)&&lb(i)})}function ab(i){var a=i.getSnapshot;i=i.value;try{var p=a();return!Yo(i,p)}catch{return!0}}function lb(i){var a=is(i,1);a!==null&&ri(a,i,1,-1)}function cb(i){var a=xi();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:su,lastRenderedState:i},a.queue=i,i=i.dispatch=CP.bind(null,Rr,i),[a.memoizedState,i]}function au(i,a,p,g){return i={tag:i,create:a,destroy:p,deps:g,next:null},a=Rr.updateQueue,a===null?(a={lastEffect:null,stores:null},Rr.updateQueue=a,a.lastEffect=i.next=i):(p=a.lastEffect,p===null?a.lastEffect=i.next=i:(g=p.next,p.next=i,i.next=g,a.lastEffect=i)),i}function ub(){return Mo().memoizedState}function gp(i,a,p,g){var S=xi();Rr.flags|=i,S.memoizedState=au(1|a,p,void 0,g===void 0?null:g)}function yp(i,a,p,g){var S=Mo();g=g===void 0?null:g;var T=void 0;if(Zr!==null){var N=Zr.memoizedState;if(T=N.destroy,g!==null&&Vm(g,N.deps)){S.memoizedState=au(a,p,T,g);return}}Rr.flags|=i,S.memoizedState=au(1|a,p,T,g)}function db(i,a){return gp(8390656,8,i,a)}function Km(i,a){return yp(2048,8,i,a)}function pb(i,a){return yp(4,2,i,a)}function fb(i,a){return yp(4,4,i,a)}function hb(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function mb(i,a,p){return p=p!=null?p.concat([i]):null,yp(4,4,hb.bind(null,a,i),p)}function Qm(){}function gb(i,a){var p=Mo();a=a===void 0?null:a;var g=p.memoizedState;return g!==null&&a!==null&&Vm(a,g[1])?g[0]:(p.memoizedState=[i,a],i)}function yb(i,a){var p=Mo();a=a===void 0?null:a;var g=p.memoizedState;return g!==null&&a!==null&&Vm(a,g[1])?g[0]:(i=i(),p.memoizedState=[i,a],i)}function vb(i,a,p){return(ka&21)===0?(i.baseState&&(i.baseState=!1,Wn=!0),i.memoizedState=p):(Yo(p,a)||(p=X0(),Rr.lanes|=p,ja|=p,i.baseState=!0),a)}function wP(i,a){var p=pr;pr=p!==0&&4>p?p:4,i(!0);var g=Um.transition;Um.transition={};try{i(!1),a()}finally{pr=p,Um.transition=g}}function xb(){return Mo().memoizedState}function SP(i,a,p){var g=Hs(i);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},bb(i))wb(a,p);else if(p=Yx(i,a,p,g),p!==null){var S=An();ri(p,i,g,S),Sb(p,a,g)}}function CP(i,a,p){var g=Hs(i),S={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(bb(i))wb(a,S);else{var T=i.alternate;if(i.lanes===0&&(T===null||T.lanes===0)&&(T=a.lastRenderedReducer,T!==null))try{var N=a.lastRenderedState,ne=T(N,p);if(S.hasEagerState=!0,S.eagerState=ne,Yo(ne,N)){var le=a.interleaved;le===null?(S.next=S,Nm(a)):(S.next=le.next,le.next=S),a.interleaved=S;return}}catch{}finally{}p=Yx(i,a,S,g),p!==null&&(S=An(),ri(p,i,g,S),Sb(p,a,g))}}function bb(i){var a=i.alternate;return i===Rr||a!==null&&a===Rr}function wb(i,a){ou=mp=!0;var p=i.pending;p===null?a.next=a:(a.next=p.next,p.next=a),i.pending=a}function Sb(i,a,p){if((p&4194240)!==0){var g=a.lanes;g&=i.pendingLanes,p|=g,a.lanes=p,Jh(i,p)}}var vp={readContext:Io,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},EP={readContext:Io,useCallback:function(i,a){return xi().memoizedState=[i,a===void 0?null:a],i},useContext:Io,useEffect:db,useImperativeHandle:function(i,a,p){return p=p!=null?p.concat([i]):null,gp(4194308,4,hb.bind(null,a,i),p)},useLayoutEffect:function(i,a){return gp(4194308,4,i,a)},useInsertionEffect:function(i,a){return gp(4,2,i,a)},useMemo:function(i,a){var p=xi();return a=a===void 0?null:a,i=i(),p.memoizedState=[i,a],i},useReducer:function(i,a,p){var g=xi();return a=p!==void 0?p(a):a,g.memoizedState=g.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},g.queue=i,i=i.dispatch=SP.bind(null,Rr,i),[g.memoizedState,i]},useRef:function(i){var a=xi();return i={current:i},a.memoizedState=i},useState:cb,useDebugValue:Qm,useDeferredValue:function(i){return xi().memoizedState=i},useTransition:function(){var i=cb(!1),a=i[0];return i=wP.bind(null,i[1]),xi().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,p){var g=Rr,S=xi();if(Pr){if(p===void 0)throw Error(r(407));p=p()}else{if(p=a(),an===null)throw Error(r(349));(ka&30)!==0||ob(g,a,p)}S.memoizedState=p;var T={value:p,getSnapshot:a};return S.queue=T,db(sb.bind(null,g,T,i),[i]),g.flags|=2048,au(9,ib.bind(null,g,T,p,a),void 0,null),p},useId:function(){var i=xi(),a=an.identifierPrefix;if(Pr){var p=os,g=ns;p=(g&~(1<<32-Qo(g)-1)).toString(32)+p,a=":"+a+"R"+p,p=iu++,0<p&&(a+="H"+p.toString(32)),a+=":"}else p=bP++,a=":"+a+"r"+p.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},TP={readContext:Io,useCallback:gb,useContext:Io,useEffect:Km,useImperativeHandle:mb,useInsertionEffect:pb,useLayoutEffect:fb,useMemo:yb,useReducer:Gm,useRef:ub,useState:function(){return Gm(su)},useDebugValue:Qm,useDeferredValue:function(i){var a=Mo();return vb(a,Zr.memoizedState,i)},useTransition:function(){var i=Gm(su)[0],a=Mo().memoizedState;return[i,a]},useMutableSource:rb,useSyncExternalStore:nb,useId:xb,unstable_isNewReconciler:!1},kP={readContext:Io,useCallback:gb,useContext:Io,useEffect:Km,useImperativeHandle:mb,useInsertionEffect:pb,useLayoutEffect:fb,useMemo:yb,useReducer:Xm,useRef:ub,useState:function(){return Xm(su)},useDebugValue:Qm,useDeferredValue:function(i){var a=Mo();return Zr===null?a.memoizedState=i:vb(a,Zr.memoizedState,i)},useTransition:function(){var i=Xm(su)[0],a=Mo().memoizedState;return[i,a]},useMutableSource:rb,useSyncExternalStore:nb,useId:xb,unstable_isNewReconciler:!1};function Zo(i,a){if(i&&i.defaultProps){a=Q({},a),i=i.defaultProps;for(var p in i)a[p]===void 0&&(a[p]=i[p]);return a}return a}function Ym(i,a,p,g){a=i.memoizedState,p=p(g,a),p=p==null?a:Q({},a,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var xp={isMounted:function(i){return(i=i._reactInternals)?wn(i)===i:!1},enqueueSetState:function(i,a,p){i=i._reactInternals;var g=An(),S=Hs(i),T=ss(g,S);T.payload=a,p!=null&&(T.callback=p),a=Bs(i,T,S),a!==null&&(ri(a,i,S,g),dp(a,i,S))},enqueueReplaceState:function(i,a,p){i=i._reactInternals;var g=An(),S=Hs(i),T=ss(g,S);T.tag=1,T.payload=a,p!=null&&(T.callback=p),a=Bs(i,T,S),a!==null&&(ri(a,i,S,g),dp(a,i,S))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var p=An(),g=Hs(i),S=ss(p,g);S.tag=2,a!=null&&(S.callback=a),a=Bs(i,S,g),a!==null&&(ri(a,i,g,p),dp(a,i,g))}};function Cb(i,a,p,g,S,T,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(g,T,N):a.prototype&&a.prototype.isPureReactComponent?!Gc(p,g)||!Gc(S,T):!0}function Eb(i,a,p){var g=!1,S=Os,T=a.contextType;return typeof T=="object"&&T!==null?T=Io(T):(S=Vn(a)?wa:Sn.current,g=a.contextTypes,T=(g=g!=null)?wl(i,S):Os),a=new a(p,T),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=xp,i.stateNode=a,a._reactInternals=i,g&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=S,i.__reactInternalMemoizedMaskedChildContext=T),a}function Tb(i,a,p,g){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(p,g),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(p,g),a.state!==i&&xp.enqueueReplaceState(a,a.state,null)}function Jm(i,a,p,g){var S=i.stateNode;S.props=p,S.state=i.memoizedState,S.refs={},Bm(i);var T=a.contextType;typeof T=="object"&&T!==null?S.context=Io(T):(T=Vn(a)?wa:Sn.current,S.context=wl(i,T)),S.state=i.memoizedState,T=a.getDerivedStateFromProps,typeof T=="function"&&(Ym(i,a,T,p),S.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(a=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),a!==S.state&&xp.enqueueReplaceState(S,S.state,null),pp(i,p,S,g),S.state=i.memoizedState),typeof S.componentDidMount=="function"&&(i.flags|=4194308)}function Il(i,a){try{var p="",g=a;do p+=oe(g),g=g.return;while(g);var S=p}catch(T){S=`
|
|
39
|
+
Error generating stack: `+T.message+`
|
|
40
|
+
`+T.stack}return{value:i,source:a,stack:S,digest:null}}function Zm(i,a,p){return{value:i,source:null,stack:p??null,digest:a??null}}function eg(i,a){try{console.error(a.value)}catch(p){setTimeout(function(){throw p})}}var jP=typeof WeakMap=="function"?WeakMap:Map;function kb(i,a,p){p=ss(-1,p),p.tag=3,p.payload={element:null};var g=a.value;return p.callback=function(){kp||(kp=!0,mg=g),eg(i,a)},p}function jb(i,a,p){p=ss(-1,p),p.tag=3;var g=i.type.getDerivedStateFromError;if(typeof g=="function"){var S=a.value;p.payload=function(){return g(S)},p.callback=function(){eg(i,a)}}var T=i.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(p.callback=function(){eg(i,a),typeof g!="function"&&(Ds===null?Ds=new Set([this]):Ds.add(this));var N=a.stack;this.componentDidCatch(a.value,{componentStack:N!==null?N:""})}),p}function Pb(i,a,p){var g=i.pingCache;if(g===null){g=i.pingCache=new jP;var S=new Set;g.set(a,S)}else S=g.get(a),S===void 0&&(S=new Set,g.set(a,S));S.has(p)||(S.add(p),i=FP.bind(null,i,a,p),a.then(i,i))}function Ib(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function Mb(i,a,p,g,S){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(a=ss(-1,1),a.tag=2,Bs(p,a,1))),p.lanes|=1),i):(i.flags|=65536,i.lanes=S,i)}var PP=E.ReactCurrentOwner,Wn=!1;function Rn(i,a,p,g){a.child=i===null?Qx(a,null,p,g):Tl(a,i.child,p,g)}function Rb(i,a,p,g,S){p=p.render;var T=a.ref;return jl(a,S),g=Wm(i,a,p,g,T,S),p=qm(),i!==null&&!Wn?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~S,as(i,a,S)):(Pr&&p&&Pm(a),a.flags|=1,Rn(i,a,g,S),a.child)}function Ab(i,a,p,g,S){if(i===null){var T=p.type;return typeof T=="function"&&!Sg(T)&&T.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(a.tag=15,a.type=T,_b(i,a,T,g,S)):(i=Ap(p.type,null,g,a,a.mode,S),i.ref=a.ref,i.return=a,a.child=i)}if(T=i.child,(i.lanes&S)===0){var N=T.memoizedProps;if(p=p.compare,p=p!==null?p:Gc,p(N,g)&&i.ref===a.ref)return as(i,a,S)}return a.flags|=1,i=Vs(T,g),i.ref=a.ref,i.return=a,a.child=i}function _b(i,a,p,g,S){if(i!==null){var T=i.memoizedProps;if(Gc(T,g)&&i.ref===a.ref)if(Wn=!1,a.pendingProps=g=T,(i.lanes&S)!==0)(i.flags&131072)!==0&&(Wn=!0);else return a.lanes=i.lanes,as(i,a,S)}return tg(i,a,p,g,S)}function Lb(i,a,p){var g=a.pendingProps,S=g.children,T=i!==null?i.memoizedState:null;if(g.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cr(Rl,go),go|=p;else{if((p&1073741824)===0)return i=T!==null?T.baseLanes|p:p,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,Cr(Rl,go),go|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=T!==null?T.baseLanes:p,Cr(Rl,go),go|=g}else T!==null?(g=T.baseLanes|p,a.memoizedState=null):g=p,Cr(Rl,go),go|=g;return Rn(i,a,S,p),a.child}function Ob(i,a){var p=a.ref;(i===null&&p!==null||i!==null&&i.ref!==p)&&(a.flags|=512,a.flags|=2097152)}function tg(i,a,p,g,S){var T=Vn(p)?wa:Sn.current;return T=wl(a,T),jl(a,S),p=Wm(i,a,p,g,T,S),g=qm(),i!==null&&!Wn?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~S,as(i,a,S)):(Pr&&g&&Pm(a),a.flags|=1,Rn(i,a,p,S),a.child)}function $b(i,a,p,g,S){if(Vn(p)){var T=!0;np(a)}else T=!1;if(jl(a,S),a.stateNode===null)wp(i,a),Eb(a,p,g),Jm(a,p,g,S),g=!0;else if(i===null){var N=a.stateNode,ne=a.memoizedProps;N.props=ne;var le=N.context,xe=p.contextType;typeof xe=="object"&&xe!==null?xe=Io(xe):(xe=Vn(p)?wa:Sn.current,xe=wl(a,xe));var _e=p.getDerivedStateFromProps,Ne=typeof _e=="function"||typeof N.getSnapshotBeforeUpdate=="function";Ne||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(ne!==g||le!==xe)&&Tb(a,N,g,xe),Ns=!1;var Re=a.memoizedState;N.state=Re,pp(a,g,N,S),le=a.memoizedState,ne!==g||Re!==le||Un.current||Ns?(typeof _e=="function"&&(Ym(a,p,_e,g),le=a.memoizedState),(ne=Ns||Cb(a,p,ne,g,Re,le,xe))?(Ne||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(a.flags|=4194308)):(typeof N.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=g,a.memoizedState=le),N.props=g,N.state=le,N.context=xe,g=ne):(typeof N.componentDidMount=="function"&&(a.flags|=4194308),g=!1)}else{N=a.stateNode,Jx(i,a),ne=a.memoizedProps,xe=a.type===a.elementType?ne:Zo(a.type,ne),N.props=xe,Ne=a.pendingProps,Re=N.context,le=p.contextType,typeof le=="object"&&le!==null?le=Io(le):(le=Vn(p)?wa:Sn.current,le=wl(a,le));var at=p.getDerivedStateFromProps;(_e=typeof at=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(ne!==Ne||Re!==le)&&Tb(a,N,g,le),Ns=!1,Re=a.memoizedState,N.state=Re,pp(a,g,N,S);var dt=a.memoizedState;ne!==Ne||Re!==dt||Un.current||Ns?(typeof at=="function"&&(Ym(a,p,at,g),dt=a.memoizedState),(xe=Ns||Cb(a,p,xe,g,Re,dt,le)||!1)?(_e||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(g,dt,le),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(g,dt,le)),typeof N.componentDidUpdate=="function"&&(a.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof N.componentDidUpdate!="function"||ne===i.memoizedProps&&Re===i.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||ne===i.memoizedProps&&Re===i.memoizedState||(a.flags|=1024),a.memoizedProps=g,a.memoizedState=dt),N.props=g,N.state=dt,N.context=le,g=xe):(typeof N.componentDidUpdate!="function"||ne===i.memoizedProps&&Re===i.memoizedState||(a.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||ne===i.memoizedProps&&Re===i.memoizedState||(a.flags|=1024),g=!1)}return rg(i,a,p,g,T,S)}function rg(i,a,p,g,S,T){Ob(i,a);var N=(a.flags&128)!==0;if(!g&&!N)return S&&Fx(a,p,!1),as(i,a,T);g=a.stateNode,PP.current=a;var ne=N&&typeof p.getDerivedStateFromError!="function"?null:g.render();return a.flags|=1,i!==null&&N?(a.child=Tl(a,i.child,null,T),a.child=Tl(a,null,ne,T)):Rn(i,a,ne,T),a.memoizedState=g.state,S&&Fx(a,p,!0),a.child}function Nb(i){var a=i.stateNode;a.pendingContext?zx(i,a.pendingContext,a.pendingContext!==a.context):a.context&&zx(i,a.context,!1),zm(i,a.containerInfo)}function Bb(i,a,p,g,S){return El(),Am(S),a.flags|=256,Rn(i,a,p,g),a.child}var ng={dehydrated:null,treeContext:null,retryLane:0};function og(i){return{baseLanes:i,cachePool:null,transitions:null}}function zb(i,a,p){var g=a.pendingProps,S=Mr.current,T=!1,N=(a.flags&128)!==0,ne;if((ne=N)||(ne=i!==null&&i.memoizedState===null?!1:(S&2)!==0),ne?(T=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(S|=1),Cr(Mr,S&1),i===null)return Rm(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(N=g.children,i=g.fallback,T?(g=a.mode,T=a.child,N={mode:"hidden",children:N},(g&1)===0&&T!==null?(T.childLanes=0,T.pendingProps=N):T=_p(N,g,0,null),i=Ra(i,g,p,null),T.return=a,i.return=a,T.sibling=i,a.child=T,a.child.memoizedState=og(p),a.memoizedState=ng,i):ig(a,N));if(S=i.memoizedState,S!==null&&(ne=S.dehydrated,ne!==null))return IP(i,a,N,g,ne,S,p);if(T){T=g.fallback,N=a.mode,S=i.child,ne=S.sibling;var le={mode:"hidden",children:g.children};return(N&1)===0&&a.child!==S?(g=a.child,g.childLanes=0,g.pendingProps=le,a.deletions=null):(g=Vs(S,le),g.subtreeFlags=S.subtreeFlags&14680064),ne!==null?T=Vs(ne,T):(T=Ra(T,N,p,null),T.flags|=2),T.return=a,g.return=a,g.sibling=T,a.child=g,g=T,T=a.child,N=i.child.memoizedState,N=N===null?og(p):{baseLanes:N.baseLanes|p,cachePool:null,transitions:N.transitions},T.memoizedState=N,T.childLanes=i.childLanes&~p,a.memoizedState=ng,g}return T=i.child,i=T.sibling,g=Vs(T,{mode:"visible",children:g.children}),(a.mode&1)===0&&(g.lanes=p),g.return=a,g.sibling=null,i!==null&&(p=a.deletions,p===null?(a.deletions=[i],a.flags|=16):p.push(i)),a.child=g,a.memoizedState=null,g}function ig(i,a){return a=_p({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function bp(i,a,p,g){return g!==null&&Am(g),Tl(a,i.child,null,p),i=ig(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function IP(i,a,p,g,S,T,N){if(p)return a.flags&256?(a.flags&=-257,g=Zm(Error(r(422))),bp(i,a,N,g)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(T=g.fallback,S=a.mode,g=_p({mode:"visible",children:g.children},S,0,null),T=Ra(T,S,N,null),T.flags|=2,g.return=a,T.return=a,g.sibling=T,a.child=g,(a.mode&1)!==0&&Tl(a,i.child,null,N),a.child.memoizedState=og(N),a.memoizedState=ng,T);if((a.mode&1)===0)return bp(i,a,N,null);if(S.data==="$!"){if(g=S.nextSibling&&S.nextSibling.dataset,g)var ne=g.dgst;return g=ne,T=Error(r(419)),g=Zm(T,g,void 0),bp(i,a,N,g)}if(ne=(N&i.childLanes)!==0,Wn||ne){if(g=an,g!==null){switch(N&-N){case 4:S=2;break;case 16:S=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:S=32;break;case 536870912:S=268435456;break;default:S=0}S=(S&(g.suspendedLanes|N))!==0?0:S,S!==0&&S!==T.retryLane&&(T.retryLane=S,is(i,S),ri(g,i,S,-1))}return wg(),g=Zm(Error(r(421))),bp(i,a,N,g)}return S.data==="$?"?(a.flags|=128,a.child=i.child,a=HP.bind(null,i),S._reactRetry=a,null):(i=T.treeContext,mo=_s(S.nextSibling),ho=a,Pr=!0,Jo=null,i!==null&&(jo[Po++]=ns,jo[Po++]=os,jo[Po++]=Sa,ns=i.id,os=i.overflow,Sa=a),a=ig(a,g.children),a.flags|=4096,a)}function Db(i,a,p){i.lanes|=a;var g=i.alternate;g!==null&&(g.lanes|=a),$m(i.return,a,p)}function sg(i,a,p,g,S){var T=i.memoizedState;T===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:S}:(T.isBackwards=a,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=p,T.tailMode=S)}function Fb(i,a,p){var g=a.pendingProps,S=g.revealOrder,T=g.tail;if(Rn(i,a,g.children,p),g=Mr.current,(g&2)!==0)g=g&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Db(i,p,a);else if(i.tag===19)Db(i,p,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}g&=1}if(Cr(Mr,g),(a.mode&1)===0)a.memoizedState=null;else switch(S){case"forwards":for(p=a.child,S=null;p!==null;)i=p.alternate,i!==null&&fp(i)===null&&(S=p),p=p.sibling;p=S,p===null?(S=a.child,a.child=null):(S=p.sibling,p.sibling=null),sg(a,!1,S,p,T);break;case"backwards":for(p=null,S=a.child,a.child=null;S!==null;){if(i=S.alternate,i!==null&&fp(i)===null){a.child=S;break}i=S.sibling,S.sibling=p,p=S,S=i}sg(a,!0,p,null,T);break;case"together":sg(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function wp(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function as(i,a,p){if(i!==null&&(a.dependencies=i.dependencies),ja|=a.lanes,(p&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,p=Vs(i,i.pendingProps),a.child=p,p.return=a;i.sibling!==null;)i=i.sibling,p=p.sibling=Vs(i,i.pendingProps),p.return=a;p.sibling=null}return a.child}function MP(i,a,p){switch(a.tag){case 3:Nb(a),El();break;case 5:tb(a);break;case 1:Vn(a.type)&&np(a);break;case 4:zm(a,a.stateNode.containerInfo);break;case 10:var g=a.type._context,S=a.memoizedProps.value;Cr(cp,g._currentValue),g._currentValue=S;break;case 13:if(g=a.memoizedState,g!==null)return g.dehydrated!==null?(Cr(Mr,Mr.current&1),a.flags|=128,null):(p&a.child.childLanes)!==0?zb(i,a,p):(Cr(Mr,Mr.current&1),i=as(i,a,p),i!==null?i.sibling:null);Cr(Mr,Mr.current&1);break;case 19:if(g=(p&a.childLanes)!==0,(i.flags&128)!==0){if(g)return Fb(i,a,p);a.flags|=128}if(S=a.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),Cr(Mr,Mr.current),g)break;return null;case 22:case 23:return a.lanes=0,Lb(i,a,p)}return as(i,a,p)}var Hb,ag,Ub,Vb;Hb=function(i,a){for(var p=a.child;p!==null;){if(p.tag===5||p.tag===6)i.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===a)break;for(;p.sibling===null;){if(p.return===null||p.return===a)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},ag=function(){},Ub=function(i,a,p,g){var S=i.memoizedProps;if(S!==g){i=a.stateNode,Ta(vi.current);var T=null;switch(p){case"input":S=Be(i,S),g=Be(i,g),T=[];break;case"select":S=Q({},S,{value:void 0}),g=Q({},g,{value:void 0}),T=[];break;case"textarea":S=$e(i,S),g=$e(i,g),T=[];break;default:typeof S.onClick!="function"&&typeof g.onClick=="function"&&(i.onclick=ep)}Zt(p,g);var N;p=null;for(xe in S)if(!g.hasOwnProperty(xe)&&S.hasOwnProperty(xe)&&S[xe]!=null)if(xe==="style"){var ne=S[xe];for(N in ne)ne.hasOwnProperty(N)&&(p||(p={}),p[N]="")}else xe!=="dangerouslySetInnerHTML"&&xe!=="children"&&xe!=="suppressContentEditableWarning"&&xe!=="suppressHydrationWarning"&&xe!=="autoFocus"&&(o.hasOwnProperty(xe)?T||(T=[]):(T=T||[]).push(xe,null));for(xe in g){var le=g[xe];if(ne=S!=null?S[xe]:void 0,g.hasOwnProperty(xe)&&le!==ne&&(le!=null||ne!=null))if(xe==="style")if(ne){for(N in ne)!ne.hasOwnProperty(N)||le&&le.hasOwnProperty(N)||(p||(p={}),p[N]="");for(N in le)le.hasOwnProperty(N)&&ne[N]!==le[N]&&(p||(p={}),p[N]=le[N])}else p||(T||(T=[]),T.push(xe,p)),p=le;else xe==="dangerouslySetInnerHTML"?(le=le?le.__html:void 0,ne=ne?ne.__html:void 0,le!=null&&ne!==le&&(T=T||[]).push(xe,le)):xe==="children"?typeof le!="string"&&typeof le!="number"||(T=T||[]).push(xe,""+le):xe!=="suppressContentEditableWarning"&&xe!=="suppressHydrationWarning"&&(o.hasOwnProperty(xe)?(le!=null&&xe==="onScroll"&&Tr("scroll",i),T||ne===le||(T=[])):(T=T||[]).push(xe,le))}p&&(T=T||[]).push("style",p);var xe=T;(a.updateQueue=xe)&&(a.flags|=4)}},Vb=function(i,a,p,g){p!==g&&(a.flags|=4)};function lu(i,a){if(!Pr)switch(i.tailMode){case"hidden":a=i.tail;for(var p=null;a!==null;)a.alternate!==null&&(p=a),a=a.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:g.sibling=null}}function En(i){var a=i.alternate!==null&&i.alternate.child===i.child,p=0,g=0;if(a)for(var S=i.child;S!==null;)p|=S.lanes|S.childLanes,g|=S.subtreeFlags&14680064,g|=S.flags&14680064,S.return=i,S=S.sibling;else for(S=i.child;S!==null;)p|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=i,S=S.sibling;return i.subtreeFlags|=g,i.childLanes=p,a}function RP(i,a,p){var g=a.pendingProps;switch(Im(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(a),null;case 1:return Vn(a.type)&&rp(),En(a),null;case 3:return g=a.stateNode,Pl(),kr(Un),kr(Sn),Hm(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(i===null||i.child===null)&&(ap(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Jo!==null&&(vg(Jo),Jo=null))),ag(i,a),En(a),null;case 5:Dm(a);var S=Ta(nu.current);if(p=a.type,i!==null&&a.stateNode!=null)Ub(i,a,p,g,S),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!g){if(a.stateNode===null)throw Error(r(166));return En(a),null}if(i=Ta(vi.current),ap(a)){g=a.stateNode,p=a.type;var T=a.memoizedProps;switch(g[yi]=a,g[Jc]=T,i=(a.mode&1)!==0,p){case"dialog":Tr("cancel",g),Tr("close",g);break;case"iframe":case"object":case"embed":Tr("load",g);break;case"video":case"audio":for(S=0;S<Kc.length;S++)Tr(Kc[S],g);break;case"source":Tr("error",g);break;case"img":case"image":case"link":Tr("error",g),Tr("load",g);break;case"details":Tr("toggle",g);break;case"input":Le(g,T),Tr("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!T.multiple},Tr("invalid",g);break;case"textarea":zt(g,T),Tr("invalid",g)}Zt(p,T),S=null;for(var N in T)if(T.hasOwnProperty(N)){var ne=T[N];N==="children"?typeof ne=="string"?g.textContent!==ne&&(T.suppressHydrationWarning!==!0&&Zd(g.textContent,ne,i),S=["children",ne]):typeof ne=="number"&&g.textContent!==""+ne&&(T.suppressHydrationWarning!==!0&&Zd(g.textContent,ne,i),S=["children",""+ne]):o.hasOwnProperty(N)&&ne!=null&&N==="onScroll"&&Tr("scroll",g)}switch(p){case"input":Fe(g),ce(g,T,!0);break;case"textarea":Fe(g),fe(g);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(g.onclick=ep)}g=S,a.updateQueue=g,g!==null&&(a.flags|=4)}else{N=S.nodeType===9?S:S.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=be(p)),i==="http://www.w3.org/1999/xhtml"?p==="script"?(i=N.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof g.is=="string"?i=N.createElement(p,{is:g.is}):(i=N.createElement(p),p==="select"&&(N=i,g.multiple?N.multiple=!0:g.size&&(N.size=g.size))):i=N.createElementNS(i,p),i[yi]=a,i[Jc]=g,Hb(i,a,!1,!1),a.stateNode=i;e:{switch(N=yr(p,g),p){case"dialog":Tr("cancel",i),Tr("close",i),S=g;break;case"iframe":case"object":case"embed":Tr("load",i),S=g;break;case"video":case"audio":for(S=0;S<Kc.length;S++)Tr(Kc[S],i);S=g;break;case"source":Tr("error",i),S=g;break;case"img":case"image":case"link":Tr("error",i),Tr("load",i),S=g;break;case"details":Tr("toggle",i),S=g;break;case"input":Le(i,g),S=Be(i,g),Tr("invalid",i);break;case"option":S=g;break;case"select":i._wrapperState={wasMultiple:!!g.multiple},S=Q({},g,{value:void 0}),Tr("invalid",i);break;case"textarea":zt(i,g),S=$e(i,g),Tr("invalid",i);break;default:S=g}Zt(p,S),ne=S;for(T in ne)if(ne.hasOwnProperty(T)){var le=ne[T];T==="style"?Xe(i,le):T==="dangerouslySetInnerHTML"?(le=le?le.__html:void 0,le!=null&&qe(i,le)):T==="children"?typeof le=="string"?(p!=="textarea"||le!=="")&&Je(i,le):typeof le=="number"&&Je(i,""+le):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(o.hasOwnProperty(T)?le!=null&&T==="onScroll"&&Tr("scroll",i):le!=null&&I(i,T,le,N))}switch(p){case"input":Fe(i),ce(i,g,!1);break;case"textarea":Fe(i),fe(i);break;case"option":g.value!=null&&i.setAttribute("value",""+Se(g.value));break;case"select":i.multiple=!!g.multiple,T=g.value,T!=null?gt(i,!!g.multiple,T,!1):g.defaultValue!=null&>(i,!!g.multiple,g.defaultValue,!0);break;default:typeof S.onClick=="function"&&(i.onclick=ep)}switch(p){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return En(a),null;case 6:if(i&&a.stateNode!=null)Vb(i,a,i.memoizedProps,g);else{if(typeof g!="string"&&a.stateNode===null)throw Error(r(166));if(p=Ta(nu.current),Ta(vi.current),ap(a)){if(g=a.stateNode,p=a.memoizedProps,g[yi]=a,(T=g.nodeValue!==p)&&(i=ho,i!==null))switch(i.tag){case 3:Zd(g.nodeValue,p,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Zd(g.nodeValue,p,(i.mode&1)!==0)}T&&(a.flags|=4)}else g=(p.nodeType===9?p:p.ownerDocument).createTextNode(g),g[yi]=a,a.stateNode=g}return En(a),null;case 13:if(kr(Mr),g=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Pr&&mo!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Gx(),El(),a.flags|=98560,T=!1;else if(T=ap(a),g!==null&&g.dehydrated!==null){if(i===null){if(!T)throw Error(r(318));if(T=a.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[yi]=a}else El(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;En(a),T=!1}else Jo!==null&&(vg(Jo),Jo=null),T=!0;if(!T)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=p,a):(g=g!==null,g!==(i!==null&&i.memoizedState!==null)&&g&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(Mr.current&1)!==0?en===0&&(en=3):wg())),a.updateQueue!==null&&(a.flags|=4),En(a),null);case 4:return Pl(),ag(i,a),i===null&&Qc(a.stateNode.containerInfo),En(a),null;case 10:return Om(a.type._context),En(a),null;case 17:return Vn(a.type)&&rp(),En(a),null;case 19:if(kr(Mr),T=a.memoizedState,T===null)return En(a),null;if(g=(a.flags&128)!==0,N=T.rendering,N===null)if(g)lu(T,!1);else{if(en!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(N=fp(i),N!==null){for(a.flags|=128,lu(T,!1),g=N.updateQueue,g!==null&&(a.updateQueue=g,a.flags|=4),a.subtreeFlags=0,g=p,p=a.child;p!==null;)T=p,i=g,T.flags&=14680066,N=T.alternate,N===null?(T.childLanes=0,T.lanes=i,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=N.childLanes,T.lanes=N.lanes,T.child=N.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=N.memoizedProps,T.memoizedState=N.memoizedState,T.updateQueue=N.updateQueue,T.type=N.type,i=N.dependencies,T.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),p=p.sibling;return Cr(Mr,Mr.current&1|2),a.child}i=i.sibling}T.tail!==null&&Bt()>Al&&(a.flags|=128,g=!0,lu(T,!1),a.lanes=4194304)}else{if(!g)if(i=fp(N),i!==null){if(a.flags|=128,g=!0,p=i.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),lu(T,!0),T.tail===null&&T.tailMode==="hidden"&&!N.alternate&&!Pr)return En(a),null}else 2*Bt()-T.renderingStartTime>Al&&p!==1073741824&&(a.flags|=128,g=!0,lu(T,!1),a.lanes=4194304);T.isBackwards?(N.sibling=a.child,a.child=N):(p=T.last,p!==null?p.sibling=N:a.child=N,T.last=N)}return T.tail!==null?(a=T.tail,T.rendering=a,T.tail=a.sibling,T.renderingStartTime=Bt(),a.sibling=null,p=Mr.current,Cr(Mr,g?p&1|2:p&1),a):(En(a),null);case 22:case 23:return bg(),g=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==g&&(a.flags|=8192),g&&(a.mode&1)!==0?(go&1073741824)!==0&&(En(a),a.subtreeFlags&6&&(a.flags|=8192)):En(a),null;case 24:return null;case 25:return null}throw Error(r(156,a.tag))}function AP(i,a){switch(Im(a),a.tag){case 1:return Vn(a.type)&&rp(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Pl(),kr(Un),kr(Sn),Hm(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return Dm(a),null;case 13:if(kr(Mr),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));El()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return kr(Mr),null;case 4:return Pl(),null;case 10:return Om(a.type._context),null;case 22:case 23:return bg(),null;case 24:return null;default:return null}}var Sp=!1,Tn=!1,_P=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Ml(i,a){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){_r(i,a,g)}else p.current=null}function lg(i,a,p){try{p()}catch(g){_r(i,a,g)}}var Wb=!1;function LP(i,a){if(bm=Hd,i=Cx(),pm(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var S=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{p.nodeType,T.nodeType}catch{p=null;break e}var N=0,ne=-1,le=-1,xe=0,_e=0,Ne=i,Re=null;t:for(;;){for(var at;Ne!==p||S!==0&&Ne.nodeType!==3||(ne=N+S),Ne!==T||g!==0&&Ne.nodeType!==3||(le=N+g),Ne.nodeType===3&&(N+=Ne.nodeValue.length),(at=Ne.firstChild)!==null;)Re=Ne,Ne=at;for(;;){if(Ne===i)break t;if(Re===p&&++xe===S&&(ne=N),Re===T&&++_e===g&&(le=N),(at=Ne.nextSibling)!==null)break;Ne=Re,Re=Ne.parentNode}Ne=at}p=ne===-1||le===-1?null:{start:ne,end:le}}else p=null}p=p||{start:0,end:0}}else p=null;for(wm={focusedElem:i,selectionRange:p},Hd=!1,ct=a;ct!==null;)if(a=ct,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,ct=i;else for(;ct!==null;){a=ct;try{var dt=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(dt!==null){var yt=dt.memoizedProps,Dr=dt.memoizedState,me=a.stateNode,ue=me.getSnapshotBeforeUpdate(a.elementType===a.type?yt:Zo(a.type,yt),Dr);me.__reactInternalSnapshotBeforeUpdate=ue}break;case 3:var ge=a.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(He){_r(a,a.return,He)}if(i=a.sibling,i!==null){i.return=a.return,ct=i;break}ct=a.return}return dt=Wb,Wb=!1,dt}function cu(i,a,p){var g=a.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var S=g=g.next;do{if((S.tag&i)===i){var T=S.destroy;S.destroy=void 0,T!==void 0&&lg(a,p,T)}S=S.next}while(S!==g)}}function Cp(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var p=a=a.next;do{if((p.tag&i)===i){var g=p.create;p.destroy=g()}p=p.next}while(p!==a)}}function cg(i){var a=i.ref;if(a!==null){var p=i.stateNode;switch(i.tag){case 5:i=p;break;default:i=p}typeof a=="function"?a(i):a.current=i}}function qb(i){var a=i.alternate;a!==null&&(i.alternate=null,qb(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[yi],delete a[Jc],delete a[Tm],delete a[gP],delete a[yP])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Gb(i){return i.tag===5||i.tag===3||i.tag===4}function Xb(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Gb(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function ug(i,a,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,a?p.nodeType===8?p.parentNode.insertBefore(i,a):p.insertBefore(i,a):(p.nodeType===8?(a=p.parentNode,a.insertBefore(i,p)):(a=p,a.appendChild(i)),p=p._reactRootContainer,p!=null||a.onclick!==null||(a.onclick=ep));else if(g!==4&&(i=i.child,i!==null))for(ug(i,a,p),i=i.sibling;i!==null;)ug(i,a,p),i=i.sibling}function dg(i,a,p){var g=i.tag;if(g===5||g===6)i=i.stateNode,a?p.insertBefore(i,a):p.appendChild(i);else if(g!==4&&(i=i.child,i!==null))for(dg(i,a,p),i=i.sibling;i!==null;)dg(i,a,p),i=i.sibling}var mn=null,ei=!1;function zs(i,a,p){for(p=p.child;p!==null;)Kb(i,a,p),p=p.sibling}function Kb(i,a,p){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(po,p)}catch{}switch(p.tag){case 5:Tn||Ml(p,a);case 6:var g=mn,S=ei;mn=null,zs(i,a,p),mn=g,ei=S,mn!==null&&(ei?(i=mn,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):mn.removeChild(p.stateNode));break;case 18:mn!==null&&(ei?(i=mn,p=p.stateNode,i.nodeType===8?Em(i.parentNode,p):i.nodeType===1&&Em(i,p),Fc(i)):Em(mn,p.stateNode));break;case 4:g=mn,S=ei,mn=p.stateNode.containerInfo,ei=!0,zs(i,a,p),mn=g,ei=S;break;case 0:case 11:case 14:case 15:if(!Tn&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){S=g=g.next;do{var T=S,N=T.destroy;T=T.tag,N!==void 0&&((T&2)!==0||(T&4)!==0)&&lg(p,a,N),S=S.next}while(S!==g)}zs(i,a,p);break;case 1:if(!Tn&&(Ml(p,a),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(ne){_r(p,a,ne)}zs(i,a,p);break;case 21:zs(i,a,p);break;case 22:p.mode&1?(Tn=(g=Tn)||p.memoizedState!==null,zs(i,a,p),Tn=g):zs(i,a,p);break;default:zs(i,a,p)}}function Qb(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new _P),a.forEach(function(g){var S=UP.bind(null,i,g);p.has(g)||(p.add(g),g.then(S,S))})}}function ti(i,a){var p=a.deletions;if(p!==null)for(var g=0;g<p.length;g++){var S=p[g];try{var T=i,N=a,ne=N;e:for(;ne!==null;){switch(ne.tag){case 5:mn=ne.stateNode,ei=!1;break e;case 3:mn=ne.stateNode.containerInfo,ei=!0;break e;case 4:mn=ne.stateNode.containerInfo,ei=!0;break e}ne=ne.return}if(mn===null)throw Error(r(160));Kb(T,N,S),mn=null,ei=!1;var le=S.alternate;le!==null&&(le.return=null),S.return=null}catch(xe){_r(S,a,xe)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)Yb(a,i),a=a.sibling}function Yb(i,a){var p=i.alternate,g=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(ti(a,i),bi(i),g&4){try{cu(3,i,i.return),Cp(3,i)}catch(yt){_r(i,i.return,yt)}try{cu(5,i,i.return)}catch(yt){_r(i,i.return,yt)}}break;case 1:ti(a,i),bi(i),g&512&&p!==null&&Ml(p,p.return);break;case 5:if(ti(a,i),bi(i),g&512&&p!==null&&Ml(p,p.return),i.flags&32){var S=i.stateNode;try{Je(S,"")}catch(yt){_r(i,i.return,yt)}}if(g&4&&(S=i.stateNode,S!=null)){var T=i.memoizedProps,N=p!==null?p.memoizedProps:T,ne=i.type,le=i.updateQueue;if(i.updateQueue=null,le!==null)try{ne==="input"&&T.type==="radio"&&T.name!=null&&Ke(S,T),yr(ne,N);var xe=yr(ne,T);for(N=0;N<le.length;N+=2){var _e=le[N],Ne=le[N+1];_e==="style"?Xe(S,Ne):_e==="dangerouslySetInnerHTML"?qe(S,Ne):_e==="children"?Je(S,Ne):I(S,_e,Ne,xe)}switch(ne){case"input":pt(S,T);break;case"textarea":vt(S,T);break;case"select":var Re=S._wrapperState.wasMultiple;S._wrapperState.wasMultiple=!!T.multiple;var at=T.value;at!=null?gt(S,!!T.multiple,at,!1):Re!==!!T.multiple&&(T.defaultValue!=null?gt(S,!!T.multiple,T.defaultValue,!0):gt(S,!!T.multiple,T.multiple?[]:"",!1))}S[Jc]=T}catch(yt){_r(i,i.return,yt)}}break;case 6:if(ti(a,i),bi(i),g&4){if(i.stateNode===null)throw Error(r(162));S=i.stateNode,T=i.memoizedProps;try{S.nodeValue=T}catch(yt){_r(i,i.return,yt)}}break;case 3:if(ti(a,i),bi(i),g&4&&p!==null&&p.memoizedState.isDehydrated)try{Fc(a.containerInfo)}catch(yt){_r(i,i.return,yt)}break;case 4:ti(a,i),bi(i);break;case 13:ti(a,i),bi(i),S=i.child,S.flags&8192&&(T=S.memoizedState!==null,S.stateNode.isHidden=T,!T||S.alternate!==null&&S.alternate.memoizedState!==null||(hg=Bt())),g&4&&Qb(i);break;case 22:if(_e=p!==null&&p.memoizedState!==null,i.mode&1?(Tn=(xe=Tn)||_e,ti(a,i),Tn=xe):ti(a,i),bi(i),g&8192){if(xe=i.memoizedState!==null,(i.stateNode.isHidden=xe)&&!_e&&(i.mode&1)!==0)for(ct=i,_e=i.child;_e!==null;){for(Ne=ct=_e;ct!==null;){switch(Re=ct,at=Re.child,Re.tag){case 0:case 11:case 14:case 15:cu(4,Re,Re.return);break;case 1:Ml(Re,Re.return);var dt=Re.stateNode;if(typeof dt.componentWillUnmount=="function"){g=Re,p=Re.return;try{a=g,dt.props=a.memoizedProps,dt.state=a.memoizedState,dt.componentWillUnmount()}catch(yt){_r(g,p,yt)}}break;case 5:Ml(Re,Re.return);break;case 22:if(Re.memoizedState!==null){e1(Ne);continue}}at!==null?(at.return=Re,ct=at):e1(Ne)}_e=_e.sibling}e:for(_e=null,Ne=i;;){if(Ne.tag===5){if(_e===null){_e=Ne;try{S=Ne.stateNode,xe?(T=S.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(ne=Ne.stateNode,le=Ne.memoizedProps.style,N=le!=null&&le.hasOwnProperty("display")?le.display:null,ne.style.display=Ue("display",N))}catch(yt){_r(i,i.return,yt)}}}else if(Ne.tag===6){if(_e===null)try{Ne.stateNode.nodeValue=xe?"":Ne.memoizedProps}catch(yt){_r(i,i.return,yt)}}else if((Ne.tag!==22&&Ne.tag!==23||Ne.memoizedState===null||Ne===i)&&Ne.child!==null){Ne.child.return=Ne,Ne=Ne.child;continue}if(Ne===i)break e;for(;Ne.sibling===null;){if(Ne.return===null||Ne.return===i)break e;_e===Ne&&(_e=null),Ne=Ne.return}_e===Ne&&(_e=null),Ne.sibling.return=Ne.return,Ne=Ne.sibling}}break;case 19:ti(a,i),bi(i),g&4&&Qb(i);break;case 21:break;default:ti(a,i),bi(i)}}function bi(i){var a=i.flags;if(a&2){try{e:{for(var p=i.return;p!==null;){if(Gb(p)){var g=p;break e}p=p.return}throw Error(r(160))}switch(g.tag){case 5:var S=g.stateNode;g.flags&32&&(Je(S,""),g.flags&=-33);var T=Xb(i);dg(i,T,S);break;case 3:case 4:var N=g.stateNode.containerInfo,ne=Xb(i);ug(i,ne,N);break;default:throw Error(r(161))}}catch(le){_r(i,i.return,le)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function OP(i,a,p){ct=i,Jb(i)}function Jb(i,a,p){for(var g=(i.mode&1)!==0;ct!==null;){var S=ct,T=S.child;if(S.tag===22&&g){var N=S.memoizedState!==null||Sp;if(!N){var ne=S.alternate,le=ne!==null&&ne.memoizedState!==null||Tn;ne=Sp;var xe=Tn;if(Sp=N,(Tn=le)&&!xe)for(ct=S;ct!==null;)N=ct,le=N.child,N.tag===22&&N.memoizedState!==null?t1(S):le!==null?(le.return=N,ct=le):t1(S);for(;T!==null;)ct=T,Jb(T),T=T.sibling;ct=S,Sp=ne,Tn=xe}Zb(i)}else(S.subtreeFlags&8772)!==0&&T!==null?(T.return=S,ct=T):Zb(i)}}function Zb(i){for(;ct!==null;){var a=ct;if((a.flags&8772)!==0){var p=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:Tn||Cp(5,a);break;case 1:var g=a.stateNode;if(a.flags&4&&!Tn)if(p===null)g.componentDidMount();else{var S=a.elementType===a.type?p.memoizedProps:Zo(a.type,p.memoizedProps);g.componentDidUpdate(S,p.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var T=a.updateQueue;T!==null&&eb(a,T,g);break;case 3:var N=a.updateQueue;if(N!==null){if(p=null,a.child!==null)switch(a.child.tag){case 5:p=a.child.stateNode;break;case 1:p=a.child.stateNode}eb(a,N,p)}break;case 5:var ne=a.stateNode;if(p===null&&a.flags&4){p=ne;var le=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":le.autoFocus&&p.focus();break;case"img":le.src&&(p.src=le.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var xe=a.alternate;if(xe!==null){var _e=xe.memoizedState;if(_e!==null){var Ne=_e.dehydrated;Ne!==null&&Fc(Ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Tn||a.flags&512&&cg(a)}catch(Re){_r(a,a.return,Re)}}if(a===i){ct=null;break}if(p=a.sibling,p!==null){p.return=a.return,ct=p;break}ct=a.return}}function e1(i){for(;ct!==null;){var a=ct;if(a===i){ct=null;break}var p=a.sibling;if(p!==null){p.return=a.return,ct=p;break}ct=a.return}}function t1(i){for(;ct!==null;){var a=ct;try{switch(a.tag){case 0:case 11:case 15:var p=a.return;try{Cp(4,a)}catch(le){_r(a,p,le)}break;case 1:var g=a.stateNode;if(typeof g.componentDidMount=="function"){var S=a.return;try{g.componentDidMount()}catch(le){_r(a,S,le)}}var T=a.return;try{cg(a)}catch(le){_r(a,T,le)}break;case 5:var N=a.return;try{cg(a)}catch(le){_r(a,N,le)}}}catch(le){_r(a,a.return,le)}if(a===i){ct=null;break}var ne=a.sibling;if(ne!==null){ne.return=a.return,ct=ne;break}ct=a.return}}var $P=Math.ceil,Ep=E.ReactCurrentDispatcher,pg=E.ReactCurrentOwner,Ro=E.ReactCurrentBatchConfig,er=0,an=null,qr=null,gn=0,go=0,Rl=Ls(0),en=0,uu=null,ja=0,Tp=0,fg=0,du=null,qn=null,hg=0,Al=1/0,ls=null,kp=!1,mg=null,Ds=null,jp=!1,Fs=null,Pp=0,pu=0,gg=null,Ip=-1,Mp=0;function An(){return(er&6)!==0?Bt():Ip!==-1?Ip:Ip=Bt()}function Hs(i){return(i.mode&1)===0?1:(er&2)!==0&&gn!==0?gn&-gn:xP.transition!==null?(Mp===0&&(Mp=X0()),Mp):(i=pr,i!==0||(i=window.event,i=i===void 0?16:nx(i.type)),i)}function ri(i,a,p,g){if(50<pu)throw pu=0,gg=null,Error(r(185));$c(i,p,g),((er&2)===0||i!==an)&&(i===an&&((er&2)===0&&(Tp|=p),en===4&&Us(i,gn)),Gn(i,g),p===1&&er===0&&(a.mode&1)===0&&(Al=Bt()+500,op&&$s()))}function Gn(i,a){var p=i.callbackNode;xj(i,a);var g=zd(i,i===an?gn:0);if(g===0)p!==null&&Rt(p),i.callbackNode=null,i.callbackPriority=0;else if(a=g&-g,i.callbackPriority!==a){if(p!=null&&Rt(p),a===1)i.tag===0?vP(n1.bind(null,i)):Hx(n1.bind(null,i)),hP(function(){(er&6)===0&&$s()}),p=null;else{switch(K0(g)){case 1:p=ks;break;case 4:p=Lc;break;case 16:p=es;break;case 536870912:p=Jt;break;default:p=es}p=d1(p,r1.bind(null,i))}i.callbackPriority=a,i.callbackNode=p}}function r1(i,a){if(Ip=-1,Mp=0,(er&6)!==0)throw Error(r(327));var p=i.callbackNode;if(_l()&&i.callbackNode!==p)return null;var g=zd(i,i===an?gn:0);if(g===0)return null;if((g&30)!==0||(g&i.expiredLanes)!==0||a)a=Rp(i,g);else{a=g;var S=er;er|=2;var T=i1();(an!==i||gn!==a)&&(ls=null,Al=Bt()+500,Ia(i,a));do try{zP();break}catch(ne){o1(i,ne)}while(!0);Lm(),Ep.current=T,er=S,qr!==null?a=0:(an=null,gn=0,a=en)}if(a!==0){if(a===2&&(S=Qh(i),S!==0&&(g=S,a=yg(i,S))),a===1)throw p=uu,Ia(i,0),Us(i,g),Gn(i,Bt()),p;if(a===6)Us(i,g);else{if(S=i.current.alternate,(g&30)===0&&!NP(S)&&(a=Rp(i,g),a===2&&(T=Qh(i),T!==0&&(g=T,a=yg(i,T))),a===1))throw p=uu,Ia(i,0),Us(i,g),Gn(i,Bt()),p;switch(i.finishedWork=S,i.finishedLanes=g,a){case 0:case 1:throw Error(r(345));case 2:Ma(i,qn,ls);break;case 3:if(Us(i,g),(g&130023424)===g&&(a=hg+500-Bt(),10<a)){if(zd(i,0)!==0)break;if(S=i.suspendedLanes,(S&g)!==g){An(),i.pingedLanes|=i.suspendedLanes&S;break}i.timeoutHandle=Cm(Ma.bind(null,i,qn,ls),a);break}Ma(i,qn,ls);break;case 4:if(Us(i,g),(g&4194240)===g)break;for(a=i.eventTimes,S=-1;0<g;){var N=31-Qo(g);T=1<<N,N=a[N],N>S&&(S=N),g&=~T}if(g=S,g=Bt()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*$P(g/1960))-g,10<g){i.timeoutHandle=Cm(Ma.bind(null,i,qn,ls),g);break}Ma(i,qn,ls);break;case 5:Ma(i,qn,ls);break;default:throw Error(r(329))}}}return Gn(i,Bt()),i.callbackNode===p?r1.bind(null,i):null}function yg(i,a){var p=du;return i.current.memoizedState.isDehydrated&&(Ia(i,a).flags|=256),i=Rp(i,a),i!==2&&(a=qn,qn=p,a!==null&&vg(a)),i}function vg(i){qn===null?qn=i:qn.push.apply(qn,i)}function NP(i){for(var a=i;;){if(a.flags&16384){var p=a.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var g=0;g<p.length;g++){var S=p[g],T=S.getSnapshot;S=S.value;try{if(!Yo(T(),S))return!1}catch{return!1}}}if(p=a.child,a.subtreeFlags&16384&&p!==null)p.return=a,a=p;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Us(i,a){for(a&=~fg,a&=~Tp,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var p=31-Qo(a),g=1<<p;i[p]=-1,a&=~g}}function n1(i){if((er&6)!==0)throw Error(r(327));_l();var a=zd(i,0);if((a&1)===0)return Gn(i,Bt()),null;var p=Rp(i,a);if(i.tag!==0&&p===2){var g=Qh(i);g!==0&&(a=g,p=yg(i,g))}if(p===1)throw p=uu,Ia(i,0),Us(i,a),Gn(i,Bt()),p;if(p===6)throw Error(r(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,Ma(i,qn,ls),Gn(i,Bt()),null}function xg(i,a){var p=er;er|=1;try{return i(a)}finally{er=p,er===0&&(Al=Bt()+500,op&&$s())}}function Pa(i){Fs!==null&&Fs.tag===0&&(er&6)===0&&_l();var a=er;er|=1;var p=Ro.transition,g=pr;try{if(Ro.transition=null,pr=1,i)return i()}finally{pr=g,Ro.transition=p,er=a,(er&6)===0&&$s()}}function bg(){go=Rl.current,kr(Rl)}function Ia(i,a){i.finishedWork=null,i.finishedLanes=0;var p=i.timeoutHandle;if(p!==-1&&(i.timeoutHandle=-1,fP(p)),qr!==null)for(p=qr.return;p!==null;){var g=p;switch(Im(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&rp();break;case 3:Pl(),kr(Un),kr(Sn),Hm();break;case 5:Dm(g);break;case 4:Pl();break;case 13:kr(Mr);break;case 19:kr(Mr);break;case 10:Om(g.type._context);break;case 22:case 23:bg()}p=p.return}if(an=i,qr=i=Vs(i.current,null),gn=go=a,en=0,uu=null,fg=Tp=ja=0,qn=du=null,Ea!==null){for(a=0;a<Ea.length;a++)if(p=Ea[a],g=p.interleaved,g!==null){p.interleaved=null;var S=g.next,T=p.pending;if(T!==null){var N=T.next;T.next=S,g.next=N}p.pending=g}Ea=null}return i}function o1(i,a){do{var p=qr;try{if(Lm(),hp.current=vp,mp){for(var g=Rr.memoizedState;g!==null;){var S=g.queue;S!==null&&(S.pending=null),g=g.next}mp=!1}if(ka=0,sn=Zr=Rr=null,ou=!1,iu=0,pg.current=null,p===null||p.return===null){en=1,uu=a,qr=null;break}e:{var T=i,N=p.return,ne=p,le=a;if(a=gn,ne.flags|=32768,le!==null&&typeof le=="object"&&typeof le.then=="function"){var xe=le,_e=ne,Ne=_e.tag;if((_e.mode&1)===0&&(Ne===0||Ne===11||Ne===15)){var Re=_e.alternate;Re?(_e.updateQueue=Re.updateQueue,_e.memoizedState=Re.memoizedState,_e.lanes=Re.lanes):(_e.updateQueue=null,_e.memoizedState=null)}var at=Ib(N);if(at!==null){at.flags&=-257,Mb(at,N,ne,T,a),at.mode&1&&Pb(T,xe,a),a=at,le=xe;var dt=a.updateQueue;if(dt===null){var yt=new Set;yt.add(le),a.updateQueue=yt}else dt.add(le);break e}else{if((a&1)===0){Pb(T,xe,a),wg();break e}le=Error(r(426))}}else if(Pr&&ne.mode&1){var Dr=Ib(N);if(Dr!==null){(Dr.flags&65536)===0&&(Dr.flags|=256),Mb(Dr,N,ne,T,a),Am(Il(le,ne));break e}}T=le=Il(le,ne),en!==4&&(en=2),du===null?du=[T]:du.push(T),T=N;do{switch(T.tag){case 3:T.flags|=65536,a&=-a,T.lanes|=a;var me=kb(T,le,a);Zx(T,me);break e;case 1:ne=le;var ue=T.type,ge=T.stateNode;if((T.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(Ds===null||!Ds.has(ge)))){T.flags|=65536,a&=-a,T.lanes|=a;var He=jb(T,ne,a);Zx(T,He);break e}}T=T.return}while(T!==null)}a1(p)}catch(xt){a=xt,qr===p&&p!==null&&(qr=p=p.return);continue}break}while(!0)}function i1(){var i=Ep.current;return Ep.current=vp,i===null?vp:i}function wg(){(en===0||en===3||en===2)&&(en=4),an===null||(ja&268435455)===0&&(Tp&268435455)===0||Us(an,gn)}function Rp(i,a){var p=er;er|=2;var g=i1();(an!==i||gn!==a)&&(ls=null,Ia(i,a));do try{BP();break}catch(S){o1(i,S)}while(!0);if(Lm(),er=p,Ep.current=g,qr!==null)throw Error(r(261));return an=null,gn=0,en}function BP(){for(;qr!==null;)s1(qr)}function zP(){for(;qr!==null&&!Lt();)s1(qr)}function s1(i){var a=u1(i.alternate,i,go);i.memoizedProps=i.pendingProps,a===null?a1(i):qr=a,pg.current=null}function a1(i){var a=i;do{var p=a.alternate;if(i=a.return,(a.flags&32768)===0){if(p=RP(p,a,go),p!==null){qr=p;return}}else{if(p=AP(p,a),p!==null){p.flags&=32767,qr=p;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{en=6,qr=null;return}}if(a=a.sibling,a!==null){qr=a;return}qr=a=i}while(a!==null);en===0&&(en=5)}function Ma(i,a,p){var g=pr,S=Ro.transition;try{Ro.transition=null,pr=1,DP(i,a,p,g)}finally{Ro.transition=S,pr=g}return null}function DP(i,a,p,g){do _l();while(Fs!==null);if((er&6)!==0)throw Error(r(327));p=i.finishedWork;var S=i.finishedLanes;if(p===null)return null;if(i.finishedWork=null,i.finishedLanes=0,p===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0;var T=p.lanes|p.childLanes;if(bj(i,T),i===an&&(qr=an=null,gn=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||jp||(jp=!0,d1(es,function(){return _l(),null})),T=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||T){T=Ro.transition,Ro.transition=null;var N=pr;pr=1;var ne=er;er|=4,pg.current=null,LP(i,p),Yb(p,i),sP(wm),Hd=!!bm,wm=bm=null,i.current=p,OP(p),Wr(),er=ne,pr=N,Ro.transition=T}else i.current=p;if(jp&&(jp=!1,Fs=i,Pp=S),T=i.pendingLanes,T===0&&(Ds=null),xa(p.stateNode),Gn(i,Bt()),a!==null)for(g=i.onRecoverableError,p=0;p<a.length;p++)S=a[p],g(S.value,{componentStack:S.stack,digest:S.digest});if(kp)throw kp=!1,i=mg,mg=null,i;return(Pp&1)!==0&&i.tag!==0&&_l(),T=i.pendingLanes,(T&1)!==0?i===gg?pu++:(pu=0,gg=i):pu=0,$s(),null}function _l(){if(Fs!==null){var i=K0(Pp),a=Ro.transition,p=pr;try{if(Ro.transition=null,pr=16>i?16:i,Fs===null)var g=!1;else{if(i=Fs,Fs=null,Pp=0,(er&6)!==0)throw Error(r(331));var S=er;for(er|=4,ct=i.current;ct!==null;){var T=ct,N=T.child;if((ct.flags&16)!==0){var ne=T.deletions;if(ne!==null){for(var le=0;le<ne.length;le++){var xe=ne[le];for(ct=xe;ct!==null;){var _e=ct;switch(_e.tag){case 0:case 11:case 15:cu(8,_e,T)}var Ne=_e.child;if(Ne!==null)Ne.return=_e,ct=Ne;else for(;ct!==null;){_e=ct;var Re=_e.sibling,at=_e.return;if(qb(_e),_e===xe){ct=null;break}if(Re!==null){Re.return=at,ct=Re;break}ct=at}}}var dt=T.alternate;if(dt!==null){var yt=dt.child;if(yt!==null){dt.child=null;do{var Dr=yt.sibling;yt.sibling=null,yt=Dr}while(yt!==null)}}ct=T}}if((T.subtreeFlags&2064)!==0&&N!==null)N.return=T,ct=N;else e:for(;ct!==null;){if(T=ct,(T.flags&2048)!==0)switch(T.tag){case 0:case 11:case 15:cu(9,T,T.return)}var me=T.sibling;if(me!==null){me.return=T.return,ct=me;break e}ct=T.return}}var ue=i.current;for(ct=ue;ct!==null;){N=ct;var ge=N.child;if((N.subtreeFlags&2064)!==0&&ge!==null)ge.return=N,ct=ge;else e:for(N=ue;ct!==null;){if(ne=ct,(ne.flags&2048)!==0)try{switch(ne.tag){case 0:case 11:case 15:Cp(9,ne)}}catch(xt){_r(ne,ne.return,xt)}if(ne===N){ct=null;break e}var He=ne.sibling;if(He!==null){He.return=ne.return,ct=He;break e}ct=ne.return}}if(er=S,$s(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(po,i)}catch{}g=!0}return g}finally{pr=p,Ro.transition=a}}return!1}function l1(i,a,p){a=Il(p,a),a=kb(i,a,1),i=Bs(i,a,1),a=An(),i!==null&&($c(i,1,a),Gn(i,a))}function _r(i,a,p){if(i.tag===3)l1(i,i,p);else for(;a!==null;){if(a.tag===3){l1(a,i,p);break}else if(a.tag===1){var g=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Ds===null||!Ds.has(g))){i=Il(p,i),i=jb(a,i,1),a=Bs(a,i,1),i=An(),a!==null&&($c(a,1,i),Gn(a,i));break}}a=a.return}}function FP(i,a,p){var g=i.pingCache;g!==null&&g.delete(a),a=An(),i.pingedLanes|=i.suspendedLanes&p,an===i&&(gn&p)===p&&(en===4||en===3&&(gn&130023424)===gn&&500>Bt()-hg?Ia(i,0):fg|=p),Gn(i,a)}function c1(i,a){a===0&&((i.mode&1)===0?a=1:(a=Bd,Bd<<=1,(Bd&130023424)===0&&(Bd=4194304)));var p=An();i=is(i,a),i!==null&&($c(i,a,p),Gn(i,p))}function HP(i){var a=i.memoizedState,p=0;a!==null&&(p=a.retryLane),c1(i,p)}function UP(i,a){var p=0;switch(i.tag){case 13:var g=i.stateNode,S=i.memoizedState;S!==null&&(p=S.retryLane);break;case 19:g=i.stateNode;break;default:throw Error(r(314))}g!==null&&g.delete(a),c1(i,p)}var u1;u1=function(i,a,p){if(i!==null)if(i.memoizedProps!==a.pendingProps||Un.current)Wn=!0;else{if((i.lanes&p)===0&&(a.flags&128)===0)return Wn=!1,MP(i,a,p);Wn=(i.flags&131072)!==0}else Wn=!1,Pr&&(a.flags&1048576)!==0&&Ux(a,sp,a.index);switch(a.lanes=0,a.tag){case 2:var g=a.type;wp(i,a),i=a.pendingProps;var S=wl(a,Sn.current);jl(a,p),S=Wm(null,a,g,i,S,p);var T=qm();return a.flags|=1,typeof S=="object"&&S!==null&&typeof S.render=="function"&&S.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Vn(g)?(T=!0,np(a)):T=!1,a.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,Bm(a),S.updater=xp,a.stateNode=S,S._reactInternals=a,Jm(a,g,i,p),a=rg(null,a,g,!0,T,p)):(a.tag=0,Pr&&T&&Pm(a),Rn(null,a,S,p),a=a.child),a;case 16:g=a.elementType;e:{switch(wp(i,a),i=a.pendingProps,S=g._init,g=S(g._payload),a.type=g,S=a.tag=WP(g),i=Zo(g,i),S){case 0:a=tg(null,a,g,i,p);break e;case 1:a=$b(null,a,g,i,p);break e;case 11:a=Rb(null,a,g,i,p);break e;case 14:a=Ab(null,a,g,Zo(g.type,i),p);break e}throw Error(r(306,g,""))}return a;case 0:return g=a.type,S=a.pendingProps,S=a.elementType===g?S:Zo(g,S),tg(i,a,g,S,p);case 1:return g=a.type,S=a.pendingProps,S=a.elementType===g?S:Zo(g,S),$b(i,a,g,S,p);case 3:e:{if(Nb(a),i===null)throw Error(r(387));g=a.pendingProps,T=a.memoizedState,S=T.element,Jx(i,a),pp(a,g,null,p);var N=a.memoizedState;if(g=N.element,T.isDehydrated)if(T={element:g,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},a.updateQueue.baseState=T,a.memoizedState=T,a.flags&256){S=Il(Error(r(423)),a),a=Bb(i,a,g,p,S);break e}else if(g!==S){S=Il(Error(r(424)),a),a=Bb(i,a,g,p,S);break e}else for(mo=_s(a.stateNode.containerInfo.firstChild),ho=a,Pr=!0,Jo=null,p=Qx(a,null,g,p),a.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(El(),g===S){a=as(i,a,p);break e}Rn(i,a,g,p)}a=a.child}return a;case 5:return tb(a),i===null&&Rm(a),g=a.type,S=a.pendingProps,T=i!==null?i.memoizedProps:null,N=S.children,Sm(g,S)?N=null:T!==null&&Sm(g,T)&&(a.flags|=32),Ob(i,a),Rn(i,a,N,p),a.child;case 6:return i===null&&Rm(a),null;case 13:return zb(i,a,p);case 4:return zm(a,a.stateNode.containerInfo),g=a.pendingProps,i===null?a.child=Tl(a,null,g,p):Rn(i,a,g,p),a.child;case 11:return g=a.type,S=a.pendingProps,S=a.elementType===g?S:Zo(g,S),Rb(i,a,g,S,p);case 7:return Rn(i,a,a.pendingProps,p),a.child;case 8:return Rn(i,a,a.pendingProps.children,p),a.child;case 12:return Rn(i,a,a.pendingProps.children,p),a.child;case 10:e:{if(g=a.type._context,S=a.pendingProps,T=a.memoizedProps,N=S.value,Cr(cp,g._currentValue),g._currentValue=N,T!==null)if(Yo(T.value,N)){if(T.children===S.children&&!Un.current){a=as(i,a,p);break e}}else for(T=a.child,T!==null&&(T.return=a);T!==null;){var ne=T.dependencies;if(ne!==null){N=T.child;for(var le=ne.firstContext;le!==null;){if(le.context===g){if(T.tag===1){le=ss(-1,p&-p),le.tag=2;var xe=T.updateQueue;if(xe!==null){xe=xe.shared;var _e=xe.pending;_e===null?le.next=le:(le.next=_e.next,_e.next=le),xe.pending=le}}T.lanes|=p,le=T.alternate,le!==null&&(le.lanes|=p),$m(T.return,p,a),ne.lanes|=p;break}le=le.next}}else if(T.tag===10)N=T.type===a.type?null:T.child;else if(T.tag===18){if(N=T.return,N===null)throw Error(r(341));N.lanes|=p,ne=N.alternate,ne!==null&&(ne.lanes|=p),$m(N,p,a),N=T.sibling}else N=T.child;if(N!==null)N.return=T;else for(N=T;N!==null;){if(N===a){N=null;break}if(T=N.sibling,T!==null){T.return=N.return,N=T;break}N=N.return}T=N}Rn(i,a,S.children,p),a=a.child}return a;case 9:return S=a.type,g=a.pendingProps.children,jl(a,p),S=Io(S),g=g(S),a.flags|=1,Rn(i,a,g,p),a.child;case 14:return g=a.type,S=Zo(g,a.pendingProps),S=Zo(g.type,S),Ab(i,a,g,S,p);case 15:return _b(i,a,a.type,a.pendingProps,p);case 17:return g=a.type,S=a.pendingProps,S=a.elementType===g?S:Zo(g,S),wp(i,a),a.tag=1,Vn(g)?(i=!0,np(a)):i=!1,jl(a,p),Eb(a,g,S),Jm(a,g,S,p),rg(null,a,g,!0,i,p);case 19:return Fb(i,a,p);case 22:return Lb(i,a,p)}throw Error(r(156,a.tag))};function d1(i,a){return st(i,a)}function VP(i,a,p,g){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ao(i,a,p,g){return new VP(i,a,p,g)}function Sg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function WP(i){if(typeof i=="function")return Sg(i)?1:0;if(i!=null){if(i=i.$$typeof,i===P)return 11;if(i===O)return 14}return 2}function Vs(i,a){var p=i.alternate;return p===null?(p=Ao(i.tag,a,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=a,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,a=i.dependencies,p.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function Ap(i,a,p,g,S,T){var N=2;if(g=i,typeof i=="function")Sg(i)&&(N=1);else if(typeof i=="string")N=5;else e:switch(i){case L:return Ra(p.children,S,T,a);case A:N=8,S|=8;break;case F:return i=Ao(12,p,a,S|2),i.elementType=F,i.lanes=T,i;case q:return i=Ao(13,p,a,S),i.elementType=q,i.lanes=T,i;case V:return i=Ao(19,p,a,S),i.elementType=V,i.lanes=T,i;case K:return _p(p,S,T,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case G:N=10;break e;case $:N=9;break e;case P:N=11;break e;case O:N=14;break e;case U:N=16,g=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return a=Ao(N,p,a,S),a.elementType=i,a.type=g,a.lanes=T,a}function Ra(i,a,p,g){return i=Ao(7,i,g,a),i.lanes=p,i}function _p(i,a,p,g){return i=Ao(22,i,g,a),i.elementType=K,i.lanes=p,i.stateNode={isHidden:!1},i}function Cg(i,a,p){return i=Ao(6,i,null,a),i.lanes=p,i}function Eg(i,a,p){return a=Ao(4,i.children!==null?i.children:[],i.key,a),a.lanes=p,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function qP(i,a,p,g,S){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yh(0),this.expirationTimes=Yh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yh(0),this.identifierPrefix=g,this.onRecoverableError=S,this.mutableSourceEagerHydrationData=null}function Tg(i,a,p,g,S,T,N,ne,le){return i=new qP(i,a,p,ne,le),a===1?(a=1,T===!0&&(a|=8)):a=0,T=Ao(3,null,null,a),i.current=T,T.stateNode=i,T.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bm(T),i}function GP(i,a,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:g==null?null:""+g,children:i,containerInfo:a,implementation:p}}function p1(i){if(!i)return Os;i=i._reactInternals;e:{if(wn(i)!==i||i.tag!==1)throw Error(r(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Vn(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(r(171))}if(i.tag===1){var p=i.type;if(Vn(p))return Dx(i,p,a)}return a}function f1(i,a,p,g,S,T,N,ne,le){return i=Tg(p,g,!0,i,S,T,N,ne,le),i.context=p1(null),p=i.current,g=An(),S=Hs(p),T=ss(g,S),T.callback=a??null,Bs(p,T,S),i.current.lanes=S,$c(i,S,g),Gn(i,g),i}function Lp(i,a,p,g){var S=a.current,T=An(),N=Hs(S);return p=p1(p),a.context===null?a.context=p:a.pendingContext=p,a=ss(T,N),a.payload={element:i},g=g===void 0?null:g,g!==null&&(a.callback=g),i=Bs(S,a,N),i!==null&&(ri(i,S,N,T),dp(i,S,N)),N}function Op(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function h1(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<a?p:a}}function kg(i,a){h1(i,a),(i=i.alternate)&&h1(i,a)}function XP(){return null}var m1=typeof reportError=="function"?reportError:function(i){console.error(i)};function jg(i){this._internalRoot=i}$p.prototype.render=jg.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));Lp(i,a,null,null)},$p.prototype.unmount=jg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;Pa(function(){Lp(null,i,null,null)}),a[ts]=null}};function $p(i){this._internalRoot=i}$p.prototype.unstable_scheduleHydration=function(i){if(i){var a=J0();i={blockedOn:null,target:i,priority:a};for(var p=0;p<Ms.length&&a!==0&&a<Ms[p].priority;p++);Ms.splice(p,0,i),p===0&&tx(i)}};function Pg(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Np(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function g1(){}function KP(i,a,p,g,S){if(S){if(typeof g=="function"){var T=g;g=function(){var xe=Op(N);T.call(xe)}}var N=f1(a,g,i,0,null,!1,!1,"",g1);return i._reactRootContainer=N,i[ts]=N.current,Qc(i.nodeType===8?i.parentNode:i),Pa(),N}for(;S=i.lastChild;)i.removeChild(S);if(typeof g=="function"){var ne=g;g=function(){var xe=Op(le);ne.call(xe)}}var le=Tg(i,0,!1,null,null,!1,!1,"",g1);return i._reactRootContainer=le,i[ts]=le.current,Qc(i.nodeType===8?i.parentNode:i),Pa(function(){Lp(a,le,p,g)}),le}function Bp(i,a,p,g,S){var T=p._reactRootContainer;if(T){var N=T;if(typeof S=="function"){var ne=S;S=function(){var le=Op(N);ne.call(le)}}Lp(a,N,i,S)}else N=KP(p,a,i,S,g);return Op(N)}Q0=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var p=Oc(a.pendingLanes);p!==0&&(Jh(a,p|1),Gn(a,Bt()),(er&6)===0&&(Al=Bt()+500,$s()))}break;case 13:Pa(function(){var g=is(i,1);if(g!==null){var S=An();ri(g,i,1,S)}}),kg(i,1)}},Zh=function(i){if(i.tag===13){var a=is(i,134217728);if(a!==null){var p=An();ri(a,i,134217728,p)}kg(i,134217728)}},Y0=function(i){if(i.tag===13){var a=Hs(i),p=is(i,a);if(p!==null){var g=An();ri(p,i,a,g)}kg(i,a)}},J0=function(){return pr},Z0=function(i,a){var p=pr;try{return pr=i,a()}finally{pr=p}},on=function(i,a,p){switch(a){case"input":if(pt(i,p),a=p.name,p.type==="radio"&&a!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<p.length;a++){var g=p[a];if(g!==i&&g.form===i.form){var S=tp(g);if(!S)throw Error(r(90));ze(g),pt(g,S)}}}break;case"textarea":vt(i,p);break;case"select":a=p.value,a!=null&>(i,!!p.multiple,a,!1)}},Ct=xg,St=Pa;var QP={usingClientEntryPoint:!1,Events:[Zc,xl,tp,dr,we,xg]},fu={findFiberByHostInstance:ba,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},YP={bundleType:fu.bundleType,version:fu.version,rendererPackageName:fu.rendererPackageName,rendererConfig:fu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=ke(i),i===null?null:i.stateNode},findFiberByHostInstance:fu.findFiberByHostInstance||XP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{po=zp.inject(YP),Jr=zp}catch{}}return Xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QP,Xn.createPortal=function(i,a){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pg(a))throw Error(r(200));return GP(i,a,null,p)},Xn.createRoot=function(i,a){if(!Pg(i))throw Error(r(299));var p=!1,g="",S=m1;return a!=null&&(a.unstable_strictMode===!0&&(p=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=Tg(i,1,!1,null,null,p,!1,g,S),i[ts]=a.current,Qc(i.nodeType===8?i.parentNode:i),new jg(a)},Xn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=ke(a),i=i===null?null:i.stateNode,i},Xn.flushSync=function(i){return Pa(i)},Xn.hydrate=function(i,a,p){if(!Np(a))throw Error(r(200));return Bp(null,i,a,!0,p)},Xn.hydrateRoot=function(i,a,p){if(!Pg(i))throw Error(r(405));var g=p!=null&&p.hydratedSources||null,S=!1,T="",N=m1;if(p!=null&&(p.unstable_strictMode===!0&&(S=!0),p.identifierPrefix!==void 0&&(T=p.identifierPrefix),p.onRecoverableError!==void 0&&(N=p.onRecoverableError)),a=f1(a,null,i,1,p??null,S,!1,T,N),i[ts]=a.current,Qc(i),g)for(i=0;i<g.length;i++)p=g[i],S=p._getVersion,S=S(p._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[p,S]:a.mutableSourceEagerHydrationData.push(p,S);return new $p(a)},Xn.render=function(i,a,p){if(!Np(a))throw Error(r(200));return Bp(null,i,a,!1,p)},Xn.unmountComponentAtNode=function(i){if(!Np(i))throw Error(r(40));return i._reactRootContainer?(Pa(function(){Bp(null,null,i,!1,function(){i._reactRootContainer=null,i[ts]=null})}),!0):!1},Xn.unstable_batchedUpdates=xg,Xn.unstable_renderSubtreeIntoContainer=function(i,a,p,g){if(!Np(p))throw Error(r(200));if(i==null||i._reactInternals===void 0)throw Error(r(38));return Bp(i,a,p,!1,g)},Xn.version="18.3.1-next-f1338f8080-20240426",Xn}var T1;function f2(){if(T1)return Rg.exports;T1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Rg.exports=a4(),Rg.exports}var k1;function l4(){if(k1)return Dp;k1=1;var t=f2();return Dp.createRoot=t.createRoot,Dp.hydrateRoot=t.hydrateRoot,Dp}var c4=l4();const u4=nh(c4);var h2=f2();const Fp=nh(h2);/**
|
|
41
|
+
* @remix-run/router v1.23.1
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function Vu(){return Vu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vu.apply(this,arguments)}var Ks;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Ks||(Ks={}));const j1="popstate";function d4(t){t===void 0&&(t={});function e(n,o){let{pathname:s,search:c,hash:u}=n.location;return py("",{pathname:s,search:c,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:m2(o)}return f4(e,r,null,t)}function rn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ev(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function p4(){return Math.random().toString(36).substr(2,8)}function P1(t,e){return{usr:t.state,key:t.key,idx:e}}function py(t,e,r,n){return r===void 0&&(r=null),Vu({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ec(e):e,{state:r,key:e&&e.key||n||p4()})}function m2(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ec(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function f4(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:s=!1}=n,c=o.history,u=Ks.Pop,d=null,f=h();f==null&&(f=0,c.replaceState(Vu({},c.state,{idx:f}),""));function h(){return(c.state||{idx:null}).idx}function v(){u=Ks.Pop;let C=h(),j=C==null?null:C-f;f=C,d&&d({action:u,location:w.location,delta:j})}function m(C,j){u=Ks.Push;let k=py(w.location,C,j);f=h()+1;let I=P1(k,f),E=w.createHref(k);try{c.pushState(I,"",E)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(E)}s&&d&&d({action:u,location:w.location,delta:1})}function y(C,j){u=Ks.Replace;let k=py(w.location,C,j);f=h();let I=P1(k,f),E=w.createHref(k);c.replaceState(I,"",E),s&&d&&d({action:u,location:w.location,delta:0})}function x(C){let j=o.location.origin!=="null"?o.location.origin:o.location.href,k=typeof C=="string"?C:m2(C);return k=k.replace(/ $/,"%20"),rn(j,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,j)}let w={get action(){return u},get location(){return t(o,c)},listen(C){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(j1,v),d=C,()=>{o.removeEventListener(j1,v),d=null}},createHref(C){return e(o,C)},createURL:x,encodeLocation(C){let j=x(C);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:m,replace:y,go(C){return c.go(C)}};return w}var I1;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(I1||(I1={}));function h4(t,e,r){return r===void 0&&(r="/"),m4(t,e,r)}function m4(t,e,r,n){let o=typeof e=="string"?Ec(e):e,s=v2(o.pathname||"/",r);if(s==null)return null;let c=g2(t);g4(c);let u=null;for(let d=0;u==null&&d<c.length;++d){let f=P4(s);u=T4(c[d],f)}return u}function g2(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(s,c,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};d.relativePath.startsWith("/")&&(rn(d.relativePath.startsWith(n),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(n.length));let f=Va([n,d.relativePath]),h=r.concat(d);s.children&&s.children.length>0&&(rn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),g2(s.children,e,h,f)),!(s.path==null&&!s.index)&&e.push({path:f,score:C4(f,s.index),routesMeta:h})};return t.forEach((s,c)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))o(s,c);else for(let d of y2(s.path))o(s,c,d)}),e}function y2(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let c=y2(n.join("/")),u=[];return u.push(...c.map(d=>d===""?s:[s,d].join("/"))),o&&u.push(...c),u.map(d=>t.startsWith("/")&&d===""?"/":d)}function g4(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:E4(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const y4=/^:[\w-]+$/,v4=3,x4=2,b4=1,w4=10,S4=-2,M1=t=>t==="*";function C4(t,e){let r=t.split("/"),n=r.length;return r.some(M1)&&(n+=S4),e&&(n+=x4),r.filter(o=>!M1(o)).reduce((o,s)=>o+(y4.test(s)?v4:s===""?b4:w4),n)}function E4(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function T4(t,e,r){let{routesMeta:n}=t,o={},s="/",c=[];for(let u=0;u<n.length;++u){let d=n[u],f=u===n.length-1,h=s==="/"?e:e.slice(s.length)||"/",v=k4({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},h),m=d.route;if(!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:Va([s,v.pathname]),pathnameBase:O4(Va([s,v.pathnameBase])),route:m}),v.pathnameBase!=="/"&&(s=Va([s,v.pathnameBase]))}return c}function k4(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=j4(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:n.reduce((f,h,v)=>{let{paramName:m,isOptional:y}=h;if(m==="*"){let w=u[v]||"";c=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const x=u[v];return y&&!x?f[m]=void 0:f[m]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:c,pattern:t}}function j4(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Ev(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,d)=>(n.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function P4(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ev(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function v2(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}const I4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M4=t=>I4.test(t);function R4(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?Ec(t):t,s;if(r)if(M4(r))s=r;else{if(r.includes("//")){let c=r;r=r.replace(/\/\/+/g,"/"),Ev(!1,"Pathnames cannot have embedded double slashes - normalizing "+(c+" -> "+r))}r.startsWith("/")?s=R1(r.substring(1),"/"):s=R1(r,e)}else s=e;return{pathname:s,search:$4(n),hash:N4(o)}}function R1(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Lg(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function A4(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function _4(t,e){let r=A4(t);return e?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function L4(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=Ec(t):(o=Vu({},t),rn(!o.pathname||!o.pathname.includes("?"),Lg("?","pathname","search",o)),rn(!o.pathname||!o.pathname.includes("#"),Lg("#","pathname","hash",o)),rn(!o.search||!o.search.includes("#"),Lg("#","search","hash",o)));let s=t===""||o.pathname==="",c=s?"/":o.pathname,u;if(c==null)u=r;else{let v=e.length-1;if(!n&&c.startsWith("..")){let m=c.split("/");for(;m[0]==="..";)m.shift(),v-=1;o.pathname=m.join("/")}u=v>=0?e[v]:"/"}let d=R4(o,u),f=c&&c!=="/"&&c.endsWith("/"),h=(s||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||h)&&(d.pathname+="/"),d}const Va=t=>t.join("/").replace(/\/\/+/g,"/"),O4=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),$4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,N4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function B4(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const x2=["post","put","patch","delete"];new Set(x2);const z4=["get",...x2];new Set(z4);/**
|
|
50
|
+
* React Router v6.30.2
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function Wu(){return Wu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Wu.apply(this,arguments)}const Tv=b.createContext(null),D4=b.createContext(null),oh=b.createContext(null),ih=b.createContext(null),Tc=b.createContext({outlet:null,matches:[],isDataRoute:!1}),b2=b.createContext(null);function yd(){return b.useContext(ih)!=null}function kv(){return yd()||rn(!1),b.useContext(ih).location}function w2(t){b.useContext(oh).static||b.useLayoutEffect(t)}function jv(){let{isDataRoute:t}=b.useContext(Tc);return t?Z4():F4()}function F4(){yd()||rn(!1);let t=b.useContext(Tv),{basename:e,future:r,navigator:n}=b.useContext(oh),{matches:o}=b.useContext(Tc),{pathname:s}=kv(),c=JSON.stringify(_4(o,r.v7_relativeSplatPath)),u=b.useRef(!1);return w2(()=>{u.current=!0}),b.useCallback(function(f,h){if(h===void 0&&(h={}),!u.current)return;if(typeof f=="number"){n.go(f);return}let v=L4(f,JSON.parse(c),s,h.relative==="path");t==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:Va([e,v.pathname])),(h.replace?n.replace:n.push)(v,h.state,h)},[e,n,c,s,t])}function H4(t,e){return U4(t,e)}function U4(t,e,r,n){yd()||rn(!1);let{navigator:o}=b.useContext(oh),{matches:s}=b.useContext(Tc),c=s[s.length-1],u=c?c.params:{};c&&c.pathname;let d=c?c.pathnameBase:"/";c&&c.route;let f=kv(),h;if(e){var v;let C=typeof e=="string"?Ec(e):e;d==="/"||(v=C.pathname)!=null&&v.startsWith(d)||rn(!1),h=C}else h=f;let m=h.pathname||"/",y=m;if(d!=="/"){let C=d.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=h4(t,{pathname:y}),w=X4(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:Va([d,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:Va([d,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,r,n);return e&&w?b.createElement(ih.Provider,{value:{location:Wu({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Ks.Pop}},w):w}function V4(){let t=J4(),e=B4(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},e),r?b.createElement("pre",{style:o},r):null,null)}const W4=b.createElement(V4,null);class q4 extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?b.createElement(Tc.Provider,{value:this.props.routeContext},b.createElement(b2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function G4(t){let{routeContext:e,match:r,children:n}=t,o=b.useContext(Tv);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(Tc.Provider,{value:e},n)}function X4(t,e,r,n){var o;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if(!r)return null;if(r.errors)t=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let c=t,u=(o=r)==null?void 0:o.errors;if(u!=null){let h=c.findIndex(v=>v.route.id&&(u==null?void 0:u[v.route.id])!==void 0);h>=0||rn(!1),c=c.slice(0,Math.min(c.length,h+1))}let d=!1,f=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h<c.length;h++){let v=c[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(f=h),v.route.id){let{loaderData:m,errors:y}=r,x=v.route.loader&&m[v.route.id]===void 0&&(!y||y[v.route.id]===void 0);if(v.route.lazy||x){d=!0,f>=0?c=c.slice(0,f+1):c=[c[0]];break}}}return c.reduceRight((h,v,m)=>{let y,x=!1,w=null,C=null;r&&(y=u&&v.route.id?u[v.route.id]:void 0,w=v.route.errorElement||W4,d&&(f<0&&m===0?(e3("route-fallback"),x=!0,C=null):f===m&&(x=!0,C=v.route.hydrateFallbackElement||null)));let j=e.concat(c.slice(0,m+1)),k=()=>{let I;return y?I=w:x?I=C:v.route.Component?I=b.createElement(v.route.Component,null):v.route.element?I=v.route.element:I=h,b.createElement(G4,{match:v,routeContext:{outlet:h,matches:j,isDataRoute:r!=null},children:I})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?b.createElement(q4,{location:r.location,revalidation:r.revalidation,component:w,error:y,children:k(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):k()},null)}var S2=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(S2||{}),C2=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(C2||{});function K4(t){let e=b.useContext(Tv);return e||rn(!1),e}function Q4(t){let e=b.useContext(D4);return e||rn(!1),e}function Y4(t){let e=b.useContext(Tc);return e||rn(!1),e}function E2(t){let e=Y4(),r=e.matches[e.matches.length-1];return r.route.id||rn(!1),r.route.id}function J4(){var t;let e=b.useContext(b2),r=Q4(),n=E2();return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function Z4(){let{router:t}=K4(S2.UseNavigateStable),e=E2(C2.UseNavigateStable),r=b.useRef(!1);return w2(()=>{r.current=!0}),b.useCallback(function(o,s){s===void 0&&(s={}),r.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Wu({fromRouteId:e},s)))},[t,e])}const A1={};function e3(t,e,r){A1[t]||(A1[t]=!0)}function t3(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Kn(t){rn(!1)}function r3(t){let{basename:e="/",children:r=null,location:n,navigationType:o=Ks.Pop,navigator:s,static:c=!1,future:u}=t;yd()&&rn(!1);let d=e.replace(/^\/*/,"/"),f=b.useMemo(()=>({basename:d,navigator:s,static:c,future:Wu({v7_relativeSplatPath:!1},u)}),[d,u,s,c]);typeof n=="string"&&(n=Ec(n));let{pathname:h="/",search:v="",hash:m="",state:y=null,key:x="default"}=n,w=b.useMemo(()=>{let C=v2(h,d);return C==null?null:{location:{pathname:C,search:v,hash:m,state:y,key:x},navigationType:o}},[d,h,v,m,y,x,o]);return w==null?null:b.createElement(oh.Provider,{value:f},b.createElement(ih.Provider,{children:r,value:w}))}function n3(t){let{children:e,location:r}=t;return H4(fy(e),r)}new Promise(()=>{});function fy(t,e){e===void 0&&(e=[]);let r=[];return b.Children.forEach(t,(n,o)=>{if(!b.isValidElement(n))return;let s=[...e,o];if(n.type===b.Fragment){r.push.apply(r,fy(n.props.children,s));return}n.type!==Kn&&rn(!1),!n.props.index||!n.props.children||rn(!1);let c={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(c.children=fy(n.props.children,s)),r.push(c)}),r}/**
|
|
59
|
+
* React Router DOM v6.30.2
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/const o3="6";try{window.__reactRouterVersion=o3}catch{}const i3="startTransition",_1=Uu[i3];function s3(t){let{basename:e,children:r,future:n,window:o}=t,s=b.useRef();s.current==null&&(s.current=d4({window:o,v5Compat:!0}));let c=s.current,[u,d]=b.useState({action:c.action,location:c.location}),{v7_startTransition:f}=n||{},h=b.useCallback(v=>{f&&_1?_1(()=>d(v)):d(v)},[d,f]);return b.useLayoutEffect(()=>c.listen(h),[c,h]),b.useEffect(()=>t3(n),[n]),b.createElement(r3,{basename:e,children:r,location:u.location,navigationType:u.action,navigator:c,future:n})}var L1;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(L1||(L1={}));var O1;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(O1||(O1={}));const qu={black:"#000",white:"#fff"},Ll={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ol={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},$l={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Nl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},mu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},a3={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"};function ms(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const si="$$material";function Af(){return Af=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Af.apply(null,arguments)}function l3(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function c3(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var u3=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(c3(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=l3(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})(),kn="-ms-",_f="-moz-",ir="-webkit-",T2="comm",Pv="rule",Iv="decl",d3="@import",k2="@keyframes",p3="@layer",f3=Math.abs,sh=String.fromCharCode,h3=Object.assign;function m3(t,e){return yn(t,0)^45?(((e<<2^yn(t,0))<<2^yn(t,1))<<2^yn(t,2))<<2^yn(t,3):0}function j2(t){return t.trim()}function g3(t,e){return(t=e.exec(t))?t[0]:t}function sr(t,e,r){return t.replace(e,r)}function hy(t,e){return t.indexOf(e)}function yn(t,e){return t.charCodeAt(e)|0}function Gu(t,e,r){return t.slice(e,r)}function ji(t){return t.length}function Mv(t){return t.length}function Hp(t,e){return e.push(t),t}function y3(t,e){return t.map(e).join("")}var ah=1,oc=1,P2=0,eo=0,Gr=0,kc="";function lh(t,e,r,n,o,s,c){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:ah,column:oc,length:c,return:""}}function gu(t,e){return h3(lh("",null,null,"",null,null,0),t,{length:-t.length},e)}function v3(){return Gr}function x3(){return Gr=eo>0?yn(kc,--eo):0,oc--,Gr===10&&(oc=1,ah--),Gr}function So(){return Gr=eo<P2?yn(kc,eo++):0,oc++,Gr===10&&(oc=1,ah++),Gr}function Oi(){return yn(kc,eo)}function vf(){return eo}function vd(t,e){return Gu(kc,t,e)}function Xu(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function I2(t){return ah=oc=1,P2=ji(kc=t),eo=0,[]}function M2(t){return kc="",t}function xf(t){return j2(vd(eo-1,my(t===91?t+2:t===40?t+1:t)))}function b3(t){for(;(Gr=Oi())&&Gr<33;)So();return Xu(t)>2||Xu(Gr)>3?"":" "}function w3(t,e){for(;--e&&So()&&!(Gr<48||Gr>102||Gr>57&&Gr<65||Gr>70&&Gr<97););return vd(t,vf()+(e<6&&Oi()==32&&So()==32))}function my(t){for(;So();)switch(Gr){case t:return eo;case 34:case 39:t!==34&&t!==39&&my(Gr);break;case 40:t===41&&my(t);break;case 92:So();break}return eo}function S3(t,e){for(;So()&&t+Gr!==57;)if(t+Gr===84&&Oi()===47)break;return"/*"+vd(e,eo-1)+"*"+sh(t===47?t:So())}function C3(t){for(;!Xu(Oi());)So();return vd(t,eo)}function E3(t){return M2(bf("",null,null,null,[""],t=I2(t),0,[0],t))}function bf(t,e,r,n,o,s,c,u,d){for(var f=0,h=0,v=c,m=0,y=0,x=0,w=1,C=1,j=1,k=0,I="",E=o,M=s,R=n,L=I;C;)switch(x=k,k=So()){case 40:if(x!=108&&yn(L,v-1)==58){hy(L+=sr(xf(k),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:L+=xf(k);break;case 9:case 10:case 13:case 32:L+=b3(x);break;case 92:L+=w3(vf()-1,7);continue;case 47:switch(Oi()){case 42:case 47:Hp(T3(S3(So(),vf()),e,r),d);break;default:L+="/"}break;case 123*w:u[f++]=ji(L)*j;case 125*w:case 59:case 0:switch(k){case 0:case 125:C=0;case 59+h:j==-1&&(L=sr(L,/\f/g,"")),y>0&&ji(L)-v&&Hp(y>32?N1(L+";",n,r,v-1):N1(sr(L," ","")+";",n,r,v-2),d);break;case 59:L+=";";default:if(Hp(R=$1(L,e,r,f,h,o,u,I,E=[],M=[],v),s),k===123)if(h===0)bf(L,e,R,R,E,s,v,u,M);else switch(m===99&&yn(L,3)===110?100:m){case 100:case 108:case 109:case 115:bf(t,R,R,n&&Hp($1(t,R,R,0,0,o,u,I,o,E=[],v),M),o,M,v,u,n?E:M);break;default:bf(L,R,R,R,[""],M,0,u,M)}}f=h=y=0,w=j=1,I=L="",v=c;break;case 58:v=1+ji(L),y=x;default:if(w<1){if(k==123)--w;else if(k==125&&w++==0&&x3()==125)continue}switch(L+=sh(k),k*w){case 38:j=h>0?1:(L+="\f",-1);break;case 44:u[f++]=(ji(L)-1)*j,j=1;break;case 64:Oi()===45&&(L+=xf(So())),m=Oi(),h=v=ji(I=L+=C3(vf())),k++;break;case 45:x===45&&ji(L)==2&&(w=0)}}return s}function $1(t,e,r,n,o,s,c,u,d,f,h){for(var v=o-1,m=o===0?s:[""],y=Mv(m),x=0,w=0,C=0;x<n;++x)for(var j=0,k=Gu(t,v+1,v=f3(w=c[x])),I=t;j<y;++j)(I=j2(w>0?m[j]+" "+k:sr(k,/&\f/g,m[j])))&&(d[C++]=I);return lh(t,e,r,o===0?Pv:u,d,f,h)}function T3(t,e,r){return lh(t,e,r,T2,sh(v3()),Gu(t,2,-2),0)}function N1(t,e,r,n){return lh(t,e,r,Iv,Gu(t,0,n),Gu(t,n+1,-1),n)}function Ql(t,e){for(var r="",n=Mv(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function k3(t,e,r,n){switch(t.type){case p3:if(t.children.length)break;case d3:case Iv:return t.return=t.return||t.value;case T2:return"";case k2:return t.return=t.value+"{"+Ql(t.children,n)+"}";case Pv:t.value=t.props.join(",")}return ji(r=Ql(t.children,n))?t.return=t.value+"{"+r+"}":""}function j3(t){var e=Mv(t);return function(r,n,o,s){for(var c="",u=0;u<e;u++)c+=t[u](r,n,o,s)||"";return c}}function P3(t){return function(e){e.root||(e=e.return)&&t(e)}}function R2(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var I3=function(e,r,n){for(var o=0,s=0;o=s,s=Oi(),o===38&&s===12&&(r[n]=1),!Xu(s);)So();return vd(e,eo)},M3=function(e,r){var n=-1,o=44;do switch(Xu(o)){case 0:o===38&&Oi()===12&&(r[n]=1),e[n]+=I3(eo-1,r,n);break;case 2:e[n]+=xf(o);break;case 4:if(o===44){e[++n]=Oi()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=sh(o)}while(o=So());return e},R3=function(e,r){return M2(M3(I2(e),r))},B1=new WeakMap,A3=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!B1.get(n))&&!o){B1.set(e,!0);for(var s=[],c=R3(r,s),u=n.props,d=0,f=0;d<c.length;d++)for(var h=0;h<u.length;h++,f++)e.props[f]=s[d]?c[d].replace(/&\f/g,u[h]):u[h]+" "+c[d]}}},_3=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function A2(t,e){switch(m3(t,e)){case 5103:return ir+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ir+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ir+t+_f+t+kn+t+t;case 6828:case 4268:return ir+t+kn+t+t;case 6165:return ir+t+kn+"flex-"+t+t;case 5187:return ir+t+sr(t,/(\w+).+(:[^]+)/,ir+"box-$1$2"+kn+"flex-$1$2")+t;case 5443:return ir+t+kn+"flex-item-"+sr(t,/flex-|-self/,"")+t;case 4675:return ir+t+kn+"flex-line-pack"+sr(t,/align-content|flex-|-self/,"")+t;case 5548:return ir+t+kn+sr(t,"shrink","negative")+t;case 5292:return ir+t+kn+sr(t,"basis","preferred-size")+t;case 6060:return ir+"box-"+sr(t,"-grow","")+ir+t+kn+sr(t,"grow","positive")+t;case 4554:return ir+sr(t,/([^-])(transform)/g,"$1"+ir+"$2")+t;case 6187:return sr(sr(sr(t,/(zoom-|grab)/,ir+"$1"),/(image-set)/,ir+"$1"),t,"")+t;case 5495:case 3959:return sr(t,/(image-set\([^]*)/,ir+"$1$`$1");case 4968:return sr(sr(t,/(.+:)(flex-)?(.*)/,ir+"box-pack:$3"+kn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ir+t+t;case 4095:case 3583:case 4068:case 2532:return sr(t,/(.+)-inline(.+)/,ir+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ji(t)-1-e>6)switch(yn(t,e+1)){case 109:if(yn(t,e+4)!==45)break;case 102:return sr(t,/(.+:)(.+)-([^]+)/,"$1"+ir+"$2-$3$1"+_f+(yn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~hy(t,"stretch")?A2(sr(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(yn(t,e+1)!==115)break;case 6444:switch(yn(t,ji(t)-3-(~hy(t,"!important")&&10))){case 107:return sr(t,":",":"+ir)+t;case 101:return sr(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ir+(yn(t,14)===45?"inline-":"")+"box$3$1"+ir+"$2$3$1"+kn+"$2box$3")+t}break;case 5936:switch(yn(t,e+11)){case 114:return ir+t+kn+sr(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ir+t+kn+sr(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ir+t+kn+sr(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ir+t+kn+t+t}return t}var L3=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Iv:e.return=A2(e.value,e.length);break;case k2:return Ql([gu(e,{value:sr(e.value,"@","@"+ir)})],o);case Pv:if(e.length)return y3(e.props,function(s){switch(g3(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ql([gu(e,{props:[sr(s,/:(read-\w+)/,":"+_f+"$1")]})],o);case"::placeholder":return Ql([gu(e,{props:[sr(s,/:(plac\w+)/,":"+ir+"input-$1")]}),gu(e,{props:[sr(s,/:(plac\w+)/,":"+_f+"$1")]}),gu(e,{props:[sr(s,/:(plac\w+)/,kn+"input-$1")]})],o)}return""})}},O3=[L3],$3=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var C=w.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=e.stylisPlugins||O3,s={},c,u=[];c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var C=w.getAttribute("data-emotion").split(" "),j=1;j<C.length;j++)s[C[j]]=!0;u.push(w)});var d,f=[A3,_3];{var h,v=[k3,P3(function(w){h.insert(w)})],m=j3(f.concat(o,v)),y=function(C){return Ql(E3(C),m)};d=function(C,j,k,I){h=k,y(C?C+"{"+j.styles+"}":j.styles),I&&(x.inserted[j.name]=!0)}}var x={key:r,sheet:new u3({key:r,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:d};return x.sheet.hydrate(u),x},Og={exports:{}},lr={};/** @license React v16.13.1
|
|
68
|
+
* react-is.production.min.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var z1;function N3(){if(z1)return lr;z1=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,v=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,j=t?Symbol.for("react.responder"):60118,k=t?Symbol.for("react.scope"):60119;function I(M){if(typeof M=="object"&&M!==null){var R=M.$$typeof;switch(R){case e:switch(M=M.type,M){case d:case f:case n:case s:case o:case v:return M;default:switch(M=M&&M.$$typeof,M){case u:case h:case x:case y:case c:return M;default:return R}}case r:return R}}}function E(M){return I(M)===f}return lr.AsyncMode=d,lr.ConcurrentMode=f,lr.ContextConsumer=u,lr.ContextProvider=c,lr.Element=e,lr.ForwardRef=h,lr.Fragment=n,lr.Lazy=x,lr.Memo=y,lr.Portal=r,lr.Profiler=s,lr.StrictMode=o,lr.Suspense=v,lr.isAsyncMode=function(M){return E(M)||I(M)===d},lr.isConcurrentMode=E,lr.isContextConsumer=function(M){return I(M)===u},lr.isContextProvider=function(M){return I(M)===c},lr.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},lr.isForwardRef=function(M){return I(M)===h},lr.isFragment=function(M){return I(M)===n},lr.isLazy=function(M){return I(M)===x},lr.isMemo=function(M){return I(M)===y},lr.isPortal=function(M){return I(M)===r},lr.isProfiler=function(M){return I(M)===s},lr.isStrictMode=function(M){return I(M)===o},lr.isSuspense=function(M){return I(M)===v},lr.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===n||M===f||M===s||M===o||M===v||M===m||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===y||M.$$typeof===c||M.$$typeof===u||M.$$typeof===h||M.$$typeof===C||M.$$typeof===j||M.$$typeof===k||M.$$typeof===w)},lr.typeOf=I,lr}var D1;function B3(){return D1||(D1=1,Og.exports=N3()),Og.exports}var $g,F1;function z3(){if(F1)return $g;F1=1;var t=B3(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=n,s[t.Memo]=o;function c(x){return t.isMemo(x)?o:s[x.$$typeof]||e}var u=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,m=Object.prototype;function y(x,w,C){if(typeof w!="string"){if(m){var j=v(w);j&&j!==m&&y(x,j,C)}var k=d(w);f&&(k=k.concat(f(w)));for(var I=c(x),E=c(w),M=0;M<k.length;++M){var R=k[M];if(!r[R]&&!(C&&C[R])&&!(E&&E[R])&&!(I&&I[R])){var L=h(w,R);try{u(x,R,L)}catch{}}}}return x}return $g=y,$g}z3();var D3=!0;function _2(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var Rv=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||D3===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Av=function(e,r,n){Rv(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function F3(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var H3={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},U3=/[A-Z]|^ms/g,V3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L2=function(e){return e.charCodeAt(1)===45},H1=function(e){return e!=null&&typeof e!="boolean"},Ng=R2(function(t){return L2(t)?t:t.replace(U3,"-$&").toLowerCase()}),U1=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(V3,function(n,o,s){return Pi={name:o,styles:s,next:Pi},o})}return H3[e]!==1&&!L2(e)&&typeof r=="number"&&r!==0?r+"px":r};function Ku(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Pi={name:o.name,styles:o.styles,next:Pi},o.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Pi={name:c.name,styles:c.styles,next:Pi},c=c.next;var u=s.styles+";";return u}return W3(t,e,r)}case"function":{if(t!==void 0){var d=Pi,f=r(t);return Pi=d,Ku(t,e,f)}break}}var h=r;if(e==null)return h;var v=e[h];return v!==void 0?v:h}function W3(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ku(t,e,r[o])+";";else for(var s in r){var c=r[s];if(typeof c!="object"){var u=c;e!=null&&e[u]!==void 0?n+=s+"{"+e[u]+"}":H1(u)&&(n+=Ng(s)+":"+U1(s,u)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(e==null||e[c[0]]===void 0))for(var d=0;d<c.length;d++)H1(c[d])&&(n+=Ng(s)+":"+U1(s,c[d])+";");else{var f=Ku(t,e,c);switch(s){case"animation":case"animationName":{n+=Ng(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}return n}var V1=/label:\s*([^\s;{]+)\s*(;|$)/g,Pi;function xd(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Pi=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=Ku(r,e,s);else{var c=s;o+=c[0]}for(var u=1;u<t.length;u++)if(o+=Ku(r,e,t[u]),n){var d=s;o+=d[u]}V1.lastIndex=0;for(var f="",h;(h=V1.exec(o))!==null;)f+="-"+h[1];var v=F3(o)+f;return{name:v,styles:o,next:Pi}}var q3=function(e){return e()},O2=Uu.useInsertionEffect?Uu.useInsertionEffect:!1,$2=O2||q3,W1=O2||b.useLayoutEffect,N2=b.createContext(typeof HTMLElement<"u"?$3({key:"css"}):null);N2.Provider;var _v=function(e){return b.forwardRef(function(r,n){var o=b.useContext(N2);return e(r,o,n)})},bd=b.createContext({}),Lv={}.hasOwnProperty,gy="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",G3=function(e,r){var n={};for(var o in r)Lv.call(r,o)&&(n[o]=r[o]);return n[gy]=e,n},X3=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return Rv(r,n,o),$2(function(){return Av(r,n,o)}),null},K3=_v(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[gy],s=[n],c="";typeof t.className=="string"?c=_2(e.registered,s,t.className):t.className!=null&&(c=t.className+" ");var u=xd(s,void 0,b.useContext(bd));c+=e.key+"-"+u.name;var d={};for(var f in t)Lv.call(t,f)&&f!=="css"&&f!==gy&&(d[f]=t[f]);return d.className=c,r&&(d.ref=r),b.createElement(b.Fragment,null,b.createElement(X3,{cache:e,serialized:u,isStringTag:typeof o=="string"}),b.createElement(o,d))}),Q3=K3,q1=function(e,r){var n=arguments;if(r==null||!Lv.call(r,"css"))return b.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=Q3,s[1]=G3(e,r);for(var c=2;c<o;c++)s[c]=n[c];return b.createElement.apply(null,s)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(q1||(q1={}));var Y3=_v(function(t,e){var r=t.styles,n=xd([r],void 0,b.useContext(bd)),o=b.useRef();return W1(function(){var s=e.key+"-global",c=new e.sheet.constructor({key:s,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return e.sheet.tags.length&&(c.before=e.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",s),c.hydrate([d])),o.current=[c,u],function(){c.flush()}},[e]),W1(function(){var s=o.current,c=s[0],u=s[1];if(u){s[1]=!1;return}if(n.next!==void 0&&Av(e,n.next,!0),c.tags.length){var d=c.tags[c.tags.length-1].nextElementSibling;c.before=d,c.flush()}e.insert("",n,c,!1)},[e,n.name]),null});function da(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return xd(e)}function Qi(){var t=da.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var J3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Z3=R2(function(t){return J3.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),e5=Z3,t5=function(e){return e!=="theme"},G1=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?e5:t5},X1=function(e,r,n){var o;if(r){var s=r.shouldForwardProp;o=e.__emotion_forwardProp&&s?function(c){return e.__emotion_forwardProp(c)&&s(c)}:s}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},r5=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return Rv(r,n,o),$2(function(){return Av(r,n,o)}),null},n5=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,s,c;r!==void 0&&(s=r.label,c=r.target);var u=X1(e,r,n),d=u||G1(o),f=!d("as");return function(){var h=arguments,v=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&v.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)v.push.apply(v,h);else{var m=h[0];v.push(m[0]);for(var y=h.length,x=1;x<y;x++)v.push(h[x],m[x])}var w=_v(function(C,j,k){var I=f&&C.as||o,E="",M=[],R=C;if(C.theme==null){R={};for(var L in C)R[L]=C[L];R.theme=b.useContext(bd)}typeof C.className=="string"?E=_2(j.registered,M,C.className):C.className!=null&&(E=C.className+" ");var A=xd(v.concat(M),j.registered,R);E+=j.key+"-"+A.name,c!==void 0&&(E+=" "+c);var F=f&&u===void 0?G1(I):d,G={};for(var $ in C)f&&$==="as"||F($)&&(G[$]=C[$]);return G.className=E,k&&(G.ref=k),b.createElement(b.Fragment,null,b.createElement(r5,{cache:j,serialized:A,isStringTag:typeof I=="string"}),b.createElement(I,G))});return w.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",w.defaultProps=e.defaultProps,w.__emotion_real=w,w.__emotion_base=o,w.__emotion_styles=v,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+c}}),w.withComponent=function(C,j){var k=t(C,Af({},r,j,{shouldForwardProp:X1(w,j,!0)}));return k.apply(void 0,v)},w}},o5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],yy=n5.bind(null);o5.forEach(function(t){yy[t]=yy(t)});function i5(t){return t==null||Object.keys(t).length===0}function B2(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(i5(o)?r:o):e;return l.jsx(Y3,{styles:n})}function z2(t,e){return yy(t,e)}function s5(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const K1=[];function Zs(t){return K1[0]=t,xd(K1)}var Bg={exports:{}},vr={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-is.production.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/var Q1;function a5(){if(Q1)return vr;Q1=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function x(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case t:switch(w=w.type,w){case r:case o:case n:case d:case f:case m:return w;default:switch(w=w&&w.$$typeof,w){case c:case u:case v:case h:return w;case s:return w;default:return C}}case e:return C}}}return vr.ContextConsumer=s,vr.ContextProvider=c,vr.Element=t,vr.ForwardRef=u,vr.Fragment=r,vr.Lazy=v,vr.Memo=h,vr.Portal=e,vr.Profiler=o,vr.StrictMode=n,vr.Suspense=d,vr.SuspenseList=f,vr.isContextConsumer=function(w){return x(w)===s},vr.isContextProvider=function(w){return x(w)===c},vr.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},vr.isForwardRef=function(w){return x(w)===u},vr.isFragment=function(w){return x(w)===r},vr.isLazy=function(w){return x(w)===v},vr.isMemo=function(w){return x(w)===h},vr.isPortal=function(w){return x(w)===e},vr.isProfiler=function(w){return x(w)===o},vr.isStrictMode=function(w){return x(w)===n},vr.isSuspense=function(w){return x(w)===d},vr.isSuspenseList=function(w){return x(w)===f},vr.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===o||w===n||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===h||w.$$typeof===c||w.$$typeof===s||w.$$typeof===u||w.$$typeof===y||w.getModuleId!==void 0)},vr.typeOf=x,vr}var Y1;function l5(){return Y1||(Y1=1,Bg.exports=a5()),Bg.exports}var D2=l5();function Mi(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function F2(t){if(b.isValidElement(t)||D2.isValidElementType(t)||!Mi(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=F2(t[r])}),e}function dn(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return Mi(t)&&Mi(e)&&Object.keys(e).forEach(o=>{b.isValidElement(e[o])||D2.isValidElementType(e[o])?n[o]=e[o]:Mi(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Mi(t[o])?n[o]=dn(t[o],e[o],r):r.clone?n[o]=Mi(e[o])?F2(e[o]):e[o]:n[o]=e[o]}),n}const c5=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function u5(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,s=c5(e),c=Object.keys(s);function u(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r})`}function d(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-n/100}${r})`}function f(m,y){const x=c.indexOf(y);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${r}) and (max-width:${(x!==-1&&typeof e[c[x]]=="number"?e[c[x]]:y)-n/100}${r})`}function h(m){return c.indexOf(m)+1<c.length?f(m,c[c.indexOf(m)+1]):u(m)}function v(m){const y=c.indexOf(m);return y===0?u(c[1]):y===c.length-1?d(c[y]):f(m,c[c.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:u,down:d,between:f,only:h,not:v,unit:r,...o}}function J1(t,e){if(!t.containerQueries)return e;const r=Object.keys(e).filter(n=>n.startsWith("@container")).sort((n,o)=>{var c,u;const s=/min-width:\s*([0-9.]+)/;return+(((c=n.match(s))==null?void 0:c[1])||0)-+(((u=o.match(s))==null?void 0:u[1])||0)});return r.length?r.reduce((n,o)=>{const s=e[o];return delete n[o],n[o]=s,n},{...e}):e}function d5(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function p5(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,s=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(s)}function f5(t){const e=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function r(s,c){s.up=(...u)=>e(t.breakpoints.up(...u),c),s.down=(...u)=>e(t.breakpoints.down(...u),c),s.between=(...u)=>e(t.breakpoints.between(...u),c),s.only=(...u)=>e(t.breakpoints.only(...u),c),s.not=(...u)=>{const d=e(t.breakpoints.not(...u),c);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=s=>(r(n,s),n);return r(o),{...t,containerQueries:o}}const h5={borderRadius:4};function $u(t,e){return e?dn(t,e,{clone:!1}):t}const ch={xs:0,sm:600,md:900,lg:1200,xl:1536},Z1={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${ch[t]}px)`},m5={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:ch[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function ai(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const s=n.breakpoints||Z1;return e.reduce((c,u,d)=>(c[s.up(s.keys[d])]=r(e[d]),c),{})}if(typeof e=="object"){const s=n.breakpoints||Z1;return Object.keys(e).reduce((c,u)=>{if(d5(s.keys,u)){const d=p5(n.containerQueries?n:m5,u);d&&(c[d]=r(e[u],u))}else if(Object.keys(s.values||ch).includes(u)){const d=s.up(u);c[d]=r(e[u],u)}else{const d=u;c[d]=e[d]}return c},{})}return r(e)}function H2(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const s=t.up(o);return n[s]={},n},{}))||{}}function vy(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function g5(t,...e){const r=H2(t),n=[r,...e].reduce((o,s)=>dn(o,s),{});return vy(Object.keys(r),n)}function y5(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,s)=>{s<t.length&&(r[o]=!0)}):n.forEach(o=>{t[o]!=null&&(r[o]=!0)}),r}function zg({values:t,breakpoints:e,base:r}){const n=r||y5(t,e),o=Object.keys(n);if(o.length===0)return t;let s;return o.reduce((c,u,d)=>(Array.isArray(t)?(c[u]=t[d]!=null?t[d]:t[s],s=d):typeof t=="object"?(c[u]=t[u]!=null?t[u]:t[s],s=u):c[u]=t,c),{})}function ye(t){if(typeof t!="string")throw new Error(ms(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Ii(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function Lf(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=Ii(t,r)||n,e&&(o=e(o,n,t)),o}function Hr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,s=c=>{if(c[e]==null)return null;const u=c[e],d=c.theme,f=Ii(d,n)||{};return ai(c,u,v=>{let m=Lf(f,o,v);return v===m&&typeof v=="string"&&(m=Lf(f,o,`${e}${v==="default"?"":ye(v)}`,v)),r===!1?m:{[r]:m}})};return s.propTypes={},s.filterProps=[e],s}function v5(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const x5={m:"margin",p:"padding"},b5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ew={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},w5=v5(t=>{if(t.length>2)if(ew[t])t=ew[t];else return[t];const[e,r]=t.split(""),n=x5[e],o=b5[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),Ov=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$v=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ov,...$v];function wd(t,e,r,n){const o=Ii(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),u=o[c];return s>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof o=="function"?o:()=>{}}function uh(t){return wd(t,"spacing",8)}function qa(t,e){return typeof e=="string"||e==null?e:t(e)}function S5(t,e){return r=>t.reduce((n,o)=>(n[o]=qa(e,r),n),{})}function C5(t,e,r,n){if(!e.includes(r))return null;const o=w5(r),s=S5(o,n),c=t[r];return ai(t,c,s)}function U2(t,e){const r=uh(t.theme);return Object.keys(t).map(n=>C5(t,e,n,r)).reduce($u,{})}function Lr(t){return U2(t,Ov)}Lr.propTypes={};Lr.filterProps=Ov;function Or(t){return U2(t,$v)}Or.propTypes={};Or.filterProps=$v;function V2(t=8,e=uh({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(s=>{const c=e(s);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function dh(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>e[s]?$u(o,e[s](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function $o(t){return typeof t!="number"?t:`${t}px solid`}function qo(t,e){return Hr({prop:t,themeKey:"borders",transform:e})}const E5=qo("border",$o),T5=qo("borderTop",$o),k5=qo("borderRight",$o),j5=qo("borderBottom",$o),P5=qo("borderLeft",$o),I5=qo("borderColor"),M5=qo("borderTopColor"),R5=qo("borderRightColor"),A5=qo("borderBottomColor"),_5=qo("borderLeftColor"),L5=qo("outline",$o),O5=qo("outlineColor"),ph=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=wd(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:qa(e,n)});return ai(t,t.borderRadius,r)}return null};ph.propTypes={};ph.filterProps=["borderRadius"];dh(E5,T5,k5,j5,P5,I5,M5,R5,A5,_5,ph,L5,O5);const fh=t=>{if(t.gap!==void 0&&t.gap!==null){const e=wd(t.theme,"spacing",8),r=n=>({gap:qa(e,n)});return ai(t,t.gap,r)}return null};fh.propTypes={};fh.filterProps=["gap"];const hh=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=wd(t.theme,"spacing",8),r=n=>({columnGap:qa(e,n)});return ai(t,t.columnGap,r)}return null};hh.propTypes={};hh.filterProps=["columnGap"];const mh=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=wd(t.theme,"spacing",8),r=n=>({rowGap:qa(e,n)});return ai(t,t.rowGap,r)}return null};mh.propTypes={};mh.filterProps=["rowGap"];const $5=Hr({prop:"gridColumn"}),N5=Hr({prop:"gridRow"}),B5=Hr({prop:"gridAutoFlow"}),z5=Hr({prop:"gridAutoColumns"}),D5=Hr({prop:"gridAutoRows"}),F5=Hr({prop:"gridTemplateColumns"}),H5=Hr({prop:"gridTemplateRows"}),U5=Hr({prop:"gridTemplateAreas"}),V5=Hr({prop:"gridArea"});dh(fh,hh,mh,$5,N5,B5,z5,D5,F5,H5,U5,V5);function Yl(t,e){return e==="grey"?e:t}const W5=Hr({prop:"color",themeKey:"palette",transform:Yl}),q5=Hr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yl}),G5=Hr({prop:"backgroundColor",themeKey:"palette",transform:Yl});dh(W5,q5,G5);function bo(t){return t<=1&&t!==0?`${t*100}%`:t}const X5=Hr({prop:"width",transform:bo}),Nv=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,s,c,u,d;const n=((c=(s=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:c[r])||ch[r];return n?((d=(u=t.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:bo(r)}};return ai(t,t.maxWidth,e)}return null};Nv.filterProps=["maxWidth"];const K5=Hr({prop:"minWidth",transform:bo}),Q5=Hr({prop:"height",transform:bo}),Y5=Hr({prop:"maxHeight",transform:bo}),J5=Hr({prop:"minHeight",transform:bo});Hr({prop:"size",cssProperty:"width",transform:bo});Hr({prop:"size",cssProperty:"height",transform:bo});const Z5=Hr({prop:"boxSizing"});dh(X5,Nv,K5,Q5,Y5,J5,Z5);const Sd={border:{themeKey:"borders",transform:$o},borderTop:{themeKey:"borders",transform:$o},borderRight:{themeKey:"borders",transform:$o},borderBottom:{themeKey:"borders",transform:$o},borderLeft:{themeKey:"borders",transform:$o},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$o},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ph},color:{themeKey:"palette",transform:Yl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yl},backgroundColor:{themeKey:"palette",transform:Yl},p:{style:Or},pt:{style:Or},pr:{style:Or},pb:{style:Or},pl:{style:Or},px:{style:Or},py:{style:Or},padding:{style:Or},paddingTop:{style:Or},paddingRight:{style:Or},paddingBottom:{style:Or},paddingLeft:{style:Or},paddingX:{style:Or},paddingY:{style:Or},paddingInline:{style:Or},paddingInlineStart:{style:Or},paddingInlineEnd:{style:Or},paddingBlock:{style:Or},paddingBlockStart:{style:Or},paddingBlockEnd:{style:Or},m:{style:Lr},mt:{style:Lr},mr:{style:Lr},mb:{style:Lr},ml:{style:Lr},mx:{style:Lr},my:{style:Lr},margin:{style:Lr},marginTop:{style:Lr},marginRight:{style:Lr},marginBottom:{style:Lr},marginLeft:{style:Lr},marginX:{style:Lr},marginY:{style:Lr},marginInline:{style:Lr},marginInlineStart:{style:Lr},marginInlineEnd:{style:Lr},marginBlock:{style:Lr},marginBlockStart:{style:Lr},marginBlockEnd:{style:Lr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fh},rowGap:{style:mh},columnGap:{style:hh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bo},maxWidth:{style:Nv},minWidth:{transform:bo},height:{transform:bo},maxHeight:{transform:bo},minHeight:{transform:bo},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 eI(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function tI(t,e){return typeof t=="function"?t(e):t}function rI(){function t(r,n,o,s){const c={[r]:n,theme:o},u=s[r];if(!u)return{[r]:n};const{cssProperty:d=r,themeKey:f,transform:h,style:v}=u;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const m=Ii(o,f)||{};return v?v(c):ai(c,n,x=>{let w=Lf(m,h,x);return x===w&&typeof x=="string"&&(w=Lf(m,h,`${r}${x==="default"?"":ye(x)}`,x)),d===!1?w:{[d]:w}})}function e(r){const{sx:n,theme:o={},nested:s}=r||{};if(!n)return null;const c=o.unstable_sxConfig??Sd;function u(d){let f=d;if(typeof d=="function")f=d(o);else if(typeof d!="object")return d;if(!f)return null;const h=H2(o.breakpoints),v=Object.keys(h);let m=h;return Object.keys(f).forEach(y=>{const x=tI(f[y],o);if(x!=null)if(typeof x=="object")if(c[y])m=$u(m,t(y,x,o,c));else{const w=ai({theme:o},x,C=>({[y]:C}));eI(w,x)?m[y]=e({sx:x,theme:o,nested:!0}):m=$u(m,w)}else m=$u(m,t(y,x,o,c))}),!s&&o.modularCssLayers?{"@layer sx":J1(o,vy(v,m))}:J1(o,vy(v,m))}return Array.isArray(n)?n.map(u):u(n)}return e}const ta=rI();ta.filterProps=["sx"];function nI(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function jc(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:s={},...c}=t,u=u5(r),d=V2(o);let f=dn({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...h5,...s}},c);return f=f5(f),f.applyStyles=nI,f=e.reduce((h,v)=>dn(h,v),f),f.unstable_sxConfig={...Sd,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(v){return ta({sx:v,theme:this})},f}function oI(t){return Object.keys(t).length===0}function gh(t=null){const e=b.useContext(bd);return!e||oI(e)?t:e}const iI=jc();function Cd(t=iI){return gh(t)}function Dg(t){const e=Zs(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function W2({styles:t,themeId:e,defaultTheme:r={}}){const n=Cd(r),o=e&&n[e]||n;let s=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(c=>Dg(typeof c=="function"?c(o):c)):s=Dg(s)),l.jsx(B2,{styles:s})}const sI=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??Sd;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function yh(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=sI(r);let s;return Array.isArray(e)?s=[n,...e]:typeof e=="function"?s=(...c)=>{const u=e(...c);return Mi(u)?{...n,...u}:n}:s={...n,...e},{...o,sx:s}}const tw=t=>t,aI=()=>{let t=tw;return{configure(e){t=e},generate(e){return t(e)},reset(){t=tw}}},q2=aI();function G2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=G2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Me(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=G2(t))&&(n&&(n+=" "),n+=e);return n}function lI(t={}){const{themeId:e,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=t,s=z2("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(ta);return b.forwardRef(function(d,f){const h=Cd(r),{className:v,component:m="div",...y}=yh(d);return l.jsx(s,{as:m,ref:f,className:Me(v,o?o(n):n),theme:e&&h[e]||h,...y})})}const cI={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 et(t,e,r="Mui"){const n=cI[e];return n?`${r}-${n}`:`${q2.generate(t)}-${e}`}function nt(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=et(t,o,r)}),n}function X2(t){const{variants:e,...r}=t,n={variants:e,style:Zs(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Zs(o.style))}),n}const uI=jc();function Fg(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Fa(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function dI(t){return t?(e,r)=>r[t]:null}function pI(t,e,r){t.theme=hI(t.theme)?r:t.theme[e]||t.theme}function wf(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>wf(t,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?Fa(n.style,r):n.style;else{const{variants:s,...c}=n;o=r?Fa(Zs(c),r):c}return K2(t,n.variants,[o],r)}return n!=null&&n.isProcessed?r?Fa(Zs(n.style),r):n.style:r?Fa(Zs(n),r):n}function K2(t,e,r=[],n=void 0){var s;let o;e:for(let c=0;c<e.length;c+=1){const u=e[c];if(typeof u.props=="function"){if(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),!u.props(o))continue}else for(const d in u.props)if(t[d]!==u.props[d]&&((s=t.ownerState)==null?void 0:s[d])!==u.props[d])continue e;typeof u.style=="function"?(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),r.push(n?Fa(Zs(u.style(o)),n):u.style(o))):r.push(n?Fa(Zs(u.style),n):u.style)}return r}function Q2(t={}){const{themeId:e,defaultTheme:r=uI,rootShouldForwardProp:n=Fg,slotShouldForwardProp:o=Fg}=t;function s(u){pI(u,e,r)}return(u,d={})=>{s5(u,R=>R.filter(L=>L!==ta));const{name:f,slot:h,skipVariantsResolver:v,skipSx:m,overridesResolver:y=dI(gI(h)),...x}=d,w=f&&f.startsWith("Mui")||h?"components":"custom",C=v!==void 0?v:h&&h!=="Root"&&h!=="root"||!1,j=m||!1;let k=Fg;h==="Root"||h==="root"?k=n:h?k=o:mI(u)&&(k=void 0);const I=z2(u,{shouldForwardProp:k,label:fI(),...x}),E=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(A){return wf(A,R,A.theme.modularCssLayers?w:void 0)};if(Mi(R)){const L=X2(R);return function(F){return L.variants?wf(F,L,F.theme.modularCssLayers?w:void 0):F.theme.modularCssLayers?Fa(L.style,w):L.style}}return R},M=(...R)=>{const L=[],A=R.map(E),F=[];if(L.push(s),f&&y&&F.push(function(q){var K,Y;const O=(Y=(K=q.theme.components)==null?void 0:K[f])==null?void 0:Y.styleOverrides;if(!O)return null;const U={};for(const te in O)U[te]=wf(q,O[te],q.theme.modularCssLayers?"theme":void 0);return y(q,U)}),f&&!C&&F.push(function(q){var U,K;const V=q.theme,O=(K=(U=V==null?void 0:V.components)==null?void 0:U[f])==null?void 0:K.variants;return O?K2(q,O,[],q.theme.modularCssLayers?"theme":void 0):null}),j||F.push(ta),Array.isArray(A[0])){const P=A.shift(),q=new Array(L.length).fill(""),V=new Array(F.length).fill("");let O;O=[...q,...P,...V],O.raw=[...q,...P.raw,...V],L.unshift(O)}const G=[...L,...A,...F],$=I(...G);return u.muiName&&($.muiName=u.muiName),$};return I.withConfig&&(M.withConfig=I.withConfig),M}}function fI(t,e){return void 0}function hI(t){for(const e in t)return!1;return!0}function mI(t){return typeof t=="string"&&t.charCodeAt(0)>96}function gI(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const Bv=Q2();function ic(t,e,r=!1){const n={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const s=o;if(s==="components"||s==="slots")n[s]={...t[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const c=t[s],u=e[s];if(!u)n[s]=c||{};else if(!c)n[s]=u;else{n[s]={...u};for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d)){const f=d;n[s][f]=ic(c[f],u[f],r)}}}else s==="className"&&r&&e.className?n.className=Me(t==null?void 0:t.className,e==null?void 0:e.className):s==="style"&&r&&e.style?n.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:n[s]===void 0&&(n[s]=t[s])}return n}function Y2(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:ic(e.components[r].defaultProps,n)}function zv({props:t,name:e,defaultTheme:r,themeId:n}){let o=Cd(r);return n&&(o=o[n]||o),Y2({theme:o,name:e,props:t})}const to=typeof window<"u"?b.useLayoutEffect:b.useEffect;function yI(t,e,r,n,o){const[s,c]=b.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return to(()=>{if(!r)return;const u=r(t),d=()=>{c(u.matches)};return d(),u.addEventListener("change",d),()=>{u.removeEventListener("change",d)}},[t,r]),s}const vI={...Uu},J2=vI.useSyncExternalStore;function xI(t,e,r,n,o){const s=b.useCallback(()=>e,[e]),c=b.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return s},[s,t,n,o,r]),[u,d]=b.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const h=r(t);return[()=>h.matches,v=>(h.addEventListener("change",v),()=>{h.removeEventListener("change",v)})]},[s,r,t]);return J2(d,u,c)}function Z2(t={}){const{themeId:e}=t;return function(n,o={}){let s=gh();s&&e&&(s=s[e]||s);const c=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:d=c?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=Y2({name:"MuiUseMediaQuery",props:o,theme:s});let v=typeof n=="function"?n(s):n;return v=v.replace(/^@media( ?)/m,""),v.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
83
|
+
`)),(J2!==void 0?xI:yI)(v,u,d,f,h)}}Z2();function bI(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function Dv(t,e=0,r=1){return bI(t,e,r)}function wI(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ra(t){if(t.type)return t;if(t.charAt(0)==="#")return ra(wI(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ms(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ms(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const SI=t=>{const e=ra(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Iu=(t,e)=>{try{return SI(t)}catch{return t}};function vh(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,s)=>s<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function eE(t){t=ra(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,s=n*Math.min(o,1-o),c=(f,h=(f+r/30)%12)=>o-s*Math.max(Math.min(h-3,9-h,1),-1);let u="rgb";const d=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(u+="a",d.push(e[3])),vh({type:u,values:d})}function xy(t){t=ra(t);let e=t.type==="hsl"||t.type==="hsla"?ra(eE(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function CI(t,e){const r=xy(t),n=xy(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Qu(t,e){return t=ra(t),e=Dv(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,vh(t)}function _a(t,e,r){try{return Qu(t,e)}catch{return t}}function xh(t,e){if(t=ra(t),e=Dv(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return vh(t)}function fr(t,e,r){try{return xh(t,e)}catch{return t}}function bh(t,e){if(t=ra(t),e=Dv(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return vh(t)}function hr(t,e,r){try{return bh(t,e)}catch{return t}}function by(t,e=.15){return xy(t)>.5?xh(t,e):bh(t,e)}function Up(t,e,r){try{return by(t,e)}catch{return t}}const tE=b.createContext(null);function Fv(){return b.useContext(tE)}const EI=typeof Symbol=="function"&&Symbol.for,TI=EI?Symbol.for("mui.nested"):"__THEME_NESTED__";function kI(t,e){return typeof e=="function"?e(t):{...t,...e}}function jI(t){const{children:e,theme:r}=t,n=Fv(),o=b.useMemo(()=>{const s=n===null?{...r}:kI(n,r);return s!=null&&(s[TI]=n!==null),s},[r,n]);return l.jsx(tE.Provider,{value:o,children:e})}const rE=b.createContext();function PI({value:t,...e}){return l.jsx(rE.Provider,{value:t??!0,...e})}const pa=()=>b.useContext(rE)??!1,nE=b.createContext(void 0);function II({value:t,children:e}){return l.jsx(nE.Provider,{value:t,children:e})}function MI(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?ic(o.defaultProps,n,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?ic(o,n,e.components.mergeClassNameAndStyle):n}function RI({props:t,name:e}){const r=b.useContext(nE);return MI({props:t,name:e,theme:{components:r}})}let rw=0;function AI(t){const[e,r]=b.useState(t),n=t||e;return b.useEffect(()=>{e==null&&(rw+=1,r(`mui-${rw}`))},[e]),n}const _I={...Uu},nw=_I.useId;function Hi(t){if(nw!==void 0){const e=nw();return t??e}return AI(t)}function LI(t){const e=gh(),r=Hi()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,to(()=>{var u,d;const s=document.querySelector("head");if(!s)return;const c=s.firstChild;if(o){if(c&&((u=c.hasAttribute)!=null&&u.call(c,"data-mui-layer-order"))&&c.getAttribute("data-mui-layer-order")===r)return;const f=document.createElement("style");f.setAttribute("data-mui-layer-order",r),f.textContent=o,s.prepend(f)}else(d=s.querySelector(`style[data-mui-layer-order="${r}"]`))==null||d.remove()},[o,r]),o?l.jsx(W2,{styles:o}):null}const ow={};function iw(t,e,r,n=!1){return b.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const s=r(o),c=t?{...e,[t]:s}:s;return n?()=>c:c}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function oE(t){const{children:e,theme:r,themeId:n}=t,o=gh(ow),s=Fv()||ow,c=iw(n,o,r),u=iw(n,s,r,!0),d=(n?c[n]:c).direction==="rtl",f=LI(c);return l.jsx(jI,{theme:u,children:l.jsx(bd.Provider,{value:c,children:l.jsx(PI,{value:d,children:l.jsxs(II,{value:n?c[n].components:c.components,children:[f,e]})})})})}const sw={theme:void 0};function OI(t){let e,r;return function(o){let s=e;return(s===void 0||o.theme!==r)&&(sw.theme=o.theme,s=X2(t(sw)),e=s,r=o.theme),s}}const Hv="mode",Uv="color-scheme",$I="data-color-scheme";function NI(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=Hv,colorSchemeStorageKey:s=Uv,attribute:c=$I,colorSchemeNode:u="document.documentElement",nonce:d}=t||{};let f="",h=c;if(c==="class"&&(h=".%s"),c==="data"&&(h="[data-%s]"),h.startsWith(".")){const m=h.substring(1);f+=`${u}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark));
|
|
84
|
+
${u}.classList.add('${m}'.replace('%s', colorScheme));`}const v=h.match(/\[([^[\]]+)\]/);if(v){const[m,y]=v[1].split("=");y||(f+=`${u}.removeAttribute('${m}'.replace('%s', light));
|
|
85
|
+
${u}.removeAttribute('${m}'.replace('%s', dark));`),f+=`
|
|
86
|
+
${u}.setAttribute('${m}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else h!==".%s"&&(f+=`${u}.setAttribute('${h}', colorScheme);`);return l.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
87
|
+
try {
|
|
88
|
+
let colorScheme = '';
|
|
89
|
+
const mode = localStorage.getItem('${o}') || '${e}';
|
|
90
|
+
const dark = localStorage.getItem('${s}-dark') || '${n}';
|
|
91
|
+
const light = localStorage.getItem('${s}-light') || '${r}';
|
|
92
|
+
if (mode === 'system') {
|
|
93
|
+
// handle system mode
|
|
94
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
95
|
+
if (mql.matches) {
|
|
96
|
+
colorScheme = dark
|
|
97
|
+
} else {
|
|
98
|
+
colorScheme = light
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (mode === 'light') {
|
|
102
|
+
colorScheme = light;
|
|
103
|
+
}
|
|
104
|
+
if (mode === 'dark') {
|
|
105
|
+
colorScheme = dark;
|
|
106
|
+
}
|
|
107
|
+
if (colorScheme) {
|
|
108
|
+
${f}
|
|
109
|
+
}
|
|
110
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function BI(){}const zI=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return BI;const n=o=>{const s=o.newValue;o.key===t&&r(s)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function Hg(){}function aw(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function iE(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function DI(t){return iE(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function FI(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:s=Hv,colorSchemeStorageKey:c=Uv,storageWindow:u=typeof window>"u"?void 0:window,storageManager:d=zI,noSsr:f=!1}=t,h=o.join(","),v=o.length>1,m=b.useMemo(()=>d==null?void 0:d({key:s,storageWindow:u}),[d,s,u]),y=b.useMemo(()=>d==null?void 0:d({key:`${c}-light`,storageWindow:u}),[d,c,u]),x=b.useMemo(()=>d==null?void 0:d({key:`${c}-dark`,storageWindow:u}),[d,c,u]),[w,C]=b.useState(()=>{const A=(m==null?void 0:m.get(e))||e,F=(y==null?void 0:y.get(r))||r,G=(x==null?void 0:x.get(n))||n;return{mode:A,systemMode:aw(A),lightColorScheme:F,darkColorScheme:G}}),[j,k]=b.useState(f||!v);b.useEffect(()=>{k(!0)},[]);const I=DI(w),E=b.useCallback(A=>{C(F=>{if(A===F.mode)return F;const G=A??e;return m==null||m.set(G),{...F,mode:G,systemMode:aw(G)}})},[m,e]),M=b.useCallback(A=>{A?typeof A=="string"?A&&!h.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):C(F=>{const G={...F};return iE(F,$=>{$==="light"&&(y==null||y.set(A),G.lightColorScheme=A),$==="dark"&&(x==null||x.set(A),G.darkColorScheme=A)}),G}):C(F=>{const G={...F},$=A.light===null?r:A.light,P=A.dark===null?n:A.dark;return $&&(h.includes($)?(G.lightColorScheme=$,y==null||y.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),P&&(h.includes(P)?(G.darkColorScheme=P,x==null||x.set(P)):console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`)),G}):C(F=>(y==null||y.set(r),x==null||x.set(n),{...F,lightColorScheme:r,darkColorScheme:n}))},[h,y,x,r,n]),R=b.useCallback(A=>{w.mode==="system"&&C(F=>{const G=A!=null&&A.matches?"dark":"light";return F.systemMode===G?F:{...F,systemMode:G}})},[w.mode]),L=b.useRef(R);return L.current=R,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!v)return;const A=(...G)=>L.current(...G),F=window.matchMedia("(prefers-color-scheme: dark)");return F.addListener(A),A(F),()=>{F.removeListener(A)}},[v]),b.useEffect(()=>{if(v){const A=(m==null?void 0:m.subscribe($=>{(!$||["light","dark","system"].includes($))&&E($||e)}))||Hg,F=(y==null?void 0:y.subscribe($=>{(!$||h.match($))&&M({light:$})}))||Hg,G=(x==null?void 0:x.subscribe($=>{(!$||h.match($))&&M({dark:$})}))||Hg;return()=>{A(),F(),G()}}},[M,E,h,e,u,v,m,y,x]),{...w,mode:j?w.mode:void 0,systemMode:j?w.systemMode:void 0,colorScheme:j?I:void 0,setMode:E,setColorScheme:M}}const HI="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function UI(t){const{themeId:e,theme:r={},modeStorageKey:n=Hv,colorSchemeStorageKey:o=Uv,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:u}=t,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=b.createContext(void 0),h=()=>b.useContext(f)||d,v={},m={};function y(j){var be,Pe,Ae,qe;const{children:k,theme:I,modeStorageKey:E=n,colorSchemeStorageKey:M=o,disableTransitionOnChange:R=s,storageManager:L,storageWindow:A=typeof window>"u"?void 0:window,documentNode:F=typeof document>"u"?void 0:document,colorSchemeNode:G=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:P=!1,defaultMode:q="system",forceThemeRerender:V=!1,noSsr:O}=j,U=b.useRef(!1),K=Fv(),Y=b.useContext(f),te=!!Y&&!$,Q=b.useMemo(()=>I||(typeof r=="function"?r():r),[I]),X=Q[e],re=X||Q,{colorSchemes:de=v,components:J=m,cssVarPrefix:oe}=re,Z=Object.keys(de).filter(Je=>!!de[Je]).join(","),pe=b.useMemo(()=>Z.split(","),[Z]),Se=typeof c=="string"?c:c.light,se=typeof c=="string"?c:c.dark,ae=de[Se]&&de[se]?q:((Pe=(be=de[re.defaultColorScheme])==null?void 0:be.palette)==null?void 0:Pe.mode)||((Ae=re.palette)==null?void 0:Ae.mode),{mode:Fe,setMode:ze,systemMode:Oe,lightColorScheme:Be,darkColorScheme:Le,colorScheme:Ke,setColorScheme:pt}=FI({supportedColorSchemes:pe,defaultLightColorScheme:Se,defaultDarkColorScheme:se,modeStorageKey:E,colorSchemeStorageKey:M,defaultMode:ae,storageManager:L,storageWindow:A,noSsr:O});let ce=Fe,De=Ke;te&&(ce=Y.mode,De=Y.colorScheme);let We=De||re.defaultColorScheme;re.vars&&!V&&(We=re.defaultColorScheme);const gt=b.useMemo(()=>{var Ge;const Je=((Ge=re.generateThemeVars)==null?void 0:Ge.call(re))||re.vars,Ce={...re,components:J,colorSchemes:de,cssVarPrefix:oe,vars:Je};if(typeof Ce.generateSpacing=="function"&&(Ce.spacing=Ce.generateSpacing()),We){const Ue=de[We];Ue&&typeof Ue=="object"&&Object.keys(Ue).forEach(Xe=>{Ue[Xe]&&typeof Ue[Xe]=="object"?Ce[Xe]={...Ce[Xe],...Ue[Xe]}:Ce[Xe]=Ue[Xe]})}return u?u(Ce):Ce},[re,We,J,de,oe]),$e=re.colorSchemeSelector;to(()=>{if(De&&G&&$e&&$e!=="media"){const Je=$e;let Ce=$e;if(Je==="class"&&(Ce=".%s"),Je==="data"&&(Ce="[data-%s]"),Je!=null&&Je.startsWith("data-")&&!Je.includes("%s")&&(Ce=`[${Je}="%s"]`),Ce.startsWith("."))G.classList.remove(...pe.map(Ge=>Ce.substring(1).replace("%s",Ge))),G.classList.add(Ce.substring(1).replace("%s",De));else{const Ge=Ce.replace("%s",De).match(/\[([^\]]+)\]/);if(Ge){const[Ue,Xe]=Ge[1].split("=");Xe||pe.forEach(Mt=>{G.removeAttribute(Ue.replace(De,Mt))}),G.setAttribute(Ue,Xe?Xe.replace(/"|'/g,""):"")}else G.setAttribute(Ce,De)}}},[De,$e,G,pe]),b.useEffect(()=>{let Je;if(R&&U.current&&F){const Ce=F.createElement("style");Ce.appendChild(F.createTextNode(HI)),F.head.appendChild(Ce),window.getComputedStyle(F.body),Je=setTimeout(()=>{F.head.removeChild(Ce)},1)}return()=>{clearTimeout(Je)}},[De,R,F]),b.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const zt=b.useMemo(()=>({allColorSchemes:pe,colorScheme:De,darkColorScheme:Le,lightColorScheme:Be,mode:ce,setColorScheme:pt,setMode:ze,systemMode:Oe}),[pe,De,Le,Be,ce,pt,ze,Oe,gt.colorSchemeSelector]);let vt=!0;(P||re.cssVariables===!1||te&&(K==null?void 0:K.cssVarPrefix)===oe)&&(vt=!1);const fe=l.jsxs(b.Fragment,{children:[l.jsx(oE,{themeId:X?e:void 0,theme:gt,children:k}),vt&&l.jsx(B2,{styles:((qe=gt.generateStyleSheets)==null?void 0:qe.call(gt))||[]})]});return te?fe:l.jsx(f.Provider,{value:zt,children:fe})}const x=typeof c=="string"?c:c.light,w=typeof c=="string"?c:c.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:j=>NI({colorSchemeStorageKey:o,defaultLightColorScheme:x,defaultDarkColorScheme:w,modeStorageKey:n,...j})}}function VI(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const lw=(t,e,r,n=[])=>{let o=t;e.forEach((s,c)=>{c===e.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=n.includes(s)?[]:{}),o=o[s])})},WI=(t,e,r)=>{function n(o,s=[],c=[]){Object.entries(o).forEach(([u,d])=>{(!r||r&&!r([...s,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...s,u],Array.isArray(d)?[...c,u]:c):e([...s,u],d,c))})}n(t)},qI=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Ug(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},s={},c={};return WI(t,(u,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(u,d))){const h=`--${r?`${r}-`:""}${u.join("-")}`,v=qI(u,d);Object.assign(o,{[h]:v}),lw(s,u,`var(${h})`,f),lw(c,u,`var(${h}, ${v})`,f)}},u=>u[0]==="vars"),{css:o,vars:s,varsWithDefaults:c}}function GI(t,e={}){const{getSelector:r=j,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:s}=e,{colorSchemes:c={},components:u,defaultColorScheme:d="light",...f}=t,{vars:h,css:v,varsWithDefaults:m}=Ug(f,e);let y=m;const x={},{[d]:w,...C}=c;if(Object.entries(C||{}).forEach(([E,M])=>{const{vars:R,css:L,varsWithDefaults:A}=Ug(M,e);y=dn(y,A),x[E]={css:L,vars:R}}),w){const{css:E,vars:M,varsWithDefaults:R}=Ug(w,e);y=dn(y,R),x[d]={css:E,vars:M}}function j(E,M){var L,A;let R=o;if(o==="class"&&(R=".%s"),o==="data"&&(R="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(R=`[${o}="%s"]`),E){if(R==="media")return t.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((A=(L=c[E])==null?void 0:L.palette)==null?void 0:A.mode)||E})`]:{":root":M}};if(R)return t.defaultColorScheme===E?`:root, ${R.replace("%s",String(E))}`:R.replace("%s",String(E))}return":root"}return{vars:y,generateThemeVars:()=>{let E={...h};return Object.entries(x).forEach(([,{vars:M}])=>{E=dn(E,M)}),E},generateStyleSheets:()=>{var F,G;const E=[],M=t.defaultColorScheme||"light";function R($,P){Object.keys(P).length&&E.push(typeof $=="string"?{[$]:{...P}}:$)}R(r(void 0,{...v}),v);const{[M]:L,...A}=x;if(L){const{css:$}=L,P=(G=(F=c[M])==null?void 0:F.palette)==null?void 0:G.mode,q=!n&&P?{colorScheme:P,...$}:{...$};R(r(M,{...q}),q)}return Object.entries(A).forEach(([$,{css:P}])=>{var O,U;const q=(U=(O=c[$])==null?void 0:O.palette)==null?void 0:U.mode,V=!n&&q?{colorScheme:q,...P}:{...P};R(r($,{...V}),V)}),s&&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 XI(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}function tt(t,e,r=void 0){const n={};for(const o in t){const s=t[o];let c="",u=!0;for(let d=0;d<s.length;d+=1){const f=s[d];f&&(c+=(u===!0?"":" ")+e(f),u=!1,r&&r[f]&&(c+=" "+r[f]))}n[o]=c}return n}const KI=jc(),QI=Bv("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${ye(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),YI=t=>zv({props:t,name:"MuiContainer",defaultTheme:KI}),JI=(t,e)=>{const r=d=>et(e,d),{classes:n,fixed:o,disableGutters:s,maxWidth:c}=t,u={root:["root",c&&`maxWidth${ye(String(c))}`,o&&"fixed",s&&"disableGutters"]};return tt(u,r,n)};function ZI(t={}){const{createStyledComponent:e=QI,useThemeProps:r=YI,componentName:n="MuiContainer"}=t,o=e(({theme:c,ownerState:u})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!u.disableGutters&&{paddingLeft:c.spacing(2),paddingRight:c.spacing(2),[c.breakpoints.up("sm")]:{paddingLeft:c.spacing(3),paddingRight:c.spacing(3)}}}),({theme:c,ownerState:u})=>u.fixed&&Object.keys(c.breakpoints.values).reduce((d,f)=>{const h=f,v=c.breakpoints.values[h];return v!==0&&(d[c.breakpoints.up(h)]={maxWidth:`${v}${c.breakpoints.unit}`}),d},{}),({theme:c,ownerState:u})=>({...u.maxWidth==="xs"&&{[c.breakpoints.up("xs")]:{maxWidth:Math.max(c.breakpoints.values.xs,444)}},...u.maxWidth&&u.maxWidth!=="xs"&&{[c.breakpoints.up(u.maxWidth)]:{maxWidth:`${c.breakpoints.values[u.maxWidth]}${c.breakpoints.unit}`}}}));return b.forwardRef(function(u,d){const f=r(u),{className:h,component:v="div",disableGutters:m=!1,fixed:y=!1,maxWidth:x="lg",classes:w,...C}=f,j={...f,component:v,disableGutters:m,fixed:y,maxWidth:x},k=JI(j,n);return l.jsx(o,{as:v,ownerState:j,className:Me(k.root,h),ref:d,...C})})}function Sf(t,e){var r,n,o;return b.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}const eM=(t,e)=>t.filter(r=>e.includes(r)),Pc=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,s)=>{r((c,u)=>{s<=t.keys.length-1&&(s===0?Object.assign(c,u):c[t.up(t.keys[s])]=u)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:eM(t.keys,Object.keys(e))).forEach(s=>{if(t.keys.includes(s)){const c=e[s];c!==void 0&&r((u,d)=>{n===s?Object.assign(u,d):u[t.up(s)]=d},c)}}):(typeof e=="number"||typeof e=="string")&&r((o,s)=>{Object.assign(o,s)},e)};function Of(t){return`--Grid-${t}Spacing`}function wh(t){return`--Grid-parent-${t}Spacing`}const cw="--Grid-columns",Jl="--Grid-parent-columns",tM=({theme:t,ownerState:e})=>{const r={};return Pc(t.breakpoints,e.size,(n,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Jl}) - (var(${Jl}) - ${o}) * (var(${wh("column")}) / var(${Jl})))`}),n(r,s)}),r},rM=({theme:t,ownerState:e})=>{const r={};return Pc(t.breakpoints,e.offset,(n,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Jl}) + var(${wh("column")}) * ${o} / var(${Jl}))`}),n(r,s)}),r},nM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[cw]:12};return Pc(t.breakpoints,e.columns,(n,o)=>{const s=o??12;n(r,{[cw]:s,"> *":{[Jl]:s}})}),r},oM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Pc(t.breakpoints,e.rowSpacing,(n,o)=>{var c;const s=typeof o=="string"?o:(c=t.spacing)==null?void 0:c.call(t,o);n(r,{[Of("row")]:s,"> *":{[wh("row")]:s}})}),r},iM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Pc(t.breakpoints,e.columnSpacing,(n,o)=>{var c;const s=typeof o=="string"?o:(c=t.spacing)==null?void 0:c.call(t,o);n(r,{[Of("column")]:s,"> *":{[wh("column")]:s}})}),r},sM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Pc(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},aM=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${Of("row")}) var(${Of("column")})`}}),lM=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},cM=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,s])=>{r(s)&&n.push(`spacing-${o}-${String(s)}`)}),n}return[]},uM=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function dM(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const pM=jc(),fM=Bv("div",{name:"MuiGrid",slot:"Root"});function hM(t){return zv({props:t,name:"MuiGrid",defaultTheme:pM})}function mM(t={}){const{createStyledComponent:e=fM,useThemeProps:r=hM,useTheme:n=Cd,componentName:o="MuiGrid"}=t,s=(f,h)=>{const{container:v,direction:m,spacing:y,wrap:x,size:w}=f,C={root:["root",v&&"container",x!=="wrap"&&`wrap-xs-${String(x)}`,...uM(m),...lM(w),...v?cM(y,h.breakpoints.keys[0]):[]]};return tt(C,j=>et(o,j),{})};function c(f,h,v=()=>!0){const m={};return f===null||(Array.isArray(f)?f.forEach((y,x)=>{y!==null&&v(y)&&h.keys[x]&&(m[h.keys[x]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const x=f[y];x!=null&&v(x)&&(m[y]=x)}):m[h.keys[0]]=f),m}const u=e(nM,iM,oM,tM,sM,aM,rM),d=b.forwardRef(function(h,v){const m=n(),y=r(h),x=yh(y);dM(x,m.breakpoints);const{className:w,children:C,columns:j=12,container:k=!1,component:I="div",direction:E="row",wrap:M="wrap",size:R={},offset:L={},spacing:A=0,rowSpacing:F=A,columnSpacing:G=A,unstable_level:$=0,...P}=x,q=c(R,m.breakpoints,X=>X!==!1),V=c(L,m.breakpoints),O=h.columns??($?void 0:j),U=h.spacing??($?void 0:A),K=h.rowSpacing??h.spacing??($?void 0:F),Y=h.columnSpacing??h.spacing??($?void 0:G),te={...x,level:$,columns:O,container:k,direction:E,wrap:M,spacing:U,rowSpacing:K,columnSpacing:Y,size:q,offset:V},Q=s(te,m);return l.jsx(u,{ref:v,as:I,ownerState:te,className:Me(Q.root,w),...P,children:b.Children.map(C,X=>{var re;return b.isValidElement(X)&&Sf(X,["Grid"])&&k&&X.props.container?b.cloneElement(X,{unstable_level:((re=X.props)==null?void 0:re.unstable_level)??$+1}):X})})});return d.muiName="Grid",d}const gM=jc(),yM=Bv("div",{name:"MuiStack",slot:"Root"});function vM(t){return zv({props:t,name:"MuiStack",defaultTheme:gM})}function xM(t,e){const r=b.Children.toArray(t).filter(Boolean);return r.reduce((n,o,s)=>(n.push(o),s<r.length-1&&n.push(b.cloneElement(e,{key:`separator-${s}`})),n),[])}const bM=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],wM=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...ai({theme:e},zg({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=uh(e),o=Object.keys(e.breakpoints.values).reduce((d,f)=>((typeof t.spacing=="object"&&t.spacing[f]!=null||typeof t.direction=="object"&&t.direction[f]!=null)&&(d[f]=!0),d),{}),s=zg({values:t.direction,base:o}),c=zg({values:t.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((d,f,h)=>{if(!s[d]){const m=f>0?s[h[f-1]]:"column";s[d]=m}}),r=dn(r,ai({theme:e},c,(d,f)=>t.useFlexGap?{gap:qa(n,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${bM(f?s[f]:t.direction)}`]:qa(n,d)}}))}return r=g5(e.breakpoints,r),r};function SM(t={}){const{createStyledComponent:e=yM,useThemeProps:r=vM,componentName:n="MuiStack"}=t,o=()=>tt({root:["root"]},d=>et(n,d),{}),s=e(wM);return b.forwardRef(function(d,f){const h=r(d),v=yh(h),{component:m="div",direction:y="column",spacing:x=0,divider:w,children:C,className:j,useFlexGap:k=!1,...I}=v,E={direction:y,spacing:x,useFlexGap:k},M=o();return l.jsx(s,{as:m,ownerState:E,ref:f,className:Me(M.root,j),...I,children:w?xM(C,w):C})})}function sE(){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:qu.white,default:qu.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 aE=sE();function lE(){return{text:{primary:qu.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:qu.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 wy=lE();function uw(t,e,r,n){const o=n.light||n,s=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=bh(t.main,o):e==="dark"&&(t.dark=xh(t.main,s)))}function dw(t,e,r,n,o){const s=o.light||o,c=o.dark||o*1.5;e[r]||(e.hasOwnProperty(n)?e[r]=e[n]:r==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(c*100).toFixed(0)}%)`))}function CM(t="light"){return t==="dark"?{main:$l[200],light:$l[50],dark:$l[400]}:{main:$l[700],light:$l[400],dark:$l[800]}}function EM(t="light"){return t==="dark"?{main:Ol[200],light:Ol[50],dark:Ol[400]}:{main:Ol[500],light:Ol[300],dark:Ol[700]}}function TM(t="light"){return t==="dark"?{main:Ll[500],light:Ll[300],dark:Ll[700]}:{main:Ll[700],light:Ll[400],dark:Ll[800]}}function kM(t="light"){return t==="dark"?{main:Nl[400],light:Nl[300],dark:Nl[700]}:{main:Nl[700],light:Nl[500],dark:Nl[900]}}function jM(t="light"){return t==="dark"?{main:Bl[400],light:Bl[300],dark:Bl[700]}:{main:Bl[800],light:Bl[500],dark:Bl[900]}}function PM(t="light"){return t==="dark"?{main:mu[400],light:mu[300],dark:mu[700]}:{main:"#ed6c02",light:mu[500],dark:mu[900]}}function IM(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function Vv(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...s}=t,c=t.primary||CM(e),u=t.secondary||EM(e),d=t.error||TM(e),f=t.info||kM(e),h=t.success||jM(e),v=t.warning||PM(e);function m(C){return o?IM(C):CI(C,wy.text.primary)>=r?wy.text.primary:aE.text.primary}const y=({color:C,name:j,mainShade:k=500,lightShade:I=300,darkShade:E=700})=>{if(C={...C},!C.main&&C[k]&&(C.main=C[k]),!C.hasOwnProperty("main"))throw new Error(ms(11,j?` (${j})`:"",k));if(typeof C.main!="string")throw new Error(ms(12,j?` (${j})`:"",JSON.stringify(C.main)));return o?(dw(o,C,"light",I,n),dw(o,C,"dark",E,n)):(uw(C,"light",I,n),uw(C,"dark",E,n)),C.contrastText||(C.contrastText=m(C.main)),C};let x;return e==="light"?x=sE():e==="dark"&&(x=lE()),dn({common:{...qu},mode:e,primary:y({color:c,name:"primary"}),secondary:y({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:d,name:"error"}),warning:y({color:v,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:h,name:"success"}),grey:a3,contrastThreshold:r,getContrastText:m,augmentColor:y,tonalOffset:n,...x},s)}function MM(t){const e={};return Object.entries(t).forEach(n=>{const[o,s]=n;typeof s=="object"&&(e[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),e}function RM(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function AM(t){return Math.round(t*1e5)/1e5}const pw={textTransform:"uppercase"},fw='"Roboto", "Helvetica", "Arial", sans-serif';function cE(t,e){const{fontFamily:r=fw,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:h,...v}=typeof e=="function"?e(t):e,m=n/14,y=h||(C=>`${C/d*m}rem`),x=(C,j,k,I,E)=>({fontFamily:r,fontWeight:C,fontSize:y(j),lineHeight:k,...r===fw?{letterSpacing:`${AM(I/j)}em`}:{},...E,...f}),w={h1:x(o,96,1.167,-1.5),h2:x(o,60,1.2,-.5),h3:x(s,48,1.167,0),h4:x(s,34,1.235,.25),h5:x(s,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(s,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(s,16,1.5,.15),body2:x(s,14,1.43,.15),button:x(c,14,1.75,.4,pw),caption:x(s,12,1.66,.4),overline:x(s,12,2.66,1,pw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return dn({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u,...w},v,{clone:!1})}const _M=.2,LM=.14,OM=.12;function Ir(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${_M})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${LM})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${OM})`].join(",")}const $M=["none",Ir(0,2,1,-1,0,1,1,0,0,1,3,0),Ir(0,3,1,-2,0,2,2,0,0,1,5,0),Ir(0,3,3,-2,0,3,4,0,0,1,8,0),Ir(0,2,4,-1,0,4,5,0,0,1,10,0),Ir(0,3,5,-1,0,5,8,0,0,1,14,0),Ir(0,3,5,-1,0,6,10,0,0,1,18,0),Ir(0,4,5,-2,0,7,10,1,0,2,16,1),Ir(0,5,5,-3,0,8,10,1,0,3,14,2),Ir(0,5,6,-3,0,9,12,1,0,3,16,2),Ir(0,6,6,-3,0,10,14,1,0,4,18,3),Ir(0,6,7,-4,0,11,15,1,0,4,20,3),Ir(0,7,8,-4,0,12,17,2,0,5,22,4),Ir(0,7,8,-4,0,13,19,2,0,5,24,4),Ir(0,7,9,-4,0,14,21,2,0,5,26,4),Ir(0,8,9,-5,0,15,22,2,0,6,28,5),Ir(0,8,10,-5,0,16,24,2,0,6,30,5),Ir(0,8,11,-5,0,17,26,2,0,6,32,5),Ir(0,9,11,-5,0,18,28,2,0,7,34,6),Ir(0,9,12,-6,0,19,29,2,0,7,36,6),Ir(0,10,13,-6,0,20,31,3,0,8,38,7),Ir(0,10,13,-6,0,21,33,3,0,8,40,7),Ir(0,10,14,-6,0,22,35,3,0,8,42,7),Ir(0,11,14,-7,0,23,36,3,0,9,44,8),Ir(0,11,15,-7,0,24,38,3,0,9,46,8)],NM={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)"},uE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hw(t){return`${Math.round(t)}ms`}function BM(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function zM(t){const e={...NM,...t.easing},r={...uE,...t.duration};return{getAutoHeightDuration:BM,create:(o=["all"],s={})=>{const{duration:c=r.standard,easing:u=e.easeInOut,delay:d=0,...f}=s;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof c=="string"?c:hw(c)} ${u} ${typeof d=="string"?d:hw(d)}`).join(",")},...t,easing:e,duration:r}}const DM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function FM(t){return Mi(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function dE(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let s=0;s<o.length;s++){const[c,u]=o[s];!FM(u)||c.startsWith("unstable_")?delete n[c]:Mi(u)&&(n[c]={...u},r(n[c]))}}return r(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
111
|
+
|
|
112
|
+
const theme = ${JSON.stringify(e,null,2)};
|
|
113
|
+
|
|
114
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
115
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
116
|
+
|
|
117
|
+
export default theme;`}function mw(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const HM=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let r=0;for(let n=0;n<e.length;n+=1)r+=+e[n];return r};function UM(t){Object.assign(t,{alpha(e,r){const n=this||t;return n.colorSpace?`oklch(from ${e} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Qu(e,HM(r))},lighten(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #fff ${mw(r)})`:bh(e,r)},darken(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #000 ${mw(r)})`:xh(e,r)}})}function Sy(t={},...e){const{breakpoints:r,mixins:n={},spacing:o,palette:s={},transitions:c={},typography:u={},shape:d,colorSpace:f,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(ms(20));const v=Vv({...s,colorSpace:f}),m=jc(t);let y=dn(m,{mixins:RM(m.breakpoints,n),palette:v,shadows:$M.slice(),typography:cE(v,u),transitions:zM(c),zIndex:{...DM}});return y=dn(y,h),y=e.reduce((x,w)=>dn(x,w),y),y.unstable_sxConfig={...Sd,...h==null?void 0:h.unstable_sxConfig},y.unstable_sx=function(w){return ta({sx:w,theme:this})},y.toRuntimeSource=dE,UM(y),y}function Cy(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const VM=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=Cy(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function pE(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function fE(t){return t==="dark"?VM:[]}function WM(t){const{palette:e={mode:"light"},opacity:r,overlays:n,colorSpace:o,...s}=t,c=Vv({...e,colorSpace:o});return{palette:c,opacity:{...pE(c.mode),...r},overlays:n||fE(c.mode),...s}}function qM(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const GM=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],XM=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const c={};return GM(t.cssVarPrefix).forEach(u=>{c[u]=r[u],delete r[u]}),s==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:c}}:s?{[s.replace("%s",e)]:c,[`${n}, ${s.replace("%s",e)}`]:r}:{[n]:{...r,...c}}}if(s&&s!=="media")return`${n}, ${s.replace("%s",String(e))}`}else if(e){if(s==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(s)return s.replace("%s",String(e))}return n};function KM(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function je(t,e,r){!t[e]&&r&&(t[e]=r)}function Mu(t){return typeof t!="string"||!t.startsWith("hsl")?t:eE(t)}function cs(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Iu(Mu(t[e])))}function QM(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const wi=t=>{try{return t()}catch{}},YM=(t="mui")=>VI(t);function Vg(t,e,r,n,o){if(!r)return;r=r===!0?{}:r;const s=o==="dark"?"dark":"light";if(!n){e[o]=WM({...r,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:t});return}const{palette:c,...u}=Sy({...n,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:t});return e[o]={...r,palette:c,opacity:{...pE(s),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||fE(s)},u}function JM(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:c=!1,shouldSkipGeneratingVar:u=qM,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...h}=t,v=Object.keys(r)[0],m=n||(r.light&&v!=="light"?"light":v),y=YM(s),{[m]:x,light:w,dark:C,...j}=r,k={...j};let I=x;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(I=!0),!I)throw new Error(ms(21,m));let E;c&&(E="oklch");const M=Vg(E,k,I,h,m);w&&!k.light&&Vg(E,k,w,void 0,"light"),C&&!k.dark&&Vg(E,k,C,void 0,"dark");let R={defaultColorScheme:m,...M,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:f,getCssVar:y,colorSchemes:k,font:{...MM(M.typography),...M.font},spacing:QM(h.spacing)};Object.keys(R.colorSchemes).forEach($=>{const P=R.colorSchemes[$].palette,q=O=>{const U=O.split("-"),K=U[1],Y=U[2];return y(O,P[K][Y])};P.mode==="light"&&(je(P.common,"background","#fff"),je(P.common,"onBackground","#000")),P.mode==="dark"&&(je(P.common,"background","#000"),je(P.common,"onBackground","#fff"));function V(O,U,K){if(E){let Y;return O===_a&&(Y=`transparent ${((1-K)*100).toFixed(0)}%`),O===fr&&(Y=`#000 ${(K*100).toFixed(0)}%`),O===hr&&(Y=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${E}, ${U}, ${Y})`}return O(U,K)}if(KM(P,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),P.mode==="light"){je(P.Alert,"errorColor",V(fr,P.error.light,.6)),je(P.Alert,"infoColor",V(fr,P.info.light,.6)),je(P.Alert,"successColor",V(fr,P.success.light,.6)),je(P.Alert,"warningColor",V(fr,P.warning.light,.6)),je(P.Alert,"errorFilledBg",q("palette-error-main")),je(P.Alert,"infoFilledBg",q("palette-info-main")),je(P.Alert,"successFilledBg",q("palette-success-main")),je(P.Alert,"warningFilledBg",q("palette-warning-main")),je(P.Alert,"errorFilledColor",wi(()=>P.getContrastText(P.error.main))),je(P.Alert,"infoFilledColor",wi(()=>P.getContrastText(P.info.main))),je(P.Alert,"successFilledColor",wi(()=>P.getContrastText(P.success.main))),je(P.Alert,"warningFilledColor",wi(()=>P.getContrastText(P.warning.main))),je(P.Alert,"errorStandardBg",V(hr,P.error.light,.9)),je(P.Alert,"infoStandardBg",V(hr,P.info.light,.9)),je(P.Alert,"successStandardBg",V(hr,P.success.light,.9)),je(P.Alert,"warningStandardBg",V(hr,P.warning.light,.9)),je(P.Alert,"errorIconColor",q("palette-error-main")),je(P.Alert,"infoIconColor",q("palette-info-main")),je(P.Alert,"successIconColor",q("palette-success-main")),je(P.Alert,"warningIconColor",q("palette-warning-main")),je(P.AppBar,"defaultBg",q("palette-grey-100")),je(P.Avatar,"defaultBg",q("palette-grey-400")),je(P.Button,"inheritContainedBg",q("palette-grey-300")),je(P.Button,"inheritContainedHoverBg",q("palette-grey-A100")),je(P.Chip,"defaultBorder",q("palette-grey-400")),je(P.Chip,"defaultAvatarColor",q("palette-grey-700")),je(P.Chip,"defaultIconColor",q("palette-grey-700")),je(P.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),je(P.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),je(P.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),je(P.LinearProgress,"primaryBg",V(hr,P.primary.main,.62)),je(P.LinearProgress,"secondaryBg",V(hr,P.secondary.main,.62)),je(P.LinearProgress,"errorBg",V(hr,P.error.main,.62)),je(P.LinearProgress,"infoBg",V(hr,P.info.main,.62)),je(P.LinearProgress,"successBg",V(hr,P.success.main,.62)),je(P.LinearProgress,"warningBg",V(hr,P.warning.main,.62)),je(P.Skeleton,"bg",E?V(_a,P.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),je(P.Slider,"primaryTrack",V(hr,P.primary.main,.62)),je(P.Slider,"secondaryTrack",V(hr,P.secondary.main,.62)),je(P.Slider,"errorTrack",V(hr,P.error.main,.62)),je(P.Slider,"infoTrack",V(hr,P.info.main,.62)),je(P.Slider,"successTrack",V(hr,P.success.main,.62)),je(P.Slider,"warningTrack",V(hr,P.warning.main,.62));const O=E?V(fr,P.background.default,.6825):Up(P.background.default,.8);je(P.SnackbarContent,"bg",O),je(P.SnackbarContent,"color",wi(()=>E?wy.text.primary:P.getContrastText(O))),je(P.SpeedDialAction,"fabHoverBg",Up(P.background.paper,.15)),je(P.StepConnector,"border",q("palette-grey-400")),je(P.StepContent,"border",q("palette-grey-400")),je(P.Switch,"defaultColor",q("palette-common-white")),je(P.Switch,"defaultDisabledColor",q("palette-grey-100")),je(P.Switch,"primaryDisabledColor",V(hr,P.primary.main,.62)),je(P.Switch,"secondaryDisabledColor",V(hr,P.secondary.main,.62)),je(P.Switch,"errorDisabledColor",V(hr,P.error.main,.62)),je(P.Switch,"infoDisabledColor",V(hr,P.info.main,.62)),je(P.Switch,"successDisabledColor",V(hr,P.success.main,.62)),je(P.Switch,"warningDisabledColor",V(hr,P.warning.main,.62)),je(P.TableCell,"border",V(hr,V(_a,P.divider,1),.88)),je(P.Tooltip,"bg",V(_a,P.grey[700],.92))}if(P.mode==="dark"){je(P.Alert,"errorColor",V(hr,P.error.light,.6)),je(P.Alert,"infoColor",V(hr,P.info.light,.6)),je(P.Alert,"successColor",V(hr,P.success.light,.6)),je(P.Alert,"warningColor",V(hr,P.warning.light,.6)),je(P.Alert,"errorFilledBg",q("palette-error-dark")),je(P.Alert,"infoFilledBg",q("palette-info-dark")),je(P.Alert,"successFilledBg",q("palette-success-dark")),je(P.Alert,"warningFilledBg",q("palette-warning-dark")),je(P.Alert,"errorFilledColor",wi(()=>P.getContrastText(P.error.dark))),je(P.Alert,"infoFilledColor",wi(()=>P.getContrastText(P.info.dark))),je(P.Alert,"successFilledColor",wi(()=>P.getContrastText(P.success.dark))),je(P.Alert,"warningFilledColor",wi(()=>P.getContrastText(P.warning.dark))),je(P.Alert,"errorStandardBg",V(fr,P.error.light,.9)),je(P.Alert,"infoStandardBg",V(fr,P.info.light,.9)),je(P.Alert,"successStandardBg",V(fr,P.success.light,.9)),je(P.Alert,"warningStandardBg",V(fr,P.warning.light,.9)),je(P.Alert,"errorIconColor",q("palette-error-main")),je(P.Alert,"infoIconColor",q("palette-info-main")),je(P.Alert,"successIconColor",q("palette-success-main")),je(P.Alert,"warningIconColor",q("palette-warning-main")),je(P.AppBar,"defaultBg",q("palette-grey-900")),je(P.AppBar,"darkBg",q("palette-background-paper")),je(P.AppBar,"darkColor",q("palette-text-primary")),je(P.Avatar,"defaultBg",q("palette-grey-600")),je(P.Button,"inheritContainedBg",q("palette-grey-800")),je(P.Button,"inheritContainedHoverBg",q("palette-grey-700")),je(P.Chip,"defaultBorder",q("palette-grey-700")),je(P.Chip,"defaultAvatarColor",q("palette-grey-300")),je(P.Chip,"defaultIconColor",q("palette-grey-300")),je(P.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),je(P.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),je(P.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),je(P.LinearProgress,"primaryBg",V(fr,P.primary.main,.5)),je(P.LinearProgress,"secondaryBg",V(fr,P.secondary.main,.5)),je(P.LinearProgress,"errorBg",V(fr,P.error.main,.5)),je(P.LinearProgress,"infoBg",V(fr,P.info.main,.5)),je(P.LinearProgress,"successBg",V(fr,P.success.main,.5)),je(P.LinearProgress,"warningBg",V(fr,P.warning.main,.5)),je(P.Skeleton,"bg",E?V(_a,P.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),je(P.Slider,"primaryTrack",V(fr,P.primary.main,.5)),je(P.Slider,"secondaryTrack",V(fr,P.secondary.main,.5)),je(P.Slider,"errorTrack",V(fr,P.error.main,.5)),je(P.Slider,"infoTrack",V(fr,P.info.main,.5)),je(P.Slider,"successTrack",V(fr,P.success.main,.5)),je(P.Slider,"warningTrack",V(fr,P.warning.main,.5));const O=E?V(hr,P.background.default,.985):Up(P.background.default,.98);je(P.SnackbarContent,"bg",O),je(P.SnackbarContent,"color",wi(()=>E?aE.text.primary:P.getContrastText(O))),je(P.SpeedDialAction,"fabHoverBg",Up(P.background.paper,.15)),je(P.StepConnector,"border",q("palette-grey-600")),je(P.StepContent,"border",q("palette-grey-600")),je(P.Switch,"defaultColor",q("palette-grey-300")),je(P.Switch,"defaultDisabledColor",q("palette-grey-600")),je(P.Switch,"primaryDisabledColor",V(fr,P.primary.main,.55)),je(P.Switch,"secondaryDisabledColor",V(fr,P.secondary.main,.55)),je(P.Switch,"errorDisabledColor",V(fr,P.error.main,.55)),je(P.Switch,"infoDisabledColor",V(fr,P.info.main,.55)),je(P.Switch,"successDisabledColor",V(fr,P.success.main,.55)),je(P.Switch,"warningDisabledColor",V(fr,P.warning.main,.55)),je(P.TableCell,"border",V(fr,V(_a,P.divider,1),.68)),je(P.Tooltip,"bg",V(_a,P.grey[700],.92))}cs(P.background,"default"),cs(P.background,"paper"),cs(P.common,"background"),cs(P.common,"onBackground"),cs(P,"divider"),Object.keys(P).forEach(O=>{const U=P[O];O!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&je(P[O],"mainChannel",Iu(Mu(U.main))),U.light&&je(P[O],"lightChannel",Iu(Mu(U.light))),U.dark&&je(P[O],"darkChannel",Iu(Mu(U.dark))),U.contrastText&&je(P[O],"contrastTextChannel",Iu(Mu(U.contrastText))),O==="text"&&(cs(P[O],"primary"),cs(P[O],"secondary")),O==="action"&&(U.active&&cs(P[O],"active"),U.selected&&cs(P[O],"selected")))})}),R=e.reduce(($,P)=>dn($,P),R);const L={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:u,getSelector:XM(R),enableContrastVars:c},{vars:A,generateThemeVars:F,generateStyleSheets:G}=GI(R,L);return R.vars=A,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([$,P])=>{R[$]=P}),R.generateThemeVars=F,R.generateStyleSheets=G,R.generateSpacing=function(){return V2(h.spacing,uh(this))},R.getColorSchemeSelector=XI(d),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=u,R.unstable_sxConfig={...Sd,...h==null?void 0:h.unstable_sxConfig},R.unstable_sx=function(P){return ta({sx:P,theme:this})},R.toRuntimeSource=dE,R}function gw(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:Vv({...r===!0?{}:r.palette,mode:e})})}function Sh(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...c}=t,u=s||"light",d=o==null?void 0:o[u],f={...o,...r?{[u]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return Sy(t,...e);let h=r;"palette"in t||f[u]&&(f[u]!==!0?h=f[u].palette:u==="dark"&&(h={mode:"dark"}));const v=Sy({...t,palette:h},...e);return v.defaultColorScheme=u,v.colorSchemes=f,v.palette.mode==="light"&&(v.colorSchemes.light={...f.light!==!0&&f.light,palette:v.palette},gw(v,"dark",f.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:v.palette},gw(v,"light",f.light)),v}return!r&&!("light"in f)&&u==="light"&&(f.light=!0),JM({...c,colorSchemes:f,defaultColorScheme:u,...typeof n!="boolean"&&n},...e)}function ZM(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function eR(t){return parseFloat(t)}const Wv=Sh();function io(){const t=Cd(Wv);return t[si]||t}function hE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Dn=t=>hE(t)&&t!=="classes",ve=Q2({themeId:si,defaultTheme:Wv,rootShouldForwardProp:Dn});function tR({theme:t,...e}){const r=si in t?t[si]:void 0;return l.jsx(oE,{...e,themeId:r?si:void 0,theme:r||t})}const Vp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:rR}=UI({themeId:si,theme:()=>Sh({cssVariables:!0}),colorSchemeStorageKey:Vp.colorSchemeStorageKey,modeStorageKey:Vp.modeStorageKey,defaultColorScheme:{light:Vp.defaultLightColorScheme,dark:Vp.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:cE(t.palette,t.typography)};return e.unstable_sx=function(n){return ta({sx:n,theme:this})},e}}),nR=rR;function oR({theme:t,...e}){const r=b.useMemo(()=>{if(typeof t=="function")return t;const n=si in t?t[si]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?l.jsx(tR,{theme:r,...e}):l.jsx(nR,{theme:t,...e})}function yw(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function iR(t){return l.jsx(W2,{...t,defaultTheme:Wv,themeId:si})}function sR(t){return function(r){return l.jsx(iR,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function aR(){return yh}const Ye=OI;function ot(t){return RI(t)}function lR(t){return et("MuiSvgIcon",t)}nt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cR=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${ye(e)}`,`fontSize${ye(r)}`]};return tt(o,lR,n)},uR=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${ye(r.color)}`],e[`fontSize${ye(r.fontSize)}`]]}})(Ye(({theme:t})=>{var e,r,n,o,s,c,u,d,f,h,v,m,y,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,w])=>w&&w.main).map(([w])=>{var C,j;return{props:{color:w},style:{color:(j=(C=(t.vars??t).palette)==null?void 0:C[w])==null?void 0:j.main}}}),{props:{color:"action"},style:{color:(m=(v=(t.vars??t).palette)==null?void 0:v.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(x=(y=(t.vars??t).palette)==null?void 0:y.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ey=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSvgIcon"}),{children:o,className:s,color:c="inherit",component:u="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:v,viewBox:m="0 0 24 24",...y}=n,x=b.isValidElement(o)&&o.type==="svg",w={...n,color:c,component:u,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:x},C={};h||(C.viewBox=m);const j=cR(w);return l.jsxs(uR,{as:u,className:Me(j.root,s),focusable:"false",color:f,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r,...C,...y,...x&&o.props,ownerState:w,children:[x?o.props.children:o,v?l.jsx("title",{children:v}):null]})});Ey.muiName="SvgIcon";function Ee(t,e){function r(n,o){return l.jsx(Ey,{"data-testid":void 0,ref:o,...n,children:t})}return r.muiName=Ey.muiName,b.memo(b.forwardRef(r))}function Ch(t,e=166){let r;function n(...o){const s=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(s,e)}return n.clear=()=>{clearTimeout(r)},n}function vn(t){return t&&t.ownerDocument||document}function li(t){return vn(t).defaultView||window}function Ty(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function ea(t){const{controlled:e,default:r,name:n,state:o="value"}=t,{current:s}=b.useRef(e!==void 0),[c,u]=b.useState(r),d=s?e:c,f=b.useCallback(h=>{s||u(h)},[]);return[d,f]}function tn(t){const e=b.useRef(t);return to(()=>{e.current=t}),b.useRef((...r)=>(0,e.current)(...r)).current}function Fr(...t){const e=b.useRef(void 0),r=b.useCallback(n=>{const o=t.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,u=c(n);return typeof u=="function"?u:()=>{c(null)}}return s.current=n,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},t);return b.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}function dR(t,e){const r=t.charCodeAt(2);return t[0]==="o"&&t[1]==="n"&&r>=65&&r<=90&&typeof e=="function"}function mE(t,e){if(!t)return e;function r(c,u){const d={};return Object.keys(u).forEach(f=>{dR(f,u[f])&&typeof c[f]=="function"&&(d[f]=(...h)=>{c[f](...h),u[f](...h)})}),d}if(typeof t=="function"||typeof e=="function")return c=>{const u=typeof e=="function"?e(c):e,d=typeof t=="function"?t({...c,...u}):t,f=Me(c==null?void 0:c.className,u==null?void 0:u.className,d==null?void 0:d.className),h=r(d,u);return{...u,...d,...h,...!!f&&{className:f},...(u==null?void 0:u.style)&&(d==null?void 0:d.style)&&{style:{...u.style,...d.style}},...(u==null?void 0:u.sx)&&(d==null?void 0:d.sx)&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const n=e,o=r(t,n),s=Me(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...o,...!!s&&{className:s},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function gE(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function ky(t,e){return ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ky(t,e)}function yE(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ky(t,e)}const vw={disabled:!1},$f=$t.createContext(null);var pR=function(e){return e.scrollTop},Ru="unmounted",$a="exited",Na="entering",Wl="entered",jy="exiting",pi=(function(t){yE(e,t);function e(n,o){var s;s=t.call(this,n,o)||this;var c=o,u=c&&!c.isMounting?n.enter:n.appear,d;return s.appearStatus=null,n.in?u?(d=$a,s.appearStatus=Na):d=Wl:n.unmountOnExit||n.mountOnEnter?d=Ru:d=$a,s.state={status:d},s.nextCallback=null,s}e.getDerivedStateFromProps=function(o,s){var c=o.in;return c&&s.status===Ru?{status:$a}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==Na&&c!==Wl&&(s=Na):(c===Na||c===Wl)&&(s=jy)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,c,u;return s=c=u=o,o!=null&&typeof o!="number"&&(s=o.exit,c=o.enter,u=o.appear!==void 0?o.appear:c),{exit:s,enter:c,appear:u}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Na){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Fp.findDOMNode(this);c&&pR(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$a&&this.setState({status:Ru})},r.performEnter=function(o){var s=this,c=this.props.enter,u=this.context?this.context.isMounting:o,d=this.props.nodeRef?[u]:[Fp.findDOMNode(this),u],f=d[0],h=d[1],v=this.getTimeouts(),m=u?v.appear:v.enter;if(!o&&!c||vw.disabled){this.safeSetState({status:Wl},function(){s.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:Na},function(){s.props.onEntering(f,h),s.onTransitionEnd(m,function(){s.safeSetState({status:Wl},function(){s.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,s=this.props.exit,c=this.getTimeouts(),u=this.props.nodeRef?void 0:Fp.findDOMNode(this);if(!s||vw.disabled){this.safeSetState({status:$a},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:jy},function(){o.props.onExiting(u),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:$a},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,c=!0;return this.nextCallback=function(u){c&&(c=!1,s.nextCallback=null,o(u))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Fp.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!c||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],f=d[0],h=d[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ru)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var u=gE(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $t.createElement($f.Provider,{value:null},typeof c=="function"?c(o,u):$t.cloneElement($t.Children.only(c),u))},e})($t.Component);pi.contextType=$f;pi.propTypes={};function zl(){}pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zl,onEntering:zl,onEntered:zl,onExit:zl,onExiting:zl,onExited:zl};pi.UNMOUNTED=Ru;pi.EXITED=$a;pi.ENTERING=Na;pi.ENTERED=Wl;pi.EXITING=jy;function fR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qv(t,e){var r=function(s){return e&&b.isValidElement(s)?e(s):s},n=Object.create(null);return t&&b.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function hR(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var s in t)s in e?o.length&&(n[s]=o,o=[]):o.push(s);var c,u={};for(var d in e){if(n[d])for(c=0;c<n[d].length;c++){var f=n[d][c];u[n[d][c]]=r(f)}u[d]=r(d)}for(c=0;c<o.length;c++)u[o[c]]=r(o[c]);return u}function Ha(t,e,r){return r[e]!=null?r[e]:t.props[e]}function mR(t,e){return qv(t.children,function(r){return b.cloneElement(r,{onExited:e.bind(null,r),in:!0,appear:Ha(r,"appear",t),enter:Ha(r,"enter",t),exit:Ha(r,"exit",t)})})}function gR(t,e,r){var n=qv(t.children),o=hR(e,n);return Object.keys(o).forEach(function(s){var c=o[s];if(b.isValidElement(c)){var u=s in e,d=s in n,f=e[s],h=b.isValidElement(f)&&!f.props.in;d&&(!u||h)?o[s]=b.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:Ha(c,"exit",t),enter:Ha(c,"enter",t)}):!d&&u&&!h?o[s]=b.cloneElement(c,{in:!1}):d&&u&&b.isValidElement(f)&&(o[s]=b.cloneElement(c,{onExited:r.bind(null,c),in:f.props.in,exit:Ha(c,"exit",t),enter:Ha(c,"enter",t)}))}}),o}var yR=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},vR={component:"div",childFactory:function(e){return e}},Gv=(function(t){yE(e,t);function e(n,o){var s;s=t.call(this,n,o)||this;var c=s.handleExited.bind(fR(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,s){var c=s.children,u=s.handleExited,d=s.firstRender;return{children:d?mR(o,u):gR(o,c,u),firstRender:!1}},r.handleExited=function(o,s){var c=qv(this.props.children);o.key in c||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(u){var d=Af({},u.children);return delete d[o.key],{children:d}}))},r.render=function(){var o=this.props,s=o.component,c=o.childFactory,u=gE(o,["component","childFactory"]),d=this.state.contextValue,f=yR(this.state.children).map(c);return delete u.appear,delete u.enter,delete u.exit,s===null?$t.createElement($f.Provider,{value:d},f):$t.createElement($f.Provider,{value:d},$t.createElement(s,u,f))},e})($t.Component);Gv.propTypes={};Gv.defaultProps=vR;const xw={};function vE(t,e){const r=b.useRef(xw);return r.current===xw&&(r.current=t(e)),r}const xR=[];function bR(t){b.useEffect(t,xR)}class Eh{constructor(){Aa(this,"currentId",null);Aa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Aa(this,"disposeEffect",()=>this.clear)}static create(){return new Eh}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function Qs(){const t=vE(Eh.create).current;return bR(t.disposeEffect),t}const xE=t=>t.scrollTop;function sc(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function Nf(t){return typeof t=="string"}function bE(t,e,r){return t===void 0||Nf(t)?e:{...e,ownerState:{...e.ownerState,...r}}}function wE(t,e,r){return typeof t=="function"?t(e,r):t}function Bf(t,e=[]){if(t===void 0)return{};const r={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function bw(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function SE(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:s}=t;if(!e){const y=Me(r==null?void 0:r.className,s,o==null?void 0:o.className,n==null?void 0:n.className),x={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},w={...r,...o,...n};return y.length>0&&(w.className=y),Object.keys(x).length>0&&(w.style=x),{props:w,internalRef:void 0}}const c=Bf({...o,...n}),u=bw(n),d=bw(o),f=e(c),h=Me(f==null?void 0:f.className,r==null?void 0:r.className,s,o==null?void 0:o.className,n==null?void 0:n.className),v={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},m={...f,...r,...d,...u};return h.length>0&&(m.className=h),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:f.ref}}function Ze(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:u=!1,...d}=e,{component:f,slots:h={[t]:void 0},slotProps:v={[t]:void 0},...m}=s,y=h[t]||n,x=wE(v[t],o),{props:{component:w,...C},internalRef:j}=SE({className:r,...d,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:x}),k=Fr(j,x==null?void 0:x.ref,e.ref),I=t==="root"?w||f:w,E=bE(y,{...t==="root"&&!f&&!h[t]&&c,...t!=="root"&&!h[t]&&c,...C,...I&&!u&&{as:I},...I&&u&&{component:I},ref:k},o);return[y,E]}function wR(t){return et("MuiCollapse",t)}nt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SR=t=>{const{orientation:e,classes:r}=t,n={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return tt(n,wR,r)},CR=ve("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.orientation],r.state==="entered"&&e.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&e.hidden]}})(Ye(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>e.state==="exited"&&!e.in&&e.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ER=ve("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),TR=ve("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Yu=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCollapse"}),{addEndListener:o,children:s,className:c,collapsedSize:u="0px",component:d,easing:f,in:h,onEnter:v,onEntered:m,onEntering:y,onExit:x,onExited:w,onExiting:C,orientation:j="vertical",slots:k={},slotProps:I={},style:E,timeout:M=uE.standard,TransitionComponent:R=pi,...L}=n,A={...n,orientation:j,collapsedSize:u},F=SR(A),G=io(),$=Qs(),P=b.useRef(null),q=b.useRef(),V=typeof u=="number"?`${u}px`:u,O=j==="horizontal",U=O?"width":"height",K=b.useRef(null),Y=Fr(r,K),te=Le=>Ke=>{if(Le){const pt=K.current;Ke===void 0?Le(pt):Le(pt,Ke)}},Q=()=>P.current?P.current[O?"clientWidth":"clientHeight"]:0,X=te((Le,Ke)=>{P.current&&O&&(P.current.style.position="absolute"),Le.style[U]=V,v&&v(Le,Ke)}),re=te((Le,Ke)=>{const pt=Q();P.current&&O&&(P.current.style.position="");const{duration:ce,easing:De}=sc({style:E,timeout:M,easing:f},{mode:"enter"});if(M==="auto"){const We=G.transitions.getAutoHeightDuration(pt);Le.style.transitionDuration=`${We}ms`,q.current=We}else Le.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;Le.style[U]=`${pt}px`,Le.style.transitionTimingFunction=De,y&&y(Le,Ke)}),de=te((Le,Ke)=>{Le.style[U]="auto",m&&m(Le,Ke)}),J=te(Le=>{Le.style[U]=`${Q()}px`,x&&x(Le)}),oe=te(w),Z=te(Le=>{const Ke=Q(),{duration:pt,easing:ce}=sc({style:E,timeout:M,easing:f},{mode:"exit"});if(M==="auto"){const De=G.transitions.getAutoHeightDuration(Ke);Le.style.transitionDuration=`${De}ms`,q.current=De}else Le.style.transitionDuration=typeof pt=="string"?pt:`${pt}ms`;Le.style[U]=V,Le.style.transitionTimingFunction=ce,C&&C(Le)}),pe=Le=>{M==="auto"&&$.start(q.current||0,Le),o&&o(K.current,Le)},Se={slots:k,slotProps:I,component:d},[se,ae]=Ze("root",{ref:Y,className:Me(F.root,c),elementType:CR,externalForwardedProps:Se,ownerState:A,additionalProps:{style:{[O?"minWidth":"minHeight"]:V,...E}}}),[Fe,ze]=Ze("wrapper",{ref:P,className:F.wrapper,elementType:ER,externalForwardedProps:Se,ownerState:A}),[Oe,Be]=Ze("wrapperInner",{className:F.wrapperInner,elementType:TR,externalForwardedProps:Se,ownerState:A});return l.jsx(R,{in:h,onEnter:X,onEntered:de,onEntering:re,onExit:J,onExited:oe,onExiting:Z,addEndListener:pe,nodeRef:K,timeout:M==="auto"?null:M,...L,children:(Le,{ownerState:Ke,...pt})=>{const ce={...A,state:Le};return l.jsx(se,{...ae,className:Me(ae.className,{entered:F.entered,exited:!h&&V==="0px"&&F.hidden}[Le]),ownerState:ce,...pt,children:l.jsx(Fe,{...ze,ownerState:ce,children:l.jsx(Oe,{...Be,ownerState:ce,children:s})})})}})});Yu&&(Yu.muiSupportAuto=!0);function kR(t){return et("MuiPaper",t)}nt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jR=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,s={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return tt(s,kR,o)},PR=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Ye(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Nr=b.forwardRef(function(e,r){var y;const n=ot({props:e,name:"MuiPaper"}),o=io(),{className:s,component:c="div",elevation:u=1,square:d=!1,variant:f="elevation",...h}=n,v={...n,component:c,elevation:u,square:d,variant:f},m=jR(v);return l.jsx(PR,{as:c,ownerState:v,className:Me(m.root,s),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[u],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[u]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Qu("#fff",Cy(u))}, ${Qu("#fff",Cy(u))})`}},...h.style}})});function ac(t){try{return t.matches(":focus-visible")}catch{}return!1}class zf{constructor(){Aa(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 zf}static use(){const e=vE(zf.create).current,[r,n]=b.useState(!1);return e.shouldMount=r,e.setShouldMount=n,b.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=MR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function IR(){return zf.use()}function MR(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function RR(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:s,rippleSize:c,in:u,onExited:d,timeout:f}=t,[h,v]=b.useState(!1),m=Me(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+o},x=Me(r.child,h&&r.childLeaving,n&&r.childPulsate);return!u&&!h&&v(!0),b.useEffect(()=>{if(!u&&d!=null){const w=setTimeout(d,f);return()=>{clearTimeout(w)}}},[d,u,f]),l.jsx("span",{className:m,style:y,children:l.jsx("span",{className:x})})}const Oo=nt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Py=550,AR=80,_R=Qi`
|
|
118
|
+
0% {
|
|
119
|
+
transform: scale(0);
|
|
120
|
+
opacity: 0.1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
100% {
|
|
124
|
+
transform: scale(1);
|
|
125
|
+
opacity: 0.3;
|
|
126
|
+
}
|
|
127
|
+
`,LR=Qi`
|
|
128
|
+
0% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
100% {
|
|
133
|
+
opacity: 0;
|
|
134
|
+
}
|
|
135
|
+
`,OR=Qi`
|
|
136
|
+
0% {
|
|
137
|
+
transform: scale(1);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
50% {
|
|
141
|
+
transform: scale(0.92);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
100% {
|
|
145
|
+
transform: scale(1);
|
|
146
|
+
}
|
|
147
|
+
`,$R=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),NR=ve(RR,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
148
|
+
opacity: 0;
|
|
149
|
+
position: absolute;
|
|
150
|
+
|
|
151
|
+
&.${Oo.rippleVisible} {
|
|
152
|
+
opacity: 0.3;
|
|
153
|
+
transform: scale(1);
|
|
154
|
+
animation-name: ${_R};
|
|
155
|
+
animation-duration: ${Py}ms;
|
|
156
|
+
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.${Oo.ripplePulsate} {
|
|
160
|
+
animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
& .${Oo.child} {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
display: block;
|
|
166
|
+
width: 100%;
|
|
167
|
+
height: 100%;
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
background-color: currentColor;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
& .${Oo.childLeaving} {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
animation-name: ${LR};
|
|
175
|
+
animation-duration: ${Py}ms;
|
|
176
|
+
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
& .${Oo.childPulsate} {
|
|
180
|
+
position: absolute;
|
|
181
|
+
/* @noflip */
|
|
182
|
+
left: 0px;
|
|
183
|
+
top: 0;
|
|
184
|
+
animation-name: ${OR};
|
|
185
|
+
animation-duration: 2500ms;
|
|
186
|
+
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
187
|
+
animation-iteration-count: infinite;
|
|
188
|
+
animation-delay: 200ms;
|
|
189
|
+
}
|
|
190
|
+
`,BR=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:c,...u}=n,[d,f]=b.useState([]),h=b.useRef(0),v=b.useRef(null);b.useEffect(()=>{v.current&&(v.current(),v.current=null)},[d]);const m=b.useRef(!1),y=Qs(),x=b.useRef(null),w=b.useRef(null),C=b.useCallback(E=>{const{pulsate:M,rippleX:R,rippleY:L,rippleSize:A,cb:F}=E;f(G=>[...G,l.jsx(NR,{classes:{ripple:Me(s.ripple,Oo.ripple),rippleVisible:Me(s.rippleVisible,Oo.rippleVisible),ripplePulsate:Me(s.ripplePulsate,Oo.ripplePulsate),child:Me(s.child,Oo.child),childLeaving:Me(s.childLeaving,Oo.childLeaving),childPulsate:Me(s.childPulsate,Oo.childPulsate)},timeout:Py,pulsate:M,rippleX:R,rippleY:L,rippleSize:A},h.current)]),h.current+=1,v.current=F},[s]),j=b.useCallback((E={},M={},R=()=>{})=>{const{pulsate:L=!1,center:A=o||M.pulsate,fakeElement:F=!1}=M;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const G=F?null:w.current,$=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,q,V;if(A||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)P=Math.round($.width/2),q=Math.round($.height/2);else{const{clientX:O,clientY:U}=E.touches&&E.touches.length>0?E.touches[0]:E;P=Math.round(O-$.left),q=Math.round(U-$.top)}if(A)V=Math.sqrt((2*$.width**2+$.height**2)/3),V%2===0&&(V+=1);else{const O=Math.max(Math.abs((G?G.clientWidth:0)-P),P)*2+2,U=Math.max(Math.abs((G?G.clientHeight:0)-q),q)*2+2;V=Math.sqrt(O**2+U**2)}E!=null&&E.touches?x.current===null&&(x.current=()=>{C({pulsate:L,rippleX:P,rippleY:q,rippleSize:V,cb:R})},y.start(AR,()=>{x.current&&(x.current(),x.current=null)})):C({pulsate:L,rippleX:P,rippleY:q,rippleSize:V,cb:R})},[o,C,y]),k=b.useCallback(()=>{j({},{pulsate:!0})},[j]),I=b.useCallback((E,M)=>{if(y.clear(),(E==null?void 0:E.type)==="touchend"&&x.current){x.current(),x.current=null,y.start(0,()=>{I(E,M)});return}x.current=null,f(R=>R.length>0?R.slice(1):R),v.current=M},[y]);return b.useImperativeHandle(r,()=>({pulsate:k,start:j,stop:I}),[k,j,I]),l.jsx($R,{className:Me(Oo.root,s.root,c),ref:w,...u,children:l.jsx(Gv,{component:null,exit:!0,children:d})})});function zR(t){return et("MuiButtonBase",t)}const DR=nt("MuiButtonBase",["root","disabled","focusVisible"]),FR=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,c=tt({root:["root",e&&"disabled",r&&"focusVisible"]},zR,o);return r&&n&&(c.root+=` ${n}`),c},HR=ve("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"},[`&.${DR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ci=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:c,className:u,component:d="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:v=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:x="a",onBlur:w,onClick:C,onContextMenu:j,onDragLeave:k,onFocus:I,onFocusVisible:E,onKeyDown:M,onKeyUp:R,onMouseDown:L,onMouseLeave:A,onMouseUp:F,onTouchEnd:G,onTouchMove:$,onTouchStart:P,tabIndex:q=0,TouchRippleProps:V,touchRippleRef:O,type:U,...K}=n,Y=b.useRef(null),te=IR(),Q=Fr(te.ref,O),[X,re]=b.useState(!1);f&&X&&re(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),Y.current.focus()}}),[]);const de=te.shouldMount&&!h&&!f;b.useEffect(()=>{X&&m&&!h&&te.pulsate()},[h,m,X,te]);const J=us(te,"start",L,v),oe=us(te,"stop",j,v),Z=us(te,"stop",k,v),pe=us(te,"stop",F,v),Se=us(te,"stop",$e=>{X&&$e.preventDefault(),A&&A($e)},v),se=us(te,"start",P,v),ae=us(te,"stop",G,v),Fe=us(te,"stop",$,v),ze=us(te,"stop",$e=>{ac($e.target)||re(!1),w&&w($e)},!1),Oe=tn($e=>{Y.current||(Y.current=$e.currentTarget),ac($e.target)&&(re(!0),E&&E($e)),I&&I($e)}),Be=()=>{const $e=Y.current;return d&&d!=="button"&&!($e.tagName==="A"&&$e.href)},Le=tn($e=>{m&&!$e.repeat&&X&&$e.key===" "&&te.stop($e,()=>{te.start($e)}),$e.target===$e.currentTarget&&Be()&&$e.key===" "&&$e.preventDefault(),M&&M($e),$e.target===$e.currentTarget&&Be()&&$e.key==="Enter"&&!f&&($e.preventDefault(),C&&C($e))}),Ke=tn($e=>{m&&$e.key===" "&&X&&!$e.defaultPrevented&&te.stop($e,()=>{te.pulsate($e)}),R&&R($e),C&&$e.target===$e.currentTarget&&Be()&&$e.key===" "&&!$e.defaultPrevented&&C($e)});let pt=d;pt==="button"&&(K.href||K.to)&&(pt=x);const ce={};if(pt==="button"){const $e=!!K.formAction;ce.type=U===void 0&&!$e?"button":U,ce.disabled=f}else!K.href&&!K.to&&(ce.role="button"),f&&(ce["aria-disabled"]=f);const De=Fr(r,Y),We={...n,centerRipple:s,component:d,disabled:f,disableRipple:h,disableTouchRipple:v,focusRipple:m,tabIndex:q,focusVisible:X},gt=FR(We);return l.jsxs(HR,{as:pt,className:Me(gt.root,u),ownerState:We,onBlur:ze,onClick:C,onContextMenu:oe,onFocus:Oe,onKeyDown:Le,onKeyUp:Ke,onMouseDown:J,onMouseLeave:Se,onMouseUp:pe,onDragLeave:Z,onTouchEnd:ae,onTouchMove:Fe,onTouchStart:se,ref:De,tabIndex:f?-1:q,type:U,...ce,...K,children:[c,de?l.jsx(BR,{ref:Q,center:s,...V}):null]})});function us(t,e,r,n=!1){return tn(o=>(r&&r(o),n||t[e](o),!0))}function UR(t){return typeof t.main=="string"}function VR(t,e=[]){if(!UR(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function cr(t=[]){return([,e])=>e&&VR(e,t)}function WR(t){return et("MuiAlert",t)}const ww=nt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function qR(t){return et("MuiCircularProgress",t)}nt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ni=44,Iy=Qi`
|
|
191
|
+
0% {
|
|
192
|
+
transform: rotate(0deg);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
100% {
|
|
196
|
+
transform: rotate(360deg);
|
|
197
|
+
}
|
|
198
|
+
`,My=Qi`
|
|
199
|
+
0% {
|
|
200
|
+
stroke-dasharray: 1px, 200px;
|
|
201
|
+
stroke-dashoffset: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
50% {
|
|
205
|
+
stroke-dasharray: 100px, 200px;
|
|
206
|
+
stroke-dashoffset: -15px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
100% {
|
|
210
|
+
stroke-dasharray: 1px, 200px;
|
|
211
|
+
stroke-dashoffset: -126px;
|
|
212
|
+
}
|
|
213
|
+
`,GR=typeof Iy!="string"?da`
|
|
214
|
+
animation: ${Iy} 1.4s linear infinite;
|
|
215
|
+
`:null,XR=typeof My!="string"?da`
|
|
216
|
+
animation: ${My} 1.4s ease-in-out infinite;
|
|
217
|
+
`:null,KR=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,s={root:["root",r,`color${ye(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ye(r)}`,o&&"circleDisableShrink"]};return tt(s,qR,e)},QR=ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${ye(r.color)}`]]}})(Ye(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:GR||{animation:`${Iy} 1.4s linear infinite`}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),YR=ve("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),JR=ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${ye(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Ye(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:XR||{animation:`${My} 1.4s ease-in-out infinite`}}]}))),ZR=ve("circle",{name:"MuiCircularProgress",slot:"Track"})(Ye(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),mr=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,enableTrackSlot:u=!1,size:d=40,style:f,thickness:h=3.6,value:v=0,variant:m="indeterminate",...y}=n,x={...n,color:s,disableShrink:c,size:d,thickness:h,value:v,variant:m,enableTrackSlot:u},w=KR(x),C={},j={},k={};if(m==="determinate"){const I=2*Math.PI*((ni-h)/2);C.strokeDasharray=I.toFixed(3),k["aria-valuenow"]=Math.round(v),C.strokeDashoffset=`${((100-v)/100*I).toFixed(3)}px`,j.transform="rotate(-90deg)"}return l.jsx(QR,{className:Me(w.root,o),style:{width:d,height:d,...j,...f},ownerState:x,ref:r,role:"progressbar",...k,...y,children:l.jsxs(YR,{className:w.svg,ownerState:x,viewBox:`${ni/2} ${ni/2} ${ni} ${ni}`,children:[u?l.jsx(ZR,{className:w.track,ownerState:x,cx:ni,cy:ni,r:(ni-h)/2,fill:"none",strokeWidth:h,"aria-hidden":"true"}):null,l.jsx(JR,{className:w.circle,style:C,ownerState:x,cx:ni,cy:ni,r:(ni-h)/2,fill:"none",strokeWidth:h})]})})});function eA(t){return et("MuiIconButton",t)}const Sw=nt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),tA=t=>{const{classes:e,disabled:r,color:n,edge:o,size:s,loading:c}=t,u={root:["root",c&&"loading",r&&"disabled",n!=="default"&&`color${ye(n)}`,o&&`edge${ye(o)}`,`size${ye(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return tt(u,eA,e)},rA=ve(ci,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${ye(r.color)}`],r.edge&&e[`edge${ye(r.edge)}`],e[`size${ye(r.size)}`]]}})(Ye(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ye(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Sw.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Sw.loading}`]:{color:"transparent"}}))),nA=ve("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Xt=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiIconButton"}),{edge:o=!1,children:s,className:c,color:u="default",disabled:d=!1,disableFocusRipple:f=!1,size:h="medium",id:v,loading:m=null,loadingIndicator:y,...x}=n,w=Hi(v),C=y??l.jsx(mr,{"aria-labelledby":w,color:"inherit",size:16}),j={...n,edge:o,color:u,disabled:d,disableFocusRipple:f,loading:m,loadingIndicator:C,size:h},k=tA(j);return l.jsxs(rA,{id:m?w:v,className:Me(k.root,c),centerRipple:!0,focusRipple:!f,disabled:d||m,ref:r,...x,ownerState:j,children:[typeof m=="boolean"&&l.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:l.jsx(nA,{className:k.loadingIndicator,ownerState:j,children:m&&C})}),s]})}),oA=Ee(l.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),iA=Ee(l.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),sA=Ee(l.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),aA=Ee(l.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),CE=Ee(l.jsx("path",{d:"M19 6.41L17.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"})),lA=t=>{const{variant:e,color:r,severity:n,classes:o}=t,s={root:["root",`color${ye(r||n)}`,`${e}${ye(r||n)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return tt(s,WR,o)},cA=ve(Nr,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ye(r.color||r.severity)}`]]}})(Ye(({theme:t})=>{const e=t.palette.mode==="light"?t.darken:t.lighten,r=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${n}StandardBg`]:r(t.palette[n].light,.9),[`& .${ww.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),border:`1px solid ${(t.vars||t).palette[n].light}`,[`& .${ww.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(cr(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)}}}))]}})),uA=ve("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),dA=ve("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),pA=ve("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Cw={success:l.jsx(oA,{fontSize:"inherit"}),warning:l.jsx(iA,{fontSize:"inherit"}),error:l.jsx(sA,{fontSize:"inherit"}),info:l.jsx(aA,{fontSize:"inherit"})},qt=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiAlert"}),{action:o,children:s,className:c,closeText:u="Close",color:d,components:f={},componentsProps:h={},icon:v,iconMapping:m=Cw,onClose:y,role:x="alert",severity:w="success",slotProps:C={},slots:j={},variant:k="standard",...I}=n,E={...n,color:d,severity:w,variant:k,colorSeverity:d||w},M=lA(E),R={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...j},slotProps:{...h,...C}},[L,A]=Ze("root",{ref:r,shouldForwardComponentProp:!0,className:Me(M.root,c),elementType:cA,externalForwardedProps:{...R,...I},ownerState:E,additionalProps:{role:x,elevation:0}}),[F,G]=Ze("icon",{className:M.icon,elementType:uA,externalForwardedProps:R,ownerState:E}),[$,P]=Ze("message",{className:M.message,elementType:dA,externalForwardedProps:R,ownerState:E}),[q,V]=Ze("action",{className:M.action,elementType:pA,externalForwardedProps:R,ownerState:E}),[O,U]=Ze("closeButton",{elementType:Xt,externalForwardedProps:R,ownerState:E}),[K,Y]=Ze("closeIcon",{elementType:CE,externalForwardedProps:R,ownerState:E});return l.jsxs(L,{...A,children:[v!==!1?l.jsx(F,{...G,children:v||m[w]||Cw[w]}):null,l.jsx($,{...P,children:s}),o!=null?l.jsx(q,{...V,children:o}):null,o==null&&y?l.jsx(q,{...V,children:l.jsx(O,{size:"small","aria-label":u,title:u,color:"inherit",onClick:y,...U,children:l.jsx(K,{fontSize:"small",...Y})})}):null]})});function fA(t){return et("MuiTypography",t)}const Ew=nt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),hA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},mA=aR(),gA=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:s,classes:c}=t,u={root:["root",s,t.align!=="inherit"&&`align${ye(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return tt(u,fA,c)},yA=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${ye(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Ye(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(cr()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ye(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Tw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},he=b.forwardRef(function(e,r){const{color:n,...o}=ot({props:e,name:"MuiTypography"}),s=!hA[n],c=mA({...o,...s&&{color:n}}),{align:u="inherit",className:d,component:f,gutterBottom:h=!1,noWrap:v=!1,paragraph:m=!1,variant:y="body1",variantMapping:x=Tw,...w}=c,C={...c,align:u,color:n,className:d,component:f,gutterBottom:h,noWrap:v,paragraph:m,variant:y,variantMapping:x},j=f||(m?"p":x[y]||Tw[y])||"span",k=gA(C);return l.jsx(yA,{as:j,ref:r,className:Me(k.root,d),...w,ownerState:C,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...w.style}})});function vA(t){const e=b.useRef({});return b.useEffect(()=>{e.current=t}),e.current}function kw({array1:t,array2:e,parser:r=n=>n}){return t&&e&&t.length===e.length&&t.every((n,o)=>r(n)===r(e[o]))}function jw(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function xA(t={}){const{ignoreAccents:e=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:s,trim:c=!1}=t;return(u,{inputValue:d,getOptionLabel:f})=>{let h=c?d.trim():d;r&&(h=h.toLowerCase()),e&&(h=jw(h));const v=h?u.filter(m=>{let y=(s||f)(m);return r&&(y=y.toLowerCase()),e&&(y=jw(y)),o==="start"?y.startsWith(h):y.includes(h)}):u;return typeof n=="number"?v.slice(0,n):v}}const bA=xA(),Pw=5,wA=t=>{var e;return t.current!==null&&((e=t.current.parentElement)==null?void 0:e.contains(document.activeElement))},SA=[];function Iw(t,e,r,n){if(e||t==null||n)return"";const o=r(t);return typeof o=="string"?o:""}function CA(t){const{unstable_isActiveElementInListbox:e=wA,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:c=!1,clearOnBlur:u=!t.freeSolo,clearOnEscape:d=!1,componentName:f="useAutocomplete",defaultValue:h=t.multiple?SA:null,disableClearable:v=!1,disableCloseOnSelect:m=!1,disabled:y,disabledItemsFocusable:x=!1,disableListWrap:w=!1,filterOptions:C=bA,filterSelectedOptions:j=!1,freeSolo:k=!1,getOptionDisabled:I,getOptionKey:E,getOptionLabel:M=ke=>ke.label??ke,groupBy:R,handleHomeEndKeys:L=!t.freeSolo,id:A,includeInputInList:F=!1,inputValue:G,isOptionEqualToValue:$=(ke,Te)=>ke===Te,multiple:P=!1,onChange:q,onClose:V,onHighlightChange:O,onInputChange:U,onOpen:K,open:Y,openOnFocus:te=!1,options:Q,readOnly:X=!1,renderValue:re,selectOnFocus:de=!t.freeSolo,value:J}=t,oe=Hi(A);let Z=M;Z=ke=>{const Te=M(ke);return typeof Te!="string"?String(Te):Te};const pe=b.useRef(!1),Se=b.useRef(!0),se=b.useRef(null),ae=b.useRef(null),[Fe,ze]=b.useState(null),[Oe,Be]=b.useState(-1),Le=o?0:-1,Ke=b.useRef(Le),pt=b.useRef(Iw(h??J,P,Z)).current,[ce,De]=ea({controlled:J,default:h,name:f}),[We,gt]=ea({controlled:G,default:pt,name:f,state:"inputValue"}),[$e,zt]=b.useState(!1),vt=b.useCallback((ke,Te,st)=>{if(!(P?ce.length<Te.length:Te!==null)&&!u)return;const Lt=Iw(Te,P,Z,re);We!==Lt&&(gt(Lt),U&&U(ke,Lt,st))},[Z,We,P,U,gt,u,ce,re]),[fe,be]=ea({controlled:Y,default:!1,name:f,state:"open"}),[Pe,Ae]=b.useState(!0),qe=!P&&ce!=null&&We===Z(ce),Je=fe&&!X,Ce=Je?C(Q.filter(ke=>!(j&&(P?ce:[ce]).some(Te=>Te!==null&&$(ke,Te)))),{inputValue:qe&&Pe?"":We,getOptionLabel:Z}):[],Ge=vA({filteredOptions:Ce,value:ce,inputValue:We});b.useEffect(()=>{const ke=ce!==Ge.value;$e&&!ke||k&&!ke||vt(null,ce,"reset")},[ce,vt,$e,Ge.value,k]);const Ue=fe&&Ce.length>0&&!X,Xe=tn(ke=>{if(ke===-1)se.current.focus();else{const Te=re?"data-item-index":"data-tag-index";Fe.querySelector(`[${Te}="${ke}"]`).focus()}});b.useEffect(()=>{P&&Oe>ce.length-1&&(Be(-1),Xe(-1))},[ce,P,Oe,Xe]);function Mt(ke,Te){if(!ae.current||ke<0||ke>=Ce.length)return-1;let st=ke;for(;;){const Rt=ae.current.querySelector(`[data-option-index="${st}"]`),Lt=x?!1:!Rt||Rt.disabled||Rt.getAttribute("aria-disabled")==="true";if(Rt&&Rt.hasAttribute("tabindex")&&!Lt)return st;if(Te==="next"?st=(st+1)%Ce.length:st=(st-1+Ce.length)%Ce.length,st===ke)return-1}}const Zt=tn(({event:ke,index:Te,reason:st})=>{if(Ke.current=Te,Te===-1?se.current.removeAttribute("aria-activedescendant"):se.current.setAttribute("aria-activedescendant",`${oe}-option-${Te}`),O&&["mouse","keyboard","touch"].includes(st)&&O(ke,Te===-1?null:Ce[Te],st),!ae.current)return;const Rt=ae.current.querySelector(`[role="option"].${r}-focused`);Rt&&(Rt.classList.remove(`${r}-focused`),Rt.classList.remove(`${r}-focusVisible`));let Lt=ae.current;if(ae.current.getAttribute("role")!=="listbox"&&(Lt=ae.current.parentElement.querySelector('[role="listbox"]')),!Lt)return;if(Te===-1){Lt.scrollTop=0;return}const Wr=ae.current.querySelector(`[data-option-index="${Te}"]`);if(Wr&&(Wr.classList.add(`${r}-focused`),st==="keyboard"&&Wr.classList.add(`${r}-focusVisible`),Lt.scrollHeight>Lt.clientHeight&&st!=="mouse"&&st!=="touch")){const Bt=Wr,uo=Lt.clientHeight+Lt.scrollTop,ks=Bt.offsetTop+Bt.offsetHeight;ks>uo?Lt.scrollTop=ks-Lt.clientHeight:Bt.offsetTop-Bt.offsetHeight*(R?1.3:0)<Lt.scrollTop&&(Lt.scrollTop=Bt.offsetTop-Bt.offsetHeight*(R?1.3:0))}}),yr=tn(({event:ke,diff:Te,direction:st="next",reason:Rt})=>{if(!Je)return;const Wr=Mt((()=>{const Bt=Ce.length-1;if(Te==="reset")return Le;if(Te==="start")return 0;if(Te==="end")return Bt;const uo=Ke.current+Te;return uo<0?uo===-1&&F?-1:w&&Ke.current!==-1||Math.abs(Te)>1?0:Bt:uo>Bt?uo===Bt+1&&F?-1:w||Math.abs(Te)>1?Bt:0:uo})(),st);if(Zt({index:Wr,reason:Rt,event:ke}),n&&Te!=="reset")if(Wr===-1)se.current.value=We;else{const Bt=Z(Ce[Wr]);se.current.value=Bt,Bt.toLowerCase().indexOf(We.toLowerCase())===0&&We.length>0&&se.current.setSelectionRange(We.length,Bt.length)}}),Br=!kw({array1:Ge.filteredOptions,array2:Ce,parser:Z}),Yr=()=>{const ke=(Te,st)=>{const Rt=Te?Z(Te):"",Lt=st?Z(st):"";return Rt===Lt};if(Ke.current!==-1&&!kw({array1:Ge.filteredOptions,array2:Ce,parser:Z})&&Ge.inputValue===We&&(P?ce.length===Ge.value.length&&Ge.value.every((Te,st)=>Z(ce[st])===Z(Te)):ke(Ge.value,ce))){const Te=Ge.filteredOptions[Ke.current];if(Te)return Ce.findIndex(st=>Z(st)===Z(Te))}return-1},on=b.useCallback(()=>{if(!Je)return;const ke=Yr();if(ke!==-1){Ke.current=ke;return}const Te=P?ce[0]:ce;if(Ce.length===0||Te==null){yr({diff:"reset"});return}if(ae.current){if(Te!=null){const st=Ce[Ke.current];if(P&&st&&ce.findIndex(Lt=>$(st,Lt))!==-1)return;const Rt=Ce.findIndex(Lt=>$(Lt,Te));Rt===-1?yr({diff:"reset"}):Zt({index:Rt});return}if(Ke.current>=Ce.length-1){Zt({index:Ce.length-1});return}Zt({index:Ke.current})}},[Ce.length,P?!1:ce,yr,Zt,Je,We,P]),rt=tn(ke=>{Ty(ae,ke),ke&&on()});b.useEffect(()=>{(Br||Je)&&on()},[on,Br,Je]);const bt=ke=>{fe||(be(!0),Ae(!0),K&&K(ke))},Yt=(ke,Te)=>{fe&&(be(!1),V&&V(ke,Te))},dr=(ke,Te,st,Rt)=>{if(P){if(ce.length===Te.length&&ce.every((Lt,Wr)=>Lt===Te[Wr]))return}else if(ce===Te)return;q&&q(ke,Te,st,Rt),De(Te)},we=b.useRef(!1),Ct=(ke,Te,st="selectOption",Rt="options")=>{let Lt=st,Wr=Te;if(P){Wr=Array.isArray(ce)?ce.slice():[];const Bt=Wr.findIndex(uo=>$(Te,uo));Bt===-1?Wr.push(Te):Rt!=="freeSolo"&&(Wr.splice(Bt,1),Lt="removeOption")}vt(ke,Wr,Lt),dr(ke,Wr,Lt,{option:Te}),!m&&(!ke||!ke.ctrlKey&&!ke.metaKey)&&Yt(ke,Lt),(c===!0||c==="touch"&&we.current||c==="mouse"&&!we.current)&&se.current.blur()};function St(ke,Te){if(ke===-1)return-1;let st=ke;for(;;){if(Te==="next"&&st===ce.length||Te==="previous"&&st===-1)return-1;const Rt=re?"data-item-index":"data-tag-index",Lt=Fe.querySelector(`[${Rt}="${st}"]`);if(!Lt||!Lt.hasAttribute("tabindex")||Lt.disabled||Lt.getAttribute("aria-disabled")==="true")st+=Te==="next"?1:-1;else return st}}const or=(ke,Te)=>{if(!P)return;We===""&&Yt(ke,"toggleInput");let st=Oe;Oe===-1?We===""&&Te==="previous"&&(st=ce.length-1):(st+=Te==="next"?1:-1,st<0&&(st=0),st===ce.length&&(st=-1)),st=St(st,Te),Be(st),Xe(st)},Qe=ke=>{pe.current=!0,gt(""),U&&U(ke,"","clear"),dr(ke,P?[]:null,"clear")},lt=ke=>Te=>{if(ke.onKeyDown&&ke.onKeyDown(Te),!Te.defaultMuiPrevented&&(Oe!==-1&&!["ArrowLeft","ArrowRight"].includes(Te.key)&&(Be(-1),Xe(-1)),Te.which!==229))switch(Te.key){case"Home":Je&&L&&(Te.preventDefault(),yr({diff:"start",direction:"next",reason:"keyboard",event:Te}));break;case"End":Je&&L&&(Te.preventDefault(),yr({diff:"end",direction:"previous",reason:"keyboard",event:Te}));break;case"PageUp":Te.preventDefault(),yr({diff:-Pw,direction:"previous",reason:"keyboard",event:Te}),bt(Te);break;case"PageDown":Te.preventDefault(),yr({diff:Pw,direction:"next",reason:"keyboard",event:Te}),bt(Te);break;case"ArrowDown":Te.preventDefault(),yr({diff:1,direction:"next",reason:"keyboard",event:Te}),bt(Te);break;case"ArrowUp":Te.preventDefault(),yr({diff:-1,direction:"previous",reason:"keyboard",event:Te}),bt(Te);break;case"ArrowLeft":!P&&re&&ce!=null?(Be(0),Xe(0)):or(Te,"previous");break;case"ArrowRight":!P&&re?(Be(-1),Xe(-1)):or(Te,"next");break;case"Enter":if(Ke.current!==-1&&Je){const st=Ce[Ke.current],Rt=I?I(st):!1;if(Te.preventDefault(),Rt)return;Ct(Te,st,"selectOption"),n&&se.current.setSelectionRange(se.current.value.length,se.current.value.length)}else k&&We!==""&&qe===!1&&(P&&Te.preventDefault(),Ct(Te,We,"createOption","freeSolo"));break;case"Escape":Je?(Te.preventDefault(),Te.stopPropagation(),Yt(Te,"escape")):d&&(We!==""||P&&ce.length>0||re)&&(Te.preventDefault(),Te.stopPropagation(),Qe(Te));break;case"Backspace":if(P&&!X&&We===""&&ce.length>0){const st=Oe===-1?ce.length-1:Oe,Rt=ce.slice();Rt.splice(st,1),dr(Te,Rt,"removeOption",{option:ce[st]})}!P&&re&&!X&&(De(null),Be(-1),Xe(-1));break;case"Delete":if(P&&!X&&We===""&&ce.length>0&&Oe!==-1){const st=Oe,Rt=ce.slice();Rt.splice(st,1),dr(Te,Rt,"removeOption",{option:ce[st]})}!P&&re&&!X&&(De(null),Be(-1),Xe(-1));break}},Ot=ke=>{zt(!0),Oe!==-1&&(Be(-1),Xe(-1)),te&&!pe.current&&bt(ke)},Nt=ke=>{if(e(ae)){se.current.focus();return}zt(!1),Se.current=!0,pe.current=!1,s&&Ke.current!==-1&&Je?Ct(ke,Ce[Ke.current],"blur"):s&&k&&We!==""?Ct(ke,We,"blur","freeSolo"):u&&vt(ke,ce,"blur"),Yt(ke,"blur")},ar=ke=>{const Te=ke.target.value;We!==Te&&(gt(Te),Ae(!1),U&&U(ke,Te,"input")),Te===""?!v&&!P&&dr(ke,null,"clear"):bt(ke)},Ur=ke=>{const Te=Number(ke.currentTarget.getAttribute("data-option-index"));Ke.current!==Te&&Zt({event:ke,index:Te,reason:"mouse"})},bn=ke=>{Zt({event:ke,index:Number(ke.currentTarget.getAttribute("data-option-index")),reason:"touch"}),we.current=!0},Hn=ke=>{const Te=Number(ke.currentTarget.getAttribute("data-option-index"));Ct(ke,Ce[Te],"selectOption"),we.current=!1},gi=ke=>Te=>{const st=ce.slice();st.splice(ke,1),dr(Te,st,"removeOption",{option:ce[ke]})},Ko=ke=>{dr(ke,null,"removeOption",{option:ce})},zr=ke=>{fe?Yt(ke,"toggleInput"):bt(ke)},Vr=ke=>{ke.currentTarget.contains(ke.target)&&ke.target.getAttribute("id")!==oe&&ke.preventDefault()},wn=ke=>{ke.currentTarget.contains(ke.target)&&(se.current.focus(),de&&Se.current&&se.current.selectionEnd-se.current.selectionStart===0&&se.current.select(),Se.current=!1)},cl=ke=>{!y&&(We===""||!fe)&&zr(ke)};let Ts=k&&We.length>0;Ts=Ts||(P?ce.length>0:ce!==null);let ul=Ce;return R&&(ul=Ce.reduce((ke,Te,st)=>{const Rt=R(Te);return ke.length>0&&ke[ke.length-1].group===Rt?ke[ke.length-1].options.push(Te):ke.push({key:st,index:st,group:Rt,options:[Te]}),ke},[])),y&&$e&&Nt(),{getRootProps:(ke={})=>({...ke,onKeyDown:lt(ke),onMouseDown:Vr,onClick:wn}),getInputLabelProps:()=>({id:`${oe}-label`,htmlFor:oe}),getInputProps:()=>({id:oe,value:We,onBlur:Nt,onFocus:Ot,onChange:ar,onMouseDown:cl,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ue?`${oe}-listbox`:void 0,"aria-expanded":Ue,autoComplete:"off",ref:se,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Qe}),getItemProps:({index:ke=0}={})=>({...P&&{key:ke},...re?{"data-item-index":ke}:{"data-tag-index":ke},tabIndex:-1,...!X&&{onDelete:P?gi(ke):Ko}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:zr}),getTagProps:({index:ke})=>({key:ke,"data-tag-index":ke,tabIndex:-1,...!X&&{onDelete:gi(ke)}}),getListboxProps:()=>({role:"listbox",id:`${oe}-listbox`,"aria-labelledby":`${oe}-label`,ref:rt,onMouseDown:ke=>{ke.preventDefault()}}),getOptionProps:({index:ke,option:Te})=>{const st=(P?ce:[ce]).some(Lt=>Lt!=null&&$(Te,Lt)),Rt=I?I(Te):!1;return{key:(E==null?void 0:E(Te))??Z(Te),tabIndex:-1,role:"option",id:`${oe}-option-${ke}`,onMouseMove:Ur,onClick:Hn,onTouchStart:bn,"data-option-index":ke,"aria-disabled":Rt,"aria-selected":st}},id:oe,inputValue:We,value:ce,dirty:Ts,expanded:Je&&Fe,popupOpen:Je,focused:$e||Oe!==-1,anchorEl:Fe,setAnchorEl:ze,focusedItem:Oe,focusedTag:Oe,groupedOptions:ul}}var Yn="top",Do="bottom",Fo="right",Jn="left",Xv="auto",Ed=[Yn,Do,Fo,Jn],lc="start",Ju="end",EA="clippingParents",EE="viewport",yu="popper",TA="reference",Mw=Ed.reduce(function(t,e){return t.concat([e+"-"+lc,e+"-"+Ju])},[]),TE=[].concat(Ed,[Xv]).reduce(function(t,e){return t.concat([e,e+"-"+lc,e+"-"+Ju])},[]),kA="beforeRead",jA="read",PA="afterRead",IA="beforeMain",MA="main",RA="afterMain",AA="beforeWrite",_A="write",LA="afterWrite",OA=[kA,jA,PA,IA,MA,RA,AA,_A,LA];function Ui(t){return t?(t.nodeName||"").toLowerCase():null}function Eo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ga(t){var e=Eo(t).Element;return t instanceof e||t instanceof Element}function zo(t){var e=Eo(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Kv(t){if(typeof ShadowRoot>"u")return!1;var e=Eo(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $A(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},s=e.elements[r];!zo(s)||!Ui(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(c){var u=o[c];u===!1?s.removeAttribute(c):s.setAttribute(c,u===!0?"":u)}))})}function NA(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],s=e.attributes[n]||{},c=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),u=c.reduce(function(d,f){return d[f]="",d},{});!zo(o)||!Ui(o)||(Object.assign(o.style,u),Object.keys(s).forEach(function(d){o.removeAttribute(d)}))})}}const BA={name:"applyStyles",enabled:!0,phase:"write",fn:$A,effect:NA,requires:["computeStyles"]};function $i(t){return t.split("-")[0]}var Wa=Math.max,Df=Math.min,cc=Math.round;function Ry(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function kE(){return!/^((?!chrome|android).)*safari/i.test(Ry())}function uc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,s=1;e&&zo(t)&&(o=t.offsetWidth>0&&cc(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&cc(n.height)/t.offsetHeight||1);var c=Ga(t)?Eo(t):window,u=c.visualViewport,d=!kE()&&r,f=(n.left+(d&&u?u.offsetLeft:0))/o,h=(n.top+(d&&u?u.offsetTop:0))/s,v=n.width/o,m=n.height/s;return{width:v,height:m,top:h,right:f+v,bottom:h+m,left:f,x:f,y:h}}function Qv(t){var e=uc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function jE(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Kv(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function gs(t){return Eo(t).getComputedStyle(t)}function zA(t){return["table","td","th"].indexOf(Ui(t))>=0}function fa(t){return((Ga(t)?t.ownerDocument:t.document)||window.document).documentElement}function Th(t){return Ui(t)==="html"?t:t.assignedSlot||t.parentNode||(Kv(t)?t.host:null)||fa(t)}function Rw(t){return!zo(t)||gs(t).position==="fixed"?null:t.offsetParent}function DA(t){var e=/firefox/i.test(Ry()),r=/Trident/i.test(Ry());if(r&&zo(t)){var n=gs(t);if(n.position==="fixed")return null}var o=Th(t);for(Kv(o)&&(o=o.host);zo(o)&&["html","body"].indexOf(Ui(o))<0;){var s=gs(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Td(t){for(var e=Eo(t),r=Rw(t);r&&zA(r)&&gs(r).position==="static";)r=Rw(r);return r&&(Ui(r)==="html"||Ui(r)==="body"&&gs(r).position==="static")?e:r||DA(t)||e}function Yv(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Nu(t,e,r){return Wa(t,Df(e,r))}function FA(t,e,r){var n=Nu(t,e,r);return n>r?r:n}function PE(){return{top:0,right:0,bottom:0,left:0}}function IE(t){return Object.assign({},PE(),t)}function ME(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var HA=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,IE(typeof e!="number"?e:ME(e,Ed))};function UA(t){var e,r=t.state,n=t.name,o=t.options,s=r.elements.arrow,c=r.modifiersData.popperOffsets,u=$i(r.placement),d=Yv(u),f=[Jn,Fo].indexOf(u)>=0,h=f?"height":"width";if(!(!s||!c)){var v=HA(o.padding,r),m=Qv(s),y=d==="y"?Yn:Jn,x=d==="y"?Do:Fo,w=r.rects.reference[h]+r.rects.reference[d]-c[d]-r.rects.popper[h],C=c[d]-r.rects.reference[d],j=Td(s),k=j?d==="y"?j.clientHeight||0:j.clientWidth||0:0,I=w/2-C/2,E=v[y],M=k-m[h]-v[x],R=k/2-m[h]/2+I,L=Nu(E,R,M),A=d;r.modifiersData[n]=(e={},e[A]=L,e.centerOffset=L-R,e)}}function VA(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||jE(e.elements.popper,o)&&(e.elements.arrow=o))}const WA={name:"arrow",enabled:!0,phase:"main",fn:UA,effect:VA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dc(t){return t.split("-")[1]}var qA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GA(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:cc(r*o)/o||0,y:cc(n*o)/o||0}}function Aw(t){var e,r=t.popper,n=t.popperRect,o=t.placement,s=t.variation,c=t.offsets,u=t.position,d=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,v=t.isFixed,m=c.x,y=m===void 0?0:m,x=c.y,w=x===void 0?0:x,C=typeof h=="function"?h({x:y,y:w}):{x:y,y:w};y=C.x,w=C.y;var j=c.hasOwnProperty("x"),k=c.hasOwnProperty("y"),I=Jn,E=Yn,M=window;if(f){var R=Td(r),L="clientHeight",A="clientWidth";if(R===Eo(r)&&(R=fa(r),gs(R).position!=="static"&&u==="absolute"&&(L="scrollHeight",A="scrollWidth")),R=R,o===Yn||(o===Jn||o===Fo)&&s===Ju){E=Do;var F=v&&R===M&&M.visualViewport?M.visualViewport.height:R[L];w-=F-n.height,w*=d?1:-1}if(o===Jn||(o===Yn||o===Do)&&s===Ju){I=Fo;var G=v&&R===M&&M.visualViewport?M.visualViewport.width:R[A];y-=G-n.width,y*=d?1:-1}}var $=Object.assign({position:u},f&&qA),P=h===!0?GA({x:y,y:w},Eo(r)):{x:y,y:w};if(y=P.x,w=P.y,d){var q;return Object.assign({},$,(q={},q[E]=k?"0":"",q[I]=j?"0":"",q.transform=(M.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",q))}return Object.assign({},$,(e={},e[E]=k?w+"px":"",e[I]=j?y+"px":"",e.transform="",e))}function XA(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,c=s===void 0?!0:s,u=r.roundOffsets,d=u===void 0?!0:u,f={placement:$i(e.placement),variation:dc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Aw(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Aw(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const KA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XA,data:{}};var Wp={passive:!0};function QA(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,s=o===void 0?!0:o,c=n.resize,u=c===void 0?!0:c,d=Eo(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&f.forEach(function(h){h.addEventListener("scroll",r.update,Wp)}),u&&d.addEventListener("resize",r.update,Wp),function(){s&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Wp)}),u&&d.removeEventListener("resize",r.update,Wp)}}const YA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:QA,data:{}};var JA={left:"right",right:"left",bottom:"top",top:"bottom"};function Cf(t){return t.replace(/left|right|bottom|top/g,function(e){return JA[e]})}var ZA={start:"end",end:"start"};function _w(t){return t.replace(/start|end/g,function(e){return ZA[e]})}function Jv(t){var e=Eo(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Zv(t){return uc(fa(t)).left+Jv(t).scrollLeft}function e6(t,e){var r=Eo(t),n=fa(t),o=r.visualViewport,s=n.clientWidth,c=n.clientHeight,u=0,d=0;if(o){s=o.width,c=o.height;var f=kE();(f||!f&&e==="fixed")&&(u=o.offsetLeft,d=o.offsetTop)}return{width:s,height:c,x:u+Zv(t),y:d}}function t6(t){var e,r=fa(t),n=Jv(t),o=(e=t.ownerDocument)==null?void 0:e.body,s=Wa(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Wa(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+Zv(t),d=-n.scrollTop;return gs(o||r).direction==="rtl"&&(u+=Wa(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:u,y:d}}function e0(t){var e=gs(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function RE(t){return["html","body","#document"].indexOf(Ui(t))>=0?t.ownerDocument.body:zo(t)&&e0(t)?t:RE(Th(t))}function Bu(t,e){var r;e===void 0&&(e=[]);var n=RE(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=Eo(n),c=o?[s].concat(s.visualViewport||[],e0(n)?n:[]):n,u=e.concat(c);return o?u:u.concat(Bu(Th(c)))}function Ay(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function r6(t,e){var r=uc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Lw(t,e,r){return e===EE?Ay(e6(t,r)):Ga(e)?r6(e,r):Ay(t6(fa(t)))}function n6(t){var e=Bu(Th(t)),r=["absolute","fixed"].indexOf(gs(t).position)>=0,n=r&&zo(t)?Td(t):t;return Ga(n)?e.filter(function(o){return Ga(o)&&jE(o,n)&&Ui(o)!=="body"}):[]}function o6(t,e,r,n){var o=e==="clippingParents"?n6(t):[].concat(e),s=[].concat(o,[r]),c=s[0],u=s.reduce(function(d,f){var h=Lw(t,f,n);return d.top=Wa(h.top,d.top),d.right=Df(h.right,d.right),d.bottom=Df(h.bottom,d.bottom),d.left=Wa(h.left,d.left),d},Lw(t,c,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function AE(t){var e=t.reference,r=t.element,n=t.placement,o=n?$i(n):null,s=n?dc(n):null,c=e.x+e.width/2-r.width/2,u=e.y+e.height/2-r.height/2,d;switch(o){case Yn:d={x:c,y:e.y-r.height};break;case Do:d={x:c,y:e.y+e.height};break;case Fo:d={x:e.x+e.width,y:u};break;case Jn:d={x:e.x-r.width,y:u};break;default:d={x:e.x,y:e.y}}var f=o?Yv(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(s){case lc:d[f]=d[f]-(e[h]/2-r[h]/2);break;case Ju:d[f]=d[f]+(e[h]/2-r[h]/2);break}}return d}function Zu(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,s=r.strategy,c=s===void 0?t.strategy:s,u=r.boundary,d=u===void 0?EA:u,f=r.rootBoundary,h=f===void 0?EE:f,v=r.elementContext,m=v===void 0?yu:v,y=r.altBoundary,x=y===void 0?!1:y,w=r.padding,C=w===void 0?0:w,j=IE(typeof C!="number"?C:ME(C,Ed)),k=m===yu?TA:yu,I=t.rects.popper,E=t.elements[x?k:m],M=o6(Ga(E)?E:E.contextElement||fa(t.elements.popper),d,h,c),R=uc(t.elements.reference),L=AE({reference:R,element:I,placement:o}),A=Ay(Object.assign({},I,L)),F=m===yu?A:R,G={top:M.top-F.top+j.top,bottom:F.bottom-M.bottom+j.bottom,left:M.left-F.left+j.left,right:F.right-M.right+j.right},$=t.modifiersData.offset;if(m===yu&&$){var P=$[o];Object.keys(G).forEach(function(q){var V=[Fo,Do].indexOf(q)>=0?1:-1,O=[Yn,Do].indexOf(q)>=0?"y":"x";G[q]+=P[O]*V})}return G}function i6(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,s=r.rootBoundary,c=r.padding,u=r.flipVariations,d=r.allowedAutoPlacements,f=d===void 0?TE:d,h=dc(n),v=h?u?Mw:Mw.filter(function(x){return dc(x)===h}):Ed,m=v.filter(function(x){return f.indexOf(x)>=0});m.length===0&&(m=v);var y=m.reduce(function(x,w){return x[w]=Zu(t,{placement:w,boundary:o,rootBoundary:s,padding:c})[$i(w)],x},{});return Object.keys(y).sort(function(x,w){return y[x]-y[w]})}function s6(t){if($i(t)===Xv)return[];var e=Cf(t);return[_w(t),e,_w(e)]}function a6(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!0:c,d=r.fallbackPlacements,f=r.padding,h=r.boundary,v=r.rootBoundary,m=r.altBoundary,y=r.flipVariations,x=y===void 0?!0:y,w=r.allowedAutoPlacements,C=e.options.placement,j=$i(C),k=j===C,I=d||(k||!x?[Cf(C)]:s6(C)),E=[C].concat(I).reduce(function(J,oe){return J.concat($i(oe)===Xv?i6(e,{placement:oe,boundary:h,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),M=e.rects.reference,R=e.rects.popper,L=new Map,A=!0,F=E[0],G=0;G<E.length;G++){var $=E[G],P=$i($),q=dc($)===lc,V=[Yn,Do].indexOf(P)>=0,O=V?"width":"height",U=Zu(e,{placement:$,boundary:h,rootBoundary:v,altBoundary:m,padding:f}),K=V?q?Fo:Jn:q?Do:Yn;M[O]>R[O]&&(K=Cf(K));var Y=Cf(K),te=[];if(s&&te.push(U[P]<=0),u&&te.push(U[K]<=0,U[Y]<=0),te.every(function(J){return J})){F=$,A=!1;break}L.set($,te)}if(A)for(var Q=x?3:1,X=function(oe){var Z=E.find(function(pe){var Se=L.get(pe);if(Se)return Se.slice(0,oe).every(function(se){return se})});if(Z)return F=Z,"break"},re=Q;re>0;re--){var de=X(re);if(de==="break")break}e.placement!==F&&(e.modifiersData[n]._skip=!0,e.placement=F,e.reset=!0)}}const l6={name:"flip",enabled:!0,phase:"main",fn:a6,requiresIfExists:["offset"],data:{_skip:!1}};function Ow(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function $w(t){return[Yn,Fo,Do,Jn].some(function(e){return t[e]>=0})}function c6(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,c=Zu(e,{elementContext:"reference"}),u=Zu(e,{altBoundary:!0}),d=Ow(c,n),f=Ow(u,o,s),h=$w(d),v=$w(f);e.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}const u6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:c6};function d6(t,e,r){var n=$i(t),o=[Jn,Yn].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,c=s[0],u=s[1];return c=c||0,u=(u||0)*o,[Jn,Fo].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}function p6(t){var e=t.state,r=t.options,n=t.name,o=r.offset,s=o===void 0?[0,0]:o,c=TE.reduce(function(h,v){return h[v]=d6(v,e.rects,s),h},{}),u=c[e.placement],d=u.x,f=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=c}const f6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p6};function h6(t){var e=t.state,r=t.name;e.modifiersData[r]=AE({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const m6={name:"popperOffsets",enabled:!0,phase:"read",fn:h6,data:{}};function g6(t){return t==="x"?"y":"x"}function y6(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,u=c===void 0?!1:c,d=r.boundary,f=r.rootBoundary,h=r.altBoundary,v=r.padding,m=r.tether,y=m===void 0?!0:m,x=r.tetherOffset,w=x===void 0?0:x,C=Zu(e,{boundary:d,rootBoundary:f,padding:v,altBoundary:h}),j=$i(e.placement),k=dc(e.placement),I=!k,E=Yv(j),M=g6(E),R=e.modifiersData.popperOffsets,L=e.rects.reference,A=e.rects.popper,F=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,G=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(R){if(s){var q,V=E==="y"?Yn:Jn,O=E==="y"?Do:Fo,U=E==="y"?"height":"width",K=R[E],Y=K+C[V],te=K-C[O],Q=y?-A[U]/2:0,X=k===lc?L[U]:A[U],re=k===lc?-A[U]:-L[U],de=e.elements.arrow,J=y&&de?Qv(de):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:PE(),Z=oe[V],pe=oe[O],Se=Nu(0,L[U],J[U]),se=I?L[U]/2-Q-Se-Z-G.mainAxis:X-Se-Z-G.mainAxis,ae=I?-L[U]/2+Q+Se+pe+G.mainAxis:re+Se+pe+G.mainAxis,Fe=e.elements.arrow&&Td(e.elements.arrow),ze=Fe?E==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Oe=(q=$==null?void 0:$[E])!=null?q:0,Be=K+se-Oe-ze,Le=K+ae-Oe,Ke=Nu(y?Df(Y,Be):Y,K,y?Wa(te,Le):te);R[E]=Ke,P[E]=Ke-K}if(u){var pt,ce=E==="x"?Yn:Jn,De=E==="x"?Do:Fo,We=R[M],gt=M==="y"?"height":"width",$e=We+C[ce],zt=We-C[De],vt=[Yn,Jn].indexOf(j)!==-1,fe=(pt=$==null?void 0:$[M])!=null?pt:0,be=vt?$e:We-L[gt]-A[gt]-fe+G.altAxis,Pe=vt?We+L[gt]+A[gt]-fe-G.altAxis:zt,Ae=y&&vt?FA(be,We,Pe):Nu(y?be:$e,We,y?Pe:zt);R[M]=Ae,P[M]=Ae-We}e.modifiersData[n]=P}}const v6={name:"preventOverflow",enabled:!0,phase:"main",fn:y6,requiresIfExists:["offset"]};function x6(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function b6(t){return t===Eo(t)||!zo(t)?Jv(t):x6(t)}function w6(t){var e=t.getBoundingClientRect(),r=cc(e.width)/t.offsetWidth||1,n=cc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function S6(t,e,r){r===void 0&&(r=!1);var n=zo(e),o=zo(e)&&w6(e),s=fa(e),c=uc(t,o,r),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Ui(e)!=="body"||e0(s))&&(u=b6(e)),zo(e)?(d=uc(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):s&&(d.x=Zv(s))),{x:c.left+u.scrollLeft-d.x,y:c.top+u.scrollTop-d.y,width:c.width,height:c.height}}function C6(t){var e=new Map,r=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function o(s){r.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(u){if(!r.has(u)){var d=e.get(u);d&&o(d)}}),n.push(s)}return t.forEach(function(s){r.has(s.name)||o(s)}),n}function E6(t){var e=C6(t);return OA.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function T6(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function k6(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Nw={placement:"bottom",modifiers:[],strategy:"absolute"};function Bw(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function j6(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,s=o===void 0?Nw:o;return function(u,d,f){f===void 0&&(f=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nw,s),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},v=[],m=!1,y={state:h,setOptions:function(j){var k=typeof j=="function"?j(h.options):j;w(),h.options=Object.assign({},s,h.options,k),h.scrollParents={reference:Ga(u)?Bu(u):u.contextElement?Bu(u.contextElement):[],popper:Bu(d)};var I=E6(k6([].concat(n,h.options.modifiers)));return h.orderedModifiers=I.filter(function(E){return E.enabled}),x(),y.update()},forceUpdate:function(){if(!m){var j=h.elements,k=j.reference,I=j.popper;if(Bw(k,I)){h.rects={reference:S6(k,Td(I),h.options.strategy==="fixed"),popper:Qv(I)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(G){return h.modifiersData[G.name]=Object.assign({},G.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var M=h.orderedModifiers[E],R=M.fn,L=M.options,A=L===void 0?{}:L,F=M.name;typeof R=="function"&&(h=R({state:h,options:A,name:F,instance:y})||h)}}}},update:T6(function(){return new Promise(function(C){y.forceUpdate(),C(h)})}),destroy:function(){w(),m=!0}};if(!Bw(u,d))return y;y.setOptions(f).then(function(C){!m&&f.onFirstUpdate&&f.onFirstUpdate(C)});function x(){h.orderedModifiers.forEach(function(C){var j=C.name,k=C.options,I=k===void 0?{}:k,E=C.effect;if(typeof E=="function"){var M=E({state:h,name:j,instance:y,options:I}),R=function(){};v.push(M||R)}})}function w(){v.forEach(function(C){return C()}),v=[]}return y}}var P6=[YA,m6,KA,BA,f6,l6,v6,WA,u6],I6=j6({defaultModifiers:P6});function pc(t){var v;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...s}=t,c=o?{}:wE(r,n),{props:u,internalRef:d}=SE({...s,externalSlotProps:c}),f=Fr(d,c==null?void 0:c.ref,(v=t.additionalProps)==null?void 0:v.ref);return bE(e,{...u,ref:f},n)}function el(t){var e;return parseInt(b.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function M6(t){return typeof t=="function"?t():t}const _E=b.forwardRef(function(e,r){const{children:n,container:o,disablePortal:s=!1}=e,[c,u]=b.useState(null),d=Fr(b.isValidElement(n)?el(n):null,r);if(to(()=>{s||u(M6(o)||document.body)},[o,s]),to(()=>{if(c&&!s)return Ty(r,c),()=>{Ty(r,null)}},[r,c,s]),s){if(b.isValidElement(n)){const f={ref:d};return b.cloneElement(n,f)}return n}return c&&h2.createPortal(n,c)});function R6(t){return et("MuiPopper",t)}nt("MuiPopper",["root"]);function A6(t,e){if(e==="ltr")return t;switch(t){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 t}}function _y(t){return typeof t=="function"?t():t}function _6(t){return t.nodeType!==void 0}const L6=t=>{const{classes:e}=t;return tt({root:["root"]},R6,e)},O6={},$6=b.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:s,disablePortal:c,modifiers:u,open:d,placement:f,popperOptions:h,popperRef:v,slotProps:m={},slots:y={},TransitionProps:x,ownerState:w,...C}=e,j=b.useRef(null),k=Fr(j,r),I=b.useRef(null),E=Fr(I,v),M=b.useRef(E);to(()=>{M.current=E},[E]),b.useImperativeHandle(v,()=>I.current,[]);const R=A6(f,s),[L,A]=b.useState(R),[F,G]=b.useState(_y(n));b.useEffect(()=>{I.current&&I.current.forceUpdate()}),b.useEffect(()=>{n&&G(_y(n))},[n]),to(()=>{if(!F||!d)return;const O=Y=>{A(Y.placement)};let U=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{O(Y)}}];u!=null&&(U=U.concat(u)),h&&h.modifiers!=null&&(U=U.concat(h.modifiers));const K=I6(F,j.current,{placement:R,...h,modifiers:U});return M.current(K),()=>{K.destroy(),M.current(null)}},[F,c,u,d,h,R]);const $={placement:L};x!==null&&($.TransitionProps=x);const P=L6(e),q=y.root??"div",V=pc({elementType:q,externalSlotProps:m.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:k},ownerState:e,className:P.root});return l.jsx(q,{...V,children:typeof o=="function"?o($):o})}),N6=b.forwardRef(function(e,r){const{anchorEl:n,children:o,container:s,direction:c="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:f,open:h,placement:v="bottom",popperOptions:m=O6,popperRef:y,style:x,transition:w=!1,slotProps:C={},slots:j={},...k}=e,[I,E]=b.useState(!0),M=()=>{E(!1)},R=()=>{E(!0)};if(!d&&!h&&(!w||I))return null;let L;if(s)L=s;else if(n){const G=_y(n);L=G&&_6(G)?vn(G).body:vn(null).body}const A=!h&&d&&(!w||I)?"none":void 0,F=w?{in:h,onEnter:M,onExited:R}:void 0;return l.jsx(_E,{disablePortal:u,container:L,children:l.jsx($6,{anchorEl:n,direction:c,disablePortal:u,modifiers:f,ref:r,open:w?!I:h,placement:v,popperOptions:m,popperRef:y,slotProps:C,slots:j,...k,style:{position:"fixed",top:0,left:0,display:A,...x},TransitionProps:F,children:o})})}),B6=ve(N6,{name:"MuiPopper",slot:"Root"})({}),kh=b.forwardRef(function(e,r){const n=pa(),o=ot({props:e,name:"MuiPopper"}),{anchorEl:s,component:c,components:u,componentsProps:d,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:y,placement:x,popperOptions:w,popperRef:C,transition:j,slots:k,slotProps:I,...E}=o,M=(k==null?void 0:k.root)??(u==null?void 0:u.Root),R={anchorEl:s,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:y,placement:x,popperOptions:w,popperRef:C,transition:j,...E};return l.jsx(B6,{as:c,direction:n?"rtl":"ltr",slots:{root:M},slotProps:I??d,...R,ref:r})});function z6(t){return et("MuiListSubheader",t)}nt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const D6=t=>{const{classes:e,color:r,disableGutters:n,inset:o,disableSticky:s}=t,c={root:["root",r!=="default"&&`color${ye(r)}`,!n&&"gutters",o&&"inset",!s&&"sticky"]};return tt(c,z6,e)},F6=ve("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${ye(r.color)}`],!r.disableGutters&&e.gutters,r.inset&&e.inset,!r.disableSticky&&e.sticky]}})(Ye(({theme:t})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(t.vars||t).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}}]}))),Ly=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListSubheader"}),{className:o,color:s="default",component:c="li",disableGutters:u=!1,disableSticky:d=!1,inset:f=!1,...h}=n,v={...n,color:s,component:c,disableGutters:u,disableSticky:d,inset:f},m=D6(v);return l.jsx(F6,{as:c,className:Me(m.root,o),ref:r,ownerState:v,...h})});Ly&&(Ly.muiSkipListHighlight=!0);const H6=Ee(l.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function U6(t){return et("MuiChip",t)}const Kt=nt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V6=t=>{const{classes:e,disabled:r,size:n,color:o,iconColor:s,onDelete:c,clickable:u,variant:d}=t,f={root:["root",d,r&&"disabled",`size${ye(n)}`,`color${ye(o)}`,u&&"clickable",u&&`clickableColor${ye(o)}`,c&&"deletable",c&&`deletableColor${ye(o)}`,`${d}${ye(o)}`],label:["label",`label${ye(n)}`],avatar:["avatar",`avatar${ye(n)}`,`avatarColor${ye(o)}`],icon:["icon",`icon${ye(n)}`,`iconColor${ye(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ye(n)}`,`deleteIconColor${ye(o)}`,`deleteIcon${ye(d)}Color${ye(o)}`]};return tt(f,U6,e)},W6=ve("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{color:n,iconColor:o,clickable:s,onDelete:c,size:u,variant:d}=r;return[{[`& .${Kt.avatar}`]:e.avatar},{[`& .${Kt.avatar}`]:e[`avatar${ye(u)}`]},{[`& .${Kt.avatar}`]:e[`avatarColor${ye(n)}`]},{[`& .${Kt.icon}`]:e.icon},{[`& .${Kt.icon}`]:e[`icon${ye(u)}`]},{[`& .${Kt.icon}`]:e[`iconColor${ye(o)}`]},{[`& .${Kt.deleteIcon}`]:e.deleteIcon},{[`& .${Kt.deleteIcon}`]:e[`deleteIcon${ye(u)}`]},{[`& .${Kt.deleteIcon}`]:e[`deleteIconColor${ye(n)}`]},{[`& .${Kt.deleteIcon}`]:e[`deleteIcon${ye(d)}Color${ye(n)}`]},e.root,e[`size${ye(u)}`],e[`color${ye(n)}`],s&&e.clickable,s&&n!=="default"&&e[`clickableColor${ye(n)}`],c&&e.deletable,c&&n!=="default"&&e[`deletableColor${ye(n)}`],e[d],e[`${d}${ye(n)}`]]}})(Ye(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Kt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Kt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${Kt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${Kt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${Kt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${Kt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Kt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Kt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Kt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(cr(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText,[`& .${Kt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Kt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Kt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Kt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(cr(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Kt.focusVisible}`]:{background:(t.vars||t).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${Kt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(cr(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Kt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Kt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${Kt.avatar}`]:{marginLeft:4},[`& .${Kt.avatarSmall}`]:{marginLeft:2},[`& .${Kt.icon}`]:{marginLeft:4},[`& .${Kt.iconSmall}`]:{marginLeft:2},[`& .${Kt.deleteIcon}`]:{marginRight:5},[`& .${Kt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(cr()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(t.vars||t).palette[r].main,border:`1px solid ${t.alpha((t.vars||t).palette[r].main,.7)}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${Kt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.focusOpacity)},[`& .${Kt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].main}}}}))]}})),q6=ve("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:r}=t,{size:n}=r;return[e.label,e[`label${ye(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function zw(t){return t.key==="Backspace"||t.key==="Delete"}const Ut=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiChip"}),{avatar:o,className:s,clickable:c,color:u="default",component:d,deleteIcon:f,disabled:h=!1,icon:v,label:m,onClick:y,onDelete:x,onKeyDown:w,onKeyUp:C,size:j="medium",variant:k="filled",tabIndex:I,skipFocusWhenDisabled:E=!1,slots:M={},slotProps:R={},...L}=n,A=b.useRef(null),F=Fr(A,r),G=Z=>{Z.stopPropagation(),x&&x(Z)},$=Z=>{Z.currentTarget===Z.target&&zw(Z)&&Z.preventDefault(),w&&w(Z)},P=Z=>{Z.currentTarget===Z.target&&x&&zw(Z)&&x(Z),C&&C(Z)},q=c!==!1&&y?!0:c,V=q||x?ci:d||"div",O={...n,component:V,disabled:h,size:j,color:u,iconColor:b.isValidElement(v)&&v.props.color||u,onDelete:!!x,clickable:q,variant:k},U=V6(O),K=V===ci?{component:d||"div",focusVisibleClassName:U.focusVisible,...x&&{disableRipple:!0}}:{};let Y=null;x&&(Y=f&&b.isValidElement(f)?b.cloneElement(f,{className:Me(f.props.className,U.deleteIcon),onClick:G}):l.jsx(H6,{className:U.deleteIcon,onClick:G}));let te=null;o&&b.isValidElement(o)&&(te=b.cloneElement(o,{className:Me(U.avatar,o.props.className)}));let Q=null;v&&b.isValidElement(v)&&(Q=b.cloneElement(v,{className:Me(U.icon,v.props.className)}));const X={slots:M,slotProps:R},[re,de]=Ze("root",{elementType:W6,externalForwardedProps:{...X,...L},ownerState:O,shouldForwardComponentProp:!0,ref:F,className:Me(U.root,s),additionalProps:{disabled:q&&h?!0:void 0,tabIndex:E&&h?-1:I,...K},getSlotProps:Z=>({...Z,onClick:pe=>{var Se;(Se=Z.onClick)==null||Se.call(Z,pe),y==null||y(pe)},onKeyDown:pe=>{var Se;(Se=Z.onKeyDown)==null||Se.call(Z,pe),$(pe)},onKeyUp:pe=>{var Se;(Se=Z.onKeyUp)==null||Se.call(Z,pe),P(pe)}})}),[J,oe]=Ze("label",{elementType:q6,externalForwardedProps:X,ownerState:O,className:U.label});return l.jsxs(re,{as:V,...de,children:[te||Q,l.jsx(J,{...oe,children:m}),Y]})});function qp(t){return parseInt(t,10)||0}const G6={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function X6(t){for(const e in t)return!1;return!0}function Dw(t){return X6(t)||t.outerHeightStyle===0&&!t.overflowing}const K6=b.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:s=1,style:c,value:u,...d}=e,{current:f}=b.useRef(u!=null),h=b.useRef(null),v=Fr(r,h),m=b.useRef(null),y=b.useRef(null),x=b.useCallback(()=>{const I=h.current,E=y.current;if(!I||!E)return;const R=li(I).getComputedStyle(I);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};E.style.width=R.width,E.value=I.value||e.placeholder||"x",E.value.slice(-1)===`
|
|
218
|
+
`&&(E.value+=" ");const L=R.boxSizing,A=qp(R.paddingBottom)+qp(R.paddingTop),F=qp(R.borderBottomWidth)+qp(R.borderTopWidth),G=E.scrollHeight;E.value="x";const $=E.scrollHeight;let P=G;s&&(P=Math.max(Number(s)*$,P)),o&&(P=Math.min(Number(o)*$,P)),P=Math.max(P,$);const q=P+(L==="border-box"?A+F:0),V=Math.abs(P-G)<=1;return{outerHeightStyle:q,overflowing:V}},[o,s,e.placeholder]),w=tn(()=>{const I=h.current,E=x();if(!I||!E||Dw(E))return!1;const M=E.outerHeightStyle;return m.current!=null&&m.current!==M}),C=b.useCallback(()=>{const I=h.current,E=x();if(!I||!E||Dw(E))return;const M=E.outerHeightStyle;m.current!==M&&(m.current=M,I.style.height=`${M}px`),I.style.overflow=E.overflowing?"hidden":""},[x]),j=b.useRef(-1);to(()=>{const I=Ch(C),E=h==null?void 0:h.current;if(!E)return;const M=li(E);M.addEventListener("resize",I);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{w()&&(R.unobserve(E),cancelAnimationFrame(j.current),C(),j.current=requestAnimationFrame(()=>{R.observe(E)}))}),R.observe(E)),()=>{I.clear(),cancelAnimationFrame(j.current),M.removeEventListener("resize",I),R&&R.disconnect()}},[x,C,w]),to(()=>{C()});const k=I=>{f||C();const E=I.target,M=E.value.length,R=E.value.endsWith(`
|
|
219
|
+
`),L=E.selectionStart===M;R&&L&&E.setSelectionRange(M,M),n&&n(I)};return l.jsxs(b.Fragment,{children:[l.jsx("textarea",{value:u,onChange:k,ref:v,rows:s,style:c,...d}),l.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...G6.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function ha({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const jh=b.createContext(void 0);function Yi(){return b.useContext(jh)}function Fw(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Ff(t,e=!1){return t&&(Fw(t.value)&&t.value!==""||e&&Fw(t.defaultValue)&&t.defaultValue!=="")}function Q6(t){return t.startAdornment}function Y6(t){return et("MuiInputBase",t)}const vo=nt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Hw;const Ph=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${ye(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},Ih=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},J6=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:s,focused:c,formControl:u,fullWidth:d,hiddenLabel:f,multiline:h,readOnly:v,size:m,startAdornment:y,type:x}=t,w={root:["root",`color${ye(r)}`,n&&"disabled",o&&"error",d&&"fullWidth",c&&"focused",u&&"formControl",m&&m!=="medium"&&`size${ye(m)}`,h&&"multiline",y&&"adornedStart",s&&"adornedEnd",f&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",h&&"inputMultiline",m==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",v&&"readOnly"]};return tt(w,Y6,e)},Mh=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ph})(Ye(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${vo.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Rh=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ih})(Ye(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vo.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${vo.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Uw=sR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ah=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:c,className:u,color:d,components:f={},componentsProps:h={},defaultValue:v,disabled:m,disableInjectingGlobalStyles:y,endAdornment:x,error:w,fullWidth:C=!1,id:j,inputComponent:k="input",inputProps:I={},inputRef:E,margin:M,maxRows:R,minRows:L,multiline:A=!1,name:F,onBlur:G,onChange:$,onClick:P,onFocus:q,onKeyDown:V,onKeyUp:O,placeholder:U,readOnly:K,renderSuffix:Y,rows:te,size:Q,slotProps:X={},slots:re={},startAdornment:de,type:J="text",value:oe,...Z}=n,pe=I.value!=null?I.value:oe,{current:Se}=b.useRef(pe!=null),se=b.useRef(),ae=b.useCallback(Ce=>{},[]),Fe=Fr(se,E,I.ref,ae),[ze,Oe]=b.useState(!1),Be=Yi(),Le=ha({props:n,muiFormControl:Be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Le.focused=Be?Be.focused:ze,b.useEffect(()=>{!Be&&m&&ze&&(Oe(!1),G&&G())},[Be,m,ze,G]);const Ke=Be&&Be.onFilled,pt=Be&&Be.onEmpty,ce=b.useCallback(Ce=>{Ff(Ce)?Ke&&Ke():pt&&pt()},[Ke,pt]);to(()=>{Se&&ce({value:pe})},[pe,ce,Se]);const De=Ce=>{q&&q(Ce),I.onFocus&&I.onFocus(Ce),Be&&Be.onFocus?Be.onFocus(Ce):Oe(!0)},We=Ce=>{G&&G(Ce),I.onBlur&&I.onBlur(Ce),Be&&Be.onBlur?Be.onBlur(Ce):Oe(!1)},gt=(Ce,...Ge)=>{if(!Se){const Ue=Ce.target||se.current;if(Ue==null)throw new Error(ms(1));ce({value:Ue.value})}I.onChange&&I.onChange(Ce,...Ge),$&&$(Ce,...Ge)};b.useEffect(()=>{ce(se.current)},[]);const $e=Ce=>{se.current&&Ce.currentTarget===Ce.target&&se.current.focus(),P&&P(Ce)};let zt=k,vt=I;A&&zt==="input"&&(te?vt={type:void 0,minRows:te,maxRows:te,...vt}:vt={type:void 0,maxRows:R,minRows:L,...vt},zt=K6);const fe=Ce=>{ce(Ce.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};b.useEffect(()=>{Be&&Be.setAdornedStart(!!de)},[Be,de]);const be={...n,color:Le.color||"primary",disabled:Le.disabled,endAdornment:x,error:Le.error,focused:Le.focused,formControl:Be,fullWidth:C,hiddenLabel:Le.hiddenLabel,multiline:A,size:Le.size,startAdornment:de,type:J},Pe=J6(be),Ae=re.root||f.Root||Mh,qe=X.root||h.root||{},Je=re.input||f.Input||Rh;return vt={...vt,...X.input??h.input},l.jsxs(b.Fragment,{children:[!y&&typeof Uw=="function"&&(Hw||(Hw=l.jsx(Uw,{}))),l.jsxs(Ae,{...qe,ref:r,onClick:$e,...Z,...!Nf(Ae)&&{ownerState:{...be,...qe.ownerState}},className:Me(Pe.root,qe.className,u,K&&"MuiInputBase-readOnly"),children:[de,l.jsx(jh.Provider,{value:null,children:l.jsx(Je,{"aria-invalid":Le.error,"aria-describedby":o,autoComplete:s,autoFocus:c,defaultValue:v,disabled:Le.disabled,id:j,onAnimationStart:fe,name:F,placeholder:U,readOnly:K,required:Le.required,rows:te,value:pe,onKeyDown:V,onKeyUp:O,type:J,...vt,...!Nf(Je)&&{as:zt,ownerState:{...be,...vt.ownerState}},ref:Fe,className:Me(Pe.input,vt.className,K&&"MuiInputBase-readOnly"),onBlur:We,onChange:gt,onFocus:De})}),x,Y?Y({...Le,startAdornment:de}):null]})]})});function Z6(t){return et("MuiInput",t)}const Xs={...vo,...nt("MuiInput",["root","underline","input"])};function e_(t){return et("MuiOutlinedInput",t)}const Lo={...vo,...nt("MuiOutlinedInput",["root","notchedOutline","input"])};function t_(t){return et("MuiFilledInput",t)}const xo={...vo,...nt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},LE=Ee(l.jsx("path",{d:"M7 10l5 5 5-5z"}));function r_(t){return et("MuiAutocomplete",t)}const Wt=nt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Vw,Ww;const n_=t=>{const{classes:e,disablePortal:r,expanded:n,focused:o,fullWidth:s,hasClearIcon:c,hasPopupIcon:u,inputFocused:d,popupOpen:f,size:h}=t,v={root:["root",n&&"expanded",o&&"focused",s&&"fullWidth",c&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",d&&"inputFocused"],tag:["tag",`tagSize${ye(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return tt(v,r_,e)},o_=ve("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{fullWidth:n,hasClearIcon:o,hasPopupIcon:s,inputFocused:c,size:u}=r;return[{[`& .${Wt.tag}`]:e.tag},{[`& .${Wt.tag}`]:e[`tagSize${ye(u)}`]},{[`& .${Wt.inputRoot}`]:e.inputRoot},{[`& .${Wt.input}`]:e.input},{[`& .${Wt.input}`]:c&&e.inputFocused},e.root,n&&e.fullWidth,s&&e.hasPopupIcon,o&&e.hasClearIcon]}})({[`&.${Wt.focused} .${Wt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Wt.clearIndicator}`]:{visibility:"visible"}},[`& .${Wt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Wt.inputRoot}`]:{[`.${Wt.hasPopupIcon}&, .${Wt.hasClearIcon}&`]:{paddingRight:30},[`.${Wt.hasPopupIcon}.${Wt.hasClearIcon}&`]:{paddingRight:56},[`& .${Wt.input}`]:{width:0,minWidth:30}},[`& .${Xs.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Xs.root}.${vo.sizeSmall}`]:{[`& .${Xs.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Lo.root}`]:{padding:9,[`.${Wt.hasPopupIcon}&, .${Wt.hasClearIcon}&`]:{paddingRight:39},[`.${Wt.hasPopupIcon}.${Wt.hasClearIcon}&`]:{paddingRight:65},[`& .${Wt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Wt.endAdornment}`]:{right:9}},[`& .${Lo.root}.${vo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Wt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${xo.root}`]:{paddingTop:19,paddingLeft:8,[`.${Wt.hasPopupIcon}&, .${Wt.hasClearIcon}&`]:{paddingRight:39},[`.${Wt.hasPopupIcon}.${Wt.hasClearIcon}&`]:{paddingRight:65},[`& .${xo.input}`]:{padding:"7px 4px"},[`& .${Wt.endAdornment}`]:{right:9}},[`& .${xo.root}.${vo.sizeSmall}`]:{paddingBottom:1,[`& .${xo.input}`]:{padding:"2.5px 4px"}},[`& .${vo.hiddenLabel}`]:{paddingTop:8},[`& .${xo.root}.${vo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Wt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${xo.root}.${vo.hiddenLabel}.${vo.sizeSmall}`]:{[`& .${Wt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Wt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Wt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Wt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Wt.inputRoot}`]:{flexWrap:"wrap"}}}]}),i_=ve("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),s_=ve(Xt,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),a_=ve(Xt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popupIndicator,r.popupOpen&&e.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),l_=ve(kh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Wt.option}`]:e.option},e.popper,r.disablePortal&&e.popperDisablePortal]}})(Ye(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),c_=ve(Nr,{name:"MuiAutocomplete",slot:"Paper"})(Ye(({theme:t})=>({...t.typography.body1,overflow:"auto"}))),u_=ve("div",{name:"MuiAutocomplete",slot:"Loading"})(Ye(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),d_=ve("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Ye(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),p_=ve("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Ye(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Wt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Wt.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Wt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${Wt.focused}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Wt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))),f_=ve(Ly,{name:"MuiAutocomplete",slot:"GroupLabel"})(Ye(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8}))),h_=ve("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Wt.option}`]:{paddingLeft:24}}),m_=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:u=!1,ChipProps:d,className:f,clearIcon:h=Vw||(Vw=l.jsx(CE,{fontSize:"small"})),clearOnBlur:v=!n.freeSolo,clearOnEscape:m=!1,clearText:y="Clear",closeText:x="Close",componentsProps:w,defaultValue:C=n.multiple?[]:null,disableClearable:j=!1,disableCloseOnSelect:k=!1,disabled:I=!1,disabledItemsFocusable:E=!1,disableListWrap:M=!1,disablePortal:R=!1,filterOptions:L,filterSelectedOptions:A=!1,forcePopupIcon:F="auto",freeSolo:G=!1,fullWidth:$=!1,getLimitTagsText:P=Jt=>`+${Jt}`,getOptionDisabled:q,getOptionKey:V,getOptionLabel:O,isOptionEqualToValue:U,groupBy:K,handleHomeEndKeys:Y=!n.freeSolo,id:te,includeInputInList:Q=!1,inputValue:X,limitTags:re=-1,ListboxComponent:de,ListboxProps:J,loading:oe=!1,loadingText:Z="Loading…",multiple:pe=!1,noOptionsText:Se="No options",onChange:se,onClose:ae,onHighlightChange:Fe,onInputChange:ze,onOpen:Oe,open:Be,openOnFocus:Le=!1,openText:Ke="Open",options:pt,PaperComponent:ce,PopperComponent:De,popupIcon:We=Ww||(Ww=l.jsx(LE,{})),readOnly:gt=!1,renderGroup:$e,renderInput:zt,renderOption:vt,renderTags:fe,renderValue:be,selectOnFocus:Pe=!n.freeSolo,size:Ae="medium",slots:qe={},slotProps:Je={},value:Ce,...Ge}=n,{getRootProps:Ue,getInputProps:Xe,getInputLabelProps:Mt,getPopupIndicatorProps:Zt,getClearProps:yr,getItemProps:Br,getListboxProps:Yr,getOptionProps:on,value:rt,dirty:bt,expanded:Yt,id:dr,popupOpen:we,focused:Ct,focusedItem:St,anchorEl:or,setAnchorEl:Qe,inputValue:lt,groupedOptions:Ot}=CA({...n,componentName:"Autocomplete"}),Nt=!j&&!I&&bt&&!gt,ar=(!G||F===!0)&&F!==!1,{onMouseDown:Ur}=Xe(),{ref:bn,...Hn}=Yr(),Ko=O||(Jt=>Jt.label??Jt),zr={...n,disablePortal:R,expanded:Yt,focused:Ct,fullWidth:$,getOptionLabel:Ko,hasClearIcon:Nt,hasPopupIcon:ar,inputFocused:St===-1,popupOpen:we,size:Ae},Vr=n_(zr),wn={slots:{paper:ce,popper:De,...qe},slotProps:{chip:d,listbox:J,...w,...Je}},[cl,Ts]=Ze("listbox",{elementType:p_,externalForwardedProps:wn,ownerState:zr,className:Vr.listbox,additionalProps:Hn,ref:bn}),[ul,ke]=Ze("paper",{elementType:Nr,externalForwardedProps:wn,ownerState:zr,className:Vr.paper}),[Te,st]=Ze("popper",{elementType:kh,externalForwardedProps:wn,ownerState:zr,className:Vr.popper,additionalProps:{disablePortal:R,style:{width:or?or.clientWidth:null},role:"presentation",anchorEl:or,open:we}});let Rt;const Lt=Jt=>({className:Vr.tag,disabled:I,...Br(Jt)});if(pe?rt.length>0&&(fe?Rt=fe(rt,Lt,zr):be?Rt=be(rt,Lt,zr):Rt=rt.map((Jt,po)=>{const{key:Jr,...xa}=Lt({index:po});return l.jsx(Ut,{label:Ko(Jt),size:Ae,...xa,...wn.slotProps.chip},Jr)})):be&&rt!=null&&(Rt=be(rt,Lt,zr)),re>-1&&Array.isArray(Rt)){const Jt=Rt.length-re;!Ct&&Jt>0&&(Rt=Rt.splice(0,re),Rt.push(l.jsx("span",{className:Vr.tag,children:P(Jt)},Rt.length)))}const Bt=$e||(Jt=>l.jsxs("li",{children:[l.jsx(f_,{className:Vr.groupLabel,ownerState:zr,component:"div",children:Jt.group}),l.jsx(h_,{className:Vr.groupUl,ownerState:zr,children:Jt.children})]},Jt.key)),ks=vt||((Jt,po)=>{const{key:Jr,...xa}=Jt;return l.jsx("li",{...xa,children:Ko(po)},Jr)}),Lc=(Jt,po)=>{const Jr=on({option:Jt,index:po});return ks({...Jr,className:Vr.option},Jt,{selected:Jr["aria-selected"],index:po,inputValue:lt},zr)},es=wn.slotProps.clearIndicator,dl=wn.slotProps.popupIndicator;return l.jsxs(b.Fragment,{children:[l.jsx(o_,{ref:r,className:Me(Vr.root,f),ownerState:zr,...Ue(Ge),children:zt({id:dr,disabled:I,fullWidth:!0,size:Ae==="small"?"small":void 0,InputLabelProps:Mt(),InputProps:{ref:Qe,className:Vr.inputRoot,startAdornment:Rt,onMouseDown:Jt=>{Jt.target===Jt.currentTarget&&Ur(Jt)},...(Nt||ar)&&{endAdornment:l.jsxs(i_,{className:Vr.endAdornment,ownerState:zr,children:[Nt?l.jsx(s_,{...yr(),"aria-label":y,title:y,ownerState:zr,...es,className:Me(Vr.clearIndicator,es==null?void 0:es.className),children:h}):null,ar?l.jsx(a_,{...Zt(),disabled:I,"aria-label":we?x:Ke,title:we?x:Ke,ownerState:zr,...dl,className:Me(Vr.popupIndicator,dl==null?void 0:dl.className),children:We}):null]})}},inputProps:{className:Vr.input,disabled:I,readOnly:gt,...Xe()}})}),or?l.jsx(l_,{as:Te,...st,children:l.jsxs(c_,{as:ul,...ke,children:[oe&&Ot.length===0?l.jsx(u_,{className:Vr.loading,ownerState:zr,children:Z}):null,Ot.length===0&&!G&&!oe?l.jsx(d_,{className:Vr.noOptions,ownerState:zr,role:"presentation",onMouseDown:Jt=>{Jt.preventDefault()},children:Se}):null,Ot.length>0?l.jsx(cl,{as:de,...Ts,children:Ot.map((Jt,po)=>K?Bt({key:Jt.key,group:Jt.group,children:Jt.options.map((Jr,xa)=>Lc(Jr,Jt.index+xa))}):Lc(Jt,po))}):null]})}):null]})}),g_=Ee(l.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function y_(t){return et("MuiAvatar",t)}nt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const v_=t=>{const{classes:e,variant:r,colorDefault:n}=t;return tt({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},y_,e)},x_=ve("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.colorDefault&&e.colorDefault]}})(Ye(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),b_=ve("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),w_=ve(g_,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function S_({crossOrigin:t,referrerPolicy:e,src:r,srcSet:n}){const[o,s]=b.useState(!1);return b.useEffect(()=>{if(!r&&!n)return;s(!1);let c=!0;const u=new Image;return u.onload=()=>{c&&s("loaded")},u.onerror=()=>{c&&s("error")},u.crossOrigin=t,u.referrerPolicy=e,u.src=r,n&&(u.srcset=n),()=>{c=!1}},[t,e,r,n]),o}const qw=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiAvatar"}),{alt:o,children:s,className:c,component:u="div",slots:d={},slotProps:f={},imgProps:h,sizes:v,src:m,srcSet:y,variant:x="circular",...w}=n;let C=null;const j={...n,component:u,variant:x},k=S_({...h,...typeof f.img=="function"?f.img(j):f.img,src:m,srcSet:y}),I=m||y,E=I&&k!=="error";j.colorDefault=!E,delete j.ownerState;const M=v_(j),[R,L]=Ze("root",{ref:r,className:Me(M.root,c),elementType:x_,externalForwardedProps:{slots:d,slotProps:f,component:u,...w},ownerState:j}),[A,F]=Ze("img",{className:M.img,elementType:b_,externalForwardedProps:{slots:d,slotProps:{img:{...h,...f.img}}},additionalProps:{alt:o,src:m,srcSet:y,sizes:v},ownerState:j}),[G,$]=Ze("fallback",{className:M.fallback,elementType:w_,externalForwardedProps:{slots:d,slotProps:f},shouldForwardComponentProp:!0,ownerState:j});return E?C=l.jsx(A,{...F}):s||s===0?C=s:I&&o?C=o[0]:C=l.jsx(G,{...$}),l.jsx(R,{...L,children:C})}),C_={entering:{opacity:1},entered:{opacity:1}},Oy=b.forwardRef(function(e,r){const n=io(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:u,easing:d,in:f,onEnter:h,onEntered:v,onEntering:m,onExit:y,onExited:x,onExiting:w,style:C,timeout:j=o,TransitionComponent:k=pi,...I}=e,E=b.useRef(null),M=Fr(E,el(u),r),R=V=>O=>{if(V){const U=E.current;O===void 0?V(U):V(U,O)}},L=R(m),A=R((V,O)=>{xE(V);const U=sc({style:C,timeout:j,easing:d},{mode:"enter"});V.style.webkitTransition=n.transitions.create("opacity",U),V.style.transition=n.transitions.create("opacity",U),h&&h(V,O)}),F=R(v),G=R(w),$=R(V=>{const O=sc({style:C,timeout:j,easing:d},{mode:"exit"});V.style.webkitTransition=n.transitions.create("opacity",O),V.style.transition=n.transitions.create("opacity",O),y&&y(V)}),P=R(x),q=V=>{s&&s(E.current,V)};return l.jsx(k,{appear:c,in:f,nodeRef:E,onEnter:A,onEntered:F,onEntering:L,onExit:$,onExited:P,onExiting:G,addEndListener:q,timeout:j,...I,children:(V,{ownerState:O,...U})=>b.cloneElement(u,{style:{opacity:0,visibility:V==="exited"&&!f?"hidden":void 0,...C_[V],...C,...u.props.style},ref:M,...U})})});function E_(t){return et("MuiBackdrop",t)}nt("MuiBackdrop",["root","invisible"]);const T_=t=>{const{classes:e,invisible:r}=t;return tt({root:["root",r&&"invisible"]},E_,e)},k_=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),OE=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiBackdrop"}),{children:o,className:s,component:c="div",invisible:u=!1,open:d,components:f={},componentsProps:h={},slotProps:v={},slots:m={},TransitionComponent:y,transitionDuration:x,...w}=n,C={...n,component:c,invisible:u},j=T_(C),k={transition:y,root:f.Root,...m},I={...h,...v},E={component:c,slots:k,slotProps:I},[M,R]=Ze("root",{elementType:k_,externalForwardedProps:E,className:Me(j.root,s),ownerState:C}),[L,A]=Ze("transition",{elementType:Oy,externalForwardedProps:E,ownerState:C});return l.jsx(L,{in:d,timeout:x,...w,...A,children:l.jsx(M,{"aria-hidden":!0,...R,classes:j,ref:r,children:o})})}),j_=nt("MuiBox",["root"]),P_=Sh(),ee=lI({themeId:si,defaultTheme:P_,defaultClassName:j_.root,generateClassName:q2.generate});function I_(t){return et("MuiButton",t)}const La=nt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),$E=b.createContext({}),NE=b.createContext(void 0),M_=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:s,loading:c,loadingPosition:u,classes:d}=t,f={root:["root",c&&"loading",s,`${s}${ye(e)}`,`size${ye(o)}`,`${s}Size${ye(o)}`,`color${ye(e)}`,r&&"disableElevation",n&&"fullWidth",c&&`loadingPosition${ye(u)}`],startIcon:["icon","startIcon",`iconSize${ye(o)}`],endIcon:["icon","endIcon",`iconSize${ye(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=tt(f,I_,d);return{...d,...h}},BE=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],R_=ve(ci,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ye(r.color)}`],e[`size${ye(r.size)}`],e[`${r.variant}Size${ye(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Ye(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${La.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${La.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${La.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${La.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(cr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${La.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${La.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${La.loading}`]:{color:"transparent"}}}]}})),A_=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${ye(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...BE]})),__=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${ye(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...BE]})),L_=ve("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Gw=ve("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),un=b.forwardRef(function(e,r){const n=b.useContext($E),o=b.useContext(NE),s=ic(n,e),c=ot({props:s,name:"MuiButton"}),{children:u,color:d="primary",component:f="button",className:h,disabled:v=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:x,focusVisibleClassName:w,fullWidth:C=!1,id:j,loading:k=null,loadingIndicator:I,loadingPosition:E="center",size:M="medium",startIcon:R,type:L,variant:A="text",...F}=c,G=Hi(j),$=I??l.jsx(mr,{"aria-labelledby":G,color:"inherit",size:16}),P={...c,color:d,component:f,disabled:v,disableElevation:m,disableFocusRipple:y,fullWidth:C,loading:k,loadingIndicator:$,loadingPosition:E,size:M,type:L,variant:A},q=M_(P),V=(R||k&&E==="start")&&l.jsx(A_,{className:q.startIcon,ownerState:P,children:R||l.jsx(Gw,{className:q.loadingIconPlaceholder,ownerState:P})}),O=(x||k&&E==="end")&&l.jsx(__,{className:q.endIcon,ownerState:P,children:x||l.jsx(Gw,{className:q.loadingIconPlaceholder,ownerState:P})}),U=o||"",K=typeof k=="boolean"?l.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:k&&l.jsx(L_,{className:q.loadingIndicator,ownerState:P,children:$})}):null;return l.jsxs(R_,{ownerState:P,className:Me(n.className,q.root,h,U),component:f,disabled:v||k,focusRipple:!y,focusVisibleClassName:Me(q.focusVisible,w),ref:r,type:L,id:k?G:j,...F,classes:q,children:[V,E!=="end"&&K,u,E==="end"&&K,O]})});function zE(t){return b.Children.toArray(t).filter(e=>b.isValidElement(e))}function O_(t){return et("MuiButtonGroup",t)}const Ht=nt("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),$_=(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ht.grouped}`]:e.grouped},{[`& .${Ht.grouped}`]:e[`grouped${ye(r.orientation)}`]},{[`& .${Ht.grouped}`]:e[`grouped${ye(r.variant)}`]},{[`& .${Ht.grouped}`]:e[`grouped${ye(r.variant)}${ye(r.orientation)}`]},{[`& .${Ht.grouped}`]:e[`grouped${ye(r.variant)}${ye(r.color)}`]},{[`& .${Ht.firstButton}`]:e.firstButton},{[`& .${Ht.lastButton}`]:e.lastButton},{[`& .${Ht.middleButton}`]:e.middleButton},e.root,e[r.variant],r.disableElevation===!0&&e.disableElevation,r.fullWidth&&e.fullWidth,r.orientation==="vertical"&&e.vertical]},N_=t=>{const{classes:e,color:r,disabled:n,disableElevation:o,fullWidth:s,orientation:c,variant:u}=t,d={root:["root",u,c,s&&"fullWidth",o&&"disableElevation",`color${ye(r)}`],grouped:["grouped",`grouped${ye(c)}`,`grouped${ye(u)}`,`grouped${ye(u)}${ye(c)}`,`grouped${ye(u)}${ye(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return tt(d,O_,e)},B_=ve("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:$_})(Ye(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(t.vars||t).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Ht.lastButton},& .${Ht.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ht.lastButton},& .${Ht.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderRight:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ht.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderBottom:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ht.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(cr()).flatMap(([e])=>[{props:{variant:"text",color:e},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderColor:t.alpha((t.vars||t).palette[e].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Ht.lastButton},& .${Ht.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Ht.lastButton},& .${Ht.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ht.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ht.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(cr(["dark"])).map(([e])=>({props:{variant:"contained",color:e},style:{[`& .${Ht.firstButton},& .${Ht.middleButton}`]:{borderColor:(t.vars||t).palette[e].dark}}}))],[`& .${Ht.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),z_=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiButtonGroup"}),{children:o,className:s,color:c="primary",component:u="div",disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,disableRipple:v=!1,fullWidth:m=!1,orientation:y="horizontal",size:x="medium",variant:w="outlined",...C}=n,j={...n,color:c,component:u,disabled:d,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:m,orientation:y,size:x,variant:w},k=N_(j),I=b.useMemo(()=>({className:k.grouped,color:c,disabled:d,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:m,size:x,variant:w}),[c,d,f,h,v,m,x,w,k.grouped]),E=zE(o),M=E.length,R=L=>{const A=L===0,F=L===M-1;return A&&F?"":A?k.firstButton:F?k.lastButton:k.middleButton};return l.jsx(B_,{as:u,role:"group",className:Me(k.root,s),ref:r,ownerState:j,...C,children:l.jsx($E.Provider,{value:I,children:E.map((L,A)=>l.jsx(NE.Provider,{value:R(A),children:L},A))})})});function D_(t){return et("MuiCard",t)}nt("MuiCard",["root"]);const F_=t=>{const{classes:e}=t;return tt({root:["root"]},D_,e)},H_=ve(Nr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),ht=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCard"}),{className:o,raised:s=!1,...c}=n,u={...n,raised:s},d=F_(u);return l.jsx(H_,{className:Me(d.root,o),elevation:s?8:void 0,ref:r,ownerState:u,...c})});function U_(t){return et("MuiCardActionArea",t)}const Wg=nt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),V_=t=>{const{classes:e}=t;return tt({root:["root"],focusHighlight:["focusHighlight"]},U_,e)},W_=ve(ci,{name:"MuiCardActionArea",slot:"Root"})(Ye(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Wg.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Wg.focusVisible} .${Wg.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}}))),q_=ve("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Ye(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}))),G_=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCardActionArea"}),{children:o,className:s,focusVisibleClassName:c,slots:u={},slotProps:d={},...f}=n,h=n,v=V_(h),m={slots:u,slotProps:d},[y,x]=Ze("root",{elementType:W_,externalForwardedProps:{...m,...f},shouldForwardComponentProp:!0,ownerState:h,ref:r,className:Me(v.root,s),additionalProps:{focusVisibleClassName:Me(c,v.focusVisible)}}),[w,C]=Ze("focusHighlight",{elementType:q_,externalForwardedProps:m,ownerState:h,ref:r,className:v.focusHighlight});return l.jsxs(y,{...x,children:[o,l.jsx(w,{...C})]})});function X_(t){return et("MuiCardContent",t)}nt("MuiCardContent",["root"]);const K_=t=>{const{classes:e}=t;return tt({root:["root"]},X_,e)},Q_=ve("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),ft=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCardContent"}),{className:o,component:s="div",...c}=n,u={...n,component:s},d=K_(u);return l.jsx(Q_,{as:s,className:Me(d.root,o),ownerState:u,ref:r,...c})});function Y_(t){return et("PrivateSwitchBase",t)}nt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const J_=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,s={root:["root",r&&"checked",n&&"disabled",o&&`edge${ye(o)}`],input:["input"]};return tt(s,Y_,e)},Z_=ve(ci,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),eL=ve("input",{name:"MuiSwitchBase",shouldForwardProp:Dn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),DE=b.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:s,defaultChecked:c,disabled:u,disableFocusRipple:d=!1,edge:f=!1,icon:h,id:v,inputProps:m,inputRef:y,name:x,onBlur:w,onChange:C,onFocus:j,readOnly:k,required:I=!1,tabIndex:E,type:M,value:R,slots:L={},slotProps:A={},...F}=e,[G,$]=ea({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),P=Yi(),q=oe=>{j&&j(oe),P&&P.onFocus&&P.onFocus(oe)},V=oe=>{w&&w(oe),P&&P.onBlur&&P.onBlur(oe)},O=oe=>{if(oe.nativeEvent.defaultPrevented)return;const Z=oe.target.checked;$(Z),C&&C(oe,Z)};let U=u;P&&typeof U>"u"&&(U=P.disabled);const K=M==="checkbox"||M==="radio",Y={...e,checked:G,disabled:U,disableFocusRipple:d,edge:f},te=J_(Y),Q={slots:L,slotProps:{input:m,...A}},[X,re]=Ze("root",{ref:r,elementType:Z_,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Q,component:"span",...F},getSlotProps:oe=>({...oe,onFocus:Z=>{var pe;(pe=oe.onFocus)==null||pe.call(oe,Z),q(Z)},onBlur:Z=>{var pe;(pe=oe.onBlur)==null||pe.call(oe,Z),V(Z)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:U,role:void 0,tabIndex:null}}),[de,J]=Ze("input",{ref:y,elementType:eL,className:te.input,externalForwardedProps:Q,getSlotProps:oe=>({...oe,onChange:Z=>{var pe;(pe=oe.onChange)==null||pe.call(oe,Z),O(Z)}}),ownerState:Y,additionalProps:{autoFocus:n,checked:o,defaultChecked:c,disabled:U,id:K?v:void 0,name:x,readOnly:k,required:I,tabIndex:E,type:M,...M==="checkbox"&&R===void 0?{}:{value:R}}});return l.jsxs(X,{...re,children:[l.jsx(de,{...J}),G?s:h]})}),tL=Ee(l.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),rL=Ee(l.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),nL=Ee(l.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function oL(t){return et("MuiCheckbox",t)}const qg=nt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),iL=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,s={root:["root",r&&"indeterminate",`color${ye(n)}`,`size${ye(o)}`]},c=tt(s,oL,e);return{...e,...c}},sL=ve(DE,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${ye(r.size)}`],r.color!=="default"&&e[`color${ye(r.color)}`]]}})(Ye(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{[`&.${qg.checked}, &.${qg.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${qg.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),aL=l.jsx(rL,{}),lL=l.jsx(tL,{}),cL=l.jsx(nL,{}),qs=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiCheckbox"}),{checkedIcon:o=aL,color:s="primary",icon:c=lL,indeterminate:u=!1,indeterminateIcon:d=cL,inputProps:f,size:h="medium",disableRipple:v=!1,className:m,slots:y={},slotProps:x={},...w}=n,C=u?d:c,j=u?d:o,k={...n,disableRipple:v,color:s,indeterminate:u,size:h},I=iL(k),E=x.input??f,[M,R]=Ze("root",{ref:r,elementType:sL,className:Me(I.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:x,...w},ownerState:k,additionalProps:{type:"checkbox",icon:b.cloneElement(C,{fontSize:C.props.fontSize??h}),checkedIcon:b.cloneElement(j,{fontSize:j.props.fontSize??h}),disableRipple:v,slots:y,slotProps:{input:mE(typeof E=="function"?E(k):E,{"data-indeterminate":u})}}});return l.jsx(M,{...R,classes:I})});function Xw(t){return t.substring(2).toLowerCase()}function uL(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function dL(t){const{children:e,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=t,c=b.useRef(!1),u=b.useRef(null),d=b.useRef(!1),f=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const h=Fr(el(e),u),v=tn(x=>{const w=f.current;f.current=!1;const C=vn(u.current);if(!d.current||!u.current||"clientX"in x&&uL(x,C))return;if(c.current){c.current=!1;return}let j;x.composedPath?j=x.composedPath().includes(u.current):j=!C.documentElement.contains(x.target)||u.current.contains(x.target),!j&&(r||!w)&&o(x)}),m=x=>w=>{f.current=!0;const C=e.props[x];C&&C(w)},y={ref:h};return s!==!1&&(y[s]=m(s)),b.useEffect(()=>{if(s!==!1){const x=Xw(s),w=vn(u.current),C=()=>{c.current=!0};return w.addEventListener(x,v),w.addEventListener("touchmove",C),()=>{w.removeEventListener(x,v),w.removeEventListener("touchmove",C)}}},[v,s]),n!==!1&&(y[n]=m(n)),b.useEffect(()=>{if(n!==!1){const x=Xw(n),w=vn(u.current);return w.addEventListener(x,v),()=>{w.removeEventListener(x,v)}}},[v,n]),b.cloneElement(e,y)}const Hf=ZI({createStyledComponent:ve("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${ye(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),useThemeProps:t=>ot({props:t,name:"MuiContainer"})});function FE(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function pL(t){const e=vn(t);return e.body===t?li(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function zu(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Kw(t){return parseInt(li(t).getComputedStyle(t).paddingRight,10)||0}function fL(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function Qw(t,e,r,n,o){const s=[e,r,...n];[].forEach.call(t.children,c=>{const u=!s.includes(c),d=!fL(c);u&&d&&zu(c,o)})}function Gg(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function hL(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(pL(n)){const c=FE(li(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Kw(n)+c}px`;const u=vn(n).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Kw(d)+c}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=vn(n).body;else{const c=n.parentElement,u=li(n);s=(c==null?void 0:c.nodeName)==="HTML"&&u.getComputedStyle(c).overflowY==="scroll"?c:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:u})=>{s?c.style.setProperty(u,s):c.style.removeProperty(u)})}}function mL(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class gL{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&zu(e.modalRef,!1);const o=mL(r);Qw(r,e.mount,e.modalRef,o,!0);const s=Gg(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=Gg(this.containers,s=>s.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=hL(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=Gg(this.containers,c=>c.modals.includes(e)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(e),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),e.modalRef&&zu(e.modalRef,r),Qw(s.container,e.mount,e.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&zu(c.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function Gl(t){var r;let e=t.activeElement;for(;((r=e==null?void 0:e.shadowRoot)==null?void 0:r.activeElement)!=null;)e=e.shadowRoot.activeElement;return e}const yL=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vL(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function xL(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function bL(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||xL(t))}function wL(t){const e=[],r=[];return Array.from(t.querySelectorAll(yL)).forEach((n,o)=>{const s=vL(n);s===-1||!bL(n)||(s===0?e.push(n):r.push({documentOrder:o,tabIndex:s,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function SL(){return!0}function CL(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:s=wL,isEnabled:c=SL,open:u}=t,d=b.useRef(!1),f=b.useRef(null),h=b.useRef(null),v=b.useRef(null),m=b.useRef(null),y=b.useRef(!1),x=b.useRef(null),w=Fr(el(e),x),C=b.useRef(null);b.useEffect(()=>{!u||!x.current||(y.current=!r)},[r,u]),b.useEffect(()=>{if(!u||!x.current)return;const I=vn(x.current),E=Gl(I);return x.current.contains(E)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),y.current&&x.current.focus()),()=>{o||(v.current&&v.current.focus&&(d.current=!0,v.current.focus()),v.current=null)}},[u]),b.useEffect(()=>{if(!u||!x.current)return;const I=vn(x.current),E=Gl(I),M=A=>{C.current=A,!(n||!c()||A.key!=="Tab")&&E===x.current&&A.shiftKey&&(d.current=!0,h.current&&h.current.focus())},R=()=>{var $,P;const A=x.current;if(A===null)return;const F=Gl(I);if(!I.hasFocus()||!c()||d.current){d.current=!1;return}if(A.contains(F)||n&&F!==f.current&&F!==h.current)return;if(F!==m.current)m.current=null;else if(m.current!==null)return;if(!y.current)return;let G=[];if((F===f.current||F===h.current)&&(G=s(x.current)),G.length>0){const q=!!(($=C.current)!=null&&$.shiftKey&&((P=C.current)==null?void 0:P.key)==="Tab"),V=G[0],O=G[G.length-1];typeof V!="string"&&typeof O!="string"&&(q?O.focus():V.focus())}else A.focus()};I.addEventListener("focusin",R),I.addEventListener("keydown",M,!0);const L=setInterval(()=>{const A=Gl(I);A&&A.tagName==="BODY"&&R()},50);return()=>{clearInterval(L),I.removeEventListener("focusin",R),I.removeEventListener("keydown",M,!0)}},[r,n,o,c,u,s]);const j=I=>{v.current===null&&(v.current=I.relatedTarget),y.current=!0,m.current=I.target;const E=e.props.onFocus;E&&E(I)},k=I=>{v.current===null&&(v.current=I.relatedTarget),y.current=!0};return l.jsxs(b.Fragment,{children:[l.jsx("div",{tabIndex:u?0:-1,onFocus:k,ref:f,"data-testid":"sentinelStart"}),b.cloneElement(e,{ref:w,onFocus:j}),l.jsx("div",{tabIndex:u?0:-1,onFocus:k,ref:h,"data-testid":"sentinelEnd"})]})}function EL(t){return typeof t=="function"?t():t}function TL(t){return t?t.props.hasOwnProperty("in"):!1}const Yw=()=>{},Gp=new gL;function kL(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:c,children:u,onClose:d,open:f,rootRef:h}=t,v=b.useRef({}),m=b.useRef(null),y=b.useRef(null),x=Fr(y,h),[w,C]=b.useState(!f),j=TL(u);let k=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(k=!1);const I=()=>vn(m.current),E=()=>(v.current.modalRef=y.current,v.current.mount=m.current,v.current),M=()=>{Gp.mount(E(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},R=tn(()=>{const O=EL(e)||I().body;Gp.add(E(),O),y.current&&M()}),L=()=>Gp.isTopModal(E()),A=tn(O=>{m.current=O,O&&(f&&L()?M():y.current&&zu(y.current,k))}),F=b.useCallback(()=>{Gp.remove(E(),k)},[k]);b.useEffect(()=>()=>{F()},[F]),b.useEffect(()=>{f?R():(!j||!o)&&F()},[f,F,j,o,R]);const G=O=>U=>{var K;(K=O.onKeyDown)==null||K.call(O,U),!(U.key!=="Escape"||U.which===229||!L())&&(r||(U.stopPropagation(),d&&d(U,"escapeKeyDown")))},$=O=>U=>{var K;(K=O.onClick)==null||K.call(O,U),U.target===U.currentTarget&&d&&d(U,"backdropClick")};return{getRootProps:(O={})=>{const U=Bf(t);delete U.onTransitionEnter,delete U.onTransitionExited;const K={...U,...O};return{role:"presentation",...K,onKeyDown:G(K),ref:x}},getBackdropProps:(O={})=>{const U=O;return{"aria-hidden":!0,...U,onClick:$(U),open:f}},getTransitionProps:()=>{const O=()=>{C(!1),s&&s()},U=()=>{C(!0),c&&c(),o&&F()};return{onEnter:yw(O,(u==null?void 0:u.props.onEnter)??Yw),onExited:yw(U,(u==null?void 0:u.props.onExited)??Yw)}},rootRef:x,portalRef:A,isTopModal:L,exited:w,hasTransition:j}}function jL(t){return et("MuiModal",t)}nt("MuiModal",["root","hidden","backdrop"]);const PL=t=>{const{open:e,exited:r,classes:n}=t;return tt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},jL,n)},IL=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Ye(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),ML=ve(OE,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),HE=b.forwardRef(function(e,r){const n=ot({name:"MuiModal",props:e}),{BackdropComponent:o=ML,BackdropProps:s,classes:c,className:u,closeAfterTransition:d=!1,children:f,container:h,component:v,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:C=!1,disablePortal:j=!1,disableRestoreFocus:k=!1,disableScrollLock:I=!1,hideBackdrop:E=!1,keepMounted:M=!1,onClose:R,onTransitionEnter:L,onTransitionExited:A,open:F,slotProps:G={},slots:$={},theme:P,...q}=n,V={...n,closeAfterTransition:d,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:C,disablePortal:j,disableRestoreFocus:k,disableScrollLock:I,hideBackdrop:E,keepMounted:M},{getRootProps:O,getBackdropProps:U,getTransitionProps:K,portalRef:Y,isTopModal:te,exited:Q,hasTransition:X}=kL({...V,rootRef:r}),re={...V,exited:Q},de=PL(re),J={};if(f.props.tabIndex===void 0&&(J.tabIndex="-1"),X){const{onEnter:ae,onExited:Fe}=K();J.onEnter=ae,J.onExited=Fe}const oe={slots:{root:m.Root,backdrop:m.Backdrop,...$},slotProps:{...y,...G}},[Z,pe]=Ze("root",{ref:r,elementType:IL,externalForwardedProps:{...oe,...q,component:v},getSlotProps:O,ownerState:re,className:Me(u,de==null?void 0:de.root,!re.open&&re.exited&&(de==null?void 0:de.hidden))}),[Se,se]=Ze("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ae=>U({...ae,onClick:Fe=>{ae!=null&&ae.onClick&&ae.onClick(Fe)}}),className:Me(s==null?void 0:s.className,de==null?void 0:de.backdrop),ownerState:re});return!M&&!F&&(!X||Q)?null:l.jsx(_E,{ref:Y,container:h,disablePortal:j,children:l.jsxs(Z,{...pe,children:[!E&&o?l.jsx(Se,{...se}):null,l.jsx(CL,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:te,open:F,children:b.cloneElement(f,J)})]})})});function RL(t){return et("MuiDialog",t)}const Xg=nt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),UE=b.createContext({}),AL=ve(OE,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),_L=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:s}=t,c={root:["root"],container:["container",`scroll${ye(r)}`],paper:["paper",`paperScroll${ye(r)}`,`paperWidth${ye(String(n))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return tt(c,RL,e)},LL=ve(HE,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),OL=ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${ye(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),$L=ve(Nr,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${ye(r.scroll)}`],e[`paperWidth${ye(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Ye(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Xg.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${Xg.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Xg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),t0=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialog"}),o=io(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":c,"aria-labelledby":u,"aria-modal":d=!0,BackdropComponent:f,BackdropProps:h,children:v,className:m,disableEscapeKeyDown:y=!1,fullScreen:x=!1,fullWidth:w=!1,maxWidth:C="sm",onClick:j,onClose:k,open:I,PaperComponent:E=Nr,PaperProps:M={},scroll:R="paper",slots:L={},slotProps:A={},TransitionComponent:F=Oy,transitionDuration:G=s,TransitionProps:$,...P}=n,q={...n,disableEscapeKeyDown:y,fullScreen:x,fullWidth:w,maxWidth:C,scroll:R},V=_L(q),O=b.useRef(),U=Oe=>{O.current=Oe.target===Oe.currentTarget},K=Oe=>{j&&j(Oe),O.current&&(O.current=null,k&&k(Oe,"backdropClick"))},Y=Hi(u),te=b.useMemo(()=>({titleId:Y}),[Y]),Q={transition:F,...L},X={transition:$,paper:M,backdrop:h,...A},re={slots:Q,slotProps:X},[de,J]=Ze("root",{elementType:LL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Me(V.root,m),ref:r}),[oe,Z]=Ze("backdrop",{elementType:AL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q}),[pe,Se]=Ze("paper",{elementType:$L,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Me(V.paper,M.className)}),[se,ae]=Ze("container",{elementType:OL,externalForwardedProps:re,ownerState:q,className:V.container}),[Fe,ze]=Ze("transition",{elementType:Oy,externalForwardedProps:re,ownerState:q,additionalProps:{appear:!0,in:I,timeout:G,role:"presentation"}});return l.jsx(de,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:G,as:f,...Z}},disableEscapeKeyDown:y,onClose:k,open:I,onClick:K,...J,...P,children:l.jsx(Fe,{...ze,children:l.jsx(se,{onMouseDown:U,...ae,children:l.jsx(pe,{as:E,elevation:24,role:"dialog","aria-describedby":c,"aria-labelledby":Y,"aria-modal":d,...Se,children:l.jsx(UE.Provider,{value:te,children:v})})})})})});function NL(t){return et("MuiDialogActions",t)}nt("MuiDialogActions",["root","spacing"]);const BL=t=>{const{classes:e,disableSpacing:r}=t;return tt({root:["root",!r&&"spacing"]},NL,e)},zL=ve("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),r0=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...c}=n,u={...n,disableSpacing:s},d=BL(u);return l.jsx(zL,{className:Me(d.root,o),ownerState:u,ref:r,...c})});function DL(t){return et("MuiDialogContent",t)}nt("MuiDialogContent",["root","dividers"]);function FL(t){return et("MuiDialogTitle",t)}const HL=nt("MuiDialogTitle",["root"]),UL=t=>{const{classes:e,dividers:r}=t;return tt({root:["root",r&&"dividers"]},DL,e)},VL=ve("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Ye(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${HL.root} + &`]:{paddingTop:0}}}]}))),n0=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...c}=n,u={...n,dividers:s},d=UL(u);return l.jsx(VL,{className:Me(d.root,o),ownerState:u,ref:r,...c})});function WL(t){return et("MuiDialogContentText",t)}nt("MuiDialogContentText",["root"]);const qL=t=>{const{classes:e}=t,n=tt({root:["root"]},WL,e);return{...e,...n}},GL=ve(he,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiDialogContentText",slot:"Root"})({}),XL=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogContentText"}),{children:o,className:s,...c}=n,u=qL(c);return l.jsx(GL,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:c,className:Me(u.root,s),...n,classes:u})}),KL=t=>{const{classes:e}=t;return tt({root:["root"]},FL,e)},QL=ve(he,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),o0=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDialogTitle"}),{className:o,id:s,...c}=n,u=n,d=KL(u),{titleId:f=s}=b.useContext(UE);return l.jsx(QL,{component:"h2",className:Me(d.root,o),ownerState:u,ref:r,variant:"h6",id:s??f,...c})});function YL(t){return et("MuiDivider",t)}const Jw=nt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),JL=t=>{const{absolute:e,children:r,classes:n,flexItem:o,light:s,orientation:c,textAlign:u,variant:d}=t;return tt({root:["root",e&&"absolute",d,s&&"light",c==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&c==="vertical"&&"withChildrenVertical",u==="right"&&c!=="vertical"&&"textAlignRight",u==="left"&&c!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",c==="vertical"&&"wrapperVertical"]},YL,n)},ZL=ve("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,r.orientation==="vertical"&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&r.orientation==="vertical"&&e.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&e.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&e.textAlignLeft]}})(Ye(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.alpha((t.vars||t).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),eO=ve("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.wrapper,r.orientation==="vertical"&&e.wrapperVertical]}})(Ye(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),$y=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiDivider"}),{absolute:o=!1,children:s,className:c,orientation:u="horizontal",component:d=s||u==="vertical"?"div":"hr",flexItem:f=!1,light:h=!1,role:v=d!=="hr"?"separator":void 0,textAlign:m="center",variant:y="fullWidth",...x}=n,w={...n,absolute:o,component:d,flexItem:f,light:h,orientation:u,role:v,textAlign:m,variant:y},C=JL(w);return l.jsx(ZL,{as:d,className:Me(C.root,c),role:v,ref:r,ownerState:w,"aria-orientation":v==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,...x,children:s?l.jsx(eO,{className:C.wrapper,ownerState:w,children:s}):null})});$y&&($y.muiSkipListHighlight=!0);const tO=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:s,hiddenLabel:c,multiline:u}=t,d={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${ye(s)}`,c&&"hiddenLabel",u&&"multiline"],input:["input"]},f=tt(d,t_,e);return{...e,...f}},rO=ve(Mh,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Ph(t,e),!r.disableUnderline&&e.underline]}})(Ye(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${xo.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${xo.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:c})=>!c.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(cr()).map(([c])=>{var u;return{props:{disableUnderline:!1,color:c},style:{"&::after":{borderBottom:`2px solid ${(u=(t.vars||t).palette[c])==null?void 0:u.main}`}}}}),{props:({ownerState:c})=>c.startAdornment,style:{paddingLeft:12}},{props:({ownerState:c})=>c.endAdornment,style:{paddingRight:12}},{props:({ownerState:c})=>c.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:c,size:u})=>c.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:c})=>c.multiline&&c.hiddenLabel&&c.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),nO=ve(Rh,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ih})(Ye(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),i0=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:u=!1,hiddenLabel:d,inputComponent:f="input",multiline:h=!1,slotProps:v,slots:m={},type:y="text",...x}=n,w={...n,disableUnderline:o,fullWidth:u,inputComponent:f,multiline:h,type:y},C=tO(n),j={root:{ownerState:w},input:{ownerState:w}},k=v??c?dn(j,v??c):j,I=m.root??s.Root??rO,E=m.input??s.Input??nO;return l.jsx(Ah,{slots:{root:I,input:E},slotProps:k,fullWidth:u,inputComponent:f,multiline:h,ref:r,type:y,...x,classes:C})});i0.muiName="Input";function oO(t){return et("MuiFormControl",t)}nt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const iO=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${ye(r)}`,n&&"fullWidth"]};return tt(o,oO,e)},sO=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${ye(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Co=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControl"}),{children:o,className:s,color:c="primary",component:u="div",disabled:d=!1,error:f=!1,focused:h,fullWidth:v=!1,hiddenLabel:m=!1,margin:y="none",required:x=!1,size:w="medium",variant:C="outlined",...j}=n,k={...n,color:c,component:u,disabled:d,error:f,fullWidth:v,hiddenLabel:m,margin:y,required:x,size:w,variant:C},I=iO(k),[E,M]=b.useState(()=>{let O=!1;return o&&b.Children.forEach(o,U=>{if(!Sf(U,["Input","Select"]))return;const K=Sf(U,["Select"])?U.props.input:U;K&&Q6(K.props)&&(O=!0)}),O}),[R,L]=b.useState(()=>{let O=!1;return o&&b.Children.forEach(o,U=>{Sf(U,["Input","Select"])&&(Ff(U.props,!0)||Ff(U.props.inputProps,!0))&&(O=!0)}),O}),[A,F]=b.useState(!1);d&&A&&F(!1);const G=h!==void 0&&!d?h:A;let $;b.useRef(!1);const P=b.useCallback(()=>{L(!0)},[]),q=b.useCallback(()=>{L(!1)},[]),V=b.useMemo(()=>({adornedStart:E,setAdornedStart:M,color:c,disabled:d,error:f,filled:R,focused:G,fullWidth:v,hiddenLabel:m,size:w,onBlur:()=>{F(!1)},onFocus:()=>{F(!0)},onEmpty:q,onFilled:P,registerEffect:$,required:x,variant:C}),[E,c,d,f,R,G,v,m,$,q,P,x,w,C]);return l.jsx(jh.Provider,{value:V,children:l.jsx(sO,{as:u,ownerState:k,className:Me(I.root,s),ref:r,...j,children:o})})});function aO(t){return et("MuiFormControlLabel",t)}const Au=nt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lO=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:s}=t,c={root:["root",r&&"disabled",`labelPlacement${ye(n)}`,o&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return tt(c,aO,e)},cO=ve("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Au.label}`]:e.label},e.root,e[`labelPlacement${ye(r.labelPlacement)}`]]}})(Ye(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Au.disabled}`]:{cursor:"default"},[`& .${Au.label}`]:{[`&.${Au.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),uO=ve("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ye(({theme:t})=>({[`&.${Au.error}`]:{color:(t.vars||t).palette.error.main}}))),Nn=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:c={},control:u,disabled:d,disableTypography:f,inputRef:h,label:v,labelPlacement:m="end",name:y,onChange:x,required:w,slots:C={},slotProps:j={},value:k,...I}=n,E=Yi(),M=d??u.props.disabled??(E==null?void 0:E.disabled),R=w??u.props.required,L={disabled:M,required:R};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof n[O]<"u"&&(L[O]=n[O])});const A=ha({props:n,muiFormControl:E,states:["error"]}),F={...n,disabled:M,labelPlacement:m,required:R,error:A.error},G=lO(F),$={slots:C,slotProps:{...c,...j}},[P,q]=Ze("typography",{elementType:he,externalForwardedProps:$,ownerState:F});let V=v;return V!=null&&V.type!==he&&!f&&(V=l.jsx(P,{component:"span",...q,className:Me(G.label,q==null?void 0:q.className),children:V})),l.jsxs(cO,{className:Me(G.root,s),ownerState:F,ref:r,...I,children:[b.cloneElement(u,L),R?l.jsxs("div",{children:[V,l.jsxs(uO,{ownerState:F,"aria-hidden":!0,className:G.asterisk,children:[" ","*"]})]}):V]})});function dO(t){return et("MuiFormGroup",t)}nt("MuiFormGroup",["root","row","error"]);const pO=t=>{const{classes:e,row:r,error:n}=t;return tt({root:["root",r&&"row",n&&"error"]},dO,e)},fO=ve("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Zw=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormGroup"}),{className:o,row:s=!1,...c}=n,u=Yi(),d=ha({props:n,muiFormControl:u,states:["error"]}),f={...n,row:s,error:d.error},h=pO(f);return l.jsx(fO,{className:Me(h.root,o),ownerState:f,ref:r,...c})});function hO(t){return et("MuiFormHelperText",t)}const eS=nt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var tS;const mO=t=>{const{classes:e,contained:r,size:n,disabled:o,error:s,filled:c,focused:u,required:d}=t,f={root:["root",o&&"disabled",s&&"error",n&&`size${ye(n)}`,r&&"contained",u&&"focused",c&&"filled",d&&"required"]};return tt(f,hO,e)},gO=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${ye(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Ye(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${eS.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${eS.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),tl=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormHelperText"}),{children:o,className:s,component:c="p",disabled:u,error:d,filled:f,focused:h,margin:v,required:m,variant:y,...x}=n,w=Yi(),C=ha({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),j={...n,component:c,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete j.ownerState;const k=mO(j);return l.jsx(gO,{as:c,className:Me(k.root,s),ref:r,...x,ownerState:j,children:o===" "?tS||(tS=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function yO(t){return et("MuiFormLabel",t)}const Du=nt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),vO=t=>{const{classes:e,color:r,focused:n,disabled:o,error:s,filled:c,required:u}=t,d={root:["root",`color${ye(r)}`,o&&"disabled",s&&"error",c&&"filled",n&&"focused",u&&"required"],asterisk:["asterisk",s&&"error"]};return tt(d,yO,e)},xO=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Ye(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{[`&.${Du.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${Du.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Du.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),bO=ve("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ye(({theme:t})=>({[`&.${Du.error}`]:{color:(t.vars||t).palette.error.main}}))),wO=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiFormLabel"}),{children:o,className:s,color:c,component:u="label",disabled:d,error:f,filled:h,focused:v,required:m,...y}=n,x=Yi(),w=ha({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),C={...n,color:w.color||"primary",component:u,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},j=vO(C);return l.jsxs(xO,{as:u,ownerState:C,className:Me(j.root,s),ref:r,...y,children:[o,w.required&&l.jsxs(bO,{ownerState:C,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]})}),Bn=mM({createStyledComponent:ve("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid",useThemeProps:t=>ot({props:t,name:"MuiGrid"}),useTheme:io});function Ny(t){return`scale(${t}, ${t**2})`}const SO={entering:{opacity:1,transform:Ny(1)},entered:{opacity:1,transform:"none"}},Kg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ed=b.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:s,easing:c,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:v,onExited:m,onExiting:y,style:x,timeout:w="auto",TransitionComponent:C=pi,...j}=e,k=Qs(),I=b.useRef(),E=io(),M=b.useRef(null),R=Fr(M,el(s),r),L=O=>U=>{if(O){const K=M.current;U===void 0?O(K):O(K,U)}},A=L(h),F=L((O,U)=>{xE(O);const{duration:K,delay:Y,easing:te}=sc({style:x,timeout:w,easing:c},{mode:"enter"});let Q;w==="auto"?(Q=E.transitions.getAutoHeightDuration(O.clientHeight),I.current=Q):Q=K,O.style.transition=[E.transitions.create("opacity",{duration:Q,delay:Y}),E.transitions.create("transform",{duration:Kg?Q:Q*.666,delay:Y,easing:te})].join(","),d&&d(O,U)}),G=L(f),$=L(y),P=L(O=>{const{duration:U,delay:K,easing:Y}=sc({style:x,timeout:w,easing:c},{mode:"exit"});let te;w==="auto"?(te=E.transitions.getAutoHeightDuration(O.clientHeight),I.current=te):te=U,O.style.transition=[E.transitions.create("opacity",{duration:te,delay:K}),E.transitions.create("transform",{duration:Kg?te:te*.666,delay:Kg?K:K||te*.333,easing:Y})].join(","),O.style.opacity=0,O.style.transform=Ny(.75),v&&v(O)}),q=L(m),V=O=>{w==="auto"&&k.start(I.current||0,O),n&&n(M.current,O)};return l.jsx(C,{appear:o,in:u,nodeRef:M,onEnter:F,onEntered:G,onEntering:A,onExit:P,onExited:q,onExiting:$,addEndListener:V,timeout:w==="auto"?null:w,...j,children:(O,{ownerState:U,...K})=>b.cloneElement(s,{style:{opacity:0,transform:Ny(.75),visibility:O==="exited"&&!u?"hidden":void 0,...SO[O],...x,...s.props.style},ref:R,...K})})});ed&&(ed.muiSupportAuto=!0);const CO=t=>{const{classes:e,disableUnderline:r}=t,o=tt({root:["root",!r&&"underline"],input:["input"]},Z6,e);return{...e,...o}},EO=ve(Mh,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...Ph(t,e),!r.disableUnderline&&e.underline]}})(Ye(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xs.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xs.disabled}, .${Xs.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Xs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(cr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),TO=ve(Rh,{name:"MuiInput",slot:"Input",overridesResolver:Ih})({}),_h=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:v={},type:m="text",...y}=n,x=CO(n),C={root:{ownerState:{disableUnderline:o}}},j=h??c?dn(h??c,C):C,k=v.root??s.Root??EO,I=v.input??s.Input??TO;return l.jsx(Ah,{slots:{root:k,input:I},slotProps:j,fullWidth:u,inputComponent:d,multiline:f,ref:r,type:m,...y,classes:x})});_h.muiName="Input";function kO(t){return et("MuiInputAdornment",t)}const rS=nt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var nS;const jO=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${ye(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},PO=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:n,position:o,size:s,variant:c}=t,u={root:["root",r&&"disablePointerEvents",o&&`position${ye(o)}`,c,n&&"hiddenLabel",s&&`size${ye(s)}`]};return tt(u,kO,e)},IO=ve("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:jO})(Ye(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${rS.positionStart}&:not(.${rS.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Zl=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:c="div",disablePointerEvents:u=!1,disableTypography:d=!1,position:f,variant:h,...v}=n,m=Yi()||{};let y=h;h&&m.variant,m&&!y&&(y=m.variant);const x={...n,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:u,position:f,variant:y},w=PO(x);return l.jsx(jh.Provider,{value:null,children:l.jsx(IO,{as:c,ownerState:x,className:Me(w.root,s),ref:r,...v,children:typeof o=="string"&&!d?l.jsx(he,{color:"textSecondary",children:o}):l.jsxs(b.Fragment,{children:[f==="start"?nS||(nS=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});function MO(t){return et("MuiInputLabel",t)}nt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const RO=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:s,variant:c,required:u}=t,d={root:["root",r&&"formControl",!s&&"animated",o&&"shrink",n&&n!=="medium"&&`size${ye(n)}`,c],asterisk:[u&&"asterisk"]},f=tt(d,MO,e);return{...e,...f}},AO=ve(wO,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Du.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Ye(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ys=b.forwardRef(function(e,r){const n=ot({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:s,shrink:c,variant:u,className:d,...f}=n,h=Yi();let v=c;typeof v>"u"&&h&&(v=h.filled||h.focused||h.adornedStart);const m=ha({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:h,shrink:v,size:m.size,variant:m.variant,required:m.required,focused:m.focused},x=RO(y);return l.jsx(AO,{"data-shrink":v,ref:r,className:Me(x.root,d),...f,ownerState:y,classes:x})});function _O(t){return et("MuiLinearProgress",t)}nt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const By=4,zy=Qi`
|
|
220
|
+
0% {
|
|
221
|
+
left: -35%;
|
|
222
|
+
right: 100%;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
60% {
|
|
226
|
+
left: 100%;
|
|
227
|
+
right: -90%;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
100% {
|
|
231
|
+
left: 100%;
|
|
232
|
+
right: -90%;
|
|
233
|
+
}
|
|
234
|
+
`,LO=typeof zy!="string"?da`
|
|
235
|
+
animation: ${zy} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
236
|
+
`:null,Dy=Qi`
|
|
237
|
+
0% {
|
|
238
|
+
left: -200%;
|
|
239
|
+
right: 100%;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
60% {
|
|
243
|
+
left: 107%;
|
|
244
|
+
right: -8%;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
100% {
|
|
248
|
+
left: 107%;
|
|
249
|
+
right: -8%;
|
|
250
|
+
}
|
|
251
|
+
`,OO=typeof Dy!="string"?da`
|
|
252
|
+
animation: ${Dy} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
253
|
+
`:null,Fy=Qi`
|
|
254
|
+
0% {
|
|
255
|
+
opacity: 1;
|
|
256
|
+
background-position: 0 -23px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
60% {
|
|
260
|
+
opacity: 0;
|
|
261
|
+
background-position: 0 -23px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
100% {
|
|
265
|
+
opacity: 1;
|
|
266
|
+
background-position: -200px -23px;
|
|
267
|
+
}
|
|
268
|
+
`,$O=typeof Fy!="string"?da`
|
|
269
|
+
animation: ${Fy} 3s infinite linear;
|
|
270
|
+
`:null,NO=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${ye(n)}`,r],dashed:["dashed",`dashedColor${ye(n)}`],bar1:["bar","bar1",`barColor${ye(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${ye(n)}`,r==="buffer"&&`color${ye(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return tt(o,_O,e)},s0=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.5),BO=ve("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${ye(r.color)}`],e[r.variant]]}})(Ye(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{backgroundColor:s0(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),zO=ve("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${ye(r.color)}`]]}})(Ye(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(cr()).map(([e])=>{const r=s0(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),$O||{animation:`${Fy} 3s infinite linear`}),DO=ve("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${ye(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Ye(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${By}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${By}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:LO||{animation:`${zy} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),FO=ve("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${ye(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Ye(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:s0(t,e),transition:`transform .${By}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:OO||{animation:`${Dy} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Ic=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:c,valueBuffer:u,variant:d="indeterminate",...f}=n,h={...n,color:s,variant:d},v=NO(h),m=pa(),y={},x={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&c!==void 0){y["aria-valuenow"]=Math.round(c),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let w=c-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(d==="buffer"&&u!==void 0){let w=(u||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return l.jsxs(BO,{className:Me(v.root,o),ownerState:h,role:"progressbar",...y,ref:r,...f,children:[d==="buffer"?l.jsx(zO,{className:v.dashed,ownerState:h}):null,l.jsx(DO,{className:v.bar1,ownerState:h,style:x.bar1}),d==="determinate"?null:l.jsx(FO,{className:v.bar2,ownerState:h,style:x.bar2})]})});function HO(t){return et("MuiLink",t)}const UO=nt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),VO=({theme:t,ownerState:e})=>{const r=e.color;if("colorSpace"in t&&t.colorSpace){const s=Ii(t,`palette.${r}.main`)||Ii(t,`palette.${r}`)||e.color;return t.alpha(s,.4)}const n=Ii(t,`palette.${r}.main`,!1)||Ii(t,`palette.${r}`,!1)||e.color,o=Ii(t,`palette.${r}.mainChannel`)||Ii(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Qu(n,.4)},oS={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},WO=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,s={root:["root",`underline${ye(o)}`,r==="button"&&"button",n&&"focusVisible"]};return tt(s,HO,e)},qO=ve(he,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${ye(r.underline)}`],r.component==="button"&&e.button]}})(Ye(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color==="inherit",style:t.colorSpace?{textDecorationColor:t.alpha("currentColor",.4)}:null},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${UO.focusVisible}`]:{outline:"auto"}}}]}))),GO=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiLink"}),o=io(),{className:s,color:c="primary",component:u="a",onBlur:d,onFocus:f,TypographyClasses:h,underline:v="always",variant:m="inherit",sx:y,...x}=n,[w,C]=b.useState(!1),j=M=>{ac(M.target)||C(!1),d&&d(M)},k=M=>{ac(M.target)&&C(!0),f&&f(M)},I={...n,color:c,component:u,focusVisible:w,underline:v,variant:m},E=WO(I);return l.jsx(qO,{color:c,className:Me(E.root,s),classes:h,component:u,onBlur:j,onFocus:k,ref:r,ownerState:I,variant:m,...x,sx:[...oS[c]===void 0?[{color:c}]:[],...Array.isArray(y)?y:[y]],style:{...x.style,...v==="always"&&c!=="inherit"&&!oS[c]&&{"--Link-underlineColor":VO({theme:o,ownerState:I})}}})}),td=b.createContext({});function XO(t){return et("MuiList",t)}nt("MuiList",["root","padding","dense","subheader"]);const KO=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return tt({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},XO,e)},QO=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),YO=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiList"}),{children:o,className:s,component:c="ul",dense:u=!1,disablePadding:d=!1,subheader:f,...h}=n,v=b.useMemo(()=>({dense:u}),[u]),m={...n,component:c,dense:u,disablePadding:d},y=KO(m);return l.jsx(td.Provider,{value:v,children:l.jsxs(QO,{as:c,className:Me(y.root,s),ref:r,ownerState:m,...h,children:[f,o]})})});function JO(t){return et("MuiListItemIcon",t)}const iS=nt("MuiListItemIcon",["root","alignItemsFlexStart"]),ZO=t=>{const{alignItems:e,classes:r}=t;return tt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},JO,r)},e$=ve("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Ye(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ef=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemIcon"}),{className:o,...s}=n,c=b.useContext(td),u={...n,alignItems:c.alignItems},d=ZO(u);return l.jsx(e$,{className:Me(d.root,o),ownerState:u,ref:r,...s})});function t$(t){return et("MuiListItemText",t)}const Xl=nt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),r$=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:s}=t;return tt({root:["root",r&&"inset",s&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},t$,e)},n$=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Xl.primary}`]:e.primary},{[`& .${Xl.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Ew.root}:where(& .${Xl.primary})`]:{display:"block"},[`.${Ew.root}:where(& .${Xl.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),Tf=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiListItemText"}),{children:o,className:s,disableTypography:c=!1,inset:u=!1,primary:d,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:v,slots:m={},slotProps:y={},...x}=n,{dense:w}=b.useContext(td);let C=d??o,j=h;const k={...n,disableTypography:c,inset:u,primary:!!C,secondary:!!j,dense:w},I=r$(k),E={slots:m,slotProps:{primary:f,secondary:v,...y}},[M,R]=Ze("root",{className:Me(I.root,s),elementType:n$,externalForwardedProps:{...E,...x},ownerState:k,ref:r}),[L,A]=Ze("primary",{className:I.primary,elementType:he,externalForwardedProps:E,ownerState:k}),[F,G]=Ze("secondary",{className:I.secondary,elementType:he,externalForwardedProps:E,ownerState:k});return C!=null&&C.type!==he&&!c&&(C=l.jsx(L,{variant:w?"body2":"body1",component:A!=null&&A.variant?void 0:"span",...A,children:C})),j!=null&&j.type!==he&&!c&&(j=l.jsx(F,{variant:"body2",color:"textSecondary",...G,children:j})),l.jsxs(M,{...R,children:[C,j]})});function Qg(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function sS(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function VE(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function vu(t,e,r,n,o,s){let c=!1,u=o(t,e,e?r:!1);for(;u;){if(u===t.firstChild){if(c)return!1;c=!0}const d=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!VE(u,s)||d)u=o(t,u,r);else return u.focus(),!0}return!1}const o$=b.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:s=!1,children:c,className:u,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:h,variant:v="selectedMenu",...m}=e,y=b.useRef(null),x=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});to(()=>{o&&y.current.focus()},[o]),b.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(I,{direction:E})=>{const M=!y.current.style.width;if(I.clientHeight<y.current.clientHeight&&M){const R=`${FE(li(I))}px`;y.current.style[E==="rtl"?"paddingLeft":"paddingRight"]=R,y.current.style.width=`calc(100% + ${R})`}return y.current}}),[]);const w=I=>{const E=y.current,M=I.key;if(I.ctrlKey||I.metaKey||I.altKey){h&&h(I);return}const L=Gl(vn(E));if(M==="ArrowDown")I.preventDefault(),vu(E,L,f,d,Qg);else if(M==="ArrowUp")I.preventDefault(),vu(E,L,f,d,sS);else if(M==="Home")I.preventDefault(),vu(E,null,f,d,Qg);else if(M==="End")I.preventDefault(),vu(E,null,f,d,sS);else if(M.length===1){const A=x.current,F=M.toLowerCase(),G=performance.now();A.keys.length>0&&(G-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&F!==A.keys[0]&&(A.repeating=!1)),A.lastTime=G,A.keys.push(F);const $=L&&!A.repeating&&VE(L,A);A.previousKeyMatched&&($||vu(E,L,!1,d,Qg,A))?I.preventDefault():A.previousKeyMatched=!1}h&&h(I)},C=Fr(y,r);let j=-1;b.Children.forEach(c,(I,E)=>{if(!b.isValidElement(I)){j===E&&(j+=1,j>=c.length&&(j=-1));return}I.props.disabled||(v==="selectedMenu"&&I.props.selected||j===-1)&&(j=E),j===E&&(I.props.disabled||I.props.muiSkipListHighlight||I.type.muiSkipListHighlight)&&(j+=1,j>=c.length&&(j=-1))});const k=b.Children.map(c,(I,E)=>{if(E===j){const M={};return s&&(M.autoFocus=!0),I.props.tabIndex===void 0&&v==="selectedMenu"&&(M.tabIndex=0),b.cloneElement(I,M)}return I});return l.jsx(YO,{role:"menu",ref:C,className:u,onKeyDown:w,tabIndex:o?0:-1,...m,children:k})});function i$(t){return et("MuiPopover",t)}nt("MuiPopover",["root","paper"]);function aS(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function lS(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function cS(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Xp(t){return typeof t=="function"?t():t}const s$=t=>{const{classes:e}=t;return tt({root:["root"],paper:["paper"]},i$,e)},a$=ve(HE,{name:"MuiPopover",slot:"Root"})({}),WE=ve(Nr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),l$=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:h,container:v,elevation:m=8,marginThreshold:y=16,open:x,PaperProps:w={},slots:C={},slotProps:j={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:I,transitionDuration:E="auto",TransitionProps:M={},disableScrollLock:R=!1,...L}=n,A=b.useRef(),F={...n,anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:y,transformOrigin:k,TransitionComponent:I,transitionDuration:E,TransitionProps:M},G=s$(F),$=b.useCallback(()=>{if(d==="anchorPosition")return u;const ae=Xp(s),ze=(ae&&ae.nodeType===1?ae:vn(A.current).body).getBoundingClientRect();return{top:ze.top+aS(ze,c.vertical),left:ze.left+lS(ze,c.horizontal)}},[s,c.horizontal,c.vertical,u,d]),P=b.useCallback(ae=>({vertical:aS(ae,k.vertical),horizontal:lS(ae,k.horizontal)}),[k.horizontal,k.vertical]),q=b.useCallback(ae=>{const Fe={width:ae.offsetWidth,height:ae.offsetHeight},ze=P(Fe);if(d==="none")return{top:null,left:null,transformOrigin:cS(ze)};const Oe=$();let Be=Oe.top-ze.vertical,Le=Oe.left-ze.horizontal;const Ke=Be+Fe.height,pt=Le+Fe.width,ce=li(Xp(s)),De=ce.innerHeight-y,We=ce.innerWidth-y;if(y!==null&&Be<y){const gt=Be-y;Be-=gt,ze.vertical+=gt}else if(y!==null&&Ke>De){const gt=Ke-De;Be-=gt,ze.vertical+=gt}if(y!==null&&Le<y){const gt=Le-y;Le-=gt,ze.horizontal+=gt}else if(pt>We){const gt=pt-We;Le-=gt,ze.horizontal+=gt}return{top:`${Math.round(Be)}px`,left:`${Math.round(Le)}px`,transformOrigin:cS(ze)}},[s,d,$,P,y]),[V,O]=b.useState(x),U=b.useCallback(()=>{const ae=A.current;if(!ae)return;const Fe=q(ae);Fe.top!==null&&ae.style.setProperty("top",Fe.top),Fe.left!==null&&(ae.style.left=Fe.left),ae.style.transformOrigin=Fe.transformOrigin,O(!0)},[q]);b.useEffect(()=>(R&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[s,R,U]);const K=()=>{U()},Y=()=>{O(!1)};b.useEffect(()=>{x&&U()}),b.useImperativeHandle(o,()=>x?{updatePosition:()=>{U()}}:null,[x,U]),b.useEffect(()=>{if(!x)return;const ae=Ch(()=>{U()}),Fe=li(Xp(s));return Fe.addEventListener("resize",ae),()=>{ae.clear(),Fe.removeEventListener("resize",ae)}},[s,x,U]);let te=E;const Q={slots:{transition:I,...C},slotProps:{transition:M,paper:w,...j}},[X,re]=Ze("transition",{elementType:ed,externalForwardedProps:Q,ownerState:F,getSlotProps:ae=>({...ae,onEntering:(Fe,ze)=>{var Oe;(Oe=ae.onEntering)==null||Oe.call(ae,Fe,ze),K()},onExited:Fe=>{var ze;(ze=ae.onExited)==null||ze.call(ae,Fe),Y()}}),additionalProps:{appear:!0,in:x}});E==="auto"&&!X.muiSupportAuto&&(te=void 0);const de=v||(s?vn(Xp(s)).body:void 0),[J,{slots:oe,slotProps:Z,...pe}]=Ze("root",{ref:r,elementType:a$,externalForwardedProps:{...Q,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:mE(typeof j.backdrop=="function"?j.backdrop(F):j.backdrop,{invisible:!0})},container:de,open:x},ownerState:F,className:Me(G.root,h)}),[Se,se]=Ze("paper",{ref:A,className:G.paper,elementType:WE,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:V?void 0:{opacity:0}},ownerState:F});return l.jsx(J,{...pe,...!Nf(J)&&{slots:oe,slotProps:Z,disableScrollLock:R},children:l.jsx(X,{...re,timeout:te,children:l.jsx(Se,{...se,children:f})})})});function c$(t){return et("MuiMenu",t)}nt("MuiMenu",["root","paper","list"]);const u$={vertical:"top",horizontal:"right"},d$={vertical:"top",horizontal:"left"},p$=t=>{const{classes:e}=t;return tt({root:["root"],paper:["paper"],list:["list"]},c$,e)},f$=ve(l$,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiMenu",slot:"Root"})({}),h$=ve(WE,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),m$=ve(o$,{name:"MuiMenu",slot:"List"})({outline:0}),Lh=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:c,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:v={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:x,...w}={},variant:C="selectedMenu",slots:j={},slotProps:k={},...I}=n,E=pa(),M={...n,autoFocus:o,disableAutoFocusItem:u,MenuListProps:d,onEntering:x,PaperProps:v,transitionDuration:y,TransitionProps:w,variant:C},R=p$(M),L=o&&!u&&h,A=b.useRef(null),F=(te,Q)=>{A.current&&A.current.adjustStyleForScrollbar(te,{direction:E?"rtl":"ltr"}),x&&x(te,Q)},G=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let $=-1;b.Children.map(s,(te,Q)=>{b.isValidElement(te)&&(te.props.disabled||(C==="selectedMenu"&&te.props.selected||$===-1)&&($=Q))});const P={slots:j,slotProps:{list:d,transition:w,paper:v,...k}},q=pc({elementType:j.root,externalSlotProps:k.root,ownerState:M,className:[R.root,c]}),[V,O]=Ze("paper",{className:R.paper,elementType:h$,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:M}),[U,K]=Ze("list",{className:Me(R.list,d.className),elementType:m$,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:te=>({...te,onKeyDown:Q=>{var X;G(Q),(X=te.onKeyDown)==null||X.call(te,Q)}}),ownerState:M}),Y=typeof P.slotProps.transition=="function"?P.slotProps.transition(M):P.slotProps.transition;return l.jsx(f$,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?u$:d$,slots:{root:j.root,paper:V,backdrop:j.backdrop,...j.transition&&{transition:j.transition}},slotProps:{root:q,paper:O,backdrop:typeof k.backdrop=="function"?k.backdrop(M):k.backdrop,transition:{...Y,onEntering:(...te)=>{var Q;F(...te),(Q=Y==null?void 0:Y.onEntering)==null||Q.call(Y,...te)}}},open:h,ref:r,transitionDuration:y,ownerState:M,...I,classes:m,children:l.jsx(U,{actions:A,autoFocus:o&&($===-1||u),autoFocusItem:L,variant:C,...K,children:s})})});function g$(t){return et("MuiMenuItem",t)}const xu=nt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),y$=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},v$=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:s,classes:c}=t,d=tt({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},g$,c);return{...c,...d}},x$=ve(ci,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:y$})(Ye(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xu.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${xu.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${xu.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${xu.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${xu.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Jw.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Jw.inset}`]:{marginLeft:52},[`& .${Xl.root}`]:{marginTop:0,marginBottom:0},[`& .${Xl.inset}`]:{paddingLeft:36},[`& .${iS.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${iS.root} svg`]:{fontSize:"1.25rem"}}}]}))),br=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:c=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:v,className:m,...y}=n,x=b.useContext(td),w=b.useMemo(()=>({dense:c||x.dense||!1,disableGutters:d}),[x.dense,c,d]),C=b.useRef(null);to(()=>{o&&C.current&&C.current.focus()},[o]);const j={...n,dense:w.dense,divider:u,disableGutters:d},k=v$(n),I=Fr(C,r);let E;return n.disabled||(E=v!==void 0?v:-1),l.jsx(td.Provider,{value:w,children:l.jsx(x$,{ref:I,role:h,tabIndex:E,component:s,focusVisibleClassName:Me(k.focusVisible,f),className:Me(k.root,m),...y,ownerState:j,classes:k})})});function b$(t){return et("MuiNativeSelect",t)}const a0=nt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),w$=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:s,error:c}=t,u={select:["select",r,n&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${ye(r)}`,s&&"iconOpen",n&&"disabled"]};return tt(u,b$,e)},qE=ve("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${a0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),S$=ve(qE,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${a0.multiple}`]:e.multiple}]}})({}),GE=ve("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${a0.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),C$=ve(GE,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ye(r.variant)}`],r.open&&e.iconOpen]}})({}),E$=b.forwardRef(function(e,r){const{className:n,disabled:o,error:s,IconComponent:c,inputRef:u,variant:d="standard",...f}=e,h={...e,disabled:o,variant:d,error:s},v=w$(h);return l.jsxs(b.Fragment,{children:[l.jsx(S$,{ownerState:h,className:Me(v.select,n),disabled:o,ref:u||r,...f}),e.multiple?null:l.jsx(C$,{as:c,ownerState:h,className:v.icon})]})});var uS;const T$=ve("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),k$=ve("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})(Ye(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function j$(t){const{children:e,classes:r,className:n,label:o,notched:s,...c}=t,u=o!=null&&o!=="",d={...t,notched:s,withLabel:u};return l.jsx(T$,{"aria-hidden":!0,className:n,ownerState:d,...c,children:l.jsx(k$,{ownerState:d,children:u?l.jsx("span",{children:o}):uS||(uS=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const P$=t=>{const{classes:e}=t,n=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},e_,e);return{...e,...n}},I$=ve(Mh,{shouldForwardProp:t=>Dn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ph})(Ye(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Lo.notchedOutline}`]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}},[`&.${Lo.focused} .${Lo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(cr()).map(([r])=>({props:{color:r},style:{[`&.${Lo.focused} .${Lo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Lo.error} .${Lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Lo.disabled} .${Lo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),M$=ve(j$,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ye(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}})),R$=ve(Rh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ih})(Ye(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),l0=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:c="input",label:u,multiline:d=!1,notched:f,slots:h={},slotProps:v={},type:m="text",...y}=n,x=P$(n),w=Yi(),C=ha({props:n,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),j={...n,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:s,hiddenLabel:C.hiddenLabel,multiline:d,size:C.size,type:m},k=h.root??o.Root??I$,I=h.input??o.Input??R$,[E,M]=Ze("notchedOutline",{elementType:M$,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:j,externalForwardedProps:{slots:h,slotProps:v},additionalProps:{label:u!=null&&u!==""&&C.required?l.jsxs(b.Fragment,{children:[u," ","*"]}):u}});return l.jsx(Ah,{slots:{root:k,input:I},slotProps:v,renderSuffix:R=>l.jsx(E,{...M,notched:typeof f<"u"?f:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:s,inputComponent:c,multiline:d,ref:r,type:m,...y,classes:{...x,notchedOutline:null}})});l0.muiName="Input";function A$(t){return et("MuiPagination",t)}nt("MuiPagination",["root","ul","outlined","text"]);function _$(t={}){const{boundaryCount:e=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:s=!1,hideNextButton:c=!1,hidePrevButton:u=!1,onChange:d,page:f,showFirstButton:h=!1,showLastButton:v=!1,siblingCount:m=1,...y}=t,[x,w]=ea({controlled:f,default:o,name:r,state:"page"}),C=(F,G)=>{f||w(G),d&&d(F,G)},j=(F,G)=>{const $=G-F+1;return Array.from({length:$},(P,q)=>F+q)},k=j(1,Math.min(e,n)),I=j(Math.max(n-e+1,e+1),n),E=Math.max(Math.min(x-m,n-e-m*2-1),e+2),M=Math.min(Math.max(x+m,e+m*2+2),n-e-1),R=[...h?["first"]:[],...u?[]:["previous"],...k,...E>e+2?["start-ellipsis"]:e+1<n-e?[e+1]:[],...j(E,M),...M<n-e-1?["end-ellipsis"]:n-e>e?[n-e]:[],...I,...c?[]:["next"],...v?["last"]:[]],L=F=>{switch(F){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}};return{items:R.map(F=>typeof F=="number"?{onClick:G=>{C(G,F)},type:"page",page:F,selected:F===x,disabled:s,"aria-current":F===x?"page":void 0}:{onClick:G=>{C(G,L(F))},type:F,page:L(F),selected:!1,disabled:s||!F.includes("ellipsis")&&(F==="next"||F==="last"?x>=n:x<=1)}),...y}}function L$(t){return et("MuiPaginationItem",t)}const _n=nt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),XE=Ee(l.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),KE=Ee(l.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),O$=Ee(l.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),$$=Ee(l.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),QE=(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ye(r.size)}`],r.variant==="text"&&e[`text${ye(r.color)}`],r.variant==="outlined"&&e[`outlined${ye(r.color)}`],r.shape==="rounded"&&e.rounded,r.type==="page"&&e.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&e.ellipsis,(r.type==="previous"||r.type==="next")&&e.previousNext,(r.type==="first"||r.type==="last")&&e.firstLast]},N$=t=>{const{classes:e,color:r,disabled:n,selected:o,size:s,shape:c,type:u,variant:d}=t,f={root:["root",`size${ye(s)}`,d,c,r!=="standard"&&`color${ye(r)}`,r!=="standard"&&`${d}${ye(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return tt(f,L$,e)},B$=ve("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:QE})(Ye(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${_n.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}}]}))),z$=ve(ci,{name:"MuiPaginationItem",slot:"Root",overridesResolver:QE})(Ye(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${_n.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${_n.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${_n.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},[`&.${_n.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"outlined"},style:{border:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${_n.selected}`]:{[`&.${_n.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${_n.selected}`]:{[`&.${_n.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}},...Object.entries(t.palette).filter(cr(["dark","contrastText"])).map(([e])=>({props:{variant:"text",color:e},style:{[`&.${_n.selected}`]:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}},[`&.${_n.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark},[`&.${_n.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}})),...Object.entries(t.palette).filter(cr(["light"])).map(([e])=>({props:{variant:"outlined",color:e},style:{[`&.${_n.selected}`]:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.5)}`,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.activatedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))]}))),D$=ve("div",{name:"MuiPaginationItem",slot:"Icon"})(Ye(({theme:t})=>({fontSize:t.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:t.typography.pxToRem(22)}}]}))),F$=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:c,components:u={},disabled:d=!1,page:f,selected:h=!1,shape:v="circular",size:m="medium",slots:y={},slotProps:x={},type:w="page",variant:C="text",...j}=n,k={...n,color:s,disabled:d,selected:h,shape:v,size:m,type:w,variant:C},I=pa(),E=N$(k),M={slots:{previous:y.previous??u.previous,next:y.next??u.next,first:y.first??u.first,last:y.last??u.last},slotProps:x},[R,L]=Ze("previous",{elementType:O$,externalForwardedProps:M,ownerState:k}),[A,F]=Ze("next",{elementType:$$,externalForwardedProps:M,ownerState:k}),[G,$]=Ze("first",{elementType:XE,externalForwardedProps:M,ownerState:k}),[P,q]=Ze("last",{elementType:KE,externalForwardedProps:M,ownerState:k}),V=I?{previous:"next",next:"previous",first:"last",last:"first"}[w]:w,O={previous:R,next:A,first:G,last:P}[V],U={previous:L,next:F,first:$,last:q}[V];return w==="start-ellipsis"||w==="end-ellipsis"?l.jsx(B$,{ref:r,ownerState:k,className:Me(E.root,o),children:"…"}):l.jsxs(z$,{ref:r,ownerState:k,component:c,disabled:d,className:Me(E.root,o),...j,children:[w==="page"&&f,O?l.jsx(D$,{...U,className:E.icon,as:O}):null]})}),H$=t=>{const{classes:e,variant:r}=t;return tt({root:["root",r],ul:["ul"]},A$,e)},U$=ve("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant]]}})({}),V$=ve("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function W$(t,e,r){return t==="page"?`${r?"":"Go to "}page ${e}`:`Go to ${t} page`}const q$=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:c="standard",count:u=1,defaultPage:d=1,disabled:f=!1,getItemAriaLabel:h=W$,hideNextButton:v=!1,hidePrevButton:m=!1,onChange:y,page:x,renderItem:w=G=>l.jsx(F$,{...G}),shape:C="circular",showFirstButton:j=!1,showLastButton:k=!1,siblingCount:I=1,size:E="medium",variant:M="text",...R}=n,{items:L}=_$({...n,componentName:"Pagination"}),A={...n,boundaryCount:o,color:c,count:u,defaultPage:d,disabled:f,getItemAriaLabel:h,hideNextButton:v,hidePrevButton:m,renderItem:w,shape:C,showFirstButton:j,showLastButton:k,siblingCount:I,size:E,variant:M},F=H$(A);return l.jsx(U$,{"aria-label":"pagination navigation",className:Me(F.root,s),ownerState:A,ref:r,...R,children:l.jsx(V$,{className:F.ul,ownerState:A,children:L.map((G,$)=>l.jsx("li",{children:w({...G,color:c,"aria-label":h(G.type,G.page,G.selected),shape:C,size:E,variant:M})},$))})})});function YE(t){return et("MuiSelect",t)}const bu=nt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dS;const G$=ve(qE,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${bu.select}`]:e.select},{[`&.${bu.select}`]:e[r.variant]},{[`&.${bu.error}`]:e.error},{[`&.${bu.multiple}`]:e.multiple}]}})({[`&.${bu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),X$=ve(GE,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ye(r.variant)}`],r.open&&e.iconOpen]}})({}),K$=ve("input",{shouldForwardProp:t=>hE(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function pS(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function Q$(t){return t==null||typeof t=="string"&&!t.trim()}const Y$=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:s,error:c}=t,u={select:["select",r,n&&"disabled",o&&"multiple",c&&"error"],icon:["icon",`icon${ye(r)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return tt(u,YE,e)},J$=b.forwardRef(function(e,r){var yr,Br,Yr,on;const{"aria-describedby":n,"aria-label":o,autoFocus:s,autoWidth:c,children:u,className:d,defaultOpen:f,defaultValue:h,disabled:v,displayEmpty:m,error:y=!1,IconComponent:x,inputRef:w,labelId:C,MenuProps:j={},multiple:k,name:I,onBlur:E,onChange:M,onClose:R,onFocus:L,onKeyDown:A,onMouseDown:F,onOpen:G,open:$,readOnly:P,renderValue:q,required:V,SelectDisplayProps:O={},tabIndex:U,type:K,value:Y,variant:te="standard",...Q}=e,[X,re]=ea({controlled:Y,default:h,name:"Select"}),[de,J]=ea({controlled:$,default:f,name:"Select"}),oe=b.useRef(null),Z=b.useRef(null),[pe,Se]=b.useState(null),{current:se}=b.useRef($!=null),[ae,Fe]=b.useState(),ze=Fr(r,w),Oe=b.useCallback(rt=>{Z.current=rt,rt&&Se(rt)},[]),Be=pe==null?void 0:pe.parentNode;b.useImperativeHandle(ze,()=>({focus:()=>{Z.current.focus()},node:oe.current,value:X}),[X]),b.useEffect(()=>{f&&de&&pe&&!se&&(Fe(c?null:Be.clientWidth),Z.current.focus())},[pe,c]),b.useEffect(()=>{s&&Z.current.focus()},[s]),b.useEffect(()=>{if(!C)return;const rt=vn(Z.current).getElementById(C);if(rt){const bt=()=>{getSelection().isCollapsed&&Z.current.focus()};return rt.addEventListener("click",bt),()=>{rt.removeEventListener("click",bt)}}},[C]);const Le=(rt,bt)=>{rt?G&&G(bt):R&&R(bt),se||(Fe(c?null:Be.clientWidth),J(rt))},Ke=rt=>{F==null||F(rt),rt.button===0&&(rt.preventDefault(),Z.current.focus(),Le(!0,rt))},pt=rt=>{Le(!1,rt)},ce=b.Children.toArray(u),De=rt=>{const bt=ce.find(Yt=>Yt.props.value===rt.target.value);bt!==void 0&&(re(bt.props.value),M&&M(rt,bt))},We=rt=>bt=>{let Yt;if(bt.currentTarget.hasAttribute("tabindex")){if(k){Yt=Array.isArray(X)?X.slice():[];const dr=X.indexOf(rt.props.value);dr===-1?Yt.push(rt.props.value):Yt.splice(dr,1)}else Yt=rt.props.value;if(rt.props.onClick&&rt.props.onClick(bt),X!==Yt&&(re(Yt),M)){const dr=bt.nativeEvent||bt,we=new dr.constructor(dr.type,dr);Object.defineProperty(we,"target",{writable:!0,value:{value:Yt,name:I}}),M(we,rt)}k||Le(!1,bt)}},gt=rt=>{P||([" ","ArrowUp","ArrowDown","Enter"].includes(rt.key)&&(rt.preventDefault(),Le(!0,rt)),A==null||A(rt))},$e=pe!==null&&de,zt=rt=>{!$e&&E&&(Object.defineProperty(rt,"target",{writable:!0,value:{value:X,name:I}}),E(rt))};delete Q["aria-invalid"];let vt,fe;const be=[];let Pe=!1;(Ff({value:X})||m)&&(q?vt=q(X):Pe=!0);const Ae=ce.map(rt=>{if(!b.isValidElement(rt))return null;let bt;if(k){if(!Array.isArray(X))throw new Error(ms(2));bt=X.some(Yt=>pS(Yt,rt.props.value)),bt&&Pe&&be.push(rt.props.children)}else bt=pS(X,rt.props.value),bt&&Pe&&(fe=rt.props.children);return b.cloneElement(rt,{"aria-selected":bt?"true":"false",onClick:We(rt),onKeyUp:Yt=>{Yt.key===" "&&Yt.preventDefault(),rt.props.onKeyUp&&rt.props.onKeyUp(Yt)},role:"option",selected:bt,value:void 0,"data-value":rt.props.value})});Pe&&(k?be.length===0?vt=null:vt=be.reduce((rt,bt,Yt)=>(rt.push(bt),Yt<be.length-1&&rt.push(", "),rt),[]):vt=fe);let qe=ae;!c&&se&&pe&&(qe=Be.clientWidth);let Je;typeof U<"u"?Je=U:Je=v?null:0;const Ce=O.id||(I?`mui-component-select-${I}`:void 0),Ge={...e,variant:te,value:X,open:$e,error:y},Ue=Y$(Ge),Xe={...j.PaperProps,...typeof((yr=j.slotProps)==null?void 0:yr.paper)=="function"?j.slotProps.paper(Ge):(Br=j.slotProps)==null?void 0:Br.paper},Mt={...j.MenuListProps,...typeof((Yr=j.slotProps)==null?void 0:Yr.list)=="function"?j.slotProps.list(Ge):(on=j.slotProps)==null?void 0:on.list},Zt=Hi();return l.jsxs(b.Fragment,{children:[l.jsx(G$,{as:"div",ref:Oe,tabIndex:Je,role:"combobox","aria-controls":$e?Zt:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":$e?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[C,Ce].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":V?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:gt,onMouseDown:v||P?null:Ke,onBlur:zt,onFocus:L,...O,ownerState:Ge,className:Me(O.className,Ue.select,d),id:Ce,children:Q$(vt)?dS||(dS=l.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):vt}),l.jsx(K$,{"aria-invalid":y,value:Array.isArray(X)?X.join(","):X,name:I,ref:oe,"aria-hidden":!0,onChange:De,tabIndex:-1,disabled:v,className:Ue.nativeInput,autoFocus:s,required:V,...Q,ownerState:Ge}),l.jsx(X$,{as:x,className:Ue.icon,ownerState:Ge}),l.jsx(Lh,{id:`menu-${I||""}`,anchorEl:Be,open:$e,onClose:pt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...j,slotProps:{...j.slotProps,list:{"aria-labelledby":C,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:Zt,...Mt},paper:{...Xe,style:{minWidth:qe,...Xe!=null?Xe.style:null}}},children:Ae})]})}),Z$=t=>{const{classes:e}=t,n=tt({root:["root"]},YE,e);return{...e,...n}},c0={name:"MuiSelect",slot:"Root",shouldForwardProp:t=>Dn(t)&&t!=="variant"},eN=ve(_h,c0)(""),tN=ve(l0,c0)(""),rN=ve(i0,c0)(""),Vi=b.forwardRef(function(e,r){const n=ot({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:c={},className:u,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:h=LE,id:v,input:m,inputProps:y,label:x,labelId:w,MenuProps:C,multiple:j=!1,native:k=!1,onClose:I,onOpen:E,open:M,renderValue:R,SelectDisplayProps:L,variant:A="outlined",...F}=n,G=k?E$:J$,$=Yi(),P=ha({props:n,muiFormControl:$,states:["variant","error"]}),q=P.variant||A,V={...n,variant:q,classes:c},O=Z$(V),{root:U,...K}=O,Y=m||{standard:l.jsx(eN,{ownerState:V}),outlined:l.jsx(tN,{label:x,ownerState:V}),filled:l.jsx(rN,{ownerState:V})}[q],te=Fr(r,el(Y));return l.jsx(b.Fragment,{children:b.cloneElement(Y,{inputComponent:G,inputProps:{children:s,error:P.error,IconComponent:h,variant:q,type:void 0,multiple:j,...k?{id:v}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:C,onClose:I,onOpen:E,open:M,renderValue:R,SelectDisplayProps:{id:v,...L}},...y,classes:y?dn(K,y.classes):K,...m?m.props.inputProps:{}},...(j&&k||f)&&q==="outlined"?{notched:!0}:{},ref:te,className:Me(Y.props.className,u,O.root),...!m&&{variant:q},...F})})});Vi.muiName="Select";function nN(t){return et("MuiSkeleton",t)}nt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const oN=t=>{const{classes:e,variant:r,animation:n,hasChildren:o,width:s,height:c}=t;return tt({root:["root",r,n,o&&"withChildren",o&&!s&&"fitContent",o&&!c&&"heightAuto"]},nN,e)},Hy=Qi`
|
|
271
|
+
0% {
|
|
272
|
+
opacity: 1;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
50% {
|
|
276
|
+
opacity: 0.4;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
100% {
|
|
280
|
+
opacity: 1;
|
|
281
|
+
}
|
|
282
|
+
`,Uy=Qi`
|
|
283
|
+
0% {
|
|
284
|
+
transform: translateX(-100%);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
50% {
|
|
288
|
+
/* +0.5s of delay between each loop */
|
|
289
|
+
transform: translateX(100%);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
100% {
|
|
293
|
+
transform: translateX(100%);
|
|
294
|
+
}
|
|
295
|
+
`,iN=typeof Hy!="string"?da`
|
|
296
|
+
animation: ${Hy} 2s ease-in-out 0.5s infinite;
|
|
297
|
+
`:null,sN=typeof Uy!="string"?da`
|
|
298
|
+
&::after {
|
|
299
|
+
animation: ${Uy} 2s linear 0.5s infinite;
|
|
300
|
+
}
|
|
301
|
+
`:null,aN=ve("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.animation!==!1&&e[r.animation],r.hasChildren&&e.withChildren,r.hasChildren&&!r.width&&e.fitContent,r.hasChildren&&!r.height&&e.heightAuto]}})(Ye(({theme:t})=>{const e=ZM(t.shape.borderRadius)||"px",r=eR(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:t.alpha(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${e}/${Math.round(r/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:({ownerState:n})=>n.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:n})=>n.hasChildren&&!n.width,style:{maxWidth:"fit-content"}},{props:({ownerState:n})=>n.hasChildren&&!n.height,style:{height:"auto"}},{props:{animation:"pulse"},style:iN||{animation:`${Hy} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
302
|
+
90deg,
|
|
303
|
+
transparent,
|
|
304
|
+
${(t.vars||t).palette.action.hover},
|
|
305
|
+
transparent
|
|
306
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:sN||{"&::after":{animation:`${Uy} 2s linear 0.5s infinite`}}}]}})),lN=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:c="span",height:u,style:d,variant:f="text",width:h,...v}=n,m={...n,animation:o,component:c,variant:f,hasChildren:!!v.children},y=oN(m);return l.jsx(aN,{as:c,ref:r,className:Me(y.root,s),ownerState:m,...v,style:{width:h,height:u,...d}})});function cN(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:s}=t,c=Qs();b.useEffect(()=>{if(!o)return;function j(k){k.defaultPrevented||k.key==="Escape"&&(n==null||n(k,"escapeKeyDown"))}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[o,n]);const u=tn((j,k)=>{n==null||n(j,k)}),d=tn(j=>{!n||j==null||c.start(j,()=>{u(null,"timeout")})});b.useEffect(()=>(o&&d(e),c.clear),[o,e,d,c]);const f=j=>{n==null||n(j,"clickaway")},h=c.clear,v=b.useCallback(()=>{e!=null&&d(s??e*.5)},[e,s,d]),m=j=>k=>{const I=j.onBlur;I==null||I(k),v()},y=j=>k=>{const I=j.onFocus;I==null||I(k),h()},x=j=>k=>{const I=j.onMouseEnter;I==null||I(k),h()},w=j=>k=>{const I=j.onMouseLeave;I==null||I(k),v()};return b.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",h)}},[r,o,v,h]),{getRootProps:(j={})=>{const k={...Bf(t),...Bf(j)};return{role:"presentation",...j,...k,onBlur:m(k),onFocus:y(k),onMouseEnter:x(k),onMouseLeave:w(k)}},onClickAway:f}}function uN(t){return et("MuiSnackbarContent",t)}nt("MuiSnackbarContent",["root","message","action"]);const dN=t=>{const{classes:e}=t;return tt({root:["root"],action:["action"],message:["message"]},uN,e)},pN=ve(Nr,{name:"MuiSnackbarContent",slot:"Root"})(Ye(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98;return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(by(t.palette.background.default,e)),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:by(t.palette.background.default,e),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),fN=ve("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),hN=ve("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),mN=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbarContent"}),{action:o,className:s,message:c,role:u="alert",...d}=n,f=n,h=dN(f);return l.jsxs(pN,{role:u,elevation:6,className:Me(h.root,s),ownerState:f,ref:r,...d,children:[l.jsx(fN,{className:h.message,ownerState:f,children:c}),o?l.jsx(hN,{className:h.action,ownerState:f,children:o}):null]})});function gN(t){return et("MuiSnackbar",t)}nt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const yN=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${ye(r.vertical)}${ye(r.horizontal)}`]};return tt(n,gN,e)},vN=ve("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${ye(r.anchorOrigin.vertical)}${ye(r.anchorOrigin.horizontal)}`]]}})(Ye(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),JE=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSnackbar"}),o=io(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:u,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:v,ClickAwayListenerProps:m,ContentProps:y,disableWindowBlurListener:x=!1,message:w,onBlur:C,onClose:j,onFocus:k,onMouseEnter:I,onMouseLeave:E,open:M,resumeHideDuration:R,slots:L={},slotProps:A={},TransitionComponent:F,transitionDuration:G=s,TransitionProps:{onEnter:$,onExited:P,...q}={},...V}=n,O={...n,anchorOrigin:{vertical:u,horizontal:d},autoHideDuration:f,disableWindowBlurListener:x,TransitionComponent:F,transitionDuration:G},U=yN(O),{getRootProps:K,onClickAway:Y}=cN(O),[te,Q]=b.useState(!0),X=Oe=>{Q(!0),P&&P(Oe)},re=(Oe,Be)=>{Q(!1),$&&$(Oe,Be)},de={slots:{transition:F,...L},slotProps:{content:y,clickAwayListener:m,transition:q,...A}},[J,oe]=Ze("root",{ref:r,className:[U.root,v],elementType:vN,getSlotProps:K,externalForwardedProps:{...de,...V},ownerState:O}),[Z,{ownerState:pe,...Se}]=Ze("clickAwayListener",{elementType:dL,externalForwardedProps:de,getSlotProps:Oe=>({onClickAway:(...Be)=>{var Ke;const Le=Be[0];(Ke=Oe.onClickAway)==null||Ke.call(Oe,...Be),!(Le!=null&&Le.defaultMuiPrevented)&&Y(...Be)}}),ownerState:O}),[se,ae]=Ze("content",{elementType:mN,shouldForwardComponentProp:!0,externalForwardedProps:de,additionalProps:{message:w,action:c},ownerState:O}),[Fe,ze]=Ze("transition",{elementType:ed,externalForwardedProps:de,getSlotProps:Oe=>({onEnter:(...Be)=>{var Le;(Le=Oe.onEnter)==null||Le.call(Oe,...Be),re(...Be)},onExited:(...Be)=>{var Le;(Le=Oe.onExited)==null||Le.call(Oe,...Be),X(...Be)}}),additionalProps:{appear:!0,in:M,timeout:G,direction:u==="top"?"down":"up"},ownerState:O});return!M&&te?null:l.jsx(Z,{...Se,...L.clickAwayListener&&{ownerState:pe},children:l.jsx(J,{...oe,children:l.jsx(Fe,{...ze,children:h||l.jsx(se,{...ae})})})})});function xN(t){return et("MuiTooltip",t)}const $r=nt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function bN(t){return Math.round(t*1e5)/1e5}const wN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:s}=t,c={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ye(s.split("-")[0])}`],arrow:["arrow"]};return tt(c,xN,e)},SN=ve(kh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Ye(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${$r.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${$r.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${$r.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${$r.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${$r.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${$r.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${$r.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${$r.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),CN=ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${ye(r.placement.split("-")[0])}`]]}})(Ye(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${$r.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${$r.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${$r.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${$r.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${bN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${$r.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${$r.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${$r.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${$r.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${$r.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${$r.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${$r.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${$r.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${$r.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${$r.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),EN=ve("span",{name:"MuiTooltip",slot:"Arrow"})(Ye(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Kp=!1;const fS=new Eh;let wu={x:0,y:0};function Qp(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const tr=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:c,components:u={},componentsProps:d={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:v=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:x=100,enterNextDelay:w=0,enterTouchDelay:C=700,followCursor:j=!1,id:k,leaveDelay:I=0,leaveTouchDelay:E=1500,onClose:M,onOpen:R,open:L,placement:A="bottom",PopperComponent:F,PopperProps:G={},slotProps:$={},slots:P={},title:q,TransitionComponent:V,TransitionProps:O,...U}=n,K=b.isValidElement(s)?s:l.jsx("span",{children:s}),Y=io(),te=pa(),[Q,X]=b.useState(),[re,de]=b.useState(null),J=b.useRef(!1),oe=m||j,Z=Qs(),pe=Qs(),Se=Qs(),se=Qs(),[ae,Fe]=ea({controlled:L,default:!1,name:"Tooltip",state:"open"});let ze=ae;const Oe=Hi(k),Be=b.useRef(),Le=tn(()=>{Be.current!==void 0&&(document.body.style.WebkitUserSelect=Be.current,Be.current=void 0),se.clear()});b.useEffect(()=>Le,[Le]);const Ke=St=>{fS.clear(),Kp=!0,Fe(!0),R&&!ze&&R(St)},pt=tn(St=>{fS.start(800+I,()=>{Kp=!1}),Fe(!1),M&&ze&&M(St),Z.start(Y.transitions.duration.shortest,()=>{J.current=!1})}),ce=St=>{J.current&&St.type!=="touchstart"||(Q&&Q.removeAttribute("title"),pe.clear(),Se.clear(),x||Kp&&w?pe.start(Kp?w:x,()=>{Ke(St)}):Ke(St))},De=St=>{pe.clear(),Se.start(I,()=>{pt(St)})},[,We]=b.useState(!1),gt=St=>{ac(St.target)||(We(!1),De(St))},$e=St=>{Q||X(St.currentTarget),ac(St.target)&&(We(!0),ce(St))},zt=St=>{J.current=!0;const or=K.props;or.onTouchStart&&or.onTouchStart(St)},vt=St=>{zt(St),Se.clear(),Z.clear(),Le(),Be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.start(C,()=>{document.body.style.WebkitUserSelect=Be.current,ce(St)})},fe=St=>{K.props.onTouchEnd&&K.props.onTouchEnd(St),Le(),Se.start(E,()=>{pt(St)})};b.useEffect(()=>{if(!ze)return;function St(or){or.key==="Escape"&&pt(or)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[pt,ze]);const be=Fr(el(K),X,r);!q&&q!==0&&(ze=!1);const Pe=b.useRef(),Ae=St=>{const or=K.props;or.onMouseMove&&or.onMouseMove(St),wu={x:St.clientX,y:St.clientY},Pe.current&&Pe.current.update()},qe={},Je=typeof q=="string";f?(qe.title=!ze&&Je&&!v?q:null,qe["aria-describedby"]=ze?Oe:null):(qe["aria-label"]=Je?q:null,qe["aria-labelledby"]=ze&&!Je?Oe:null);const Ce={...qe,...U,...K.props,className:Me(U.className,K.props.className),onTouchStart:zt,ref:be,...j?{onMouseMove:Ae}:{}},Ge={};y||(Ce.onTouchStart=vt,Ce.onTouchEnd=fe),v||(Ce.onMouseOver=Qp(ce,Ce.onMouseOver),Ce.onMouseLeave=Qp(De,Ce.onMouseLeave),oe||(Ge.onMouseOver=ce,Ge.onMouseLeave=De)),h||(Ce.onFocus=Qp($e,Ce.onFocus),Ce.onBlur=Qp(gt,Ce.onBlur),oe||(Ge.onFocus=$e,Ge.onBlur=gt));const Ue={...n,isRtl:te,arrow:o,disableInteractive:oe,placement:A,PopperComponentProp:F,touch:J.current},Xe=typeof $.popper=="function"?$.popper(Ue):$.popper,Mt=b.useMemo(()=>{var or,Qe;let St=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(or=G.popperOptions)!=null&&or.modifiers&&(St=St.concat(G.popperOptions.modifiers)),(Qe=Xe==null?void 0:Xe.popperOptions)!=null&&Qe.modifiers&&(St=St.concat(Xe.popperOptions.modifiers)),{...G.popperOptions,...Xe==null?void 0:Xe.popperOptions,modifiers:St}},[re,G.popperOptions,Xe==null?void 0:Xe.popperOptions]),Zt=wN(Ue),yr=typeof $.transition=="function"?$.transition(Ue):$.transition,Br={slots:{popper:u.Popper,transition:u.Transition??V,tooltip:u.Tooltip,arrow:u.Arrow,...P},slotProps:{arrow:$.arrow??d.arrow,popper:{...G,...Xe??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...O,...yr??d.transition}}},[Yr,on]=Ze("popper",{elementType:SN,externalForwardedProps:Br,ownerState:Ue,className:Me(Zt.popper,G==null?void 0:G.className)}),[rt,bt]=Ze("transition",{elementType:ed,externalForwardedProps:Br,ownerState:Ue}),[Yt,dr]=Ze("tooltip",{elementType:CN,className:Zt.tooltip,externalForwardedProps:Br,ownerState:Ue}),[we,Ct]=Ze("arrow",{elementType:EN,className:Zt.arrow,externalForwardedProps:Br,ownerState:Ue,ref:de});return l.jsxs(b.Fragment,{children:[b.cloneElement(K,Ce),l.jsx(Yr,{as:F??kh,placement:A,anchorEl:j?{getBoundingClientRect:()=>({top:wu.y,left:wu.x,right:wu.x,bottom:wu.y,width:0,height:0})}:Q,popperRef:Pe,open:Q?ze:!1,id:Oe,transition:!0,...Ge,...on,popperOptions:Mt,children:({TransitionProps:St})=>l.jsx(rt,{timeout:Y.transitions.duration.shorter,...St,...bt,children:l.jsxs(Yt,{...dr,children:[q,o?l.jsx(we,{...Ct}):null]})})})]})}),hS=SM({createStyledComponent:ve("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>ot({props:t,name:"MuiStack"})});function TN(t){return et("MuiSwitch",t)}const $n=nt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kN=t=>{const{classes:e,edge:r,size:n,color:o,checked:s,disabled:c}=t,u={root:["root",r&&`edge${ye(r)}`,`size${ye(n)}`],switchBase:["switchBase",`color${ye(o)}`,s&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=tt(u,TN,e);return{...e,...d}},jN=ve("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.edge&&e[`edge${ye(r.edge)}`],e[`size${ye(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${$n.thumb}`]:{width:16,height:16},[`& .${$n.switchBase}`]:{padding:4,[`&.${$n.checked}`]:{transform:"translateX(16px)"}}}}]}),PN=ve(DE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.switchBase,{[`& .${$n.input}`]:e.input},r.color!=="default"&&e[`color${ye(r.color)}`]]}})(Ye(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${$n.checked}`]:{transform:"translateX(20px)"},[`&.${$n.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${$n.checked} + .${$n.track}`]:{opacity:.5},[`&.${$n.disabled} + .${$n.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${$n.input}`]:{left:"-100%",width:"300%"}})),Ye(({theme:t})=>({"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(cr(["light"])).map(([e])=>({props:{color:e},style:{[`&.${$n.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$n.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.55)}`}},[`&.${$n.checked} + .${$n.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),IN=ve("span",{name:"MuiSwitch",slot:"Track"})(Ye(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),MN=ve("span",{name:"MuiSwitch",slot:"Thumb"})(Ye(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),za=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiSwitch"}),{className:o,color:s="primary",edge:c=!1,size:u="medium",sx:d,slots:f={},slotProps:h={},...v}=n,m={...n,color:s,edge:c,size:u},y=kN(m),x={slots:f,slotProps:h},[w,C]=Ze("root",{className:Me(y.root,o),elementType:jN,externalForwardedProps:x,ownerState:m,additionalProps:{sx:d}}),[j,k]=Ze("thumb",{className:y.thumb,elementType:MN,externalForwardedProps:x,ownerState:m}),I=l.jsx(j,{...k}),[E,M]=Ze("track",{className:y.track,elementType:IN,externalForwardedProps:x,ownerState:m});return l.jsxs(w,{...C,children:[l.jsx(PN,{type:"checkbox",icon:I,checkedIcon:I,ref:r,ownerState:m,...v,classes:{...y,root:y.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...h.switchBase&&{root:typeof h.switchBase=="function"?h.switchBase(m):h.switchBase},input:{role:"switch"},...h.input&&{input:typeof h.input=="function"?h.input(m):h.input}}}),l.jsx(E,{...M})]})});function RN(t){return et("MuiTab",t)}const _o=nt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),AN=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:s,label:c,selected:u,disabled:d}=t,f={root:["root",s&&c&&"labelIcon",`textColor${ye(r)}`,n&&"fullWidth",o&&"wrapped",u&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return tt(f,RN,e)},_N=ve(ci,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${ye(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${_o.iconWrapper}`]:e.iconWrapper},{[`& .${_o.icon}`]:e.icon}]}})(Ye(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${_o.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${_o.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${_o.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${_o.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${_o.selected}`]:{opacity:1},[`&.${_o.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${_o.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${_o.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${_o.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${_o.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),LN=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:u,icon:d,iconPosition:f="top",indicator:h,label:v,onChange:m,onClick:y,onFocus:x,selected:w,selectionFollowsFocus:C,textColor:j="inherit",value:k,wrapped:I=!1,...E}=n,M={...n,disabled:s,disableFocusRipple:c,selected:w,icon:!!d,iconPosition:f,label:!!v,fullWidth:u,textColor:j,wrapped:I},R=AN(M),L=d&&v&&b.isValidElement(d)?b.cloneElement(d,{className:Me(R.icon,d.props.className)}):d,A=G=>{!w&&m&&m(G,k),y&&y(G)},F=G=>{C&&!w&&m&&m(G,k),x&&x(G)};return l.jsxs(_N,{focusRipple:!c,className:Me(R.root,o),ref:r,role:"tab","aria-selected":w,disabled:s,onClick:A,onFocus:F,ownerState:M,tabIndex:w?0:-1,...E,children:[f==="top"||f==="start"?l.jsxs(b.Fragment,{children:[L,v]}):l.jsxs(b.Fragment,{children:[v,L]}),h]})}),ZE=b.createContext();function ON(t){return et("MuiTable",t)}nt("MuiTable",["root","stickyHeader"]);const $N=t=>{const{classes:e,stickyHeader:r}=t;return tt({root:["root",r&&"stickyHeader"]},ON,e)},NN=ve("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(Ye(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),mS="table",Ni=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTable"}),{className:o,component:s=mS,padding:c="normal",size:u="medium",stickyHeader:d=!1,...f}=n,h={...n,component:s,padding:c,size:u,stickyHeader:d},v=$N(h),m=b.useMemo(()=>({padding:c,size:u,stickyHeader:d}),[c,u,d]);return l.jsx(ZE.Provider,{value:m,children:l.jsx(NN,{as:s,role:s===mS?null:"table",ref:r,className:Me(v.root,o),ownerState:h,...f})})}),Oh=b.createContext();function BN(t){return et("MuiTableBody",t)}nt("MuiTableBody",["root"]);const zN=t=>{const{classes:e}=t;return tt({root:["root"]},BN,e)},DN=ve("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),FN={variant:"body"},gS="tbody",Bi=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTableBody"}),{className:o,component:s=gS,...c}=n,u={...n,component:s},d=zN(u);return l.jsx(Oh.Provider,{value:FN,children:l.jsx(DN,{className:Me(d.root,o),as:s,ref:r,role:s===gS?null:"rowgroup",ownerState:u,...c})})});function HN(t){return et("MuiTableCell",t)}const UN=nt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),VN=t=>{const{classes:e,variant:r,align:n,padding:o,size:s,stickyHeader:c}=t,u={root:["root",r,c&&"stickyHeader",n!=="inherit"&&`align${ye(n)}`,o!=="normal"&&`padding${ye(o)}`,`size${ye(s)}`]};return tt(u,HN,e)},WN=ve("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ye(r.size)}`],r.padding!=="normal"&&e[`padding${ye(r.padding)}`],r.align!=="inherit"&&e[`align${ye(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(Ye(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid
|
|
307
|
+
${t.palette.mode==="light"?t.lighten(t.alpha(t.palette.divider,1),.88):t.darken(t.alpha(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${UN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),Ie=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTableCell"}),{align:o="inherit",className:s,component:c,padding:u,scope:d,size:f,sortDirection:h,variant:v,...m}=n,y=b.useContext(ZE),x=b.useContext(Oh),w=x&&x.variant==="head";let C;c?C=c:C=w?"th":"td";let j=d;C==="td"?j=void 0:!j&&w&&(j="col");const k=v||x&&x.variant,I={...n,align:o,component:C,padding:u||(y&&y.padding?y.padding:"normal"),size:f||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:k==="head"&&y&&y.stickyHeader,variant:k},E=VN(I);let M=null;return h&&(M=h==="asc"?"ascending":"descending"),l.jsx(WN,{as:C,ref:r,className:Me(E.root,s),"aria-sort":M,scope:j,ownerState:I,...m})});function qN(t){return et("MuiTableContainer",t)}nt("MuiTableContainer",["root"]);const GN=t=>{const{classes:e}=t;return tt({root:["root"]},qN,e)},XN=ve("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),zi=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTableContainer"}),{className:o,component:s="div",...c}=n,u={...n,component:s},d=GN(u);return l.jsx(XN,{ref:r,as:s,className:Me(d.root,o),ownerState:u,...c})});function KN(t){return et("MuiTableHead",t)}nt("MuiTableHead",["root"]);const QN=t=>{const{classes:e}=t;return tt({root:["root"]},KN,e)},YN=ve("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),JN={variant:"head"},yS="thead",Di=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTableHead"}),{className:o,component:s=yS,...c}=n,u={...n,component:s},d=QN(u);return l.jsx(Oh.Provider,{value:JN,children:l.jsx(YN,{as:s,className:Me(d.root,o),ref:r,role:s===yS?null:"rowgroup",ownerState:u,...c})})});function ZN(t){return et("MuiToolbar",t)}nt("MuiToolbar",["root","gutters","regular","dense"]);const e8=t=>{const{classes:e,disableGutters:r,variant:n}=t;return tt({root:["root",!r&&"gutters",n]},ZN,e)},t8=ve("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Ye(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),r8=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:c=!1,variant:u="regular",...d}=n,f={...n,component:s,disableGutters:c,variant:u},h=e8(f);return l.jsx(t8,{as:s,className:Me(h.root,o),ref:r,ownerState:f,...d})}),eT=Ee(l.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),tT=Ee(l.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function n8(t){return et("MuiTablePaginationActions",t)}nt("MuiTablePaginationActions",["root"]);const o8=t=>{const{classes:e}=t;return tt({root:["root"]},n8,e)},i8=ve("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),s8=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:s,count:c,disabled:u=!1,getItemAriaLabel:d,nextIconButtonProps:f,onPageChange:h,page:v,rowsPerPage:m,showFirstButton:y,showLastButton:x,slots:w={},slotProps:C={},...j}=n,k=pa(),E=o8(n),M=oe=>{h(oe,0)},R=oe=>{h(oe,v-1)},L=oe=>{h(oe,v+1)},A=oe=>{h(oe,Math.max(0,Math.ceil(c/m)-1))},F=w.firstButton??Xt,G=w.lastButton??Xt,$=w.nextButton??Xt,P=w.previousButton??Xt,q=w.firstButtonIcon??XE,V=w.lastButtonIcon??KE,O=w.nextButtonIcon??tT,U=w.previousButtonIcon??eT,K=k?G:F,Y=k?$:P,te=k?P:$,Q=k?F:G,X=k?C.lastButton:C.firstButton,re=k?C.nextButton:C.previousButton,de=k?C.previousButton:C.nextButton,J=k?C.firstButton:C.lastButton;return l.jsxs(i8,{ref:r,className:Me(E.root,s),...j,children:[y&&l.jsx(K,{onClick:M,disabled:u||v===0,"aria-label":d("first",v),title:d("first",v),...X,children:k?l.jsx(V,{...C.lastButtonIcon}):l.jsx(q,{...C.firstButtonIcon})}),l.jsx(Y,{onClick:R,disabled:u||v===0,color:"inherit","aria-label":d("previous",v),title:d("previous",v),...re??o,children:k?l.jsx(O,{...C.nextButtonIcon}):l.jsx(U,{...C.previousButtonIcon})}),l.jsx(te,{onClick:L,disabled:u||(c!==-1?v>=Math.ceil(c/m)-1:!1),color:"inherit","aria-label":d("next",v),title:d("next",v),...de??f,children:k?l.jsx(U,{...C.previousButtonIcon}):l.jsx(O,{...C.nextButtonIcon})}),x&&l.jsx(Q,{onClick:A,disabled:u||v>=Math.ceil(c/m)-1,"aria-label":d("last",v),title:d("last",v),...J,children:k?l.jsx(q,{...C.firstButtonIcon}):l.jsx(V,{...C.lastButtonIcon})})]})});function a8(t){return et("MuiTablePagination",t)}const Fu=nt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var vS;const l8=ve(Ie,{name:"MuiTablePagination",slot:"Root"})(Ye(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),c8=ve(r8,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${Fu.actions}`]:e.actions,...e.toolbar})})(Ye(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Fu.actions}`]:{flexShrink:0,marginLeft:20}}))),u8=ve("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),d8=ve("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Ye(({theme:t})=>({...t.typography.body2,flexShrink:0}))),p8=ve(Vi,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${Fu.selectIcon}`]:e.selectIcon,[`& .${Fu.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Fu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),f8=ve(br,{name:"MuiTablePagination",slot:"MenuItem"})({}),h8=ve("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Ye(({theme:t})=>({...t.typography.body2,flexShrink:0})));function m8({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function g8(t){return`Go to ${t} page`}const y8=t=>{const{classes:e}=t;return tt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},a8,e)},v8=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=s8,backIconButtonProps:s,colSpan:c,component:u=Ie,count:d,disabled:f=!1,getItemAriaLabel:h=g8,labelDisplayedRows:v=m8,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:y,onPageChange:x,onRowsPerPageChange:w,page:C,rowsPerPage:j,rowsPerPageOptions:k=[10,25,50,100],SelectProps:I={},showFirstButton:E=!1,showLastButton:M=!1,slotProps:R={},slots:L={},...A}=n,F=n,G=y8(F),$=(R==null?void 0:R.select)??I,P=$.native?"option":f8;let q;(u===Ie||u==="td")&&(q=c||1e3);const V=Hi($.id),O=Hi($.labelId),U=()=>d===-1?(C+1)*j:j===-1?d:Math.min(d,(C+1)*j),K={slots:L,slotProps:R},[Y,te]=Ze("root",{ref:r,className:G.root,elementType:l8,externalForwardedProps:{...K,component:u,...A},ownerState:F,additionalProps:{colSpan:q}}),[Q,X]=Ze("toolbar",{className:G.toolbar,elementType:c8,externalForwardedProps:K,ownerState:F}),[re,de]=Ze("spacer",{className:G.spacer,elementType:u8,externalForwardedProps:K,ownerState:F}),[J,oe]=Ze("selectLabel",{className:G.selectLabel,elementType:d8,externalForwardedProps:K,ownerState:F,additionalProps:{id:O}}),[Z,pe]=Ze("select",{className:G.select,elementType:p8,externalForwardedProps:K,ownerState:F}),[Se,se]=Ze("menuItem",{className:G.menuItem,elementType:P,externalForwardedProps:K,ownerState:F}),[ae,Fe]=Ze("displayedRows",{className:G.displayedRows,elementType:h8,externalForwardedProps:K,ownerState:F});return l.jsx(Y,{...te,children:l.jsxs(Q,{...X,children:[l.jsx(re,{...de}),k.length>1&&l.jsx(J,{...oe,children:m}),k.length>1&&l.jsx(Z,{variant:"standard",...!$.variant&&{input:vS||(vS=l.jsx(Ah,{}))},value:j,onChange:w,id:V,labelId:O,...$,classes:{...$.classes,root:Me(G.input,G.selectRoot,($.classes||{}).root),select:Me(G.select,($.classes||{}).select),icon:Me(G.selectIcon,($.classes||{}).icon)},disabled:f,...pe,children:k.map(ze=>b.createElement(Se,{...se,key:ze.label?ze.label:ze,value:ze.value?ze.value:ze},ze.label?ze.label:ze))}),l.jsx(ae,{...Fe,children:v({from:d===0?0:C*j+1,to:U(),count:d===-1?-1:d,page:C})}),l.jsx(o,{className:G.actions,backIconButtonProps:s,count:d,nextIconButtonProps:y,onPageChange:x,page:C,rowsPerPage:j,showFirstButton:E,showLastButton:M,slotProps:R.actions,slots:L.actions,getItemAriaLabel:h,disabled:f})]})})});function x8(t){return et("MuiTableRow",t)}const xS=nt("MuiTableRow",["root","selected","hover","head","footer"]),b8=t=>{const{classes:e,selected:r,hover:n,head:o,footer:s}=t;return tt({root:["root",r&&"selected",n&&"hover",o&&"head",s&&"footer"]},x8,e)},w8=ve("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Ye(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${xS.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${xS.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)}}}))),bS="tr",Er=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTableRow"}),{className:o,component:s=bS,hover:c=!1,selected:u=!1,...d}=n,f=b.useContext(Oh),h={...n,component:s,hover:c,selected:u,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},v=b8(h);return l.jsx(w8,{as:s,ref:r,className:Me(v.root,o),role:s===bS?null:"row",ownerState:h,...d})});function S8(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function C8(t,e,r,n={},o=()=>{}){const{ease:s=S8,duration:c=300}=n;let u=null;const d=e[t];let f=!1;const h=()=>{f=!0},v=m=>{if(f){o(new Error("Animation cancelled"));return}u===null&&(u=m);const y=Math.min(1,(m-u)/c);if(e[t]=s(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return d===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(v),h)}const E8={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function T8(t){const{onChange:e,...r}=t,n=b.useRef(),o=b.useRef(null),s=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return to(()=>{const c=Ch(()=>{const d=n.current;s(),d!==n.current&&e(n.current)}),u=li(o.current);return u.addEventListener("resize",c),()=>{c.clear(),u.removeEventListener("resize",c)}},[e]),b.useEffect(()=>{s(),e(n.current)},[e]),l.jsx("div",{style:E8,...r,ref:o})}function k8(t){return et("MuiTabScrollButton",t)}const j8=nt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),P8=t=>{const{classes:e,orientation:r,disabled:n}=t;return tt({root:["root",r,n&&"disabled"]},k8,e)},I8=ve(ci,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${j8.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),M8=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:c={},direction:u,orientation:d,disabled:f,...h}=n,v=pa(),m={isRtl:v,...n},y=P8(m),x=s.StartScrollButtonIcon??eT,w=s.EndScrollButtonIcon??tT,C=pc({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),j=pc({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return l.jsx(I8,{component:"div",className:Me(y.root,o),ref:r,role:null,ownerState:m,tabIndex:null,...h,style:{...h.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${v?-90:90}deg)`}},children:u==="left"?l.jsx(x,{...C}):l.jsx(w,{...j})})});function R8(t){return et("MuiTabs",t)}const Yg=nt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),wS=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,SS=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Yp=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=r(t,o);else{o.focus();return}}},A8=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:s,centered:c,scrollButtonsHideMobile:u,classes:d}=t;return tt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},R8,d)},_8=ve("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Yg.scrollButtons}`]:e.scrollButtons},{[`& .${Yg.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Ye(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Yg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),L8=ve("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),O8=ve("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),$8=ve("span",{name:"MuiTabs",slot:"Indicator"})(Ye(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),N8=ve(T8)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),CS={},B8=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTabs"}),o=io(),s=pa(),{"aria-label":c,"aria-labelledby":u,action:d,centered:f=!1,children:h,className:v,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:x="primary",onChange:w,orientation:C="horizontal",ScrollButtonComponent:j,scrollButtons:k="auto",selectionFollowsFocus:I,slots:E={},slotProps:M={},TabIndicatorProps:R={},TabScrollButtonProps:L={},textColor:A="primary",value:F,variant:G="standard",visibleScrollbar:$=!1,...P}=n,q=G==="scrollable",V=C==="vertical",O=V?"scrollTop":"scrollLeft",U=V?"top":"left",K=V?"bottom":"right",Y=V?"clientHeight":"clientWidth",te=V?"height":"width",Q={...n,component:m,allowScrollButtonsMobile:y,indicatorColor:x,orientation:C,vertical:V,scrollButtons:k,textColor:A,variant:G,visibleScrollbar:$,fixed:!q,hideScrollbar:q&&!$,scrollableX:q&&!V,scrollableY:q&&V,centered:f&&!q,scrollButtonsHideMobile:!y},X=A8(Q),re=pc({elementType:E.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:Q}),de=pc({elementType:E.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:Q}),[J,oe]=b.useState(!1),[Z,pe]=b.useState(CS),[Se,se]=b.useState(!1),[ae,Fe]=b.useState(!1),[ze,Oe]=b.useState(!1),[Be,Le]=b.useState({overflow:"hidden",scrollbarWidth:0}),Ke=new Map,pt=b.useRef(null),ce=b.useRef(null),De={slots:E,slotProps:{indicator:R,scrollButton:L,...M}},We=()=>{const Qe=pt.current;let lt;if(Qe){const Nt=Qe.getBoundingClientRect();lt={clientWidth:Qe.clientWidth,scrollLeft:Qe.scrollLeft,scrollTop:Qe.scrollTop,scrollWidth:Qe.scrollWidth,top:Nt.top,bottom:Nt.bottom,left:Nt.left,right:Nt.right}}let Ot;if(Qe&&F!==!1){const Nt=ce.current.children;if(Nt.length>0){const ar=Nt[Ke.get(F)];Ot=ar?ar.getBoundingClientRect():null}}return{tabsMeta:lt,tabMeta:Ot}},gt=tn(()=>{const{tabsMeta:Qe,tabMeta:lt}=We();let Ot=0,Nt;V?(Nt="top",lt&&Qe&&(Ot=lt.top-Qe.top+Qe.scrollTop)):(Nt=s?"right":"left",lt&&Qe&&(Ot=(s?-1:1)*(lt[Nt]-Qe[Nt]+Qe.scrollLeft)));const ar={[Nt]:Ot,[te]:lt?lt[te]:0};if(typeof Z[Nt]!="number"||typeof Z[te]!="number")pe(ar);else{const Ur=Math.abs(Z[Nt]-ar[Nt]),bn=Math.abs(Z[te]-ar[te]);(Ur>=1||bn>=1)&&pe(ar)}}),$e=(Qe,{animation:lt=!0}={})=>{lt?C8(O,pt.current,Qe,{duration:o.transitions.duration.standard}):pt.current[O]=Qe},zt=Qe=>{let lt=pt.current[O];V?lt+=Qe:lt+=Qe*(s?-1:1),$e(lt)},vt=()=>{const Qe=pt.current[Y];let lt=0;const Ot=Array.from(ce.current.children);for(let Nt=0;Nt<Ot.length;Nt+=1){const ar=Ot[Nt];if(lt+ar[Y]>Qe){Nt===0&&(lt=Qe);break}lt+=ar[Y]}return lt},fe=()=>{zt(-1*vt())},be=()=>{zt(vt())},[Pe,{onChange:Ae,...qe}]=Ze("scrollbar",{className:Me(X.scrollableX,X.hideScrollbar),elementType:N8,shouldForwardComponentProp:!0,externalForwardedProps:De,ownerState:Q}),Je=b.useCallback(Qe=>{Ae==null||Ae(Qe),Le({overflow:null,scrollbarWidth:Qe})},[Ae]),[Ce,Ge]=Ze("scrollButtons",{className:Me(X.scrollButtons,L.className),elementType:M8,externalForwardedProps:De,ownerState:Q,additionalProps:{orientation:C,slots:{StartScrollButtonIcon:E.startScrollButtonIcon||E.StartScrollButtonIcon,EndScrollButtonIcon:E.endScrollButtonIcon||E.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:re,endScrollButtonIcon:de}}}),Ue=()=>{const Qe={};Qe.scrollbarSizeListener=q?l.jsx(Pe,{...qe,onChange:Je}):null;const Ot=q&&(k==="auto"&&(Se||ae)||k===!0);return Qe.scrollButtonStart=Ot?l.jsx(Ce,{direction:s?"right":"left",onClick:fe,disabled:!Se,...Ge}):null,Qe.scrollButtonEnd=Ot?l.jsx(Ce,{direction:s?"left":"right",onClick:be,disabled:!ae,...Ge}):null,Qe},Xe=tn(Qe=>{const{tabsMeta:lt,tabMeta:Ot}=We();if(!(!Ot||!lt)){if(Ot[U]<lt[U]){const Nt=lt[O]+(Ot[U]-lt[U]);$e(Nt,{animation:Qe})}else if(Ot[K]>lt[K]){const Nt=lt[O]+(Ot[K]-lt[K]);$e(Nt,{animation:Qe})}}}),Mt=tn(()=>{q&&k!==!1&&Oe(!ze)});b.useEffect(()=>{const Qe=Ch(()=>{pt.current&>()});let lt;const Ot=Ur=>{Ur.forEach(bn=>{bn.removedNodes.forEach(Hn=>{lt==null||lt.unobserve(Hn)}),bn.addedNodes.forEach(Hn=>{lt==null||lt.observe(Hn)})}),Qe(),Mt()},Nt=li(pt.current);Nt.addEventListener("resize",Qe);let ar;return typeof ResizeObserver<"u"&&(lt=new ResizeObserver(Qe),Array.from(ce.current.children).forEach(Ur=>{lt.observe(Ur)})),typeof MutationObserver<"u"&&(ar=new MutationObserver(Ot),ar.observe(ce.current,{childList:!0})),()=>{Qe.clear(),Nt.removeEventListener("resize",Qe),ar==null||ar.disconnect(),lt==null||lt.disconnect()}},[gt,Mt]),b.useEffect(()=>{const Qe=Array.from(ce.current.children),lt=Qe.length;if(typeof IntersectionObserver<"u"&<>0&&q&&k!==!1){const Ot=Qe[0],Nt=Qe[lt-1],ar={root:pt.current,threshold:.99},Ur=Ko=>{se(!Ko[0].isIntersecting)},bn=new IntersectionObserver(Ur,ar);bn.observe(Ot);const Hn=Ko=>{Fe(!Ko[0].isIntersecting)},gi=new IntersectionObserver(Hn,ar);return gi.observe(Nt),()=>{bn.disconnect(),gi.disconnect()}}},[q,k,ze,h==null?void 0:h.length]),b.useEffect(()=>{oe(!0)},[]),b.useEffect(()=>{gt()}),b.useEffect(()=>{Xe(CS!==Z)},[Xe,Z]),b.useImperativeHandle(d,()=>({updateIndicator:gt,updateScrollButtons:Mt}),[gt,Mt]);const[Zt,yr]=Ze("indicator",{className:Me(X.indicator,R.className),elementType:$8,externalForwardedProps:De,ownerState:Q,additionalProps:{style:Z}}),Br=l.jsx(Zt,{...yr});let Yr=0;const on=b.Children.map(h,Qe=>{if(!b.isValidElement(Qe))return null;const lt=Qe.props.value===void 0?Yr:Qe.props.value;Ke.set(lt,Yr);const Ot=lt===F;return Yr+=1,b.cloneElement(Qe,{fullWidth:G==="fullWidth",indicator:Ot&&!J&&Br,selected:Ot,selectionFollowsFocus:I,onChange:w,textColor:A,value:lt,...Yr===1&&F===!1&&!Qe.props.tabIndex?{tabIndex:0}:{}})}),rt=Qe=>{if(Qe.altKey||Qe.shiftKey||Qe.ctrlKey||Qe.metaKey)return;const lt=ce.current,Ot=Gl(vn(lt));if((Ot==null?void 0:Ot.getAttribute("role"))!=="tab")return;let ar=C==="horizontal"?"ArrowLeft":"ArrowUp",Ur=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&s&&(ar="ArrowRight",Ur="ArrowLeft"),Qe.key){case ar:Qe.preventDefault(),Yp(lt,Ot,SS);break;case Ur:Qe.preventDefault(),Yp(lt,Ot,wS);break;case"Home":Qe.preventDefault(),Yp(lt,null,wS);break;case"End":Qe.preventDefault(),Yp(lt,null,SS);break}},bt=Ue(),[Yt,dr]=Ze("root",{ref:r,className:Me(X.root,v),elementType:_8,externalForwardedProps:{...De,...P,component:m},ownerState:Q}),[we,Ct]=Ze("scroller",{ref:pt,className:X.scroller,elementType:L8,externalForwardedProps:De,ownerState:Q,additionalProps:{style:{overflow:Be.overflow,[V?`margin${s?"Left":"Right"}`:"marginBottom"]:$?void 0:-Be.scrollbarWidth}}}),[St,or]=Ze("list",{ref:ce,className:Me(X.list,X.flexContainer),elementType:O8,externalForwardedProps:De,ownerState:Q,getSlotProps:Qe=>({...Qe,onKeyDown:lt=>{var Ot;rt(lt),(Ot=Qe.onKeyDown)==null||Ot.call(Qe,lt)}})});return l.jsxs(Yt,{...dr,children:[bt.scrollButtonStart,bt.scrollbarSizeListener,l.jsxs(we,{...Ct,children:[l.jsx(St,{"aria-label":c,"aria-labelledby":u,"aria-orientation":C==="vertical"?"vertical":null,role:"tablist",...or,children:on}),J&&Br]}),bt.scrollButtonEnd]})});function z8(t){return et("MuiTextField",t)}nt("MuiTextField",["root"]);const D8={standard:_h,filled:i0,outlined:l0},F8=t=>{const{classes:e}=t;return tt({root:["root"]},z8,e)},H8=ve(Co,{name:"MuiTextField",slot:"Root"})({}),wt=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:c,className:u,color:d="primary",defaultValue:f,disabled:h=!1,error:v=!1,FormHelperTextProps:m,fullWidth:y=!1,helperText:x,id:w,InputLabelProps:C,inputProps:j,InputProps:k,inputRef:I,label:E,maxRows:M,minRows:R,multiline:L=!1,name:A,onBlur:F,onChange:G,onFocus:$,placeholder:P,required:q=!1,rows:V,select:O=!1,SelectProps:U,slots:K={},slotProps:Y={},type:te,value:Q,variant:X="outlined",...re}=n,de={...n,autoFocus:s,color:d,disabled:h,error:v,fullWidth:y,multiline:L,required:q,select:O,variant:X},J=F8(de),oe=Hi(w),Z=x&&oe?`${oe}-helper-text`:void 0,pe=E&&oe?`${oe}-label`:void 0,Se=D8[X],se={slots:K,slotProps:{input:k,inputLabel:C,htmlInput:j,formHelperText:m,select:U,...Y}},ae={},Fe=se.slotProps.inputLabel;X==="outlined"&&(Fe&&typeof Fe.shrink<"u"&&(ae.notched=Fe.shrink),ae.label=E),O&&((!U||!U.native)&&(ae.id=void 0),ae["aria-describedby"]=void 0);const[ze,Oe]=Ze("root",{elementType:H8,shouldForwardComponentProp:!0,externalForwardedProps:{...se,...re},ownerState:de,className:Me(J.root,u),ref:r,additionalProps:{disabled:h,error:v,fullWidth:y,required:q,color:d,variant:X}}),[Be,Le]=Ze("input",{elementType:Se,externalForwardedProps:se,additionalProps:ae,ownerState:de}),[Ke,pt]=Ze("inputLabel",{elementType:ys,externalForwardedProps:se,ownerState:de}),[ce,De]=Ze("htmlInput",{elementType:"input",externalForwardedProps:se,ownerState:de}),[We,gt]=Ze("formHelperText",{elementType:tl,externalForwardedProps:se,ownerState:de}),[$e,zt]=Ze("select",{elementType:Vi,externalForwardedProps:se,ownerState:de}),vt=l.jsx(Be,{"aria-describedby":Z,autoComplete:o,autoFocus:s,defaultValue:f,fullWidth:y,multiline:L,name:A,rows:V,maxRows:M,minRows:R,type:te,value:Q,id:oe,inputRef:I,onBlur:F,onChange:G,onFocus:$,placeholder:P,inputProps:De,slots:{input:K.htmlInput?ce:void 0},...Le});return l.jsxs(ze,{...Oe,children:[E!=null&&E!==""&&l.jsx(Ke,{htmlFor:oe,id:pe,...pt,children:E}),O?l.jsx($e,{"aria-describedby":Z,id:oe,labelId:pe,value:Q,input:vt,...zt,children:c}):vt,x&&l.jsx(We,{id:Z,...gt,children:x})]})});function U8(t){return et("MuiToggleButton",t)}const Ua=nt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),rT=b.createContext({}),nT=b.createContext(void 0);function V8(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const W8=t=>{const{classes:e,fullWidth:r,selected:n,disabled:o,size:s,color:c}=t,u={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${ye(s)}`,c]};return tt(u,U8,e)},q8=ve(ci,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${ye(r.size)}`]]}})(Ye(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${Ua.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Ua.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{[`&.${Ua.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),ES=b.forwardRef(function(e,r){const{value:n,...o}=b.useContext(rT),s=b.useContext(nT),c=ic({...o,selected:V8(e.value,n)},e),u=ot({props:c,name:"MuiToggleButton"}),{children:d,className:f,color:h="standard",disabled:v=!1,disableFocusRipple:m=!1,fullWidth:y=!1,onChange:x,onClick:w,selected:C,size:j="medium",value:k,...I}=u,E={...u,color:h,disabled:v,disableFocusRipple:m,fullWidth:y,size:j},M=W8(E),R=A=>{w&&(w(A,k),A.defaultPrevented)||x&&x(A,k)},L=s||"";return l.jsx(q8,{className:Me(o.className,M.root,f,L),disabled:v,focusRipple:!m,ref:r,onClick:R,onChange:x,value:k,ownerState:E,"aria-pressed":C,...I,children:d})});function G8(t){return et("MuiToggleButtonGroup",t)}const jr=nt("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),X8=t=>{const{classes:e,orientation:r,fullWidth:n,disabled:o}=t,s={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${ye(r)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return tt(s,G8,e)},K8=ve("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${jr.grouped}`]:e.grouped},{[`& .${jr.grouped}`]:e[`grouped${ye(r.orientation)}`]},{[`& .${jr.firstButton}`]:e.firstButton},{[`& .${jr.lastButton}`]:e.lastButton},{[`& .${jr.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(Ye(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderTop:0,marginTop:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${jr.lastButton}.${Ua.disabled},& .${jr.middleButton}.${Ua.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${jr.lastButton}.${Ua.disabled},& .${jr.middleButton}.${Ua.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Q8=b.forwardRef(function(e,r){const n=ot({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:s,color:c="standard",disabled:u=!1,exclusive:d=!1,fullWidth:f=!1,onChange:h,orientation:v="horizontal",size:m="medium",value:y,...x}=n,w={...n,disabled:u,fullWidth:f,orientation:v,size:m},C=X8(w),j=b.useCallback((L,A)=>{if(!h)return;const F=y&&y.indexOf(A);let G;y&&F>=0?(G=y.slice(),G.splice(F,1)):G=y?y.concat(A):[A],h(L,G)},[h,y]),k=b.useCallback((L,A)=>{h&&h(L,y===A?null:A)},[h,y]),I=b.useMemo(()=>({className:C.grouped,onChange:d?k:j,value:y,size:m,fullWidth:f,color:c,disabled:u}),[C.grouped,d,k,j,y,m,f,c,u]),E=zE(o),M=E.length,R=L=>{const A=L===0,F=L===M-1;return A&&F?"":A?C.firstButton:F?C.lastButton:C.middleButton};return l.jsx(K8,{role:"group",className:Me(C.root,s),ref:r,ownerState:w,...x,children:l.jsx(rT.Provider,{value:I,children:E.map((L,A)=>l.jsx(nT.Provider,{value:R(A),children:L},A))})})}),Y8=Z2({themeId:si});/*!
|
|
308
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
309
|
+
* http://github.com/janl/mustache.js
|
|
310
|
+
*/var J8=Object.prototype.toString,Mc=Array.isArray||function(e){return J8.call(e)==="[object Array]"};function u0(t){return typeof t=="function"}function Z8(t){return Mc(t)?"array":typeof t}function Jg(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function TS(t,e){return t!=null&&typeof t=="object"&&e in t}function e9(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var t9=RegExp.prototype.test;function r9(t,e){return t9.call(t,e)}var n9=/\S/;function o9(t){return!r9(n9,t)}var i9={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function s9(t){return String(t).replace(/[&<>"'`=\/]/g,function(r){return i9[r]})}var a9=/\s*/,l9=/\s+/,kS=/\s*=/,c9=/\s*\}/,u9=/#|\^|\/|>|\{|&|=|!/;function d9(t,e){if(!t)return[];var r=!1,n=[],o=[],s=[],c=!1,u=!1,d="",f=0;function h(){if(c&&!u)for(;s.length;)delete o[s.pop()];else s=[];c=!1,u=!1}var v,m,y;function x(A){if(typeof A=="string"&&(A=A.split(l9,2)),!Mc(A)||A.length!==2)throw new Error("Invalid tags: "+A);v=new RegExp(Jg(A[0])+"\\s*"),m=new RegExp("\\s*"+Jg(A[1])),y=new RegExp("\\s*"+Jg("}"+A[1]))}x(e||To.tags);for(var w=new kd(t),C,j,k,I,E,M;!w.eos();){if(C=w.pos,k=w.scanUntil(v),k)for(var R=0,L=k.length;R<L;++R)I=k.charAt(R),o9(I)?(s.push(o.length),d+=I):(u=!0,r=!0,d+=" "),o.push(["text",I,C,C+1]),C+=1,I===`
|
|
311
|
+
`&&(h(),d="",f=0,r=!1);if(!w.scan(v))break;if(c=!0,j=w.scan(u9)||"name",w.scan(a9),j==="="?(k=w.scanUntil(kS),w.scan(kS),w.scanUntil(m)):j==="{"?(k=w.scanUntil(y),w.scan(c9),w.scanUntil(m),j="&"):k=w.scanUntil(m),!w.scan(m))throw new Error("Unclosed tag at "+w.pos);if(j==">"?E=[j,k,C,w.pos,d,f,r]:E=[j,k,C,w.pos],f++,o.push(E),j==="#"||j==="^")n.push(E);else if(j==="/"){if(M=n.pop(),!M)throw new Error('Unopened section "'+k+'" at '+C);if(M[1]!==k)throw new Error('Unclosed section "'+M[1]+'" at '+C)}else j==="name"||j==="{"||j==="&"?u=!0:j==="="&&x(k)}if(h(),M=n.pop(),M)throw new Error('Unclosed section "'+M[1]+'" at '+w.pos);return f9(p9(o))}function p9(t){for(var e=[],r,n,o=0,s=t.length;o<s;++o)r=t[o],r&&(r[0]==="text"&&n&&n[0]==="text"?(n[1]+=r[1],n[3]=r[3]):(e.push(r),n=r));return e}function f9(t){for(var e=[],r=e,n=[],o,s,c=0,u=t.length;c<u;++c)switch(o=t[c],o[0]){case"#":case"^":r.push(o),n.push(o),r=o[4]=[];break;case"/":s=n.pop(),s[5]=o[2],r=n.length>0?n[n.length-1][4]:e;break;default:r.push(o)}return e}function kd(t){this.string=t,this.tail=t,this.pos=0}kd.prototype.eos=function(){return this.tail===""};kd.prototype.scan=function(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var n=r[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};kd.prototype.scanUntil=function(e){var r=this.tail.search(e),n;switch(r){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=n.length,n};function fc(t,e){this.view=t,this.cache={".":this.view},this.parent=e}fc.prototype.push=function(e){return new fc(e,this)};fc.prototype.lookup=function(e){var r=this.cache,n;if(r.hasOwnProperty(e))n=r[e];else{for(var o=this,s,c,u,d=!1;o;){if(e.indexOf(".")>0)for(s=o.view,c=e.split("."),u=0;s!=null&&u<c.length;)u===c.length-1&&(d=TS(s,c[u])||e9(s,c[u])),s=s[c[u++]];else s=o.view[e],d=TS(o.view,e);if(d){n=s;break}o=o.parent}r[e]=n}return u0(n)&&(n=n.call(this.view)),n};function Fn(){this.templateCache={_cache:{},set:function(e,r){this._cache[e]=r},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Fn.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Fn.prototype.parse=function(e,r){var n=this.templateCache,o=e+":"+(r||To.tags).join(":"),s=typeof n<"u",c=s?n.get(o):void 0;return c==null&&(c=d9(e,r),s&&n.set(o,c)),c};Fn.prototype.render=function(e,r,n,o){var s=this.getConfigTags(o),c=this.parse(e,s),u=r instanceof fc?r:new fc(r,void 0);return this.renderTokens(c,u,n,e,o)};Fn.prototype.renderTokens=function(e,r,n,o,s){for(var c="",u,d,f,h=0,v=e.length;h<v;++h)f=void 0,u=e[h],d=u[0],d==="#"?f=this.renderSection(u,r,n,o,s):d==="^"?f=this.renderInverted(u,r,n,o,s):d===">"?f=this.renderPartial(u,r,n,s):d==="&"?f=this.unescapedValue(u,r):d==="name"?f=this.escapedValue(u,r,s):d==="text"&&(f=this.rawValue(u)),f!==void 0&&(c+=f);return c};Fn.prototype.renderSection=function(e,r,n,o,s){var c=this,u="",d=r.lookup(e[1]);function f(m){return c.render(m,r,n,s)}if(d){if(Mc(d))for(var h=0,v=d.length;h<v;++h)u+=this.renderTokens(e[4],r.push(d[h]),n,o,s);else if(typeof d=="object"||typeof d=="string"||typeof d=="number")u+=this.renderTokens(e[4],r.push(d),n,o,s);else if(u0(d)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");d=d.call(r.view,o.slice(e[3],e[5]),f),d!=null&&(u+=d)}else u+=this.renderTokens(e[4],r,n,o,s);return u}};Fn.prototype.renderInverted=function(e,r,n,o,s){var c=r.lookup(e[1]);if(!c||Mc(c)&&c.length===0)return this.renderTokens(e[4],r,n,o,s)};Fn.prototype.indentPartial=function(e,r,n){for(var o=r.replace(/[^ \t]/g,""),s=e.split(`
|
|
312
|
+
`),c=0;c<s.length;c++)s[c].length&&(c>0||!n)&&(s[c]=o+s[c]);return s.join(`
|
|
313
|
+
`)};Fn.prototype.renderPartial=function(e,r,n,o){if(n){var s=this.getConfigTags(o),c=u0(n)?n(e[1]):n[e[1]];if(c!=null){var u=e[6],d=e[5],f=e[4],h=c;d==0&&f&&(h=this.indentPartial(c,f,u));var v=this.parse(h,s);return this.renderTokens(v,r,n,h,o)}}};Fn.prototype.unescapedValue=function(e,r){var n=r.lookup(e[1]);if(n!=null)return n};Fn.prototype.escapedValue=function(e,r,n){var o=this.getConfigEscape(n)||To.escape,s=r.lookup(e[1]);if(s!=null)return typeof s=="number"&&o===To.escape?String(s):o(s)};Fn.prototype.rawValue=function(e){return e[1]};Fn.prototype.getConfigTags=function(e){return Mc(e)?e:e&&typeof e=="object"?e.tags:void 0};Fn.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Mc(e))return e.escape};var To={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){rd.templateCache=t},get templateCache(){return rd.templateCache}},rd=new Fn;To.clearCache=function(){return rd.clearCache()};To.parse=function(e,r){return rd.parse(e,r)};To.render=function(e,r,n,o){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Z8(e)+'" was given as the first argument for mustache#render(template, view, partials)');return rd.render(e,r,n,o)};To.escape=s9;To.Scanner=kd;To.Context=fc;To.Writer=Fn;var jS={};/*! *****************************************************************************
|
|
314
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
315
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
316
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
317
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
318
|
+
|
|
319
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
320
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
321
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
322
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
323
|
+
|
|
324
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
325
|
+
and limitations under the License.
|
|
326
|
+
***************************************************************************** */var PS;function h9(){if(PS)return jS;PS=1;var t;return(function(e){(function(r){var n=typeof y1=="object"?y1:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),o=s(e);typeof n.Reflect>"u"?n.Reflect=e:o=s(n.Reflect,o),r(o);function s(c,u){return function(d,f){typeof c[d]!="function"&&Object.defineProperty(c,d,{configurable:!0,writable:!0,value:f}),u&&u(d,f)}}})(function(r){var n=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",c=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",u=typeof Object.create=="function",d={__proto__:[]}instanceof Array,f=!u&&!d,h={create:u?function(){return vt(Object.create(null))}:d?function(){return vt({__proto__:null})}:function(){return vt({})},has:f?function(fe,be){return n.call(fe,be)}:function(fe,be){return be in fe},get:f?function(fe,be){return n.call(fe,be)?fe[be]:void 0}:function(fe,be){return fe[be]}},v=Object.getPrototypeOf(Function),m=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!m&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:gt(),x=!m&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:$e(),w=!m&&typeof WeakMap=="function"?WeakMap:zt(),C=new w;function j(fe,be,Pe,Ae){if(re(Pe)){if(!Fe(fe))throw new TypeError;if(!Oe(be))throw new TypeError;return $(fe,be)}else{if(!Fe(fe))throw new TypeError;if(!oe(be))throw new TypeError;if(!oe(Ae)&&!re(Ae)&&!de(Ae))throw new TypeError;return de(Ae)&&(Ae=void 0),Pe=ae(Pe),P(fe,be,Pe,Ae)}}r("decorate",j);function k(fe,be){function Pe(Ae,qe){if(!oe(Ae))throw new TypeError;if(!re(qe)&&!Be(qe))throw new TypeError;Y(fe,be,Ae,qe)}return Pe}r("metadata",k);function I(fe,be,Pe,Ae){if(!oe(Pe))throw new TypeError;return re(Ae)||(Ae=ae(Ae)),Y(fe,be,Pe,Ae)}r("defineMetadata",I);function E(fe,be,Pe){if(!oe(be))throw new TypeError;return re(Pe)||(Pe=ae(Pe)),V(fe,be,Pe)}r("hasMetadata",E);function M(fe,be,Pe){if(!oe(be))throw new TypeError;return re(Pe)||(Pe=ae(Pe)),O(fe,be,Pe)}r("hasOwnMetadata",M);function R(fe,be,Pe){if(!oe(be))throw new TypeError;return re(Pe)||(Pe=ae(Pe)),U(fe,be,Pe)}r("getMetadata",R);function L(fe,be,Pe){if(!oe(be))throw new TypeError;return re(Pe)||(Pe=ae(Pe)),K(fe,be,Pe)}r("getOwnMetadata",L);function A(fe,be){if(!oe(fe))throw new TypeError;return re(be)||(be=ae(be)),te(fe,be)}r("getMetadataKeys",A);function F(fe,be){if(!oe(fe))throw new TypeError;return re(be)||(be=ae(be)),Q(fe,be)}r("getOwnMetadataKeys",F);function G(fe,be,Pe){if(!oe(be))throw new TypeError;re(Pe)||(Pe=ae(Pe));var Ae=q(be,Pe,!1);if(re(Ae)||!Ae.delete(fe))return!1;if(Ae.size>0)return!0;var qe=C.get(be);return qe.delete(Pe),qe.size>0||C.delete(be),!0}r("deleteMetadata",G);function $(fe,be){for(var Pe=fe.length-1;Pe>=0;--Pe){var Ae=fe[Pe],qe=Ae(be);if(!re(qe)&&!de(qe)){if(!Oe(qe))throw new TypeError;be=qe}}return be}function P(fe,be,Pe,Ae){for(var qe=fe.length-1;qe>=0;--qe){var Je=fe[qe],Ce=Je(be,Pe,Ae);if(!re(Ce)&&!de(Ce)){if(!oe(Ce))throw new TypeError;Ae=Ce}}return Ae}function q(fe,be,Pe){var Ae=C.get(fe);if(re(Ae)){if(!Pe)return;Ae=new y,C.set(fe,Ae)}var qe=Ae.get(be);if(re(qe)){if(!Pe)return;qe=new y,Ae.set(be,qe)}return qe}function V(fe,be,Pe){var Ae=O(fe,be,Pe);if(Ae)return!0;var qe=We(be);return de(qe)?!1:V(fe,qe,Pe)}function O(fe,be,Pe){var Ae=q(be,Pe,!1);return re(Ae)?!1:Se(Ae.has(fe))}function U(fe,be,Pe){var Ae=O(fe,be,Pe);if(Ae)return K(fe,be,Pe);var qe=We(be);if(!de(qe))return U(fe,qe,Pe)}function K(fe,be,Pe){var Ae=q(be,Pe,!1);if(!re(Ae))return Ae.get(fe)}function Y(fe,be,Pe,Ae){var qe=q(Pe,Ae,!0);qe.set(fe,be)}function te(fe,be){var Pe=Q(fe,be),Ae=We(fe);if(Ae===null)return Pe;var qe=te(Ae,be);if(qe.length<=0)return Pe;if(Pe.length<=0)return qe;for(var Je=new x,Ce=[],Ge=0,Ue=Pe;Ge<Ue.length;Ge++){var Xe=Ue[Ge],Mt=Je.has(Xe);Mt||(Je.add(Xe),Ce.push(Xe))}for(var Zt=0,yr=qe;Zt<yr.length;Zt++){var Xe=yr[Zt],Mt=Je.has(Xe);Mt||(Je.add(Xe),Ce.push(Xe))}return Ce}function Q(fe,be){var Pe=[],Ae=q(fe,be,!1);if(re(Ae))return Pe;for(var qe=Ae.keys(),Je=Ke(qe),Ce=0;;){var Ge=ce(Je);if(!Ge)return Pe.length=Ce,Pe;var Ue=pt(Ge);try{Pe[Ce]=Ue}catch(Xe){try{De(Je)}finally{throw Xe}}Ce++}}function X(fe){if(fe===null)return 1;switch(typeof fe){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return fe===null?1:6;default:return 6}}function re(fe){return fe===void 0}function de(fe){return fe===null}function J(fe){return typeof fe=="symbol"}function oe(fe){return typeof fe=="object"?fe!==null:typeof fe=="function"}function Z(fe,be){switch(X(fe)){case 0:return fe;case 1:return fe;case 2:return fe;case 3:return fe;case 4:return fe;case 5:return fe}var Pe="string",Ae=Le(fe,s);if(Ae!==void 0){var qe=Ae.call(fe,Pe);if(oe(qe))throw new TypeError;return qe}return pe(fe)}function pe(fe,be){var Pe,Ae,qe;{var Je=fe.toString;if(ze(Je)){var Ae=Je.call(fe);if(!oe(Ae))return Ae}var Pe=fe.valueOf;if(ze(Pe)){var Ae=Pe.call(fe);if(!oe(Ae))return Ae}}throw new TypeError}function Se(fe){return!!fe}function se(fe){return""+fe}function ae(fe){var be=Z(fe);return J(be)?be:se(be)}function Fe(fe){return Array.isArray?Array.isArray(fe):fe instanceof Object?fe instanceof Array:Object.prototype.toString.call(fe)==="[object Array]"}function ze(fe){return typeof fe=="function"}function Oe(fe){return typeof fe=="function"}function Be(fe){switch(X(fe)){case 3:return!0;case 4:return!0;default:return!1}}function Le(fe,be){var Pe=fe[be];if(Pe!=null){if(!ze(Pe))throw new TypeError;return Pe}}function Ke(fe){var be=Le(fe,c);if(!ze(be))throw new TypeError;var Pe=be.call(fe);if(!oe(Pe))throw new TypeError;return Pe}function pt(fe){return fe.value}function ce(fe){var be=fe.next();return be.done?!1:be}function De(fe){var be=fe.return;be&&be.call(fe)}function We(fe){var be=Object.getPrototypeOf(fe);if(typeof fe!="function"||fe===v||be!==v)return be;var Pe=fe.prototype,Ae=Pe&&Object.getPrototypeOf(Pe);if(Ae==null||Ae===Object.prototype)return be;var qe=Ae.constructor;return typeof qe!="function"||qe===fe?be:qe}function gt(){var fe={},be=[],Pe=(function(){function Ce(Ge,Ue,Xe){this._index=0,this._keys=Ge,this._values=Ue,this._selector=Xe}return Ce.prototype["@@iterator"]=function(){return this},Ce.prototype[c]=function(){return this},Ce.prototype.next=function(){var Ge=this._index;if(Ge>=0&&Ge<this._keys.length){var Ue=this._selector(this._keys[Ge],this._values[Ge]);return Ge+1>=this._keys.length?(this._index=-1,this._keys=be,this._values=be):this._index++,{value:Ue,done:!1}}return{value:void 0,done:!0}},Ce.prototype.throw=function(Ge){throw this._index>=0&&(this._index=-1,this._keys=be,this._values=be),Ge},Ce.prototype.return=function(Ge){return this._index>=0&&(this._index=-1,this._keys=be,this._values=be),{value:Ge,done:!0}},Ce})();return(function(){function Ce(){this._keys=[],this._values=[],this._cacheKey=fe,this._cacheIndex=-2}return Object.defineProperty(Ce.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Ce.prototype.has=function(Ge){return this._find(Ge,!1)>=0},Ce.prototype.get=function(Ge){var Ue=this._find(Ge,!1);return Ue>=0?this._values[Ue]:void 0},Ce.prototype.set=function(Ge,Ue){var Xe=this._find(Ge,!0);return this._values[Xe]=Ue,this},Ce.prototype.delete=function(Ge){var Ue=this._find(Ge,!1);if(Ue>=0){for(var Xe=this._keys.length,Mt=Ue+1;Mt<Xe;Mt++)this._keys[Mt-1]=this._keys[Mt],this._values[Mt-1]=this._values[Mt];return this._keys.length--,this._values.length--,Ge===this._cacheKey&&(this._cacheKey=fe,this._cacheIndex=-2),!0}return!1},Ce.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=fe,this._cacheIndex=-2},Ce.prototype.keys=function(){return new Pe(this._keys,this._values,Ae)},Ce.prototype.values=function(){return new Pe(this._keys,this._values,qe)},Ce.prototype.entries=function(){return new Pe(this._keys,this._values,Je)},Ce.prototype["@@iterator"]=function(){return this.entries()},Ce.prototype[c]=function(){return this.entries()},Ce.prototype._find=function(Ge,Ue){return this._cacheKey!==Ge&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Ge)),this._cacheIndex<0&&Ue&&(this._cacheIndex=this._keys.length,this._keys.push(Ge),this._values.push(void 0)),this._cacheIndex},Ce})();function Ae(Ce,Ge){return Ce}function qe(Ce,Ge){return Ge}function Je(Ce,Ge){return[Ce,Ge]}}function $e(){return(function(){function fe(){this._map=new y}return Object.defineProperty(fe.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),fe.prototype.has=function(be){return this._map.has(be)},fe.prototype.add=function(be){return this._map.set(be,be),this},fe.prototype.delete=function(be){return this._map.delete(be)},fe.prototype.clear=function(){this._map.clear()},fe.prototype.keys=function(){return this._map.keys()},fe.prototype.values=function(){return this._map.values()},fe.prototype.entries=function(){return this._map.entries()},fe.prototype["@@iterator"]=function(){return this.keys()},fe.prototype[c]=function(){return this.keys()},fe})()}function zt(){var fe=16,be=h.create(),Pe=Ae();return(function(){function Ue(){this._key=Ae()}return Ue.prototype.has=function(Xe){var Mt=qe(Xe,!1);return Mt!==void 0?h.has(Mt,this._key):!1},Ue.prototype.get=function(Xe){var Mt=qe(Xe,!1);return Mt!==void 0?h.get(Mt,this._key):void 0},Ue.prototype.set=function(Xe,Mt){var Zt=qe(Xe,!0);return Zt[this._key]=Mt,this},Ue.prototype.delete=function(Xe){var Mt=qe(Xe,!1);return Mt!==void 0?delete Mt[this._key]:!1},Ue.prototype.clear=function(){this._key=Ae()},Ue})();function Ae(){var Ue;do Ue="@@WeakMap@@"+Ge();while(h.has(be,Ue));return be[Ue]=!0,Ue}function qe(Ue,Xe){if(!n.call(Ue,Pe)){if(!Xe)return;Object.defineProperty(Ue,Pe,{value:h.create()})}return Ue[Pe]}function Je(Ue,Xe){for(var Mt=0;Mt<Xe;++Mt)Ue[Mt]=Math.random()*255|0;return Ue}function Ce(Ue){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(Ue)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(Ue)):Je(new Uint8Array(Ue),Ue):Je(new Array(Ue),Ue)}function Ge(){var Ue=Ce(fe);Ue[6]=Ue[6]&79|64,Ue[8]=Ue[8]&191|128;for(var Xe="",Mt=0;Mt<fe;++Mt){var Zt=Ue[Mt];(Mt===4||Mt===6||Mt===8)&&(Xe+="-"),Zt<16&&(Xe+="0"),Xe+=Zt.toString(16).toLowerCase()}return Xe}}function vt(fe){return fe.__=void 0,delete fe.__,fe}})})(t||(t={})),jS}h9();var jd=(function(){function t(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e==null?void 0:e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return t})(),m9=(function(){function t(){}return t.prototype.transform=function(e){var r=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(o){var s={message:o.message,groups:o.groups,always:o.always,each:o.each},c={type:o.type,name:o.name,target:e.name,propertyName:n,constraints:o.constraints,validationTypeOptions:o.options,validationOptions:s};r.push(new jd(c))})}),r},t})();function g9(t){return t instanceof Map?Array.from(t.values()):Array.isArray(t)?t:Array.from(t)}function y9(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function Zg(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var v9=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},IS=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],c;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(c)throw c.error}}return s},x9=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,s;n<o;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))},oT=(function(){function t(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(t.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),t.prototype.addValidationSchema=function(e){var r=this,n=new m9().transform(e);n.forEach(function(o){return r.addValidationMetadata(o)})},t.prototype.addValidationMetadata=function(e){var r=this.validationMetadatas.get(e.target);r?r.push(e):this.validationMetadatas.set(e.target,[e])},t.prototype.addConstraintMetadata=function(e){var r=this.constraintMetadatas.get(e.target);r?r.push(e):this.constraintMetadatas.set(e.target,[e])},t.prototype.groupByPropertyName=function(e){var r={};return e.forEach(function(n){r[n.propertyName]||(r[n.propertyName]=[]),r[n.propertyName].push(n)}),r},t.prototype.getTargetValidationMetadatas=function(e,r,n,o,s){var c,u,d=function(E){return typeof E.always<"u"?E.always:E.groups&&E.groups.length?!1:n},f=function(E){return!!(o&&(!s||!s.length)&&E.groups&&E.groups.length)},h=this.validationMetadatas.get(e)||[],v=h.filter(function(E){return E.target!==e&&E.target!==r?!1:d(E)?!0:f(E)?!1:s&&s.length>0?E.groups&&!!E.groups.find(function(M){return s.indexOf(M)!==-1}):!0}),m=[];try{for(var y=v9(this.validationMetadatas.entries()),x=y.next();!x.done;x=y.next()){var w=IS(x.value,2),C=w[0],j=w[1];e.prototype instanceof C&&m.push.apply(m,x9([],IS(j),!1))}}catch(E){c={error:E}}finally{try{x&&!x.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}var k=m.filter(function(E){return typeof E.target=="string"||E.target===e||E.target instanceof Function&&!(e.prototype instanceof E.target)?!1:d(E)?!0:f(E)?!1:s&&s.length>0?E.groups&&!!E.groups.find(function(M){return s.indexOf(M)!==-1}):!0}),I=k.filter(function(E){return!v.find(function(M){return M.propertyName===E.propertyName&&M.type===E.type})});return v.concat(I)},t.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},t})();function Xa(){var t=y9();return t.classValidatorMetadataStorage||(t.classValidatorMetadataStorage=new oT),t.classValidatorMetadataStorage}var MS=(function(){function t(){}return t.prototype.toString=function(e,r,n,o){var s=this;e===void 0&&(e=!1),r===void 0&&(r=!1),n===void 0&&(n=""),o===void 0&&(o=!1);var c=e?"\x1B[1m":"",u=e?"\x1B[22m":"",d=function(){var v;return(o?Object.values:Object.keys)((v=s.constraints)!==null&&v!==void 0?v:{}).join(", ")},f=function(v){return" - property ".concat(c).concat(n).concat(v).concat(u," has failed the following constraints: ").concat(c).concat(d()).concat(u,`
|
|
327
|
+
`)};if(r){var h=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(n?".":"").concat(this.property);return this.constraints?f(h):this.children?this.children.map(function(v){return v.toString(e,!0,"".concat(n).concat(h),o)}).join(""):""}else return"An instance of ".concat(c).concat(this.target?this.target.constructor.name:"an object").concat(u,` has failed the validation:
|
|
328
|
+
`)+(this.constraints?f(this.property):"")+(this.children?this.children.map(function(v){return v.toString(e,!0,s.property,o)}).join(""):"")},t})(),jn=(function(){function t(){}return t.isValid=function(e){var r=this;return e!=="isValid"&&e!=="getMessage"&&Object.keys(this).map(function(n){return r[n]}).indexOf(e)!==-1},t.CUSTOM_VALIDATION="customValidation",t.NESTED_VALIDATION="nestedValidation",t.PROMISE_VALIDATION="promiseValidation",t.CONDITIONAL_VALIDATION="conditionalValidation",t.WHITELIST="whitelistValidation",t.IS_DEFINED="isDefined",t})();function b9(t){return Array.isArray(t)?t.join(", "):(typeof t=="symbol"&&(t=t.description),"".concat(t))}var w9=(function(){function t(){}return t.replaceMessageSpecialTokens=function(e,r){var n;return e instanceof Function?n=e(r):typeof e=="string"&&(n=e),n&&Array.isArray(r.constraints)&&r.constraints.forEach(function(o,s){n=n.replace(new RegExp("\\$constraint".concat(s+1),"g"),b9(o))}),n&&r.value!==void 0&&r.value!==null&&["string","boolean","number"].includes(typeof r.value)&&(n=n.replace(/\$value/g,r.value)),n&&(n=n.replace(/\$property/g,r.property)),n&&(n=n.replace(/\$target/g,r.targetName)),n},t})(),Su=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],c;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(c)throw c.error}}return s},RS=(function(){function t(e,r){this.validator=e,this.validatorOptions=r,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=Xa()}return t.prototype.execute=function(e,r,n){var o=this,s,c;!this.metadataStorage.hasValidationMetaData&&((s=this.validatorOptions)===null||s===void 0?void 0:s.enableDebugMessages)===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
|
|
329
|
+
- There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
|
|
330
|
+
- This validation runs before any file with validation decorator was parsed by NodeJS.`);var u=this.validatorOptions?this.validatorOptions.groups:void 0,d=this.validatorOptions&&this.validatorOptions.strictGroups||!1,f=this.validatorOptions&&this.validatorOptions.always||!1,h=((c=this.validatorOptions)===null||c===void 0?void 0:c.forbidUnknownValues)===void 0||this.validatorOptions.forbidUnknownValues!==!1,v=this.metadataStorage.getTargetValidationMetadatas(e.constructor,r,f,d,u),m=this.metadataStorage.groupByPropertyName(v);if(h&&!v.length){var y=new MS;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(y.target=e),y.value=void 0,y.property=void 0,y.children=[],y.constraints={unknownValue:"an unknown value was passed to the validate function"},n.push(y);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,m,n),Object.keys(m).forEach(function(x){var w=e[x],C=m[x].filter(function(k){return k.type===jn.IS_DEFINED}),j=m[x].filter(function(k){return k.type!==jn.IS_DEFINED&&k.type!==jn.WHITELIST});w instanceof Promise&&j.find(function(k){return k.type===jn.PROMISE_VALIDATION})?o.awaitingPromises.push(w.then(function(k){o.performValidations(e,k,x,C,j,n)})):o.performValidations(e,w,x,C,j,n)})},t.prototype.whitelist=function(e,r,n){var o=this,s=[];Object.keys(e).forEach(function(c){(!r[c]||r[c].length===0)&&s.push(c)}),s.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?s.forEach(function(c){var u,d=o.generateValidationError(e,e[c],c);d.constraints=(u={},u[jn.WHITELIST]="property ".concat(c," should not exist"),u),d.children=void 0,n.push(d)}):s.forEach(function(c){return delete e[c]}))},t.prototype.stripEmptyErrors=function(e){var r=this;return e.filter(function(n){if(n.children&&(n.children=r.stripEmptyErrors(n.children)),Object.keys(n.constraints).length===0){if(n.children.length===0)return!1;delete n.constraints}return!0})},t.prototype.performValidations=function(e,r,n,o,s,c){var u=s.filter(function(m){return m.type===jn.CUSTOM_VALIDATION}),d=s.filter(function(m){return m.type===jn.NESTED_VALIDATION}),f=s.filter(function(m){return m.type===jn.CONDITIONAL_VALIDATION}),h=this.generateValidationError(e,r,n);c.push(h);var v=this.conditionalValidations(e,r,f);v&&(this.customValidations(e,r,o,h),this.mapContexts(e,r,o,h),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,r,u,h),this.nestedValidations(r,d,h),this.mapContexts(e,r,s,h),this.mapContexts(e,r,u,h))))},t.prototype.generateValidationError=function(e,r,n){var o=new MS;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(o.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(o.value=r),o.property=n,o.children=[],o.constraints={},o},t.prototype.conditionalValidations=function(e,r,n){return n.map(function(o){return o.constraints[0](e,r)}).reduce(function(o,s){return o&&s},!0)},t.prototype.customValidations=function(e,r,n,o){var s=this;n.forEach(function(c){s.metadataStorage.getTargetValidatorConstraints(c.constraintCls).forEach(function(u){if(!(u.async&&s.ignoreAsyncValidations)&&!(s.validatorOptions&&s.validatorOptions.stopAtFirstError&&Object.keys(o.constraints||{}).length>0)){var d={targetName:e.constructor?e.constructor.name:void 0,property:c.propertyName,object:e,value:r,constraints:c.constraints};if(!c.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){var f=u.instance.validate(r,d);if(Zg(f)){var h=f.then(function(M){if(!M){var R=Su(s.createValidationError(e,r,c,u),2),L=R[0],A=R[1];o.constraints[L]=A,c.context&&(o.contexts||(o.contexts={}),o.contexts[L]=Object.assign(o.contexts[L]||{},c.context))}});s.awaitingPromises.push(h)}else if(!f){var v=Su(s.createValidationError(e,r,c,u),2),m=v[0],y=v[1];o.constraints[m]=y}return}var x=g9(r),w=x.map(function(M){return u.instance.validate(M,d)}),C=w.some(function(M){return Zg(M)});if(C){var j=w.map(function(M){return Zg(M)?M:Promise.resolve(M)}),k=Promise.all(j).then(function(M){var R=M.every(function(G){return G});if(!R){var L=Su(s.createValidationError(e,r,c,u),2),A=L[0],F=L[1];o.constraints[A]=F,c.context&&(o.contexts||(o.contexts={}),o.contexts[A]=Object.assign(o.contexts[A]||{},c.context))}});s.awaitingPromises.push(k);return}var I=w.every(function(M){return M});if(!I){var E=Su(s.createValidationError(e,r,c,u),2),m=E[0],y=E[1];o.constraints[m]=y}}})})},t.prototype.nestedValidations=function(e,r,n){var o=this;e!==void 0&&r.forEach(function(s){if(!(s.type!==jn.NESTED_VALIDATION&&s.type!==jn.PROMISE_VALIDATION)&&!(o.validatorOptions&&o.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map){var c=e instanceof Set?Array.from(e):e;c.forEach(function(v,m){o.performValidations(e,v,m.toString(),[],r,n.children)})}else if(e instanceof Object){var u=typeof s.target=="string"?s.target:s.target.name;o.execute(e,u,n.children)}else{var d=Su(o.createValidationError(s.target,e,s),2),f=d[0],h=d[1];n.constraints[f]=h}})},t.prototype.mapContexts=function(e,r,n,o){var s=this;return n.forEach(function(c){if(c.context){var u=void 0;if(c.type===jn.CUSTOM_VALIDATION){var d=s.metadataStorage.getTargetValidatorConstraints(c.constraintCls);u=d[0]}var f=s.getConstraintType(c,u);o.constraints[f]&&(o.contexts||(o.contexts={}),o.contexts[f]=Object.assign(o.contexts[f]||{},c.context))}})},t.prototype.createValidationError=function(e,r,n,o){var s=e.constructor?e.constructor.name:void 0,c=this.getConstraintType(n,o),u={targetName:s,property:n.propertyName,object:e,value:r,constraints:n.constraints},d=n.message||"";!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&o&&o.instance.defaultMessage instanceof Function&&(d=o.instance.defaultMessage(u));var f=w9.replaceMessageSpecialTokens(d,u);return[c,f]},t.prototype.getConstraintType=function(e,r){var n=r&&r.name?r.name:e.type;return n},t})(),S9=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(c){c(s)})}return new(r||(r=Promise))(function(s,c){function u(h){try{f(n.next(h))}catch(v){c(v)}}function d(h){try{f(n.throw(h))}catch(v){c(v)}}function f(h){h.done?s(h.value):o(h.value).then(u,d)}f((n=n.apply(t,e||[])).next())})},C9=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(f){return function(h){return d([f,h])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,f[0]&&(r=0)),r;)try{if(n=1,o&&(s=f[0]&2?o.return:f[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,f[1])).done)return s;switch(o=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,o=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){r.label=f[1];break}if(f[0]===6&&r.label<s[1]){r.label=s[1],s=f;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(f);break}s[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],o=0}finally{n=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},AS=(function(){function t(){}return t.prototype.validate=function(e,r,n){return this.coreValidate(e,r,n)},t.prototype.validateOrReject=function(e,r,n){return S9(this,void 0,void 0,function(){var o;return C9(this,function(s){switch(s.label){case 0:return[4,this.coreValidate(e,r,n)];case 1:return o=s.sent(),o.length?[2,Promise.reject(o)]:[2]}})})},t.prototype.validateSync=function(e,r,n){var o=typeof e=="string"?r:e,s=typeof e=="string"?n:r,c=typeof e=="string"?e:void 0,u=new RS(this,s);u.ignoreAsyncValidations=!0;var d=[];return u.execute(o,c,d),u.stripEmptyErrors(d)},t.prototype.coreValidate=function(e,r,n){var o=typeof e=="string"?r:e,s=typeof e=="string"?n:r,c=typeof e=="string"?e:void 0,u=new RS(this,s),d=[];return u.execute(o,c,d),Promise.all(u.awaitingPromises).then(function(){return u.stripEmptyErrors(d)})},t})(),E9=new((function(){function t(){this.instances=[]}return t.prototype.get=function(e){var r=this.instances.find(function(n){return n.type===e});return r||(r={type:e,object:new e},this.instances.push(r)),r.object},t})());function Uf(t){return E9.get(t)}var T9=(function(){function t(e,r,n){n===void 0&&(n=!1),this.target=e,this.name=r,this.async=n}return Object.defineProperty(t.prototype,"instance",{get:function(){return Uf(this.target)},enumerable:!1,configurable:!0}),t})();function k9(t){var e;if(t.validator instanceof Function){e=t.validator;var r=Uf(oT).getTargetValidatorConstraints(t.validator);if(r.length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(t.target.name,":").concat(t.propertyName)}else{var n=t.validator;e=(function(){function s(){}return s.prototype.validate=function(c,u){return n.validate(c,u)},s.prototype.defaultMessage=function(c){return n.defaultMessage?n.defaultMessage(c):""},s})(),Xa().addConstraintMetadata(new T9(e,t.name,t.async))}var o={type:t.name&&jn.isValid(t.name)?t.name:jn.CUSTOM_VALIDATION,name:t.name,target:t.target,propertyName:t.propertyName,validationOptions:t.options,constraintCls:e,constraints:t.constraints};Xa().addValidationMetadata(new jd(o))}function fi(t,e){return function(r){var n=e&&e.each?"each value in ":"";return t(n,r)}}function hi(t,e){return function(r,n){k9({name:t.name,target:r.constructor,propertyName:n,options:e,constraints:t.constraints,validator:t.validator})}}var j9="isOptional";function W(t){return function(e,r){var n={type:jn.CONDITIONAL_VALIDATION,name:j9,target:e.constructor,propertyName:r,constraints:[function(o,s){return o[r]!==null&&o[r]!==void 0}],validationOptions:t};Xa().addValidationMetadata(new jd(n))}}function Ho(t,e){return function(r,n){var o={type:jn.CONDITIONAL_VALIDATION,target:r.constructor,propertyName:n,constraints:[t],validationOptions:e};Xa().addValidationMetadata(new jd(o))}}var Vy=function(){return Vy=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Vy.apply(this,arguments)};function so(t){var e=Vy({},t),r=e.each?"each value in ":"";return e.message=e.message||r+"nested property $property must be either object or array",function(n,o){var s={type:jn.NESTED_VALIDATION,target:n.constructor,propertyName:o,validationOptions:e};Xa().addValidationMetadata(new jd(s))}}var Jp={exports:{}},_S;function d0(){return _S||(_S=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}t.exports=e.default,t.exports.default=e.default})(Jp,Jp.exports)),Jp.exports}var Zp={exports:{}},LS;function iT(){return LS||(LS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;for(var s in o)typeof n[s]>"u"&&(n[s]=o[s]);return n}t.exports=e.default,t.exports.default=e.default})(Zp,Zp.exports)),Zp.exports}var ef={exports:{}},OS;function P9(){return OS||(OS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(o,s){return o.indexOf(s)!==-1};e.default=r,t.exports=e.default,t.exports.default=e.default})(ef,ef.exports)),ef.exports}var I9="isNotEmpty";function M9(t){return t!==""&&t!==null&&t!==void 0}function ma(t){return hi({name:I9,validator:{validate:function(e,r){return M9(e)},defaultMessage:fi(function(e){return e+"$property should not be empty"},t)}},t)}var R9="isIn";function A9(t,e){return Array.isArray(e)&&e.some(function(r){return r===t})}function Ve(t,e){return hi({name:R9,constraints:[t],validator:{validate:function(r,n){return A9(r,n==null?void 0:n.constraints[0])},defaultMessage:fi(function(r){return r+"$property must be one of the following values: $constraint1"},e)}},e)}var _9="max";function L9(t,e){return typeof t=="number"&&typeof e=="number"&&t<=e}function rl(t,e){return hi({name:_9,constraints:[t],validator:{validate:function(r,n){return L9(r,n==null?void 0:n.constraints[0])},defaultMessage:fi(function(r){return r+"$property must not be greater than $constraint1"},e)}},e)}var O9="min";function $9(t,e){return typeof t=="number"&&typeof e=="number"&&t>=e}function ao(t,e){return hi({name:O9,constraints:[t],validator:{validate:function(r,n){return $9(r,n==null?void 0:n.constraints[0])},defaultMessage:fi(function(r){return r+"$property must not be less than $constraint1"},e)}},e)}var tf={exports:{}},$S;function N9(){return $S||($S=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,s){for(var c=0;c<s.length;c++){var u=s[c];if(o===u||r(u)&&u.test(o))return!0}return!1}t.exports=e.default,t.exports.default=e.default})(tf,tf.exports)),tf.exports}var rf={exports:{}},NS;function B9(){return NS||(NS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var r=o(d0()),n=o(iT());function o(u){return u&&u.__esModule?u:{default:u}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function c(u,d){(0,r.default)(u),d=(0,n.default)(d,s),d.allow_trailing_dot&&u[u.length-1]==="."&&(u=u.substring(0,u.length-1)),d.allow_wildcard===!0&&u.indexOf("*.")===0&&(u=u.substring(2));var f=u.split("."),h=f[f.length-1];return d.require_tld&&(f.length<2||!d.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(h)||/\s/.test(h))||!d.allow_numeric_tld&&/^\d+$/.test(h)?!1:f.every(function(v){return!(v.length>63&&!d.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(v)||/[\uff01-\uff5e]/.test(v)||/^-|-$/.test(v)||!d.allow_underscores&&/_/.test(v))})}t.exports=e.default,t.exports.default=e.default})(rf,rf.exports)),rf.exports}var nf={exports:{}},BS;function z9(){return BS||(BS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var r=n(d0());function n(v){return v&&v.__esModule?v:{default:v}}function o(v){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o(v)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",c="(".concat(s,"[.]){3}").concat(s),u=new RegExp("^".concat(c,"$")),d="(?:[0-9a-fA-F]{1,4})",f=new RegExp("^("+"(?:".concat(d,":){7}(?:").concat(d,"|:)|")+"(?:".concat(d,":){6}(?:").concat(c,"|:").concat(d,"|:)|")+"(?:".concat(d,":){5}(?::").concat(c,"|(:").concat(d,"){1,2}|:)|")+"(?:".concat(d,":){4}(?:(:").concat(d,"){0,1}:").concat(c,"|(:").concat(d,"){1,3}|:)|")+"(?:".concat(d,":){3}(?:(:").concat(d,"){0,2}:").concat(c,"|(:").concat(d,"){1,4}|:)|")+"(?:".concat(d,":){2}(?:(:").concat(d,"){0,3}:").concat(c,"|(:").concat(d,"){1,5}|:)|")+"(?:".concat(d,":){1}(?:(:").concat(d,"){0,4}:").concat(c,"|(:").concat(d,"){1,6}|:)|")+"(?::((?::".concat(d,"){0,5}:").concat(c,"|(?::").concat(d,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function h(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(v);var y=(o(m)==="object"?m.version:arguments[1])||"";return y?y.toString()==="4"?u.test(v):y.toString()==="6"?f.test(v):!1:h(v,{version:4})||h(v,{version:6})}t.exports=e.default,t.exports.default=e.default})(nf,nf.exports)),nf.exports}var of={exports:{}},zS;function D9(){return zS||(zS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=j;var r=d(d0()),n=d(N9()),o=d(P9()),s=d(B9()),c=d(z9()),u=d(iT());function d(k){return k&&k.__esModule?k:{default:k}}function f(k,I){return x(k)||y(k,I)||v(k,I)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
331
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(k,I){if(k){if(typeof k=="string")return m(k,I);var E={}.toString.call(k).slice(8,-1);return E==="Object"&&k.constructor&&(E=k.constructor.name),E==="Map"||E==="Set"?Array.from(k):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?m(k,I):void 0}}function m(k,I){(I==null||I>k.length)&&(I=k.length);for(var E=0,M=Array(I);E<I;E++)M[E]=k[E];return M}function y(k,I){var E=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(E!=null){var M,R,L,A,F=[],G=!0,$=!1;try{if(L=(E=E.call(k)).next,I!==0)for(;!(G=(M=L.call(E)).done)&&(F.push(M.value),F.length!==I);G=!0);}catch(P){$=!0,R=P}finally{try{if(!G&&E.return!=null&&(A=E.return(),Object(A)!==A))return}finally{if($)throw R}}return F}}function x(k){if(Array.isArray(k))return k}var w={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},C=/^\[([^\]]+)\](?::([0-9]+))?$/;function j(k,I){if((0,r.default)(k),!k||/[\s<>]/.test(k)||k.indexOf("mailto:")===0||(I=(0,u.default)(I,w),I.validate_length&&k.length>I.max_allowed_length)||!I.allow_fragments&&(0,o.default)(k,"#")||!I.allow_query_components&&((0,o.default)(k,"?")||(0,o.default)(k,"&")))return!1;var E,M,R,L,A,F,G,$;G=k.split("#"),k=G.shift(),G=k.split("?"),k=G.shift();var P=k.match(/^([a-z][a-z0-9+\-.]*):/i),q=!1,V=function(ze){return q=!0,E=ze.toLowerCase(),I.require_valid_protocol&&I.protocols.indexOf(E)===-1?!1:k.substring(P[0].length)};if(P){var O=P[1],U=k.substring(P[0].length),K=U.slice(0,2)==="//";if(K){if(k=V(O),k===!1)return!1}else{var Y=U.indexOf("/"),te=Y===-1?U:U.substring(0,Y),Q=te.indexOf("@");if(Q!==-1){var X=te.substring(0,Q),re=/^[a-zA-Z0-9\-_.%:]*$/,de=re.test(X),J=/%[0-9a-fA-F]{2}/.test(X);if(de&&!J){if(I.require_protocol)return!1}else if(k=V(O),k===!1)return!1}else{var oe=/^[0-9]/.test(U);if(oe){if(I.require_protocol)return!1}else if(k=V(O),k===!1)return!1}}}else if(I.require_protocol)return!1;if(k.slice(0,2)==="//"){if(!q&&!I.allow_protocol_relative_urls)return!1;k=k.slice(2)}if(k==="")return!1;if(G=k.split("/"),k=G.shift(),k===""&&!I.require_host)return!0;if(G=k.split("@"),G.length>1){if(I.disallow_auth||G[0]===""||(M=G.shift(),M.indexOf(":")>=0&&M.split(":").length>2))return!1;var Z=M.split(":"),pe=f(Z,2),Se=pe[0],se=pe[1];if(Se===""&&se==="")return!1}L=G.join("@"),F=null,$=null;var ae=L.match(C);if(ae?(R="",$=ae[1],F=ae[2]||null):(G=L.split(":"),R=G.shift(),G.length&&(F=G.join(":"))),F!==null&&F.length>0){if(A=parseInt(F,10),!/^[0-9]+$/.test(F)||A<=0||A>65535)return!1}else if(I.require_port)return!1;return I.host_whitelist?(0,n.default)(R,I.host_whitelist):R===""&&!I.require_host?!0:!(!(0,c.default)(R)&&!(0,s.default)(R,I)&&(!$||!(0,c.default)($,6))||(R=R||$,I.host_blacklist&&(0,n.default)(R,I.host_blacklist)))}t.exports=e.default,t.exports.default=e.default})(of,of.exports)),of.exports}var F9=D9();const H9=nh(F9);var U9="isUrl";function V9(t,e){return typeof t=="string"&&H9(t,e)}function $h(t,e){return hi({name:U9,constraints:[t],validator:{validate:function(r,n){return V9(r,n==null?void 0:n.constraints[0])},defaultMessage:fi(function(r){return r+"$property must be a URL address"},e)}},e)}var W9="isBoolean";function q9(t){return t instanceof Boolean||typeof t=="boolean"}function Dt(t){return hi({name:W9,validator:{validate:function(e,r){return q9(e)},defaultMessage:fi(function(e){return e+"$property must be a boolean value"},t)}},t)}var G9="isNumber";function X9(t,e){if(e===void 0&&(e={}),typeof t!="number")return!1;if(t===1/0||t===-1/0)return!!e.allowInfinity;if(Number.isNaN(t))return!!e.allowNaN;if(e.maxDecimalPlaces!==void 0){var r=0;if(t%1!==0&&(r=t.toString().split(".")[1].length),r>e.maxDecimalPlaces)return!1}return Number.isFinite(t)}function Ar(t,e){return t===void 0&&(t={}),hi({name:G9,constraints:[t],validator:{validate:function(r,n){return X9(r,n==null?void 0:n.constraints[0])},defaultMessage:fi(function(r){return r+"$property must be a number conforming to the specified constraints"},e)}},e)}var K9="isInt";function Q9(t){return typeof t=="number"&&Number.isInteger(t)}function Rc(t){return hi({name:K9,validator:{validate:function(e,r){return Q9(e)},defaultMessage:fi(function(e){return e+"$property must be an integer number"},t)}},t)}var Y9="isString";function J9(t){return t instanceof String||typeof t=="string"}function ie(t){return hi({name:Y9,validator:{validate:function(e,r){return J9(e)},defaultMessage:fi(function(e){return e+"$property must be a string"},t)}},t)}var Z9="isArray";function e7(t){return Array.isArray(t)}function hn(t){return hi({name:Z9,validator:{validate:function(e,r){return e7(e)},defaultMessage:fi(function(e){return e+"$property must be an array"},t)}},t)}var t7="isObject";function r7(t){return t!=null&&(typeof t=="object"||typeof t=="function")&&!Array.isArray(t)}function n7(t){return hi({name:t7,validator:{validate:function(e,r){return r7(e)},defaultMessage:fi(function(e){return e+"$property must be an object"},t)}},t)}function o7(t,e,r){return typeof t=="string"?Uf(AS).validate(t,e,r):Uf(AS).validate(t,e)}var Pd=Object.defineProperty,i7=Object.getOwnPropertyDescriptor,sT=Object.getOwnPropertyNames,s7=Object.prototype.hasOwnProperty,a7=(t,e,r)=>e in t?Pd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ur=(t,e)=>Pd(t,"name",{value:e,configurable:!0}),l7=(t,e)=>function(){return t&&(e=(0,t[sT(t)[0]])(t=0)),e},c7=(t,e)=>{for(var r in e)Pd(t,r,{get:e[r],enumerable:!0})},u7=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of sT(e))!s7.call(t,o)&&o!==r&&Pd(t,o,{get:()=>e[o],enumerable:!(n=i7(e,o))||n.enumerable});return t},d7=t=>u7(Pd({},"__esModule",{value:!0}),t),hs=(t,e,r)=>(a7(t,typeof e!="symbol"?e+"":e,r),r),aT={};c7(aT,{MustacheTemplateProvider:()=>p0});var ey,p0,lT=l7({"src/providers/MustacheTemplateProvider.ts"(){ey=class{constructor(e=1){hs(this,"max_passes"),this.max_passes=e,To.escape=r=>r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}resolve(e,r){if(!e)return"";if(!e.includes("{{"))return e;try{let n=e;for(let o=0;o<this.max_passes;o++){const s=To.render(n,r);if(s===n)break;n=s}return n}catch(n){throw new Error(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`)}}},ur(ey,"MustacheTemplateProvider"),p0=ey}}),mt=(function(t){return t.STRING="string",t.INTEGER="integer",t.NUMBER="number",t.BOOLEAN="boolean",t.OBJECT="object",t.ARRAY="array",t})({}),B=(function(t){return t.TEXT="text",t.TEXTAREA="textarea",t.NUMBER="number",t.INTEGER="integer",t.BOOLEAN="boolean",t.EMAIL="email",t.URL="url",t.IMAGE="image",t.FILE="file",t.DATE="date",t.DATE_TIME="datetime",t.SELECT="select",t.RADIO="radio",t.CHECKBOX="checkbox",t.COLOR="color",t.FORM="form",t.REPEATER="repeater",t.MODEL_REPEATER="model_repeater",t})({}),p7=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,f7=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function cT(t){try{const e=new URL(t);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}ur(cT,"isValidUrl");function uT(t,e,r){if(t==null)return null;const{type:n,constraint:o,message:s}=e;switch(n){case"email":if(typeof t!="string"||!p7.test(t))return s||`${r} must be a valid email address`;break;case"url":if(typeof t!="string"||!cT(t))return s||`${r} must be a valid URL`;break;case"uuid":if(typeof t!="string"||!f7.test(t))return s||`${r} must be a valid UUID`;break;case"regex":if(typeof t!="string"||!o.test(t))return s||`${r} must match pattern ${o}`;break;case"minLength":if(typeof t!="string"||t.length<o)return s||`${r} must be at least ${o} characters`;break;case"maxLength":if(typeof t!="string"||t.length>o)return s||`${r} must be at most ${o} characters`;break;case"min":if(typeof t!="number"||t<o)return s||`${r} must be at least ${o}`;break;case"max":if(typeof t!="number"||t>o)return s||`${r} must be at most ${o}`;break;case"int":if(typeof t!="number"||!Number.isInteger(t))return s||`${r} must be an integer`;break;case"positive":if(typeof t!="number"||t<=0)return s||`${r} must be a positive number`;break;case"negative":if(typeof t!="number"||t>=0)return s||`${r} must be a negative number`;break}return null}ur(uT,"validateValue");function Go(t,e,r,n,o){t.constructor._validators||(t.constructor._validators=[]),t.constructor._validators.push({name:e,type:r,constraint:n,message:o==null?void 0:o.message})}ur(Go,"addValidatorMetadata");function h7(t){return function(e,r){Go(e,r,"email",void 0,t)}}ur(h7,"Email");function m7(t){return function(e,r){Go(e,r,"url",void 0,t)}}ur(m7,"Url");function g7(t){return function(e,r){Go(e,r,"uuid",void 0,t)}}ur(g7,"Uuid");function y7(t,e){if(!(t instanceof RegExp))throw new Error("@Regex requires a valid RegExp pattern");const r=t.source;return/\([^)]*[+*]\)[+*]|\([^)]*\|[^)]*\)[+*]/.test(r)&&console.warn(`[@qwickapps/schema] Warning: Regex pattern may have ReDoS vulnerability: ${r}. Avoid nested quantifiers like (a+)+ or alternation with quantifiers like (a|b)+`),function(n,o){Go(n,o,"regex",t,e)}}ur(y7,"Regex");function v7(t,e){if(typeof t!="number"||t<0)throw new Error("@MinLength requires a non-negative number");return function(r,n){Go(r,n,"minLength",t,e)}}ur(v7,"MinLength");function x7(t,e){if(typeof t!="number"||t<0)throw new Error("@MaxLength requires a non-negative number");return function(r,n){Go(r,n,"maxLength",t,e)}}ur(x7,"MaxLength");function b7(t,e){if(typeof t!="number")throw new Error("@Min requires a number");return function(r,n){Go(r,n,"min",t,e)}}ur(b7,"Min");function w7(t,e){if(typeof t!="number")throw new Error("@Max requires a number");return function(r,n){Go(r,n,"max",t,e)}}ur(w7,"Max");function S7(t){return function(e,r){Go(e,r,"int",void 0,t)}}ur(S7,"Int");function C7(t){return function(e,r){Go(e,r,"positive",void 0,t)}}ur(C7,"Positive");function E7(t){return function(e,r){Go(e,r,"negative",void 0,t)}}ur(E7,"Negative");function T7(t){if(typeof t!="function")throw new Error("@Transform requires a function");return function(e,r){e.constructor._transforms||(e.constructor._transforms=[]),e.constructor._transforms.push({name:r,transform:t})}}ur(T7,"Transform");function k7(t,e){if(typeof t!="function")throw new Error("@Validate requires a validator function");return function(r){return r._classValidators||(r._classValidators=[]),r._classValidators.push({validator:t,message:(e==null?void 0:e.message)||"Validation failed",fields:e==null?void 0:e.fields}),r}}ur(k7,"Validate");function Wy(t,e){if(!e||e.length===0)return t;const r={...t};for(const{name:n,transform:o}of e)if(n in r)try{r[n]=o(r[n],r)}catch(s){console.warn(`[@qwickapps/schema] Transform failed for field '${n}':`,s instanceof Error?s.message:s)}return r}ur(Wy,"applyTransforms");function qy(t,e){if(!e||e.length===0)return[];const r=[];for(const n of e){const o=t[n.name],s=uT(o,n,n.name);s&&r.push(s)}return r}ur(qy,"runValidators");function Gy(t,e){if(!e||e.length===0)return[];const r=[];for(const{validator:n,message:o,fields:s}of e)try{const c=n(t);if(c===!1){const u=s!=null&&s.length?`${s.join(", ")}: ${o}`:o;r.push(u)}else if(typeof c=="string"){const u=s!=null&&s.length?`${s.join(", ")}: ${c}`:c;r.push(u)}}catch(c){r.push(`Validation error: ${c.message}`)}return r}ur(Gy,"runClassValidators");function z(t={}){return function(e,r){var n;e.constructor._fields||(e.constructor._fields=[]);const o=Reflect.getMetadata("design:type",e,r);let s=t.dataType;!s&&o&&(o===String?s=mt.STRING:o===Number?s=mt.NUMBER:o===Boolean?s=mt.BOOLEAN:o===Array?s=mt.ARRAY:o===Object&&(s=mt.OBJECT)),e.constructor._fields.push({name:r,dataType:s,required:(n=t.required)!=null?n:!1,defaultValue:t.defaultValue,type:t.type,...t})}}ur(z,"Field");function D(t){return function(e,r){e.constructor._editors||(e.constructor._editors=[]),e.constructor._editors.push({name:r,...t})}}ur(D,"Editor");function Vt(t,e){return function(r){return typeof t=="string"?r.prototype.constructor._schema={name:t,version:e||"1.0.0"}:r.prototype.constructor._schema={version:"1.0.0",...t},r}}ur(Vt,"Schema");var dT=class{static async validate(e){const r=this._fields||[],n=this._editors||[],o=this._validators||[],s=this._transforms||[],c=this._classValidators||[],u=[],d=Wy(e,s);for(const m of r)m.required&&d[m.name]===void 0&&u.push(`Field '${m.name}' is required`);for(const m of n){const y=d[m.name];if(y!=null&&m.validation){const{min:x,max:w,pattern:C,custom:j}=m.validation;if(typeof y=="string"&&(x!==void 0&&y.length<x&&u.push(`${m.name} must be at least ${x} characters`),w!==void 0&&y.length>w&&u.push(`${m.name} must be at most ${w} characters`)),typeof y=="number"&&(x!==void 0&&y<x&&u.push(`${m.name} must be at least ${x}`),w!==void 0&&y>w&&u.push(`${m.name} must be at most ${w}`)),C&&typeof y=="string"&&!C.test(y)&&u.push(`${m.name} must match pattern ${C}`),j){const k=j(y);k!==!0&&u.push(typeof k=="string"?k:`${m.name} failed custom validation`)}}}const f=qy(d,o);u.push(...f);const h=new this;Object.assign(h,d);let v=[];try{v=await o7(h,{forbidUnknownValues:!1})}catch(m){u.push("Validation failed: "+m.message)}for(const m of v)m.constraints&&u.push(...Object.values(m.constraints));if(u.length===0&&c.length>0){const m=Gy(d,c);u.push(...m)}return{isValid:u.length===0,errors:u,validationErrors:v}}static validateSync(e){const r=this._fields||[],n=this._editors||[],o=this._validators||[],s=this._transforms||[],c=this._classValidators||[],u=[],d=Wy(e,s);for(const h of r)h.required&&d[h.name]===void 0&&u.push(`Field '${h.name}' is required`);for(const h of n){const v=d[h.name];if(v!=null&&h.validation){const{min:m,max:y,pattern:x,custom:w}=h.validation;if(typeof v=="string"&&(m!==void 0&&v.length<m&&u.push(`${h.name} must be at least ${m} characters`),y!==void 0&&v.length>y&&u.push(`${h.name} must be at most ${y} characters`)),typeof v=="number"&&(m!==void 0&&v<m&&u.push(`${h.name} must be at least ${m}`),y!==void 0&&v>y&&u.push(`${h.name} must be at most ${y}`)),x&&typeof v=="string"&&!x.test(v)&&u.push(`${h.name} must match pattern ${x}`),w){const C=w(v);C!==!0&&u.push(typeof C=="string"?C:`${h.name} failed custom validation`)}}}const f=qy(d,o);if(u.push(...f),u.length===0&&c.length>0){const h=Gy(d,c);u.push(...h)}return{isValid:u.length===0,errors:u}}static getSchema(){const e=this._fields||[],r=this._editors||[],n=this._validators||[],o=this._schema||{name:this.name,version:"1.0.0"},s=Xa(),c=e.map(u=>{const d=r.find(x=>x.name===u.name),f=n.filter(x=>x.name===u.name),v=s.getTargetValidationMetadatas(this,this.prototype,!1,!1).filter(x=>x.propertyName===u.name).map(x=>({type:x.type,constraints:x.constraints})),y=[...f.map(x=>({type:x.type,constraint:x.constraint,message:x.message})),...v];return{name:u.name,data_type:u.dataType,required:u.required||!1,defaultValue:u.defaultValue,type:u.type,editor:d?{field_type:d.field_type,label:d.label,description:d.description,placeholder:d.placeholder,help_text:d.help_text,validation:d.validation}:void 0,...y.length>0&&{validation:y}}});return{name:o.name,version:o.version||"1.0.0",description:o.description,fields:c}}static createWithDefaults(e={}){const r=new this,n=this._fields||[];for(const o of n)o.defaultValue!==void 0&&e[o.name]===void 0&&(r[o.name]=o.defaultValue);return Object.assign(r,e),r}static partial(){const e=this.getSchema();return{...e,name:`Partial${e.name}`,fields:e.fields.map(r=>({...r,required:!1}))}}static pick(...e){const r=this.getSchema(),n=new Set(e);return{...r,name:`Pick${r.name}`,fields:r.fields.filter(o=>n.has(o.name))}}static omit(...e){const r=this.getSchema(),n=new Set(e);return{...r,name:`Omit${r.name}`,fields:r.fields.filter(o=>!n.has(o.name))}}static extend(e){const r=this.getSchema(),n=Object.entries(e).map(([o,s])=>{var c;return{name:o,data_type:typeof s.type=="string"&&Object.values(mt).includes(s.type)?s.type:mt.OBJECT,required:(c=s.required)!=null?c:!1,defaultValue:s.defaultValue,type:typeof s.type=="string"?s.type:void 0}});return{...r,name:`Extended${r.name}`,fields:[...r.fields,...n]}}static validateAgainstSchema(e,r){var n;const o=[];for(const s of r.fields){const c=e[s.name];if(s.required&&c===void 0){o.push(`Field '${s.name}' is required`);continue}if(c!==void 0&&(n=s.editor)!=null&&n.validation){const{min:u,max:d,pattern:f}=s.editor.validation;typeof c=="string"&&(u!==void 0&&c.length<u&&o.push(`${s.name} must be at least ${u} characters`),d!==void 0&&c.length>d&&o.push(`${s.name} must be at most ${d} characters`)),typeof c=="number"&&(u!==void 0&&c<u&&o.push(`${s.name} must be at least ${u}`),d!==void 0&&c>d&&o.push(`${s.name} must be at most ${d}`)),f&&typeof c=="string"&&!f.test(c)&&o.push(`${s.name} must match pattern ${f}`)}}return{isValid:o.length===0,errors:o}}};ur(dT,"Model");var Sr=dT,pT=class{constructor(e,r){hs(this,"field",{}),this.field.name=e,this.field.data_type=r,this.field.required=!1}required(e=!0){return this.field.required=e,this}defaultValue(e){return this.field.defaultValue=e,this}type(e){return this.field.type=e,this}editor(e){return this.field.editor={field_type:B.TEXT,label:this.field.name||"",description:"",...e},this}textEditor(e,r,n){return this.editor({field_type:B.TEXT,label:e,description:r,placeholder:n})}textareaEditor(e,r,n){return this.editor({field_type:B.TEXTAREA,label:e,description:r,placeholder:n})}selectEditor(e,r,n){return this.editor({field_type:B.SELECT,label:e,description:r,validation:{options:n}})}validation(e){return this.field.editor||(this.field.editor={field_type:B.TEXT,label:this.field.name||"",description:""}),this.field.editor.validation=e,this}build(){var e;if(!this.field.name||!this.field.data_type)throw new Error("Field name and data_type are required");return{name:this.field.name,data_type:this.field.data_type,required:(e=this.field.required)!=null?e:!1,defaultValue:this.field.defaultValue,type:this.field.type,editor:this.field.editor}}};ur(pT,"FieldBuilder");var j7=pT,fT=class{constructor(e,r="1.0.0"){hs(this,"schema",{fields:[]}),this.schema.name=e,this.schema.version=r}description(e){return this.schema.description=e,this}field(e,r){const n=new j7(e,r),o=n.build.bind(n);return n.build=()=>{const s=o();return this.schema.fields.push(s),s},n}addField(e){return this.schema.fields.push(e),this}addFields(e){return this.schema.fields.push(...e),this}uses(...e){return this.schema.uses||(this.schema.uses=[]),this.schema.uses.push(...e),this}build(){if(!this.schema.name||!this.schema.version)throw new Error("Schema name and version are required");if(!this.schema.fields||this.schema.fields.length===0)throw new Error("Schema must have at least one field");return{name:this.schema.name,version:this.schema.version,description:this.schema.description,uses:this.schema.uses,models:this.schema.models,fields:this.schema.fields}}};ur(fT,"SchemaBuilder");var P7=fT;function I7(t,e="1.0.0"){return new P7(t,e)}ur(I7,"createSchema");var hT=class{constructor(e={}){hs(this,"cache",new Map),hs(this,"config"),this.config={maxSize:100,defaultTtl:300*1e3,enableLogging:!1,...e},this.log("MemoryCacheProvider initialized",{config:this.config})}get(e){const r=this.cache.get(e);if(!r)return this.log(`Cache miss: ${e}`),null;const n=Date.now(),o=r.ttl||this.config.defaultTtl;return n-r.timestamp>o?(this.cache.delete(e),this.log(`Cache expired: ${e}`),null):(this.cache.delete(e),this.cache.set(e,r),this.log(`Cache hit: ${e}`),r.data)}set(e,r,n){if(this.cache.has(e)&&this.cache.delete(e),this.cache.size>=this.config.maxSize){const s=this.cache.keys().next().value;s&&(this.cache.delete(s),this.log(`LRU evicted: ${s}`))}const o={data:r,timestamp:Date.now(),ttl:n};this.cache.set(e,o),this.log(`Cache set: ${e}`,{ttl:n||this.config.defaultTtl})}clear(e){e?this.cache.delete(e)&&this.log(`Cache cleared: ${e}`):(this.cache.clear(),this.log("Cache cleared completely"))}getStats(){return{size:this.cache.size,maxSize:this.config.maxSize,keys:Array.from(this.cache.keys())}}cleanup(){const e=Date.now();let r=0;for(const[n,o]of this.cache.entries()){const s=o.ttl||this.config.defaultTtl;e-o.timestamp>s&&(this.cache.delete(n),r++)}return r>0&&this.log(`Cleanup removed ${r} expired entries`),r}log(e,r){this.config.enableLogging&&console.log(`[MemoryCacheProvider] ${e}`,r||"")}};ur(hT,"MemoryCacheProvider");var Vf=hT,mT=class{constructor(e,r=!0){hs(this,"cacheProvider"),hs(this,"provider"),hs(this,"config");var n,o,s;if(this.provider=e,r===!1)this.cacheProvider=null,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if(r===!0)this.cacheProvider=new Vf,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if("get"in r&&"set"in r)this.cacheProvider=r,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else{const c=r;this.cacheProvider=new Vf({maxSize:c.maxSize,defaultTtl:c.defaultTTL,enableLogging:c.enableLogging}),this.config={defaultTTL:(n=c.defaultTTL)!=null?n:300*1e3,maxSize:(o=c.maxSize)!=null?o:100,enableLogging:(s=c.enableLogging)!=null?s:!1}}}async get(e){if(!this.cacheProvider)return await this.provider.get(e);const r=`get:${e}`,n=this.cacheProvider.get(r);if(n)return this.log(`Cache hit for get(${e})`),{...await this.provider.get(e),data:n,cached:!0};this.log(`Cache miss for get(${e}), fetching from provider`);const o=await this.provider.get(e);return o.data&&this.cacheProvider.set(r,o.data,this.config.defaultTTL),{...o,cached:!1}}async select(e,r={}){if(!this.cacheProvider)return await this.provider.select(e,r);const n=`select:${e}:${JSON.stringify(r)}`,o=this.cacheProvider.get(n);if(o)return this.log(`Cache hit for select(${e})`),{...await this.provider.select(e,r),data:o,cached:!0};this.log(`Cache miss for select(${e}), fetching from provider`);const s=await this.provider.select(e,r);return s.data&&this.cacheProvider.set(n,s.data,this.config.defaultTTL),{...s,cached:!1}}clearCache(e){var r,n;if(!this.cacheProvider){this.log("No cache provider, nothing to clear");return}if(e)if(e.includes("*")){const o=(n=(r=this.cacheProvider).getStats)==null?void 0:n.call(r);if(o){const s=e.replace(/\*/g,".*"),c=new RegExp(s);for(const u of o.keys)c.test(u)&&(this.cacheProvider.clear(u),this.log(`Cleared cache key: ${u}`))}else this.log("Cache provider does not support pattern clearing")}else this.cacheProvider.clear(e),this.log(`Cleared cache key: ${e}`);else this.cacheProvider.clear(),this.log("Cleared all cache")}getCacheStats(){var e,r,n,o,s,c;if(!this.cacheProvider)return{totalEntries:0,validEntries:0,expiredEntries:0,maxSize:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!1};const u=(r=(e=this.cacheProvider).getStats)==null?void 0:r.call(e);return{totalEntries:(n=u==null?void 0:u.size)!=null?n:0,validEntries:(o=u==null?void 0:u.size)!=null?o:0,expiredEntries:0,maxSize:(s=u==null?void 0:u.maxSize)!=null?s:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!0,keys:(c=u==null?void 0:u.keys)!=null?c:[]}}setCacheEntryManually(e,r,n){if(!this.cacheProvider){this.log("No cache provider, cannot set cache entry manually");return}this.cacheProvider.set(e,r,n||this.config.defaultTTL),this.log(`Manually set cache entry: ${e} (TTL: ${n||this.config.defaultTTL}ms)`)}log(e){this.config.enableLogging&&console.log(`[CachedDataProvider] ${e}`)}};ur(mT,"CachedDataProvider");var DS=mT,M7=class{constructor(e={},r=!0,n=1){if(hs(this,"data"),e=this.convertDottedNotation(e.data||e),r){const{MustacheTemplateProvider:o}=(lT(),d7(aT)),s=new o(n);for(const c of Object.keys(e)){const u=e[c];if(typeof u=="string")e[c]=s.resolve(u,e);else if(typeof u=="object"){const d=JSON.stringify(u),f=s.resolve(d,e);e[c]=JSON.parse(f)}}}this.data=e}async get(e){const r=this.getValueByPath(e);return r===void 0?{data:void 0}:{data:Array.isArray(r)?r[0]:r,cached:!1,meta:{schema:this.inferModelName(e),version:"1.0.0",slug:e}}}async select(e,r={}){`${e}${JSON.stringify(r)}`;let o=this.findItemsBySchema(e);r.filters&&(o=this.applyFilters(o,r.filters)),r.sort&&r.sort!=="none"&&r.orderBy&&(o=this.applySorting(o,r.orderBy,r.sort));const s=o.length,c=r.offset||0,u=r.limit||s,f=o.slice(c,c+u).map(h=>h);return{data:f,cached:!1,meta:{schema:e,version:"1.0.0",total:s,offset:c,limit:Math.min(u,f.length)}}}updateData(e){this.data=this.convertDottedNotation(e)}convertDottedNotation(e){const r={};for(const[n,o]of Object.entries(e))if(n.includes(".")){const s=n.split(".");let c=r;for(let d=0;d<s.length-1;d++){const f=s[d];c[f]||(c[f]={}),c=c[f]}const u=s[s.length-1];c[u]=o}else o&&typeof o=="object"&&!Array.isArray(o)?r[n]=this.convertDottedNotation(o):r[n]=o;return r}getValueByPath(e){const r=e.replace(/^\//,"").split(/[/.]/);let n=this.data;for(const o of r){if(n==null)return;if(Array.isArray(n)&&!isNaN(Number(o)))n=n[Number(o)];else if(typeof n=="object"&&n!==null)n=n[o];else return}return n}findItemsBySchema(e){const r=[];return this.data[e]&&Array.isArray(this.data[e])&&r.push(...this.data[e]),this.searchObjectForSchema(this.data,e,r),r}searchObjectForSchema(e,r,n){typeof e!="object"||e===null||(Array.isArray(e)?e.forEach(o=>this.searchObjectForSchema(o,r,n)):((e.modelName===r||e.schema===r)&&n.push(e),Object.values(e).forEach(o=>{this.searchObjectForSchema(o,r,n)})))}applyFilters(e,r){return e.filter(n=>Object.entries(r).every(([o,s])=>this.getValueByPath.call({data:n},o)===s))}applySorting(e,r,n){return[...e].sort((o,s)=>{const c=this.getValueByPath.call({data:o},r),u=this.getValueByPath.call({data:s},r);return c<u?n==="asc"?-1:1:c>u?n==="asc"?1:-1:0})}inferModelName(e){return e.replace(/^\//,"").split("/")[0]||"unknown"}generateSlug(e,r){return`/${e.toLowerCase()}/${r}`}};ur(M7,"JsonDataProvider");lT();const R7=Ee([l.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),l.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),A7=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"})),gT=Ee(l.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),_7=Ee(l.jsx("path",{d:"M6.36 18.78 6.61 21l1.62-1.54 2.77-7.6c-.68-.17-1.28-.51-1.77-.98zm8.41-7.9c-.49.47-1.1.81-1.77.98l2.77 7.6L17.39 21l.26-2.22zM15 8c0-1.3-.84-2.4-2-2.82V3h-2v2.18C9.84 5.6 9 6.7 9 8c0 1.66 1.34 3 3 3s3-1.34 3-3m-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"})),FS=Ee(l.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),L7=Ee(l.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),HS=Ee(l.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),O7=Ee(l.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),US=Ee(l.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),VS=Ee(l.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"})),$7=Ee(l.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),Nh=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),WS=Ee(l.jsx("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"})),qS=Ee(l.jsx("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z"})),N7=Ee(l.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"})),GS=Ee(l.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),B7=Ee(l.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),Xy=Ee(l.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),yT=Ee(l.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Uo=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),z7=Ee(l.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"})),D7=Ee(l.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"})),F7=Ee(l.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"})),XS=Ee(l.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"})),KS=Ee(l.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),vT=Ee(l.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),xT=Ee(l.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),H7=Ee(l.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"})),Id=Ee(l.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),QS=Ee(l.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),U7=Ee(l.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"})),Md=Ee(l.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),Ky=Ee(l.jsx("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"})),V7=Ee(l.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),nd=Ee(l.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),ty=Ee(l.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"})),Xo=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),W7=Ee(l.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),q7=Ee(l.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),G7=Ee(l.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),X7=Ee(l.jsx("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"})),Qy=Ee(l.jsx("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"})),K7=Ee(l.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"})),Q7=Ee(l.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})),Y7=Ee(l.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"})),J7=Ee(l.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),bT=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),Z7=Ee(l.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})),wT=Ee(l.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),eB=Ee(l.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Yy=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),ry=Ee(l.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),tB=Ee(l.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 11.17-1.41 1.42L6 12l3.59-3.59L11 9.83 8.83 12zm1-9.92c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m2.41 11.34L13 14.17 15.17 12 13 9.83l1.41-1.42L18 12z"})),rB=Ee(l.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"})),nB=Ee(l.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z"})),ST=Ee(l.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),oB=Ee(l.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),iB=Ee(l.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})),sB=Ee(l.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"})),aB=Ee(l.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"})),kf=Ee(l.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),lB=Ee(l.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),ec=Ee(l.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"})),Jy=Ee(l.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),YS=Ee(l.jsx("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"})),cB=Ee(l.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),uB=Ee(l.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),dB=Ee([l.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),l.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),CT=Ee(l.jsx("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"})),pB=Ee(l.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),fB=Ee(l.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),ET=Ee(l.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"})),hB=Ee(l.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),mB=Ee(l.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.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.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"})),gB=Ee(l.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"})),JS=Ee(l.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),hc=Ee(l.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),yB=Ee([l.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),l.jsx("path",{d:"M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99m9.08 4.01c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),vB=Ee(l.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"})),xB=Ee(l.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"})),mc=Ee(l.jsx("path",{d:"M8 5v14l11-7z"})),bB=Ee([l.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),l.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),ZS=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),nl=Ee(l.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),wB=Ee(l.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"})),SB=Ee(l.jsx("path",{d:"M12 2.5s4.5 2.04 4.5 10.5c0 2.49-1.04 5.57-1.6 7H9.1c-.56-1.43-1.6-4.51-1.6-7C7.5 4.54 12 2.5 12 2.5m2 8.5c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-6.31 9.52c-.48-1.23-1.52-4.17-1.67-6.87l-1.13.75c-.56.38-.89 1-.89 1.67V22zM20 22v-5.93c0-.67-.33-1.29-.89-1.66l-1.13-.75c-.15 2.69-1.2 5.64-1.67 6.87z"})),CB=Ee(l.jsx("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"})),EB=Ee(l.jsx("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18c-1.16.41-2 1.51-2 2.82 0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.3-.84-2.4-2-2.82"})),f0=Ee(l.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),Bh=Ee(l.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),TB=Ee(l.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"})),h0=Ee(l.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),eC=Ee(l.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),kB=Ee(l.jsx("path",{d:"M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.66 1.34 3 3 3M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18z"})),jB=Ee(l.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"})),PB=Ee(l.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z"})),sf=Ee(l.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"})),TT=Ee(l.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),IB=Ee(l.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})),MB=Ee(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"})),m0=Ee(l.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),RB=Ee([l.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),l.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),l.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),l.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")]),AB=Ee(l.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),_B=Ee(l.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"})),LB=Ee(l.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),OB=Ee(l.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"})),g0=Ee(l.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),Wf=Ee(l.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"})),$B=Ee(l.jsx("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),od=Ee(l.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),kT=Ee(l.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"})),qf=Ee(l.jsx("path",{d:"M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7zm-4 4c-1.29-1.29-2.84-2.13-4.49-2.56l3.53 3.53zM2 3.05 5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24C7.81 10.89 6.27 11.73 5 13v.01L6.99 15c1.36-1.36 3.14-2.04 4.92-2.06L18.98 20l1.27-1.26L3.29 1.79zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0"})),NB=Ee(l.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"})),BB=Ee(l.jsx("path",{d:"M9.68 13.69 12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28m-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6"}));var oi;(function(t){t[t.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",t[t.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",t[t.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(oi||(oi={}));var zB=(function(){function t(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return t.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},t.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.findTransformMetadatas=function(e,r,n){return this.findMetadatas(this._transformMetadatas,e,r).filter(function(o){return!o.options||o.options.toClassOnly===!0&&o.options.toPlainOnly===!0?!0:o.options.toClassOnly===!0?n===oi.CLASS_TO_CLASS||n===oi.PLAIN_TO_CLASS:o.options.toPlainOnly===!0?n===oi.CLASS_TO_PLAIN:!0})},t.prototype.findExcludeMetadata=function(e,r){return this.findMetadata(this._excludeMetadatas,e,r)},t.prototype.findExposeMetadata=function(e,r){return this.findMetadata(this._exposeMetadatas,e,r)},t.prototype.findExposeMetadataByCustomName=function(e,r){return this.getExposedMetadatas(e).find(function(n){return n.options&&n.options.name===r})},t.prototype.findTypeMetadata=function(e,r){return this.findMetadata(this._typeMetadatas,e,r)},t.prototype.getStrategy=function(e){var r=this._excludeMetadatas.get(e),n=r&&r.get(void 0),o=this._exposeMetadatas.get(e),s=o&&o.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"},t.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},t.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},t.prototype.getExposedProperties=function(e,r){return this.getExposedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===oi.CLASS_TO_CLASS||r===oi.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===oi.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.getExcludedProperties=function(e,r){return this.getExcludedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===oi.CLASS_TO_CLASS||r===oi.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===oi.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},t.prototype.getMetadata=function(e,r){var n=e.get(r),o;n&&(o=Array.from(n.values()).filter(function(v){return v.propertyName!==void 0}));for(var s=[],c=0,u=this.getAncestors(r);c<u.length;c++){var d=u[c],f=e.get(d);if(f){var h=Array.from(f.values()).filter(function(v){return v.propertyName!==void 0});s.push.apply(s,h)}}return s.concat(o||[])},t.prototype.findMetadata=function(e,r,n){var o=e.get(r);if(o){var s=o.get(n);if(s)return s}for(var c=0,u=this.getAncestors(r);c<u.length;c++){var d=u[c],f=e.get(d);if(f){var h=f.get(n);if(h)return h}}},t.prototype.findMetadatas=function(e,r,n){var o=e.get(r),s;o&&(s=o.get(n));for(var c=[],u=0,d=this.getAncestors(r);u<d.length;u++){var f=d[u],h=e.get(f);h&&h.has(n)&&c.push.apply(c,h.get(n))}return c.slice().reverse().concat((s||[]).slice().reverse())},t.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var r=[],n=Object.getPrototypeOf(e.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(e,r)}return this._ancestorsMap.get(e)},t})(),DB=new zB;function lo(t,e){return e===void 0&&(e={}),function(r,n){var o=Reflect.getMetadata("design:type",r,n);DB.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:o,typeFunction:t,options:e})}}var tC={};const Zy={xs:0,sm:600,md:900,lg:1200,xl:1536},rC={"extra-small":"xs",small:"sm",medium:"md",large:"lg","extra-large":"xl"};function nC(t){return t===!1||t===void 0?!1:t in Zy?t:t in rC?rC[t]:"lg"}const FB={width:{tiny:120,small:200,medium:300,large:400,"x-large":500,huge:600},height:{tiny:200,small:300,medium:400,large:500,"x-large":600,huge:800},maxWidth:{tiny:300,small:600,medium:900,large:1200,"x-large":1536,huge:1920},maxHeight:{tiny:200,small:400,medium:600,large:800,"x-large":1e3,huge:1200},minWidth:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500},minHeight:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500}},HB=/^(\d+(\.\d+)?(px|%|em|rem|vh|vw|fr|ch|ex)|auto|inherit|initial|unset|min-content|max-content|fit-content)$/;function No(t,e="width"){if(t==null)return;if(typeof t=="number")return t;if(t==="auto")return"auto";if(t==="grow")return"1";const r=FB[e];if(r&&t in r)return r[t];if((e==="maxWidth"||e==="width")&&t in Zy)return Zy[t];if(typeof t=="string")return HB.test(t)||console.warn(`[QwickApps] Invalid CSS dimension value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t}function UB(t){return{width:No(t.width,"width"),height:No(t.height,"height"),minWidth:No(t.minWidth,"minWidth"),minHeight:No(t.minHeight,"minHeight"),maxWidth:No(t.maxWidth,"maxWidth"),maxHeight:No(t.maxHeight,"maxHeight")}}const Cu={none:0,tiny:.5,small:1,medium:2,large:3,huge:4},oC=/^(\d+(\.\d+)?(px|em|rem|%)|0|auto|inherit|initial|unset)$/;function Ln(t){if(t!=null){if(typeof t=="number")return t;if(t in Cu)return Cu[t];if(typeof t=="string"){const e=t.split(" ");return e.length>1&&e.every(n=>oC.test(n)||n in Cu)?e.map(n=>n in Cu?`${Cu[n]*8}px`:n).join(" "):(oC.test(t)||console.warn(`[QwickApps] Invalid CSS spacing value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t)}}}function VB(t){const e={};return t.padding!==void 0&&(e.p=Ln(t.padding)),t.paddingTop!==void 0&&(e.pt=Ln(t.paddingTop)),t.paddingRight!==void 0&&(e.pr=Ln(t.paddingRight)),t.paddingBottom!==void 0&&(e.pb=Ln(t.paddingBottom)),t.paddingLeft!==void 0&&(e.pl=Ln(t.paddingLeft)),t.paddingX!==void 0&&(e.px=Ln(t.paddingX)),t.paddingY!==void 0&&(e.py=Ln(t.paddingY)),t.margin!==void 0&&(e.m=Ln(t.margin)),t.marginTop!==void 0&&(e.mt=Ln(t.marginTop)),t.marginRight!==void 0&&(e.mr=Ln(t.marginRight)),t.marginBottom!==void 0&&(e.mb=Ln(t.marginBottom)),t.marginLeft!==void 0&&(e.ml=Ln(t.marginLeft)),t.marginX!==void 0&&(e.mx=Ln(t.marginX)),t.marginY!==void 0&&(e.my=Ln(t.marginY)),e}const zn=Symbol("QwickAppComponent");function Mn(t){const{span:e,xs:r,sm:n,md:o,lg:s,xl:c,className:u,sx:d,style:f,width:h,height:v,minWidth:m,minHeight:y,maxWidth:x,maxHeight:w,padding:C,paddingTop:j,paddingRight:k,paddingBottom:I,paddingLeft:E,paddingX:M,paddingY:R,margin:L,marginTop:A,marginRight:F,marginBottom:G,marginLeft:$,marginX:P,marginY:q,background:V,backgroundImage:O,backgroundGradient:U,textAlign:K,id:Y,role:te,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":de,onClick:J,onMouseEnter:oe,onMouseLeave:Z,onFocus:pe,onBlur:Se,...se}=t,ae=b.useMemo(()=>e||r||n||o||s||c?{span:e,xs:e||r,sm:e||n,md:e||o,lg:e||s,xl:e||c}:null,[e,r,n,o,s,c]),Fe=b.useMemo(()=>UB({width:h,height:v,minWidth:m,minHeight:y,maxWidth:x,maxHeight:w}),[h,v,m,y,x,w]),ze=b.useMemo(()=>VB({padding:C,paddingTop:j,paddingRight:k,paddingBottom:I,paddingLeft:E,paddingX:M,paddingY:R,margin:L,marginTop:A,marginRight:F,marginBottom:G,marginLeft:$,marginX:P,marginY:q}),[C,j,k,I,E,M,R,L,A,F,G,$,P,q]),Oe=b.useMemo(()=>{const Ke={};return U?Ke.background=U:O?(Ke.backgroundImage=`url(${O})`,Ke.backgroundSize="cover",Ke.backgroundPosition="center",Ke.backgroundRepeat="no-repeat"):V&&(Ke.background=V),K&&(Ke.textAlign=K),Ke},[V,O,U,K]),Be=b.useMemo(()=>({...Fe,...ze,...Oe,...d}),[Fe,ze,Oe,d]);return{gridProps:ae,styleProps:{className:u,sx:Be,style:f},htmlProps:{id:Y,role:te,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":de,onClick:J,onMouseEnter:oe,onMouseLeave:Z,onFocus:pe,onBlur:Se},restProps:se}}class WB{constructor(e){this.name=e}debug(e,...r){console.debug(`[${this.name}] ${e}`,...r)}info(e,...r){console.info(`[${this.name}] ${e}`,...r)}warn(e,...r){console.warn(`[${this.name}] ${e}`,...r)}error(e,...r){console.error(`[${this.name}] ${e}`,...r)}}function Ei(t){try{return require("@qwickapps/logging").getLogger(t)}catch{return new WB(t)}}const qB={scaffold:Ei("Scaffold"),navigation:Ei("Navigation"),auth:Ei("Auth"),theme:Ei("Theme"),palette:Ei("Palette"),form:Ei("Form"),layout:Ei("Layout"),menu:Ei("Menu"),router:Ei("Router")};class GB{constructor(e){this.log=Ei("ContentResolver"),this.enableLogging=e.enableLogging||!1,this.templateResolver=e.templateResolver||new p0,e.cacheProvider===!0?(new Vf({enableLogging:e.enableLogging||!1}),this.dataProvider=new DS(e.dataProvider)):e.cacheProvider===!1?this.dataProvider=e.dataProvider:(new Vf({enableLogging:e.enableLogging||!1}),this.dataProvider=new DS(e.dataProvider)),this.log.debug("ContentResolver initialized",{dataProvider:e.dataProvider?e.dataProvider.constructor.name:"none",templateResolver:this.templateResolver.constructor.name,cacheProvider:e.cacheProvider?e.cacheProvider===!0?"MemoryCacheProvider(default)":e.cacheProvider.constructor.name:"disabled"})}async get(e){return this.dataProvider.get(e)}async select(e,r){return this.dataProvider.select(e,r)}async resolveTemplate(e){if(this.log.debug(`Resolving template: ${e}`),!e||!e.includes("{{"))return e;const r=await this.createLazyContext(e);try{const n=this.templateResolver.resolve(e,r);return this.log.debug(`Template resolved: ${e} -> ${n}`),n}catch(n){throw this.log.debug(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`),n}}async createLazyContext(e){const r=/\{\{([^}]+)\}\}/g,n=Array.from(e.matchAll(r)),o=new Set;for(const c of n){const u=c[1].trim(),[d]=u.split(".");o.add(d)}const s={};for(const c of o)try{const u=await this.select(c);if(u.data&&u.data.length>0)s[c]=u.data[0];else{const d=await this.get(c);d.data&&(s[c]=d.data)}}catch(u){this.log.error(`Failed to load data for ${c}: ${u instanceof Error?u.message:String(u)}`)}return s}}const y0=b.createContext(null);function XB({dataSource:t,children:e}){const r=new GB(t),n={provider:r,get:async o=>{const s=await r.get(o);return s&&s.data?s.data:void 0},select:async(o,s)=>{const c=await r.select(o,s);return c&&Array.isArray(c.data)?c.data:[]},resolveTemplate:o=>r.resolveTemplate(o)};return l.jsx(y0.Provider,{value:n,children:e})}function KB(){const t=b.useContext(y0);if(!t)throw new Error("useDataContext must be used within a DataProvider. Did you wrap your component with <DataProvider>?");return t}function QB(t){const e=b.useContext(y0),[r,n]=b.useState(void 0),[o,s]=b.useState(!0),[c,u]=b.useState(null);return b.useEffect(()=>{if(!e){s(!1);return}(async()=>{if(!t){s(!1);return}try{s(!0),u(null);const f=await e.get(t);n(f),s(!1)}catch(f){u(f instanceof Error?f:new Error(String(f))),s(!1)}})()},[e,t]),e?{data:r,loading:o,error:c}:{data:void 0,loading:!1,error:null}}function YB(t){const{resolveTemplate:e}=KB(),[r,n]=b.useState(t),[o,s]=b.useState(!1),[c,u]=b.useState(null);return b.useEffect(()=>{let d=!0;async function f(){if(!t){n(t);return}try{s(!0),u(null);const h=await e(t);d&&(n(h),s(!1))}catch(h){d&&(u(h instanceof Error?h:new Error(String(h))),n(t),s(!1))}}return f(),()=>{d=!1}},[t,e]),{resolved:r,loading:o,error:c}}function jT(t){const{resolved:e,loading:r,error:n}=YB(t);return r?null:n?`[Template Error: ${n.message}]`:e}function _u(t,...e){const r=String.raw(t,...e),n=()=>jT(r);return l.jsx(n,{})}_u.wrap=t=>(e,...r)=>{const n=String.raw(e,...r),o=()=>{const s=jT(n);return s?l.jsx(t,{children:s}):null};return l.jsx(o,{})};function Ji(t,e){const r=t&&t.trim().length>0,n=QB(r?t:""),o=b.useMemo(()=>!r||n.data===void 0?e||{}:{...e||{},...n.data},[r,n.data,e]);return{...o,$loading:n.loading,$error:n.error,$dataSource:t,$cached:!1,...Object.prototype.hasOwnProperty.call(o,"loading")?{}:{loading:n.loading},...Object.prototype.hasOwnProperty.call(o,"error")?{}:{error:n.error},cached:!1}}const PT=$t.createContext({appName:"QwickApps",logo:void 0,appId:!0,enableScaffolding:!1,navigationItems:[],appBar:void 0,showAppBar:!0,appBarHeight:64,showThemeSwitcher:!1,showPaletteSwitcher:!1,updateConfig:()=>{}}),v0=()=>{const t=$t.useContext(PT);if(!t)throw new Error("useQwickApp must be used within a QwickApp provider");return t},JB=t=>{if(typeof document>"u"||typeof window>"u")return;document.documentElement.setAttribute("data-theme",t),window.dispatchEvent(new CustomEvent("themeChange",{detail:{theme:t}}))},ZB={id:"default",name:"Default",description:"Classic blue and neutral colors",primaryColor:"#007bff"},ez={id:"autumn",name:"Autumn",description:"Warm oranges and golden yellows",primaryColor:"#ea580c"},tz={id:"ocean",name:"Ocean",description:"Deep blues and aqua teals",primaryColor:"#0891b2"},rz={id:"spring",name:"Spring",description:"Fresh greens and soft pinks",primaryColor:"#16a34a"},nz={id:"winter",name:"Winter",description:"Cool blues and icy whites",primaryColor:"#0077be"},oz={id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",primaryColor:"#8b5cf6"},iz=[ZB,tz,oz,nz,ez,rz],iC=t=>{if(!t||typeof window>"u")return null;try{const e=localStorage.getItem(t);if(e&&["light","dark","system"].includes(e))return e}catch(e){console.warn("[persistenceUtils] Theme localStorage read failed:",e)}return null},sz=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Theme localStorage write failed:",r)}},az=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Theme localStorage clear failed:",e)}},sC=(t,e)=>{if(!t||typeof window>"u")return null;try{const r=localStorage.getItem(t);if(r&&e.includes(r))return r}catch(r){console.warn("[persistenceUtils] Palette localStorage read failed:",r)}return null},lz=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Palette localStorage write failed:",r)}},cz=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Palette localStorage clear failed:",e)}},uz={enableRemote:!0,remoteUrl:"https://qwickapps.com/palettes/manifest.json",localPath:"/palettes/manifest.json"};let Dl=null,aC=!1;async function lC(t){try{const e=await fetch(t,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!e.ok)return console.warn(`[PaletteManifest] Failed to fetch from ${t}: ${e.status} ${e.statusText}`),null;const r=await e.json();return!r.version||!Array.isArray(r.palettes)?(console.warn(`[PaletteManifest] Invalid manifest structure from ${t}`),null):r}catch{return null}}function dz(...t){const e=new Map;let r="0.0.0";for(const n of t)if(n){n.version>r&&(r=n.version);for(const o of n.palettes)e.set(o.id,o)}return{version:r,palettes:Array.from(e.values())}}async function pz(t={}){if(Dl)return Dl;if(aC)return cC();aC=!0;const e={...uz,...t},r=[];if(e.enableRemote){const o=await lC(e.remoteUrl);r.push(o)}if(typeof window<"u"){const o=await lC(e.localPath);r.push(o)}const n=dz(...r);return n.palettes.length===0?(Dl=cC(),Dl):(Dl=n,Dl)}function cC(){return{version:"1.4.9",palettes:[{id:"default",name:"Default",description:"Classic blue and neutral color scheme",version:"1.4.9",file:"PaletteDefault.css",primaryColor:"#007bff",inlined:!0},{id:"autumn",name:"Autumn",description:"Warm oranges, golden yellows, and earthy browns",version:"1.4.9",file:"PaletteAutumn.css",primaryColor:"#ea580c",inlined:!1},{id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",version:"1.4.9",file:"PaletteCosmic.css",primaryColor:"#8b5cf6",inlined:!1},{id:"ocean",name:"Ocean",description:"Deep blues, aqua teals, and seafoam greens",version:"1.4.9",file:"PaletteOcean.css",primaryColor:"#0891b2",inlined:!1},{id:"spring",name:"Spring",description:"Fresh greens, soft pinks, and bright yellows",version:"1.4.9",file:"PaletteSpring.css",primaryColor:"#16a34a",inlined:!1},{id:"winter",name:"Winter",description:"Cool blues, icy whites, and frosty grays",version:"1.4.9",file:"PaletteWinter.css",primaryColor:"#0077be",inlined:!1}]}}async function fz(t,e){return(await pz(e)).palettes.find(n=>n.id===t)||null}const Gs=new Set,ki=new Map,uC=["https://qwickapps.com/palettes/","/palettes/"];let hz={enableRemote:!0};async function mz(t,e){if(Gs.has(t))return Promise.resolve();if(ki.has(t))return ki.get(t);const r=gz(t,e);return ki.set(t,r),r}async function gz(t,e){const r={...hz,...e};if(t==="default"){Gs.add(t),ki.delete(t);return}if(typeof document>"u"){Gs.add(t),ki.delete(t);return}if(document.querySelector(`link[data-palette-id="${t}"]`)){Gs.add(t),ki.delete(t);return}try{const o=await fz(t,r);if(!o){Gs.add(t),ki.delete(t);return}if(o.inlined){Gs.add(t),ki.delete(t);return}const u=!!1&&o.fileMinified?o.fileMinified:o.file,d=[];r.enableRemote&&d.push(`${uC[0]}${u}`),d.push(`${uC[1]}${u}`);let f=!1;for(const h of d)if(await yz(h,t)){f=!0;break}Gs.add(t),ki.delete(t)}catch{Gs.add(t),ki.delete(t)}}function yz(t,e){return new Promise(r=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.setAttribute("data-palette-id",e),n.onload=()=>{r(!0)},n.onerror=()=>{document.head.removeChild(n),r(!1)},document.head.appendChild(n)})}const IT=b.createContext(null),MT=()=>{const t=b.useContext(IT);if(!t)throw new Error("usePalette must be used within a PaletteProvider");return t},Ba=iz,dC=(t,e=!0)=>t&&Ba.some(r=>r.id===t)?t:(e&&console.warn(`[PaletteProvider] Invalid defaultPalette '${t}'. Using 'default'.`),"default"),vz=({children:t,appId:e,defaultPalette:r="default"})=>{const n=$t.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.palette`;const w="qwickapps-react-framework-palette";return console.warn(`[PaletteProvider] Using default storage key '${w}'. Consider providing an appId for production apps to avoid conflicts. Example: <PaletteProvider appId="com.mycompany.myapp">`),w},[e]),o=Ba.map(w=>w.id),[s,c]=b.useState(()=>sC(n,o)),[u,d]=b.useState(()=>sC(n,o)||dC(r));b.useEffect(()=>{typeof document<"u"&&mz(u).then(()=>{document.documentElement.setAttribute("data-palette",u),setTimeout(()=>{const w=new CustomEvent("palette-changed",{detail:{palette:u}});window.dispatchEvent(w)},50)}).catch(w=>{console.error(`[PaletteContext] Failed to load palette "${u}":`,w),document.documentElement.setAttribute("data-palette",u);const C=new CustomEvent("palette-changed",{detail:{palette:u}});window.dispatchEvent(C)})},[u]);const x={currentPalette:u,preferredPalette:s,availablePalettes:Ba,isPersistent:n!==null,setPreferredPalette:w=>{Ba.find(j=>j.id===w)?(c(w),d(w),lz(n,w)):console.warn(`Palette "${w}" not found. Available palettes:`,Ba.map(j=>j.id))},clearPreferredPalette:()=>{c(null),cz(n);const w=dC(r,!1);d(w)},getPreferredPalette:()=>s,getCurrentPalette:()=>u,setCurrentPalette:w=>{Ba.find(j=>j.id===w)?d(w):console.warn(`Palette "${w}" not found. Available palettes:`,Ba.map(j=>j.id))}};return l.jsx(IT.Provider,{value:x,children:t})},RT=b.createContext(null),AT=()=>{const t=b.useContext(RT);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t},pC=(t,e=!0)=>t&&["light","dark","system"].includes(t)?t:(e&&console.warn(`[ThemeProvider] Invalid defaultTheme '${t}'. Using 'system'.`),"system"),xz=({children:t,appId:e,includePalette:r=!0,defaultTheme:n="light",defaultPalette:o})=>{const c=$t.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.theme`;const A="qwickapps-react-framework-theme";return console.warn(`[ThemeProvider] Using default storage key '${A}'. Consider providing an appId for production apps to avoid conflicts. Example: <ThemeProvider appId="com.mycompany.myapp">`),A},[e]),[u,d]=b.useState(()=>iC(c)),[f,h]=b.useState(()=>iC(c)||pC(n)),[v,m]=b.useState(0),y=Y8("(prefers-color-scheme: dark)"),x=f==="system"?y?"dark":"light":f;b.useEffect(()=>{if(typeof window<"u"){const A=()=>{m(G=>G+1)},F=()=>{m(G=>G+1)};return window.addEventListener("palette-changed",A),window.addEventListener("theme-changed",F),()=>{window.removeEventListener("palette-changed",A),window.removeEventListener("theme-changed",F)}}},[]),b.useEffect(()=>{if(typeof window<"u"){const A=new CustomEvent("theme-changed",{detail:{theme:x}});window.dispatchEvent(A)}},[x]),b.useEffect(()=>{typeof window<"u"&&JB(x)},[x]);const w=A=>typeof window<"u"&&typeof document<"u"?getComputedStyle(document.documentElement).getPropertyValue(A).trim():"",C=$t.useMemo(()=>{const A=x==="dark",F=w("--theme-primary-light")||(A?"#87ceeb":"#4a90e2"),G=w("--theme-primary")||(A?"#90caf9":"#1976d2"),$=w("--theme-primary-dark")||(A?"#1a365d":"#0056b3"),P=w("--theme-on-primary")||(A?"#000000":"#ffffff"),q=w("--theme-secondary-light")||(A?"#adb5bd":"#868e96"),V=w("--theme-secondary")||(A?"#f48fb1":"#dc004e"),O=w("--theme-secondary-dark")||(A?"#6c757d":"#495057"),U=w("--theme-on-secondary")||(A?"#b0b0b0":"#666666"),K=w("--theme-error-light")||(A?"#f9c2c2":"#f5c6cb"),Y=w("--theme-error")||(A?"#f87171":"#dc3545"),te=w("--theme-error-dark")||(A?"#b91c1c":"#a71d2a"),Q=w("--theme-warning-light")||(A?"#fbbf24":"#ffc107"),X=w("--theme-warning")||(A?"#fbbf24":"#ffc107"),re=w("--theme-warning-dark")||(A?"#b57c00":"#856404"),de=w("--theme-info-light")||(A?"#60a5fa":"#007acc"),J=w("--theme-info")||(A?"#60a5fa":"#007acc"),oe=w("--theme-info-dark")||(A?"#1e3a8a":"#0d6efd"),Z=w("--theme-success-light")||(A?"#4ade80":"#28a745"),pe=w("--theme-success")||(A?"#4ade80":"#28a745"),Se=w("--theme-success-dark")||(A?"#1f9e3d":"#1c7430"),se=w("--theme-background")||(A?"#121212":"#ffffff"),ae=w("--theme-surface")||(A?"#1e1e1e":"#ffffff"),Fe=w("--theme-text-primary")||(A?"#ffffff":"#000000"),ze=w("--theme-text-secondary")||(A?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.6)"),Oe=w("--theme-on-disabled")||(A?"rgba(255, 255, 255, 0.38)":"rgba(0, 0, 0, 0.38)");return Sh({palette:{mode:x,primary:{main:G,light:F,dark:$,contrastText:P},secondary:{main:V,light:q,dark:O,contrastText:U},error:{light:K,main:Y,dark:te},warning:{light:Q,main:X,dark:re},info:{light:de,main:J,dark:oe},background:{default:se,paper:ae},text:{primary:Fe,secondary:ze,disabled:Oe},success:{light:Z,main:pe,dark:Se}},typography:{fontFamily:'"Segoe UI", "Roboto", "Arial", sans-serif'},components:{MuiButton:{styleOverrides:{root:{textTransform:"none"}}}}})},[x,v]),R={currentTheme:f,preferredTheme:u,actualThemeMode:x,theme:C,isDark:x==="dark",isPersistent:c!==null,setPreferredTheme:A=>{d(A),h(A),sz(c,A)},clearPreferredTheme:()=>{d(null),az(c);const A=pC(n,!1);h(A)},getPreferredTheme:()=>u,getCurrentTheme:()=>f,setCurrentTheme:A=>{h(A)}},L=l.jsx(RT.Provider,{value:R,children:l.jsx(oR,{theme:C,children:t})});return r?l.jsx(vz,{appId:e,defaultPalette:o,children:L}):L},ev={theme:"light",palette:void 0,hideScaffolding:!0,hideInteractiveElements:!1,optimizeForMonochrome:!1,showPrintDate:!0,pageMargins:"12mm"};function bz(t,e){switch(e.type){case"TRIGGER_PRINT":return t.printModeState==="normal"?{...t,printModeState:"applying_print_config",printConfig:e.config?{...ev,...e.config}:ev}:t;case"APPLY_CONFIG":return t.printModeState==="applying_print_config"?{...t,printModeState:"entering_print_mode"}:t;case"VIEW_LOADING":return t.printModeState==="entering_print_mode"?{...t,printModeState:"view_loading"}:t;case"VIEW_READY":return t.printModeState==="view_loading"?{...t,printModeState:"config_applied"}:t.printModeState==="exiting_print_mode"?{...t,printModeState:"restoring_config"}:t;case"CONFIG_APPLIED":return t.printModeState==="config_applied"?{...t,printModeState:"print_mode"}:t;case"EXIT_PRINT_MODE":return t.printModeState!=="normal"&&t.printModeState!=="exiting_print_mode"&&t.printModeState!=="restoring_config"?{...t,printModeState:"exiting_print_mode"}:t;case"RESTORE_CONFIG":return t.printModeState==="restoring_config"?{...t,printModeState:"normal"}:t;case"SET_ORIGINAL_THEME":return{...t,originalTheme:e.theme};case"SET_ORIGINAL_PALETTE":return{...t,originalPalette:e.palette};default:return t}}const _T=b.createContext(null),wz=()=>{const t=b.useContext(_T);if(!t)throw new Error("usePrintMode must be used within a PrintModeProvider");return t},Sz=({children:t})=>{const[e,r]=b.useReducer(bz,{printModeState:"normal",printConfig:ev,originalTheme:null,originalPalette:null}),{updateConfig:n}=v0(),{setCurrentTheme:o,getCurrentTheme:s}=AT(),{setCurrentPalette:c,getCurrentPalette:u}=MT(),d=e.printModeState==="entering_print_mode"||e.printModeState==="view_loading"||e.printModeState==="config_applied"||e.printModeState==="print_mode",f=b.useCallback(x=>{r({type:"TRIGGER_PRINT",config:x})},[]),h=b.useCallback(()=>{r({type:"EXIT_PRINT_MODE"})},[]),v=b.useCallback(()=>{r({type:"VIEW_LOADING"})},[]),m=b.useCallback(()=>{r({type:"VIEW_READY"})},[]);b.useEffect(()=>{if(e.printModeState==="applying_print_config"){if(e.printConfig.hideScaffolding&&n({enableScaffolding:!1}),e.printConfig.theme&&(r({type:"SET_ORIGINAL_THEME",theme:s()}),o(e.printConfig.theme)),e.printConfig.palette&&(r({type:"SET_ORIGINAL_PALETTE",palette:u()}),c(e.printConfig.palette)),typeof document<"u"&&(document.body.classList.add("print-mode"),e.printConfig.optimizeForMonochrome&&document.body.classList.add("print-monochrome"),e.printConfig.hideInteractiveElements&&document.body.classList.add("print-hide-interactive"),e.printConfig.pageMargins&&e.printConfig.pageMargins!=="12mm")){let x=document.querySelector("#qwick-print-margins");x||(x=document.createElement("style"),x.id="qwick-print-margins",document.head.appendChild(x)),x.textContent=`
|
|
332
|
+
@media print {
|
|
333
|
+
@page {
|
|
334
|
+
margin: ${e.printConfig.pageMargins};
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
`}r({type:"APPLY_CONFIG"})}},[e.printModeState,e.printConfig,n,s,u,o,c]),b.useEffect(()=>{if(e.printModeState==="config_applied"){const x=requestAnimationFrame(()=>{r({type:"CONFIG_APPLIED"})});return()=>cancelAnimationFrame(x)}},[e.printModeState]),b.useEffect(()=>{e.printModeState==="exiting_print_mode"&&r({type:"VIEW_READY"})},[e.printModeState]),b.useEffect(()=>{if(e.printModeState==="restoring_config"){if(n({enableScaffolding:!0}),e.originalTheme&&o(e.originalTheme),e.originalPalette&&c(e.originalPalette),typeof document<"u"){document.body.classList.remove("print-mode","print-monochrome","print-hide-interactive");const x=document.querySelector("#qwick-print-margins");x&&x.remove()}r({type:"RESTORE_CONFIG"})}},[e.printModeState,e.originalTheme,e.originalPalette,n,o,c]),b.useEffect(()=>{e.printModeState==="print_mode"&&typeof window<"u"&&window.print()},[e.printModeState]),b.useEffect(()=>{const x=()=>{f()},w=()=>{h()};if(typeof window<"u")return window.addEventListener("beforeprint",x),window.addEventListener("afterprint",w),()=>{window.removeEventListener("beforeprint",x),window.removeEventListener("afterprint",w)}},[h,f]);const y={printModeState:e.printModeState,isPrintMode:d,printConfig:e.printConfig,triggerPrint:f,exitPrintMode:h,onViewLoading:v,onViewReady:m};return l.jsx(_T.Provider,{value:y,children:t})};function Cz(){const t=wz();return{isPrintMode:t.isPrintMode,printConfig:t.printConfig,printModeState:t.printModeState,enterPrintMode:t.triggerPrint,exitPrintMode:t.exitPrintMode,togglePrintMode:e=>{t.isPrintMode?t.exitPrintMode():t.triggerPrint(e)},triggerPrint:t.triggerPrint,onViewLoading:t.onViewLoading,onViewReady:t.onViewReady}}function Ez(t){const e={};for(const[r,n]of Object.entries(t))if(typeof n=="string"&&n.trim())try{const o=new Function("event",n);e[r]=o}catch(o){console.warn(`Invalid event handler string for ${r}:`,n,o)}else typeof n=="function"&&(e[r]=n);return e}function Tz(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid sx JSON string:",t,e);return}return t}}function kz(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid style JSON string:",t,e);return}return t}}function Fl(t){if(t!=null){if(typeof t=="number")return t;if(typeof t=="string"){if(t==="auto"||t==="grow")return t;const e=parseInt(t,10);if(!isNaN(e)&&e>0)return e}}}function jz(t){const{sx:e,style:r,onClick:n,onMouseEnter:o,onMouseLeave:s,onFocus:c,onBlur:u,span:d,xs:f,sm:h,md:v,lg:m,xl:y,backgroundColor:x,...w}=t,C=Tz(e),j=kz(r),k=Ez({onClick:n,onMouseEnter:o,onMouseLeave:s,onFocus:c,onBlur:u}),I={span:Fl(d),xs:Fl(f),sm:Fl(h),md:Fl(v),lg:Fl(m),xl:Fl(y)},E=w.background??x,M={...w,...I,sx:C,style:j,...k,background:E};return delete M.backgroundColor,M}function tv(t){if(!(t==null||typeof t=="boolean")){if(typeof t=="string"||typeof t=="number")return String(t);if(Array.isArray(t))return t.map(tv).filter(Boolean).join("")}}function co(t){const{tagName:e,version:r,role:n,View:o,childrenStrategy:s={mode:"react-children"},finalize:c}=t;function u(f){const{dataSource:h,bindingOptions:v,children:m,...y}=f;let x=y;if(s.mode==="content-prop"){const F=s.propName||"content";if(x[F]==null){const G=tv(m);typeof G=="string"&&(x={...x,[F]:G})}}const w=jz(x),{loading:C,error:j,...k}=Ji(h||void 0,w,void 0,h?{...v}:{});let I=w;h&&!j&&(I={...w,...k});const{gridProps:E,styleProps:M,htmlProps:R,restProps:L}=Mn(I);if(h&&C)return l.jsx("div",{children:"Loading..."});if(h&&j)return console.error("Data binding error:",j),l.jsxs("div",{style:{color:"red",padding:"1rem",border:"1px solid red"},children:["Error loading data: ",j.message]});let A={...L,...M,...R,...n==="container"&&E?{gridProps:E}:{}};return c&&(A=c(A)),s.mode==="content-prop"?l.jsx(o,{...A}):l.jsx(o,{...A,children:m})}const d=u;return d.tagName=e,d.version=r,d[zn]=zn,d.fromJson=function(h){const v=h,{tagName:m,version:y,data:x}=v;if(m!==e)throw new Error(`Tag name mismatch: expected ${e}, got ${m}`);if(y!==r&&console.warn(`Version mismatch for ${e}: expected ${r}, got ${y}`),s.mode==="content-prop"){const w=s.propName||"content",{children:C,...j}=x||{},k={...j,[w]:(x==null?void 0:x[w])||""};return $t.createElement(d,k)}else{const w={...x};return x.children!==void 0&&(w.children=ComponentTransformer.deserialize(x.children)),$t.createElement(d,w)}},d.toJson=function(h){if(s.mode==="content-prop"){const v=s.propName||"content",{children:m,...y}=h||{},x=(h==null?void 0:h[v])??tv(h==null?void 0:h.children),w={};for(const[C,j]of Object.entries(y))typeof j=="function"&&C.startsWith("on")?w[C]=j.toString():typeof j!="function"&&j!==void 0&&j!==null&&(w[C]=j);return{tagName:e,version:r,data:{...w,[v]:x||""}}}else{const v={};for(const[m,y]of Object.entries(h))if(typeof y=="function"&&m.startsWith("on"))v[m]=y.toString();else{if(typeof y=="function")continue;(m==="children"||y!=null)&&(v[m]=y)}return{tagName:e,version:r,data:v}}},d.displayName=`SerializableView(${e})`,d}function Pz({children:t,gridProps:e,...r}){return l.jsx(ee,{...r,...e?{"data-grid":JSON.stringify(e)}:{},component:"div",children:t})}const Iz=co({tagName:"Container",version:"1.0.0",role:"container",View:Pz});function Mz({content:t,language:e="text",showCopy:r=!0,showLineNumbers:n=!1,title:o,wrapLines:s=!1,codeBackground:c,...u}){var M;const d=io(),[f,h]=b.useState(!1),[v,m]=b.useState(!1),y=((M=u.sx)==null?void 0:M.maxHeight)||400,x=t||"";if(!(x!=null&&x.trim()))return l.jsx(Nr,{...u,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...u.sx},children:l.jsx(he,{variant:"body2",color:"text.secondary",children:"No code content provided"})});const w=async()=>{try{await navigator.clipboard.writeText(x),h(!0),m(!0),setTimeout(()=>h(!1),2e3)}catch(R){console.error("Failed to copy code:",R)}},C=x.split(`
|
|
338
|
+
`),j=()=>c||d.palette.grey[d.palette.mode==="dark"?900:50],k=()=>d.palette.grey[d.palette.mode==="dark"?800:200],I=()=>d.palette.text.primary,E=()=>d.palette.divider;return l.jsxs(Nr,{...u,variant:"outlined",sx:{backgroundColor:j(),border:`1px solid ${E()}`,borderRadius:1,overflow:"hidden",position:"relative",...u.sx},children:[(o||r)&&l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1,backgroundColor:k(),borderBottom:`1px solid ${E()}`},children:[o&&l.jsx(he,{variant:"body2",sx:{fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',color:I(),opacity:.8},children:o}),l.jsx(ee,{sx:{ml:"auto"},children:r&&l.jsx(tr,{title:f?"Copied!":"Copy code",children:l.jsx(Xt,{size:"small",onClick:w,sx:{color:I(),opacity:.7,"&:hover":{opacity:1,backgroundColor:d.palette.action.hover}},children:f?l.jsx(yT,{fontSize:"small"}):l.jsx(Id,{fontSize:"small"})})})})]}),l.jsx(ee,{sx:{maxHeight:y,overflow:"auto",position:"relative"},children:l.jsx(ee,{component:"pre",sx:{margin:0,padding:2,fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',fontSize:"0.875rem",lineHeight:1.5,color:I(),backgroundColor:"transparent",overflow:s?"visible":"auto",whiteSpace:s?"pre-wrap":"pre",wordBreak:s?"break-word":"normal"},children:n?l.jsxs(ee,{sx:{display:"flex"},children:[l.jsx(ee,{sx:{pr:2,mr:2,borderRight:`1px solid ${E()}`,color:I(),opacity:.5,userSelect:"none",minWidth:`${String(C.length).length+1}ch`},children:C.map((R,L)=>l.jsx(ee,{sx:{textAlign:"right"},children:L+1},L))}),l.jsx(ee,{sx:{flex:1,minWidth:0},children:l.jsx("code",{children:x})})]}):l.jsx("code",{children:x})})}),l.jsx(JE,{open:v,autoHideDuration:2e3,onClose:()=>m(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:l.jsx(qt,{onClose:()=>m(!1),severity:"success",variant:"filled",children:"Code copied to clipboard!"})})]})}const tc=co({tagName:"Code",version:"1.0.0",role:"view",View:Mz,childrenStrategy:{mode:"content-prop",propName:"content"}});tc.registerPatternHandlers=t=>{t.hasPattern&&(t.hasPattern("pre code")||t.registerPattern("pre code",tc.transformPreCode),t.hasPattern("code.highlight")||t.registerPattern("code.highlight",tc.transformCodeHighlight))};tc.transformPreCode=t=>{var n;const e=t.querySelector("code");return e?{tagName:"Code",props:{language:((n=Array.from(e.classList).find(o=>o.startsWith("language-")))==null?void 0:n.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:e.textContent||""}}:null};tc.transformCodeHighlight=t=>{var r;return{tagName:"Code",props:{language:((r=Array.from(t.classList).find(n=>n.startsWith("language-")))==null?void 0:r.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:t.textContent||""}}};const Rz={add:{emoji:"➕",component:gT},check:{emoji:"✓",component:yT},check_circle:{emoji:"✅",component:Uo},close:{emoji:"✕",component:D7},delete:{emoji:"🗑️",component:Md},edit:{emoji:"✏️",component:nd},refresh:{emoji:"🔄",component:nl},rotate_right:{emoji:"🔄",component:CB},save:{emoji:"💾",component:f0},search:{emoji:"🔍",component:Bh},send:{emoji:"📤",component:h0},share:{emoji:"🔗",component:jB},sync:{emoji:"🔄",component:AB},block:{emoji:"🚫",component:Nh},key:{emoji:"🔑",component:ST},lock:{emoji:"🔒",component:Jy},lock_open:{emoji:"🔓",component:YS},lockopen:{emoji:"🔓",component:YS},login:{emoji:"🔑",component:cB},logout:{emoji:"🚪",component:uB},security:{emoji:"🔐",component:TB},shield:{emoji:"🛡️",component:PB},verified_user:{emoji:"✅",component:OB},visibility:{emoji:"👁️",component:g0},visibility_off:{emoji:"🙈",component:Wf},visibilityoff:{emoji:"🙈",component:Wf},vpn_key:{emoji:"🔐",component:$B},attach_money:{emoji:"💰",component:VS},attachmoney:{emoji:"💰",component:VS},business:{emoji:"🏢",component:GS},cart:{emoji:"🛒",component:sf},shopping_cart:{emoji:"🛒",component:sf},shoppingcart:{emoji:"🛒",component:sf},work:{emoji:"💼",component:NB},workspace_premium:{emoji:"⭐",component:BB},contact:{emoji:"📧",component:ty},email:{emoji:"📧",component:ty},mail:{emoji:"📧",component:ty},notifications:{emoji:"🔔",component:ET},phone:{emoji:"📱",component:vB},support_agent:{emoji:"🛎️",component:RB},article:{emoji:"📰",component:US},blog:{emoji:"📝",component:WS},book:{emoji:"📖",component:WS},gallery:{emoji:"🖼️",component:ry},image:{emoji:"🖼️",component:ry},insert_photo:{emoji:"🖼️",component:ry},library_books:{emoji:"📚",component:aB},news:{emoji:"📰",component:US},photo_library:{emoji:"📸",component:xB},play:{emoji:"▶️",component:mc},play_arrow:{emoji:"▶️",component:mc},portfolio:{emoji:"💼",component:GS},architecture:{emoji:"🏛️",component:_7},autorenew:{emoji:"🔄",component:$7},cloud:{emoji:"☁️",component:F7},cloud_download:{emoji:"☁️⬇️",component:XS},cloud_upload:{emoji:"☁️⬆️",component:KS},clouddownload:{emoji:"☁️⬇️",component:XS},cloudupload:{emoji:"☁️⬆️",component:KS},code:{emoji:"💻",component:vT},computer:{emoji:"💻",component:xT},construction:{emoji:"🚧",component:H7},integration_instructions:{emoji:"🔌",component:tB},memory:{emoji:"🧠",component:CT},psychology:{emoji:"🧠",component:bB},rocket:{emoji:"🚀",component:SB},storage:{emoji:"💾",component:m0},arrow_back:{emoji:"←",component:FS},arrow_forward:{emoji:"→",component:HS},arrowback:{emoji:"←",component:FS},arrowforward:{emoji:"→",component:HS},dashboard:{emoji:"📊",component:U7},download:{emoji:"⬇️",component:V7},explore:{emoji:"🧭",component:G7},home:{emoji:"🏠",component:wT},layers:{emoji:"📚",component:sB},menu:{emoji:"☰",component:pB},route:{emoji:"🗺️",component:EB},settings:{emoji:"⚙️",component:eC},trending_up:{emoji:"📈",component:_B},tune:{emoji:"🎛️",component:LB},inventory:{emoji:"📦",component:rB},inventory_2:{emoji:"📦",component:nB},local_offer:{emoji:"🏷️",component:ec},products:{emoji:"🛍️",component:sf},services:{emoji:"⚙️",component:eC},speed:{emoji:"⚡",component:TT},about:{emoji:"ℹ️",component:Yy},favorite:{emoji:"❤️",component:Qy},heart:{emoji:"❤️",component:Qy},help:{emoji:"❓",component:bT},info:{emoji:"ℹ️",component:Yy},star:{emoji:"⭐",component:IB},account_circle:{emoji:"👤",component:A7},group:{emoji:"👥",component:J7},manage_accounts:{emoji:"👤",component:dB},people:{emoji:"👥",component:JS},person:{emoji:"👤",component:hc},person_search:{emoji:"🔍",component:yB},user:{emoji:"👤",component:hc},users:{emoji:"👥",component:JS}};function rv(t){if(!t)return null;const e=t.toLowerCase(),r=Rz[e];if(r!=null&&r.component){const n=r.component;return l.jsx(n,{})}return console.warn(`[IconMap] Icon "${t}" not found. Add it to iconMap or use registerIcon().`),l.jsx(Z7,{})}const LT=$t.forwardRef((t,e)=>{const{label:r,variant:n="primary",color:o,buttonSize:s="medium",icon:c,endIcon:u,href:d,target:f="_self",onClick:h,action:v,disabled:m=!1,loading:y=!1,fullWidth:x=!1,children:w,...C}=t,j=()=>{switch(n){case"primary":return"contained";case"secondary":return"contained";case"outlined":return"outlined";case"text":return"text";case"contained":return"contained";default:return"contained"}},k=()=>{if(o)return o;switch(n){case"primary":return"primary";case"secondary":return"secondary";case"outlined":return"primary";case"text":return"primary";case"contained":return"primary";default:return"primary"}},I=()=>{const A=j(),F=k();return A==="contained"?{backgroundColor:`var(--theme-${F})`,color:`var(--theme-on-${F})`,"&:hover":{backgroundColor:`var(--theme-${F}-dark)`},"&.Mui-disabled":{backgroundColor:"var(--theme-text-disabled)",color:"var(--theme-on-surface)"}}:A==="outlined"?{borderColor:`var(--theme-${F})`,color:`var(--theme-${F})`,"&:hover":{borderColor:`var(--theme-${F}-dark)`,backgroundColor:`var(--theme-${F}-light)`},"&.Mui-disabled":{borderColor:"var(--theme-border-main)",color:"var(--theme-text-disabled)"}}:{color:`var(--theme-${F})`,"&:hover":{backgroundColor:`var(--theme-${F}-light)`},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}}},E=$t.useCallback(A=>{if(v)switch(A.preventDefault(),v.type){case"navigate":v.url&&(v.target==="_blank"?window.open(v.url,"_blank","noopener,noreferrer"):window.location.href=v.url);break;case"submit":if(v.form){const F=document.getElementById(v.form);F instanceof HTMLFormElement&&F.requestSubmit()}break;case"external":v.url&&window.open(v.url,v.target||"_blank","noopener,noreferrer");break;case"custom":if(v.customHandler&&typeof window<"u"){const F=window[v.customHandler];typeof F=="function"&&F(A)}break}h&&h(A)},[v,h]),M=!!(d&&!m&&!y),R={variant:j(),size:s,disabled:m||y,fullWidth:x,...C,sx:{...I(),textTransform:"none",...y&&{"& .MuiButton-startIcon":{marginRight:1}},...C.sx||{}},startIcon:y?l.jsx(mr,{size:16,color:"inherit","aria-label":"Loading"}):c,endIcon:y?void 0:u};if(M){const A={...R,component:"a",href:d,target:f,rel:f==="_blank"?"noopener noreferrer":void 0,onClick:void 0};return l.jsx(un,{ref:e,...A,children:r||w})}const L={...R,onClick:m||y?void 0:v?E:h};return l.jsx(un,{ref:e,...L,children:r||w})});LT.displayName="ButtonView";const nr=co({tagName:"Button",version:"1.0.0",role:"view",View:LT,finalize:t=>{const e={...t};if(typeof t.icon=="string"){const r=rv(t.icon);e.icon=r||void 0}if(typeof t.endIcon=="string"){const r=rv(t.endIcon);e.endIcon=r||void 0}return e}});nr.registerPatternHandlers=t=>{t.hasPattern("button")||t.registerPattern("button",Az),t.hasPattern('input[type="button"]')||t.registerPattern('input[type="button"]',_z),t.hasPattern('input[type="submit"]')||t.registerPattern('input[type="submit"]',Lz)};function Az(t){const e=t.getAttribute("data-variant")||(t.className.includes("btn-primary")?"primary":t.className.includes("btn-outlined")?"outlined":"secondary"),r=t.hasAttribute("disabled"),n=t.getAttribute("data-href"),o=t.getAttribute("data-target");return{tagName:"Button",props:{label:t.textContent||"Button",variant:e,disabled:r,href:n||void 0,target:o||void 0}}}function _z(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Button",variant:"secondary",disabled:e}}}function Lz(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Submit",variant:"primary",disabled:e,type:"submit"}}}function Oz({content:t,variant:e="body1",color:r="inherit",align:n="inherit",component:o="p",fontWeight:s="inherit",textDecoration:c="none",textTransform:u="none",noWrap:d=!1,paragraph:f=!1,gutterBottom:h=!1,fontSize:v,lineHeight:m,letterSpacing:y,fontFamily:x,customColor:w,maxWidth:C,className:j,style:k,...I}){const E=t||"";if(!E)return null;const M={...k};return v&&(M.fontSize=v),m&&(M.lineHeight=m),y&&(M.letterSpacing=y),x&&(M.fontFamily=x),w&&(M.color=w),C&&(M.maxWidth=C),s!=="inherit"&&(M.fontWeight=s),c!=="none"&&(M.textDecoration=c),u!=="none"&&(M.textTransform=u),I.onClick&&(M.cursor="pointer"),l.jsx(he,{...I,variant:e,color:r,align:n,component:o,noWrap:d,paragraph:f,gutterBottom:h,className:`text ${j||""}`.trim(),style:M,children:E})}const it=co({tagName:"Text",version:"1.0.0",role:"view",View:Oz,childrenStrategy:{mode:"content-prop",propName:"content"}});it.registerPatternHandlers=t=>{const e=it;t.hasPattern("p")||t.registerPattern("p",e.transformParagraph),["h1","h2","h3","h4","h5","h6"].forEach(n=>{t.hasPattern(n)||t.registerPattern(n,o=>e.transformHeading(o,n))}),t.hasPattern("span")||t.registerPattern("span",e.transformSpan)};it.transformParagraph=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body1",component:"p",content:t.textContent||""}});it.transformHeading=(t,e)=>({tagName:"Text",version:"1.0.0",data:{variant:{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}[e]||"h4",component:e,content:t.textContent||""}});it.transformSpan=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body2",component:"span",content:t.textContent||""}});function $z({title:t="",subtitle:e,backgroundImage:r,backgroundGradient:n,backgroundColor:o="primary",actions:s=[],children:c,textAlign:u="center",blockHeight:d="medium",overlayOpacity:f=.5,gridProps:h,...v}){const m=io(),y=()=>{switch(d){case"small":return 300;case"medium":return 400;case"large":return 600;case"viewport":return"100vh";default:return 400}},x=()=>{if(r||n)return"transparent";switch(o){case"primary":return m.palette.primary.main;case"secondary":return m.palette.secondary.main;case"surface":return m.palette.background.paper;default:return m.palette.background.default}},w=()=>{switch(o){case"primary":return m.palette.primary.contrastText;case"secondary":return m.palette.secondary.contrastText;case"surface":return m.palette.getContrastText(m.palette.background.paper);default:return m.palette.text.primary}};return l.jsxs(ee,{component:"section",...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:y(),backgroundColor:x(),color:w(),backgroundImage:r?`url(${r})`:n||"none",backgroundSize:r?"cover":"auto",backgroundPosition:r?"center":"initial",backgroundRepeat:"no-repeat",overflow:"hidden",...v.sx},children:[r&&l.jsx(ee,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",opacity:f,zIndex:1}}),l.jsx(Hf,{maxWidth:"md",sx:{position:"relative",zIndex:2,textAlign:u,py:4},children:l.jsxs(hS,{spacing:3,alignItems:u==="center"?"center":u==="right"?"flex-end":"flex-start",children:[l.jsx(it,{variant:"h2",component:"h1",customColor:"var(--theme-on-primary)",sx:{fontWeight:700,fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem",lg:"3.5rem"},lineHeight:1.2,maxWidth:"800px"},children:t}),e&&l.jsx(it,{variant:"h5",component:"p",customColor:"var(--theme-on-primary)",fontWeight:"400",sx:{opacity:.9,maxWidth:"600px"},children:e}),s.length>0&&l.jsx(hS,{direction:"row",spacing:2,sx:{mt:2,flexWrap:"wrap",gap:1,justifyContent:u==="center"?"center":u==="right"?"flex-end":"flex-start"},children:s.map((C,j)=>l.jsx(nr,{buttonSize:"large",...C},`hero-action-${j}`))}),c&&l.jsx(ee,{sx:{maxWidth:"800px"},children:c})]})})]})}const Nz=co({tagName:"HeroBlock",version:"1.0.0",role:"container",View:$z});function Bz({src:t,alt:e="",width:r,height:n,objectFit:o="cover",objectPosition:s="center",loading:c="lazy",title:u,draggable:d=!1,borderRadius:f,showLoading:h=!1,showError:v=!1,fallbackSrc:m,sizes:y,srcSet:x,loadingPlaceholder:w,errorPlaceholder:C,onClick:j,style:k,className:I,...E}){const M=io(),[R,L]=b.useState("loading"),[A,F]=b.useState(t),G=b.useCallback(()=>{L("loaded")},[]),$=b.useCallback(()=>{if(m&&A!==m){F(m);return}L("error")},[m,A]);if(!t)return v?l.jsx(ee,{...E,className:`image-error ${I||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M.palette.grey[100],color:M.palette.text.secondary,width:r||200,height:n||150,borderRadius:f,...k},children:C||l.jsxs(ee,{sx:{textAlign:"center"},children:[l.jsx(qS,{sx:{fontSize:48,mb:1,opacity:.5}}),l.jsx(he,{variant:"body2",color:"text.secondary",children:"No image source"})]})}):null;if(R==="loading"&&h)return l.jsx(ee,{...E,className:`image-loading ${I||""}`.trim(),style:{width:r||"100%",height:n||200,borderRadius:f,...k},children:w||l.jsx(lN,{variant:"rectangular",width:"100%",height:"100%",sx:{borderRadius:f}})});if(R==="error"&&v)return l.jsx(ee,{...E,className:`image-error ${I||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M.palette.grey[100],color:M.palette.text.secondary,width:r||"100%",height:n||200,borderRadius:f,...k},children:C||l.jsxs(ee,{sx:{textAlign:"center",p:2},children:[l.jsx(qS,{sx:{fontSize:48,mb:1,opacity:.5}}),l.jsx(he,{variant:"body2",color:"text.secondary",children:"Failed to load image"}),m&&l.jsx(he,{variant:"caption",color:"text.secondary",children:"Fallback image also failed"})]})});const P={display:"block",maxWidth:"100%",height:"auto",objectFit:o,objectPosition:s,borderRadius:f,cursor:j?"pointer":"default",...k};return r&&(P.width=r),n&&(P.height=n),l.jsx("img",{...E,src:A,alt:e,width:r,height:n,loading:c,title:u,draggable:d,sizes:y,srcSet:x,className:`image ${I||""}`.trim(),style:P,onClick:j,onLoad:G,onError:$})}const OT=co({tagName:"Image",version:"1.0.0",role:"view",View:Bz});OT.registerPatternHandlers=t=>{t.hasPattern("img")||t.registerPattern("img",zz),t.hasPattern("figure img")||t.registerPattern("figure img",Dz)};function zz(t){const e=t.getAttribute("src")||"",r=t.getAttribute("alt")||"",n=t.getAttribute("width"),o=t.getAttribute("height"),s=t.getAttribute("loading");return{tagName:"Image",props:{src:e,alt:r,width:n?parseInt(n):void 0,height:o?parseInt(o):void 0,loading:s||"lazy"}}}function Dz(t){const e=t.closest("figure"),r=e==null?void 0:e.querySelector("figcaption"),n=(r==null?void 0:r.textContent)||"",o=t.getAttribute("src")||"",s=t.getAttribute("alt")||n,c=t.getAttribute("width"),u=t.getAttribute("height");return{tagName:"Image",props:{src:o,alt:s,caption:n||void 0,width:c?parseInt(c):void 0,height:u?parseInt(u):void 0,loading:"lazy"}}}function Fz({children:t,background:e="var(--theme-surface)",color:r="var(--theme-on-surface)",padding:n="medium",contentMaxWidth:o="lg",component:s="section",gridProps:c,...u}){if(!t)return l.jsx(ee,{component:s,...u,...c?{"data-grid":JSON.stringify(c)}:{},sx:{backgroundColor:e,color:r,position:"static",py:2,px:0,...u.sx},children:l.jsx(Hf,{maxWidth:nC(o),sx:{position:"relative",textAlign:"center",opacity:.6,...o===!1&&{maxWidth:"none !important",px:3}},children:"No content provided for this section"})});const d=()=>{switch(n){case"none":return 0;case"tiny":return{py:1,px:0};case"small":return{py:2,px:0};case"medium":return{py:4,px:0};case"large":return{py:8,px:0};case"extra-large":return{py:12,px:0};default:return{py:4,px:0}}};return l.jsx(ee,{component:s,...u,...c?{"data-grid":JSON.stringify(c)}:{},sx:{backgroundColor:e,color:r,position:"static",...d(),...u.sx},children:l.jsx(Hf,{maxWidth:nC(o),sx:{position:"relative",...o===!1&&{maxWidth:"none !important",px:3}},children:t})})}const rc=co({tagName:"Section",version:"1.0.0",role:"container",View:Fz,finalize:t=>t.contentMaxWidth==="false"?{...t,contentMaxWidth:!1}:t});rc.registerPatternHandlers=t=>{t.hasPattern("section")||t.registerPattern("section",rc.transformSection),t.hasPattern("section.blog-section")||t.registerPattern("section.blog-section",rc.transformBlogSection)};rc.transformSection=t=>{const e=t.getAttribute("data-padding")||"medium",r=t.getAttribute("data-background"),n=t.getAttribute("data-max-width")||"lg";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:n,children:t.innerHTML}}};rc.transformBlogSection=t=>{const e=t.getAttribute("data-padding")||"large",r=t.getAttribute("data-background")||"var(--theme-surface)";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:"md",children:t.innerHTML}}};function _(t,e,r,n){var o=arguments.length,s=o<3?e:n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(c=t[u])&&(s=(o<3?c(s):o>3?c(e,r,s):c(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}function H(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}let Et=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"Grid Span",description:"Column span for grid layouts (number, auto, or grow)"}),W(),Ho((t,e)=>typeof e=="string"),Ve(["auto","grow"]),Ho((t,e)=>typeof e=="number"),Rc(),ao(1),H("design:type",Object)],Et.prototype,"span",void 0);_([z(),D({field_type:B.TEXT,label:"Extra Small Breakpoint (xs)",description:"Column span for extra small screens"}),W(),Ho((t,e)=>typeof e=="string"),Ve(["auto"]),Ho((t,e)=>typeof e=="number"),Rc(),ao(1),H("design:type",Object)],Et.prototype,"xs",void 0);_([z(),D({field_type:B.SELECT,label:"Small Breakpoint (sm)",description:"Column span for small screens"}),W(),Ho((t,e)=>typeof e=="string"),Ve(["auto"]),Ho((t,e)=>typeof e=="number"),Rc(),ao(1),H("design:type",Object)],Et.prototype,"sm",void 0);_([z(),D({field_type:B.SELECT,label:"Medium Breakpoint (md)",description:"Column span for medium screens"}),W(),Ho((t,e)=>typeof e=="string"),Ve(["auto"]),Ho((t,e)=>typeof e=="number"),Rc(),ao(1),H("design:type",Object)],Et.prototype,"md",void 0);_([z(),D({field_type:B.SELECT,label:"Large Breakpoint (lg)",description:"Column span for large screens"}),W(),Ho((t,e)=>typeof e=="string"),Ve(["auto"]),Ho((t,e)=>typeof e=="number"),Rc(),ao(1),H("design:type",Object)],Et.prototype,"lg",void 0);_([z(),D({field_type:B.SELECT,label:"Extra Large Breakpoint (xl)",description:"Column span for extra large screens"}),W(),Ho((t,e)=>typeof e=="string"),Ve(["auto"]),Ho((t,e)=>typeof e=="number"),Rc(),ao(1),H("design:type",Object)],Et.prototype,"xl",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class Name",description:"Additional CSS class name for custom styling",placeholder:"custom-class-name"}),W(),ie(),H("design:type",String)],Et.prototype,"className",void 0);_([z(),D({field_type:B.TEXTAREA,label:"MUI SX Props",description:"MUI sx prop as JSON string for advanced styling",placeholder:'{"color": "primary.main", "fontWeight": "bold"}'}),W(),ie(),H("design:type",Object)],Et.prototype,"sx",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Inline Styles",description:"Inline CSS styles as JSON string",placeholder:'{"color": "red", "margin": "10px"}'}),W(),ie(),H("design:type",Object)],Et.prototype,"style",void 0);_([z(),D({field_type:B.TEXT,label:"Width",description:"Component width (t-shirt sizes, breakpoints, CSS values, or numbers)",placeholder:"medium, 300px, 50%, auto, grow"}),W(),ie(),H("design:type",Object)],Et.prototype,"width",void 0);_([z(),D({field_type:B.TEXT,label:"Height",description:"Component height (t-shirt sizes, CSS values, or numbers)",placeholder:"medium, 200px, 50vh, auto"}),W(),ie(),H("design:type",Object)],Et.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"Minimum Width",description:"Minimum width constraint",placeholder:"small, 100px, auto"}),W(),ie(),H("design:type",Object)],Et.prototype,"minWidth",void 0);_([z(),D({field_type:B.TEXT,label:"Minimum Height",description:"Minimum height constraint",placeholder:"small, 100px, auto"}),W(),ie(),H("design:type",Object)],Et.prototype,"minHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Maximum Width",description:"Maximum width constraint",placeholder:"large, lg, 1200px"}),W(),ie(),H("design:type",Object)],Et.prototype,"maxWidth",void 0);_([z(),D({field_type:B.TEXT,label:"Maximum Height",description:"Maximum height constraint",placeholder:"large, 500px, 80vh"}),W(),ie(),H("design:type",Object)],Et.prototype,"maxHeight",void 0);_([z(),D({field_type:B.SELECT,label:"Padding",description:"Internal spacing for all sides"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"padding",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Top",description:"Internal spacing for top side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"paddingTop",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Right",description:"Internal spacing for right side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"paddingRight",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Bottom",description:"Internal spacing for bottom side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"paddingBottom",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Left",description:"Internal spacing for left side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"paddingLeft",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Horizontal (X)",description:"Internal spacing for left and right sides"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"paddingX",void 0);_([z(),D({field_type:B.SELECT,label:"Padding Vertical (Y)",description:"Internal spacing for top and bottom sides"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"paddingY",void 0);_([z(),D({field_type:B.SELECT,label:"Margin",description:"External spacing for all sides"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"margin",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Top",description:"External spacing for top side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"marginTop",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Right",description:"External spacing for right side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"marginRight",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Bottom",description:"External spacing for bottom side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"marginBottom",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Left",description:"External spacing for left side"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"marginLeft",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Horizontal (X)",description:"External spacing for left and right sides"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"marginX",void 0);_([z(),D({field_type:B.SELECT,label:"Margin Vertical (Y)",description:"External spacing for top and bottom sides"}),W(),ie(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",Object)],Et.prototype,"marginY",void 0);_([z(),D({field_type:B.TEXT,label:"Background",description:"Background fill (color, gradient, image CSS). Canonical name.",placeholder:"#ffffff, primary.main, linear-gradient(...)"}),W(),ie(),H("design:type",String)],Et.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Background Color (Deprecated)",description:"Use background instead. Kept for backward compatibility.",placeholder:"#ffffff, primary.main"}),W(),ie(),H("design:type",String)],Et.prototype,"backgroundColor",void 0);_([z(),D({field_type:B.TEXT,label:"Background Image",description:"Background image URL",placeholder:"https://example.com/image.jpg"}),W(),ie(),H("design:type",String)],Et.prototype,"backgroundImage",void 0);_([z(),D({field_type:B.TEXT,label:"Background Gradient",description:"CSS gradient for background",placeholder:"linear-gradient(45deg, #ff6b6b, #4ecdc4)"}),W(),ie(),H("design:type",String)],Et.prototype,"backgroundGradient",void 0);_([z(),D({field_type:B.SELECT,label:"Text Alignment",description:"Text alignment within the component"}),W(),ie(),Ve(["left","center","right","justify"]),H("design:type",String)],Et.prototype,"textAlign",void 0);_([z(),D({field_type:B.TEXT,label:"Element ID",description:"Unique HTML element ID",placeholder:"unique-element-id"}),W(),ie(),H("design:type",String)],Et.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Role",description:"ARIA role for accessibility",placeholder:"button, navigation, main, etc."}),W(),ie(),H("design:type",String)],Et.prototype,"role",void 0);_([z(),D({field_type:B.TEXT,label:"ARIA Label",description:"Accessibility label for screen readers",placeholder:"Describe this element..."}),W(),ie(),H("design:type",String)],Et.prototype,"aria-label",void 0);_([z(),D({field_type:B.TEXT,label:"ARIA Labelled By",description:"IDs of elements that label this component",placeholder:"label-element-id"}),W(),ie(),H("design:type",String)],Et.prototype,"aria-labelledby",void 0);_([z(),D({field_type:B.TEXT,label:"ARIA Described By",description:"IDs of elements that describe this component",placeholder:"element-id-1 element-id-2"}),W(),ie(),H("design:type",String)],Et.prototype,"aria-describedby",void 0);_([z(),D({field_type:B.TEXT,label:"Data Test ID",description:"Test automation identifier",placeholder:"test-element-name"}),W(),ie(),H("design:type",String)],Et.prototype,"data-testid",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Click Handler",description:"JavaScript function for click events",placeholder:'function(event) { console.debug("clicked"); }'}),W(),ie(),H("design:type",Function)],Et.prototype,"onClick",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Mouse Enter Handler",description:"JavaScript function for mouse enter events",placeholder:"function(event) { /* hover start */ }"}),W(),ie(),H("design:type",Function)],Et.prototype,"onMouseEnter",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Mouse Leave Handler",description:"JavaScript function for mouse leave events",placeholder:"function(event) { /* hover end */ }"}),W(),ie(),H("design:type",Function)],Et.prototype,"onMouseLeave",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Focus Handler",description:"JavaScript function for focus events",placeholder:"function(event) { /* element focused */ }"}),W(),ie(),H("design:type",Function)],Et.prototype,"onFocus",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Blur Handler",description:"JavaScript function for blur events",placeholder:"function(event) { /* element blurred */ }"}),W(),ie(),H("design:type",Function)],Et.prototype,"onBlur",void 0);Et=_([Vt("ViewSchema","1.0.0")],Et);var $T=Et;let vs=class extends $T{};_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),W(),ie(),H("design:type",Object)],vs.prototype,"children",void 0);vs=_([Vt("ContainerSchema","1.0.0")],vs);let ui=class extends vs{};_([z(),D({field_type:B.TEXT,label:"Title",description:"Title for the default header (ignored if custom header is provided)",placeholder:"Enter form title..."}),W(),ie(),H("design:type",String)],ui.prototype,"title",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Description",description:"Description/subtitle for the default header (ignored if custom header is provided)",placeholder:"Enter form description..."}),W(),ie(),H("design:type",String)],ui.prototype,"description",void 0);_([z(),D({field_type:B.TEXT,label:"Cover Image URL",description:"Cover image URL for the default header (ignored if custom header is provided)",placeholder:"https://example.com/image.jpg"}),W(),ie(),H("design:type",Object)],ui.prototype,"coverImage",void 0);_([z(),D({field_type:B.TEXT,label:"Status Type",description:"Status type for message display (info, success, warning, error)",placeholder:"info"}),W(),Ve(["info","success","warning","error"]),H("design:type",String)],ui.prototype,"status",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Status Message",description:"Status message to display",placeholder:"Enter status message..."}),W(),ie(),H("design:type",String)],ui.prototype,"message",void 0);_([z({defaultValue:"sm"}),D({field_type:B.TEXT,label:"Maximum Width",description:"Maximum width of the form container (xs, sm, md)",placeholder:"sm"}),W(),Ve(["xs","sm","md"]),H("design:type",String)],ui.prototype,"maxWidth",void 0);_([z({defaultValue:"default"}),D({field_type:B.TEXT,label:"Background Style",description:"Background style variant (default, gradient, image)",placeholder:"default"}),W(),Ve(["default","gradient","image"]),H("design:type",String)],ui.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Background Image URL",description:'Background image URL (when background="image")',placeholder:"https://example.com/background.jpg"}),W(),ie(),H("design:type",String)],ui.prototype,"backgroundImage",void 0);ui=_([Vt("FormBlock","1.0.0")],ui);var Hz=ui;function nv(t){if(t==null)return"";if(typeof t=="string"||typeof t=="number")return String(t);if(typeof t=="boolean")return t?"true":"false";if(Array.isArray(t))return t.map(e=>nv(e)).join("");if(typeof t=="object"&&t!==null&&"props"in t){const e=t;if(e.props&&e.props.children)return nv(e.props.children)}return String(t)}function Uz(t){const{span:e,xs:r,sm:n,md:o,lg:s,xl:c,sx:u,style:d,...f}=t;return{span:e==="auto"?"auto":e==="grow"?"grow":e&&typeof e=="string"?parseInt(e,10):e,xs:r==="auto"?"auto":r&&typeof r=="string"?parseInt(r,10):r,sm:n==="auto"?"auto":n&&typeof n=="string"?parseInt(n,10):n,md:o==="auto"?"auto":o&&typeof o=="string"?parseInt(o,10):o,lg:s==="auto"?"auto":s&&typeof s=="string"?parseInt(s,10):s,xl:c==="auto"?"auto":c&&typeof c=="string"?parseInt(c,10):c,sx:typeof u=="string"?(()=>{try{return JSON.parse(u)}catch{return u}})():u,style:typeof d=="string"?(()=>{try{return JSON.parse(d)}catch{return d}})():d,onClick:typeof t.onClick=="string"?Eu(t.onClick):t.onClick,onMouseEnter:typeof t.onMouseEnter=="string"?Eu(t.onMouseEnter):t.onMouseEnter,onMouseLeave:typeof t.onMouseLeave=="string"?Eu(t.onMouseLeave):t.onMouseLeave,onFocus:typeof t.onFocus=="string"?Eu(t.onFocus):t.onFocus,onBlur:typeof t.onBlur=="string"?Eu(t.onBlur):t.onBlur,...f}}function Eu(t){if(!(!t||typeof t!="string"))try{let e;return t.trim().startsWith("function")?e=new Function(`return (${t})`)():e=new Function("event",t),r=>e(r)}catch(e){console.error("Error parsing event handler:",e);return}}class ol extends $t.Component{static fromJson(e){const r=e,{tagName:n,version:o,data:s}=r;if(n!==this.tagName)throw new Error(`Cannot deserialize: Expected tagName '${this.tagName}' but got '${n}'`);return o!==this.version&&console.warn(`Version mismatch: Expected ${this.version} but got ${o}`),$t.createElement(this,s||{})}toJson(){const e=this.getBaseSerializableProps(),r=this.getComponentSpecificProps();return{tagName:this.constructor.tagName,version:this.constructor.version,data:{...e,...r}}}getProcessedProps(){const{dataSource:e,bindingOptions:r,...n}=this.props,o=Uz(n);return{gridProps:{span:o.span,xs:o.xs,sm:o.sm,md:o.md,lg:o.lg,xl:o.xl},styleProps:{className:o.className,sx:o.sx,style:o.style},htmlProps:{id:o.id,role:o.role,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],"aria-describedby":o["aria-describedby"],"data-testid":o["data-testid"],onClick:o.onClick,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,onFocus:o.onFocus,onBlur:o.onBlur},restProps:{width:o.width,height:o.height,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,padding:o.padding,paddingTop:o.paddingTop,paddingRight:o.paddingRight,paddingBottom:o.paddingBottom,paddingLeft:o.paddingLeft,paddingX:o.paddingX,paddingY:o.paddingY,margin:o.margin,marginTop:o.marginTop,marginRight:o.marginRight,marginBottom:o.marginBottom,marginLeft:o.marginLeft,marginX:o.marginX,marginY:o.marginY,background:o.background,backgroundImage:o.backgroundImage,backgroundGradient:o.backgroundGradient,textAlign:o.textAlign}}}getBaseSerializableProps(){const e=this.props;return{children:e.children?this.serializeChildren(e.children):void 0,dataSource:e.dataSource,bindingOptions:e.bindingOptions,...e}}serializeChildren(e){if(typeof e=="string")return e;if(this.hasNestedComponents(e))throw new Error("Components with nested components must override serializeChildren method");return nv(e)}hasNestedComponents(e){return!1}render(){return this.props.dataSource?this.renderWithDataBinding():this.renderView()}static registerPatternHandlers(e){}}ol.tagName="";ol.version="";let Wi=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the action",placeholder:"action-id"}),ie(),ma(),H("design:type",String)],Wi.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Label",description:"Display label for the action button",placeholder:"Action label"}),ie(),H("design:type",String)],Wi.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Icon",description:"Icon component or JSX element",placeholder:"icon-name"}),W(),ie(),H("design:type",String)],Wi.prototype,"icon",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether this action is disabled"}),W(),Dt(),H("design:type",Boolean)],Wi.prototype,"disabled",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Destructive",description:"Whether this action is destructive (shows with warning styling)"}),W(),Dt(),H("design:type",Boolean)],Wi.prototype,"destructive",void 0);_([z(),D({field_type:B.NUMBER,label:"Priority",description:"Priority for ordering (lower numbers = higher priority)",validation:{min:1,max:100}}),W(),Ar(),ao(1),rl(100),H("design:type",Number)],Wi.prototype,"priority",void 0);Wi=_([Vt("HeaderAction","1.0.0")],Wi);let pn=class extends Sr{};_([z(),D({field_type:B.IMAGE,label:"Image",description:"Image URL or component",placeholder:"Upload image"}),W(),ie(),H("design:type",String)],pn.prototype,"image",void 0);_([z(),D({field_type:B.TEXT,label:"Image Alt Text",description:"Alternative text for image",placeholder:"Descriptive alt text..."}),W(),ie(),H("design:type",String)],pn.prototype,"imageAlt",void 0);_([z(),D({field_type:B.SELECT,label:"Image Size",description:"Size of the image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ve(["small","medium","large"]),H("design:type",String)],pn.prototype,"imageSize",void 0);_([z(),D({field_type:B.SELECT,label:"Image Shape",description:"Shape of the image",validation:{options:[{label:"Square",value:"square"},{label:"Circle",value:"circle"},{label:"Rounded",value:"rounded"}]}}),W(),Ve(["square","circle","rounded"]),H("design:type",String)],pn.prototype,"imageShape",void 0);_([z({defaultValue:"transparent"}),D({field_type:B.COLOR,label:"Image Background",description:"Image background color",placeholder:"Pick a color for the image background"}),W(),ie(),H("design:type",String)],pn.prototype,"imageBackgroundColor",void 0);_([z(),D({field_type:B.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),W(),ie(),H("design:type",String)],pn.prototype,"overline",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ie(),H("design:type",String)],pn.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),W(),ie(),H("design:type",String)],pn.prototype,"subtitle",void 0);_([z(),D({field_type:B.REPEATER,label:"Tags",description:"Array of tag strings"}),W(),hn(),ie({each:!0}),H("design:type",Array)],pn.prototype,"tags",void 0);_([z(),D({field_type:B.REPEATER,label:"Actions",description:"Array of header action buttons"}),W(),hn(),so({each:!0}),lo(()=>Wi),H("design:type",Array)],pn.prototype,"actions",void 0);_([z(),D({field_type:B.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),W(),Ar(),ao(1),rl(10),H("design:type",Number)],pn.prototype,"maxVisibleActions",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ie(),H("design:type",String)],pn.prototype,"className",void 0);_([z(),D({field_type:B.SELECT,label:"Header Variant",description:"Style variant for the header",validation:{options:[{label:"Default",value:"default"},{label:"Compact",value:"compact"},{label:"Prominent",value:"prominent"}]}}),W(),Ve(["default","compact","prominent"]),H("design:type",String)],pn.prototype,"variant",void 0);_([z({defaultValue:"--var(--theme-primary)"}),D({field_type:B.TEXT,label:"Background",description:"Background color or image URL",placeholder:"Pick a color for the background or enter a image URL"}),W(),ie(),H("design:type",String)],pn.prototype,"background",void 0);_([z({defaultValue:"--var(--theme-on-primary)"}),D({field_type:B.COLOR,label:"Color",description:"Foreground color",placeholder:"#000000"}),W(),ie(),H("design:type",String)],pn.prototype,"color",void 0);pn=_([Vt("CoverImageHeader","1.0.0")],pn);var Vz=pn;function fC({image:t,imageAlt:e="",imageSize:r="medium",imageShape:n="rounded",imageBackgroundColor:o="transparent",overline:s,title:c,subtitle:u,tags:d=[],actions:f=[],maxVisibleActions:h=3,variant:v="default",background:m,color:y,...x}){const{gridProps:w,styleProps:C,htmlProps:j}=Mn(x),[k,I]=b.useState(null),E=!!k,M=[...f].sort((te,Q)=>(te.priority||999)-(Q.priority||999)),R=M.slice(0,h),L=M.slice(h),A=te=>{I(te.currentTarget)},F=()=>{I(null)},G=()=>{switch(r){case"small":return 48;case"large":return 80;default:return 64}},$=()=>{switch(n){case"circle":return"circular";case"square":return"square";default:return"rounded"}},P=()=>{if(!t)return null;const te=G();return typeof t=="string"?l.jsx(qw,{src:t,alt:e,variant:$(),sx:{width:te,height:te}}):l.jsx(qw,{variant:$(),sx:{width:te,height:te,backgroundColor:o||"transparent"},children:t})},q=()=>d.length===0?null:l.jsx(ee,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:.5},children:d.map((te,Q)=>l.jsx(Ut,{label:te,size:"small",color:"primary",sx:{fontSize:"0.75rem",height:"24px"}},Q))}),V=()=>f.length===0?null:l.jsxs(ee,{sx:{display:"flex",alignItems:"flex-start",gap:.5},children:[R.map(te=>l.jsx(un,{variant:"outlined",size:"small",startIcon:te.icon,onClick:te.onClick,disabled:te.disabled,color:te.destructive?"error":"primary",sx:{minHeight:36,whiteSpace:"nowrap","& .MuiButton-startIcon":{mr:.5}},children:te.label},te.id)),L.length>0&&l.jsxs(l.Fragment,{children:[l.jsx(Xt,{size:"small",onClick:A,"aria-label":"More actions",color:"info",sx:{minHeight:36,minWidth:36},children:l.jsx(fB,{})}),l.jsx(Lh,{anchorEl:k,open:E,onClose:F,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:L.map(te=>l.jsxs(br,{onClick:()=>{te.onClick(),F()},disabled:te.disabled,sx:{color:te.destructive?"error.main":"inherit",gap:1.5,minWidth:200},children:[te.icon&&l.jsx(ee,{component:"span",sx:{display:"flex"},children:te.icon}),te.label]},te.id))})]})]}),O=()=>{switch(v){case"compact":return 2;case"prominent":return 3;default:return 2.5}},U=()=>{switch(v){case"compact":return 1.5;case"prominent":return 2;default:return 2}},K=()=>{switch(v){case"default":return 0;case"compact":return 1;case"prominent":return 1;default:return 0}},Y=m?{background:m.startsWith("http")||m.startsWith("data:")?`linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url(${m})`:m,backgroundSize:"cover",backgroundPosition:"center"}:{background:"-var(--theme-primary)"};return l.jsx(Nr,{component:"header",...j,...w&&{"data-grid-span":w.span,"data-grid-xs":w.xs,"data-grid-sm":w.sm,"data-grid-md":w.md,"data-grid-lg":w.lg,"data-grid-xl":w.xl},sx:{p:O(),borderRadius:K()>0?2:0,...Y,color:m?"white":"inherit",...C.sx},elevation:K(),children:l.jsxs(ee,{sx:{display:"flex",alignItems:v==="prominent"?"center":"flex-start",gap:U(),flexWrap:{xs:"wrap",sm:"nowrap"},minHeight:v==="prominent"?120:"auto"},children:[P(),l.jsxs(ee,{sx:{flex:1,minWidth:0},children:[s&&l.jsx(he,{variant:"overline",color:y||"--var(--theme-on-primary)",sx:{display:"block",fontSize:"0.75rem",fontWeight:600,lineHeight:1.2,mb:.25},children:s}),l.jsx(he,{variant:"h5",component:"h1",sx:{fontWeight:600,lineHeight:1.3,wordBreak:"break-word",mb:u?.25:0},children:c}),u&&l.jsx(he,{variant:"body2",color:y||"--var(--theme-on-primary)",sx:{lineHeight:1.4,mb:(d.length>0,0)},children:u}),q()]}),l.jsx(ee,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"flex-start"},mt:{xs:1,sm:0}},children:V()})]})})}function Wz(){return l.jsxs(Nr,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[l.jsx(he,{variant:"body2",children:"Loading Cover Image Header..."}),l.jsx(he,{variant:"caption",color:"text.secondary",children:"Loading header content from data source..."})]})}function qz(){return l.jsx(Nr,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:l.jsx(he,{variant:"body2",color:"error",children:"Error loading cover image header"})})}function Gz(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Ji(e||"",n,Vz.getSchema(),{...r});if(!e)return l.jsx(fC,{...n});const{loading:s,error:c,...u}=o;if(s)return l.jsx(Wz,{});if(c)return console.error("Error loading cover image header:",c),l.jsx(qz,{});const{actions:d,...f}=u,h=d?d.filter(v=>typeof v.id=="string"&&!!v.id).map(v=>({...v,id:v.id,onClick:()=>console.debug(`Action clicked: ${v.id}`)})):[];return l.jsx(fC,{...f,actions:h})}let In=class extends Sr{};_([z({defaultValue:"Qwick Apps",dataType:mt.STRING}),D({field_type:B.TEXT,label:"Logo Name/Text",description:"Logo name/text to display. Supports up to TWO parts with \\n for line breaks and \\s for explicit spaces.",placeholder:'Enter logo text (e.g., "Qwick Apps", "Qwick\\nApps")'}),W(),ie(),H("design:type",String)],In.prototype,"name",void 0);_([z({defaultValue:"default",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Visual Variant",description:"Visual style variant of the logo",validation:{options:[{label:"Default",value:"default"},{label:"High Contrast",value:"high-contrast"},{label:"Monochrome",value:"monochrome"},{label:"On Primary Background",value:"on-primary"}]}}),W(),ie(),Ve(["default","high-contrast","monochrome","on-primary"]),H("design:type",String)],In.prototype,"variant",void 0);_([z({defaultValue:"medium",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Size",description:"Size variant of the logo (controls both text size and visual height)",validation:{options:[{label:"Tiny (16px)",value:"tiny"},{label:"Small (20px)",value:"small"},{label:"Medium (28px)",value:"medium"},{label:"Large (36px)",value:"large"},{label:"Extra Large (48px)",value:"extra-large"}]}}),W(),ie(),Ve(["tiny","small","medium","large","extra-large"]),H("design:type",String)],In.prototype,"size",void 0);_([z({defaultValue:"top-right",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Badge Position",description:'Badge position and visibility. "none" hides the badge, others show it at the specified position.',validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left Center)",value:"start"},{label:"Center",value:"center"},{label:"End (Right Center)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ie(),Ve(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),H("design:type",String)],In.prototype,"badge",void 0);_([z({defaultValue:"circle",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Badge Shape",description:"Shape of the badge when visible",validation:{options:[{label:"Circle",value:"circle"},{label:"Star",value:"star"},{label:"Square",value:"square"},{label:"Heart",value:"heart"}]}}),W(),ie(),Ve(["circle","star","square","heart"]),H("design:type",String)],In.prototype,"badgeShape",void 0);_([z({dataType:mt.NUMBER}),D({field_type:B.NUMBER,label:"Badge Offset X",description:"Horizontal offset from calculated badge position (positive = right, negative = left)",placeholder:"0"}),W(),Ar(),H("design:type",Number)],In.prototype,"badgeOffsetX",void 0);_([z({dataType:mt.NUMBER}),D({field_type:B.NUMBER,label:"Badge Offset Y",description:"Vertical offset from calculated badge position (positive = down, negative = up)",placeholder:"0"}),W(),Ar(),H("design:type",Number)],In.prototype,"badgeOffsetY",void 0);_([z({defaultValue:"Segoe UI, sans-serif",dataType:mt.STRING}),D({field_type:B.TEXT,label:"Font Family",description:"Font family for the logo text",placeholder:"Segoe UI, sans-serif"}),W(),ie(),H("design:type",String)],In.prototype,"fontFamily",void 0);_([z({defaultValue:"bold",dataType:mt.STRING}),D({field_type:B.TEXT,label:"Font Weight",description:"Font weight for the logo text",placeholder:"bold"}),W(),ie(),H("design:type",String)],In.prototype,"fontWeight",void 0);_([z({defaultValue:"logo-first-part",dataType:mt.STRING}),D({field_type:B.TEXT,label:"First Part CSS Class",description:"CSS class name for the first part of the logo text",placeholder:"logo-first-part"}),W(),ie(),H("design:type",String)],In.prototype,"firstPartClass",void 0);_([z({defaultValue:"logo-second-part",dataType:mt.STRING}),D({field_type:B.TEXT,label:"Second Part CSS Class",description:"CSS class name for the second part of the logo text",placeholder:"logo-second-part"}),W(),ie(),H("design:type",String)],In.prototype,"secondPartClass",void 0);_([z({dataType:mt.STRING}),D({field_type:B.IMAGE,label:"Logo Image",description:"Optional image to display alongside the logo text (ReactNode or image path)",placeholder:"Image path or React component"}),W(),H("design:type",Object)],In.prototype,"image",void 0);_([z({defaultValue:"start",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Image Position",description:"Position of the image relative to the logo text",validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left)",value:"start"},{label:"Center",value:"center"},{label:"End (Right)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ie(),Ve(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),H("design:type",String)],In.prototype,"imagePosition",void 0);In=_([Vt("Logo","1.0.0")],In);var Xz=In;function hC({name:t="Qwick Apps",variant:e="default",size:r="medium",badge:n="top-right",badgeShape:o="circle",badgeOffsetX:s,badgeOffsetY:c,fontFamily:u="Segoe UI, sans-serif",fontWeight:d="bold",firstPartClass:f="logo-first-part",secondPartClass:h="logo-second-part",image:v,imagePosition:m="start",onClick:y,style:x,className:w,...C}){const{styleProps:j,htmlProps:k}=Mn(C),I=b.useMemo(()=>s!==void 0||c!==void 0?{x:s,y:c}:void 0,[s,c]),E=b.useRef(null),[M,R]=b.useState({x:155,y:20}),[L,A]=b.useState(180),F=b.useCallback(J=>{if(J.includes("\\n")){const[Z,...pe]=J.split("\\n");return{firstPart:Z.replace(/\\s/g," "),secondPart:pe.join("\\n").replace(/\\s/g," "),isNewLine:!0}}if(J.includes("\\s")){const Z=J.split("\\s");return Z.length>=2?{firstPart:Z[0],secondPart:Z.slice(1).join(" "),isNewLine:!1}:{firstPart:Z[0],secondPart:"",isNewLine:!1}}const oe=J.trim().split(/\s+/);return oe.length===1?{firstPart:oe[0],secondPart:"",isNewLine:!1}:oe.length===2?{firstPart:oe[0],secondPart:oe[1],isNewLine:!1}:{firstPart:oe.slice(0,-1).join(" "),secondPart:oe[oe.length-1],isNewLine:!1}},[]),{firstPart:G,secondPart:$,isNewLine:P}=F(t),q=t.includes("\\s"),V=`logo-${r}`,O=(J,oe)=>{const Z={tiny:{fontSize:16,height:32},small:{fontSize:20,height:40},medium:{fontSize:28,height:50},large:{fontSize:36,height:64},"extra-large":{fontSize:48,height:84}},pe=Z[J]||Z.medium;return oe&&(pe.height+=Math.round(pe.fontSize*1.4)),pe},{fontSize:U,height:K}=O(r,P),Y=b.useCallback(J=>{const oe=U/28,Z=8*oe,pe=((I==null?void 0:I.x)??0)*oe,Se=((I==null?void 0:I.y)??0)*oe;let se,ae;switch(n){case"top-left":se=J.x-Z,ae=J.y+Z;break;case"top-center":se=J.x+J.width/2,ae=J.y+Z;break;case"top-right":se=J.x+J.width+Z,ae=J.y+Z;break;case"start":se=J.x-Z,ae=J.y+J.height/2;break;case"center":se=J.x+J.width/2,ae=J.y+J.height/2;break;case"end":se=J.x+J.width+Z,ae=J.y+J.height/2;break;case"bottom-left":se=J.x-Z,ae=J.y+J.height-Z;break;case"bottom-center":se=J.x+J.width/2,ae=J.y+J.height-Z;break;case"bottom-right":se=J.x+J.width+Z,ae=J.y+J.height-Z;break;default:se=J.x+J.width+Z,ae=J.y+Z;break}return{x:se+pe,y:ae+Se}},[n,I,U]);b.useEffect(()=>{if(E.current){const J=E.current.getBBox(),oe=Y(J),Z=Math.max(180,J.x+J.width+20);R(oe),A(Z)}},[t,n,I,Y,U,K,F,L]);let te="";e==="high-contrast"||e==="monochrome"||e==="on-primary"?te=`logo-${e}`:e!=="default"?te=`logo-${e}`:te="logo-default";const Q=`${t} Logo`,X=()=>{if(n==="none")return null;const J={className:`logo-badge logo-badge-${o}`},{x:oe,y:Z}=M,pe=U/28,Se=5*pe,se=10*pe;switch(o){case"circle":return l.jsx("circle",{cx:oe,cy:Z,r:Se,...J,children:l.jsx("animate",{attributeName:"r",values:`${Se};${Se+1};${Se}`,dur:"1.5s",repeatCount:"indefinite"})});case"star":{const ae=pe;return l.jsx("polygon",{points:`${oe},${Z-5*ae} ${oe+2*ae},${Z} ${oe+7*ae},${Z} ${oe+3*ae},${Z+3*ae} ${oe+5*ae},${Z+8*ae} ${oe},${Z+5*ae} ${oe-5*ae},${Z+8*ae} ${oe-3*ae},${Z+3*ae} ${oe-7*ae},${Z} ${oe-2*ae},${Z}`,...J,children:l.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})})}case"square":return l.jsx("rect",{x:oe-Se,y:Z-Se,width:se,height:se,...J,children:l.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})});case"heart":{const ae=pe;return l.jsx("path",{d:`M${oe},${Z+6*ae} C${oe},${Z+6*ae} ${oe-7*ae},${Z} ${oe-7*ae},${Z-4*ae} C${oe-7*ae},${Z-6*ae} ${oe-5*ae},${Z-8*ae} ${oe-3*ae},${Z-8*ae} C${oe-2*ae},${Z-8*ae} ${oe},${Z-7*ae} ${oe},${Z-5*ae} C${oe},${Z-7*ae} ${oe+2*ae},${Z-8*ae} ${oe+3*ae},${Z-8*ae} C${oe+5*ae},${Z-8*ae} ${oe+7*ae},${Z-6*ae} ${oe+7*ae},${Z-4*ae} C${oe+7*ae},${Z} ${oe},${Z+6*ae} ${oe},${Z+6*ae} Z`,...J,children:l.jsx("animate",{attributeName:"fill-opacity",values:"0.7;1;0.7",dur:"1.5s",repeatCount:"indefinite"})})}default:return l.jsx("circle",{cx:oe,cy:Z,r:Se,...J,children:l.jsx("animate",{attributeName:"r",values:`${Se};${Se+1};${Se}`,dur:"1.5s",repeatCount:"indefinite"})})}},re=()=>{if(!v||m==="none")return null;if(typeof v=="string"){const J=U;return l.jsx("img",{src:v,alt:"",style:{width:J,height:J,objectFit:"contain"},className:"logo-image"})}return l.jsx("div",{className:"logo-image-container",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:v})};return(()=>{const J=l.jsxs("svg",{width:L,height:K,viewBox:`0 0 ${L} ${K}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`logo-svg dynamic-logo ${V} ${te}`.trim(),style:{height:`${K}px`,...x},role:"img","aria-label":Q,children:[l.jsxs("text",{ref:E,fontFamily:u,fontSize:U,fontWeight:d,children:[l.jsx("tspan",{x:"15",y:P?K*.4:K*.7,className:f,children:G}),$&&l.jsx("tspan",{x:P?"15":void 0,dy:P?U*1.2:void 0,className:h,children:P?$:q?` ${$}`:$})]}),X()]}),oe=re();if(!oe)return J;const Z={display:"flex",alignItems:"center",gap:"8px"};let pe="logo-container";switch(m){case"start":Z.flexDirection="row",pe+=" logo-image-start";break;case"end":Z.flexDirection="row-reverse",pe+=" logo-image-end";break;case"top-center":Z.flexDirection="column",pe+=" logo-image-top";break;case"bottom-center":Z.flexDirection="column-reverse",pe+=" logo-image-bottom";break;default:Z.flexDirection="row",pe+=" logo-image-start";break}return l.jsxs("div",{...k,...j,className:`${pe} ${w||""}`.trim(),style:{...Z,cursor:y?"pointer":"default",...x},onClick:y,children:[oe,J]})})()}function zh(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Ji(e||"",{initialData:n,schema:Xz.getSchema(),cache:!0,cacheTTL:3e5,strict:!1,...r});if(!e)return l.jsx(hC,{...n});const{loading:s,error:c,...u}=o;return s?l.jsx("div",{style:{opacity:.5,textAlign:"center",padding:"16px"},children:"Loading logo..."}):c?l.jsxs("div",{style:{color:"red",textAlign:"center",padding:"16px"},children:["Error loading logo: ",c.message]}):l.jsx(hC,{...u})}Object.defineProperty(zh,zn,{value:!0,enumerable:!1,configurable:!0});const Kz=({title:t,subtitle:e,coverImage:r})=>{const{appName:n}=v0(),o=r||l.jsx(zh,{name:n||"Qwick Apps",size:"medium",variant:"default"});return l.jsx(Gz,{image:o,imageSize:"medium",imageShape:"square",title:t||"Welcome",subtitle:e,variant:"default"})};function NT({header:t,title:e,description:r,coverImage:n,children:o,footer:s,status:c,message:u,maxWidth:d="sm",background:f="--theme-surface",backgroundImage:h,...v}){const{styleProps:m,htmlProps:y}=Mn(v),x=io();if(!o)return l.jsx(Nr,{...y,...m,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...m.sx},children:l.jsx(he,{variant:"body2",color:"text.secondary",children:"No form content provided"})});const w=()=>{switch(f){case"gradient":return{background:`linear-gradient(135deg, ${x.palette.primary.main} 0%, ${x.palette.secondary.main} 100%)`};case"image":return h?{backgroundImage:`linear-gradient(${x.palette.action.hover}, ${x.palette.action.hover}), url(${h})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{};default:return{backgroundColor:x.palette.background.default}}};return l.jsx(ee,{...y,...m,className:`${m.className||""}`,sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",py:3,...w(),...m.sx},children:l.jsx(Hf,{maxWidth:d,children:l.jsxs(ht,{elevation:f==="default"?1:8,sx:{borderRadius:3,overflow:"hidden",backgroundColor:f==="default"?x.palette.background.paper:x.palette.mode==="dark"?"rgba(18, 18, 18, 0.95)":"rgba(255, 255, 255, 0.95)",backdropFilter:f!=="default"?"blur(10px)":"none"},children:[t||e||r?t||l.jsx(Kz,{title:e,subtitle:r,coverImage:n}):null,l.jsxs(ft,{sx:{p:{xs:3,sm:4,md:5}},children:[c&&u&&l.jsx(qt,{severity:c,sx:{mb:3},variant:"outlined",children:u}),l.jsx(ee,{sx:{mb:s?3:0},children:o}),s&&l.jsx(ee,{sx:{textAlign:"center"},children:s})]})]})})})}class Ac extends ol{static fromJson(e){return l.jsx(Ac,{...e})}hasNestedComponents(e){return!0}serializeChildren(e){var r;if($t.isValidElement(e)&&((r=e.type.prototype)!=null&&r.toJson)){const n=e.type;return n.fromJson?{component:n.tagName,props:e.props}:e}return super.serializeChildren(e)}getComponentSpecificProps(){return{title:this.props.title,description:this.props.description,status:this.props.status,message:this.props.message,maxWidth:this.props.maxWidth,background:this.props.background,backgroundImage:this.props.backgroundImage}}renderView(){const{dataSource:e,bindingOptions:r,...n}=this.props;return l.jsx(NT,{...n})}renderWithDataBinding(){return l.jsx(Qz,{...this.props})}}Ac.tagName="FormBlock";Ac.version="1.0.0";function Qz(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...c}=Ji(e,n,Hz.getSchema(),{...r});return o?l.jsxs(Nr,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[l.jsx(he,{variant:"body2",children:"Loading Form..."}),l.jsx(he,{variant:"caption",color:"text.secondary",children:"Loading form content from data source..."})]}):s?(console.error("Error loading form block:",s),l.jsx(Nr,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:l.jsxs(he,{variant:"body2",color:"error",children:["Error loading form: ",s.message]})})):l.jsx(NT,{...c})}Ac[zn]=!0;var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yz(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Jz(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var BT={},id={},x0={},sd={},b0={};Object.defineProperty(b0,"__esModule",{value:!0});b0.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var w0={};Object.defineProperty(w0,"__esModule",{value:!0});w0.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var ov={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function n(s){var c;return s>=55296&&s<=57343||s>1114111?65533:(c=r.get(s))!==null&&c!==void 0?c:s}t.replaceCodePoint=n;function o(s){return(0,t.fromCodePoint)(n(s))}t.default=o})(ov);(function(t){var e=_t&&_t.__createBinding||(Object.create?(function($,P,q,V){V===void 0&&(V=q);var O=Object.getOwnPropertyDescriptor(P,q);(!O||("get"in O?!P.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:function(){return P[q]}}),Object.defineProperty($,V,O)}):(function($,P,q,V){V===void 0&&(V=q),$[V]=P[q]})),r=_t&&_t.__setModuleDefault||(Object.create?(function($,P){Object.defineProperty($,"default",{enumerable:!0,value:P})}):function($,P){$.default=P}),n=_t&&_t.__importStar||function($){if($&&$.__esModule)return $;var P={};if($!=null)for(var q in $)q!=="default"&&Object.prototype.hasOwnProperty.call($,q)&&e(P,$,q);return r(P,$),P},o=_t&&_t.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=o(b0);t.htmlDecodeTree=s.default;var c=o(w0);t.xmlDecodeTree=c.default;var u=n(ov);t.decodeCodePoint=u.default;var d=ov;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return d.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return d.fromCodePoint}});var f;(function($){$[$.NUM=35]="NUM",$[$.SEMI=59]="SEMI",$[$.EQUALS=61]="EQUALS",$[$.ZERO=48]="ZERO",$[$.NINE=57]="NINE",$[$.LOWER_A=97]="LOWER_A",$[$.LOWER_F=102]="LOWER_F",$[$.LOWER_X=120]="LOWER_X",$[$.LOWER_Z=122]="LOWER_Z",$[$.UPPER_A=65]="UPPER_A",$[$.UPPER_F=70]="UPPER_F",$[$.UPPER_Z=90]="UPPER_Z"})(f||(f={}));var h=32,v;(function($){$[$.VALUE_LENGTH=49152]="VALUE_LENGTH",$[$.BRANCH_LENGTH=16256]="BRANCH_LENGTH",$[$.JUMP_TABLE=127]="JUMP_TABLE"})(v=t.BinTrieFlags||(t.BinTrieFlags={}));function m($){return $>=f.ZERO&&$<=f.NINE}function y($){return $>=f.UPPER_A&&$<=f.UPPER_F||$>=f.LOWER_A&&$<=f.LOWER_F}function x($){return $>=f.UPPER_A&&$<=f.UPPER_Z||$>=f.LOWER_A&&$<=f.LOWER_Z||m($)}function w($){return $===f.EQUALS||x($)}var C;(function($){$[$.EntityStart=0]="EntityStart",$[$.NumericStart=1]="NumericStart",$[$.NumericDecimal=2]="NumericDecimal",$[$.NumericHex=3]="NumericHex",$[$.NamedEntity=4]="NamedEntity"})(C||(C={}));var j;(function($){$[$.Legacy=0]="Legacy",$[$.Strict=1]="Strict",$[$.Attribute=2]="Attribute"})(j=t.DecodingMode||(t.DecodingMode={}));var k=(function(){function $(P,q,V){this.decodeTree=P,this.emitCodePoint=q,this.errors=V,this.state=C.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=j.Strict}return $.prototype.startEntity=function(P){this.decodeMode=P,this.state=C.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},$.prototype.write=function(P,q){switch(this.state){case C.EntityStart:return P.charCodeAt(q)===f.NUM?(this.state=C.NumericStart,this.consumed+=1,this.stateNumericStart(P,q+1)):(this.state=C.NamedEntity,this.stateNamedEntity(P,q));case C.NumericStart:return this.stateNumericStart(P,q);case C.NumericDecimal:return this.stateNumericDecimal(P,q);case C.NumericHex:return this.stateNumericHex(P,q);case C.NamedEntity:return this.stateNamedEntity(P,q)}},$.prototype.stateNumericStart=function(P,q){return q>=P.length?-1:(P.charCodeAt(q)|h)===f.LOWER_X?(this.state=C.NumericHex,this.consumed+=1,this.stateNumericHex(P,q+1)):(this.state=C.NumericDecimal,this.stateNumericDecimal(P,q))},$.prototype.addToNumericResult=function(P,q,V,O){if(q!==V){var U=V-q;this.result=this.result*Math.pow(O,U)+parseInt(P.substr(q,U),O),this.consumed+=U}},$.prototype.stateNumericHex=function(P,q){for(var V=q;q<P.length;){var O=P.charCodeAt(q);if(m(O)||y(O))q+=1;else return this.addToNumericResult(P,V,q,16),this.emitNumericEntity(O,3)}return this.addToNumericResult(P,V,q,16),-1},$.prototype.stateNumericDecimal=function(P,q){for(var V=q;q<P.length;){var O=P.charCodeAt(q);if(m(O))q+=1;else return this.addToNumericResult(P,V,q,10),this.emitNumericEntity(O,2)}return this.addToNumericResult(P,V,q,10),-1},$.prototype.emitNumericEntity=function(P,q){var V;if(this.consumed<=q)return(V=this.errors)===null||V===void 0||V.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(P===f.SEMI)this.consumed+=1;else if(this.decodeMode===j.Strict)return 0;return this.emitCodePoint((0,u.replaceCodePoint)(this.result),this.consumed),this.errors&&(P!==f.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},$.prototype.stateNamedEntity=function(P,q){for(var V=this.decodeTree,O=V[this.treeIndex],U=(O&v.VALUE_LENGTH)>>14;q<P.length;q++,this.excess++){var K=P.charCodeAt(q);if(this.treeIndex=E(V,O,this.treeIndex+Math.max(1,U),K),this.treeIndex<0)return this.result===0||this.decodeMode===j.Attribute&&(U===0||w(K))?0:this.emitNotTerminatedNamedEntity();if(O=V[this.treeIndex],U=(O&v.VALUE_LENGTH)>>14,U!==0){if(K===f.SEMI)return this.emitNamedEntityData(this.treeIndex,U,this.consumed+this.excess);this.decodeMode!==j.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},$.prototype.emitNotTerminatedNamedEntity=function(){var P,q=this,V=q.result,O=q.decodeTree,U=(O[V]&v.VALUE_LENGTH)>>14;return this.emitNamedEntityData(V,U,this.consumed),(P=this.errors)===null||P===void 0||P.missingSemicolonAfterCharacterReference(),this.consumed},$.prototype.emitNamedEntityData=function(P,q,V){var O=this.decodeTree;return this.emitCodePoint(q===1?O[P]&~v.VALUE_LENGTH:O[P+1],V),q===3&&this.emitCodePoint(O[P+2],V),V},$.prototype.end=function(){var P;switch(this.state){case C.NamedEntity:return this.result!==0&&(this.decodeMode!==j.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case C.NumericDecimal:return this.emitNumericEntity(0,2);case C.NumericHex:return this.emitNumericEntity(0,3);case C.NumericStart:return(P=this.errors)===null||P===void 0||P.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case C.EntityStart:return 0}},$})();t.EntityDecoder=k;function I($){var P="",q=new k($,function(V){return P+=(0,u.fromCodePoint)(V)});return function(O,U){for(var K=0,Y=0;(Y=O.indexOf("&",Y))>=0;){P+=O.slice(K,Y),q.startEntity(U);var te=q.write(O,Y+1);if(te<0){K=Y+q.end();break}K=Y+te,Y=te===0?K+1:K}var Q=P+O.slice(K);return P="",Q}}function E($,P,q,V){var O=(P&v.BRANCH_LENGTH)>>7,U=P&v.JUMP_TABLE;if(O===0)return U!==0&&V===U?q:-1;if(U){var K=V-U;return K<0||K>=O?-1:$[q+K]-1}for(var Y=q,te=Y+O-1;Y<=te;){var Q=Y+te>>>1,X=$[Q];if(X<V)Y=Q+1;else if(X>V)te=Q-1;else return $[Q+O]}return-1}t.determineBranch=E;var M=I(s.default),R=I(c.default);function L($,P){return P===void 0&&(P=j.Legacy),M($,P)}t.decodeHTML=L;function A($){return M($,j.Attribute)}t.decodeHTMLAttribute=A;function F($){return M($,j.Strict)}t.decodeHTMLStrict=F;function G($){return R($,j.Strict)}t.decodeXML=G})(sd);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=sd,r;(function(m){m[m.Tab=9]="Tab",m[m.NewLine=10]="NewLine",m[m.FormFeed=12]="FormFeed",m[m.CarriageReturn=13]="CarriageReturn",m[m.Space=32]="Space",m[m.ExclamationMark=33]="ExclamationMark",m[m.Number=35]="Number",m[m.Amp=38]="Amp",m[m.SingleQuote=39]="SingleQuote",m[m.DoubleQuote=34]="DoubleQuote",m[m.Dash=45]="Dash",m[m.Slash=47]="Slash",m[m.Zero=48]="Zero",m[m.Nine=57]="Nine",m[m.Semi=59]="Semi",m[m.Lt=60]="Lt",m[m.Eq=61]="Eq",m[m.Gt=62]="Gt",m[m.Questionmark=63]="Questionmark",m[m.UpperA=65]="UpperA",m[m.LowerA=97]="LowerA",m[m.UpperF=70]="UpperF",m[m.LowerF=102]="LowerF",m[m.UpperZ=90]="UpperZ",m[m.LowerZ=122]="LowerZ",m[m.LowerX=120]="LowerX",m[m.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(m){m[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(m){return m===r.Space||m===r.NewLine||m===r.Tab||m===r.FormFeed||m===r.CarriageReturn}function s(m){return m===r.Slash||m===r.Gt||o(m)}function c(m){return m>=r.Zero&&m<=r.Nine}function u(m){return m>=r.LowerA&&m<=r.LowerZ||m>=r.UpperA&&m<=r.UpperZ}function d(m){return m>=r.UpperA&&m<=r.UpperF||m>=r.LowerA&&m<=r.LowerF}var f;(function(m){m[m.NoValue=0]="NoValue",m[m.Unquoted=1]="Unquoted",m[m.Single=2]="Single",m[m.Double=3]="Double"})(f=t.QuoteType||(t.QuoteType={}));var h={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},v=(function(){function m(y,x){var w=y.xmlMode,C=w===void 0?!1:w,j=y.decodeEntities,k=j===void 0?!0:j;this.cbs=x,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=C,this.decodeEntities=k,this.entityTrie=C?e.xmlDecodeTree:e.htmlDecodeTree}return m.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},m.prototype.write=function(y){this.offset+=this.buffer.length,this.buffer=y,this.parse()},m.prototype.end=function(){this.running&&this.finish()},m.prototype.pause=function(){this.running=!1},m.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},m.prototype.getIndex=function(){return this.index},m.prototype.getSectionStart=function(){return this.sectionStart},m.prototype.stateText=function(y){y===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity)},m.prototype.stateSpecialStartSequence=function(y){var x=this.sequenceIndex===this.currentSequence.length,w=x?s(y):(y|32)===this.currentSequence[this.sequenceIndex];if(!w)this.isSpecial=!1;else if(!x){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(y)},m.prototype.stateInSpecialTag=function(y){if(this.sequenceIndex===this.currentSequence.length){if(y===r.Gt||o(y)){var x=this.index-this.currentSequence.length;if(this.sectionStart<x){var w=this.index;this.index=x,this.cbs.ontext(this.sectionStart,x),this.index=w}this.isSpecial=!1,this.sectionStart=x+2,this.stateInClosingTagName(y);return}this.sequenceIndex=0}(y|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===h.TitleEnd?this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(y===r.Lt)},m.prototype.stateCDATASequence=function(y){y===h.Cdata[this.sequenceIndex]?++this.sequenceIndex===h.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=h.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(y))},m.prototype.fastForwardTo=function(y){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===y)return!0;return this.index=this.buffer.length+this.offset-1,!1},m.prototype.stateInCommentLike=function(y){y===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):y!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},m.prototype.isTagStartChar=function(y){return this.xmlMode?!s(y):u(y)},m.prototype.startSpecial=function(y,x){this.isSpecial=!0,this.currentSequence=y,this.sequenceIndex=x,this.state=n.SpecialStartSequence},m.prototype.stateBeforeTagName=function(y){if(y===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(y===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(y)){var x=y|32;this.sectionStart=this.index,!this.xmlMode&&x===h.TitleEnd[2]?this.startSpecial(h.TitleEnd,3):this.state=!this.xmlMode&&x===h.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else y===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(y))},m.prototype.stateInTagName=function(y){s(y)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},m.prototype.stateBeforeClosingTagName=function(y){o(y)||(y===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(y)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},m.prototype.stateInClosingTagName=function(y){(y===r.Gt||o(y))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(y))},m.prototype.stateAfterClosingTagName=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeAttributeName=function(y){y===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):y===r.Slash?this.state=n.InSelfClosingTag:o(y)||(this.state=n.InAttributeName,this.sectionStart=this.index)},m.prototype.stateInSelfClosingTag=function(y){y===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(y)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},m.prototype.stateInAttributeName=function(y){(y===r.Eq||s(y))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(y))},m.prototype.stateAfterAttributeName=function(y){y===r.Eq?this.state=n.BeforeAttributeValue:y===r.Slash||y===r.Gt?(this.cbs.onattribend(f.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):o(y)||(this.cbs.onattribend(f.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},m.prototype.stateBeforeAttributeValue=function(y){y===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):y===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(y)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(y))},m.prototype.handleInAttributeValue=function(y,x){y===x||!this.decodeEntities&&this.fastForwardTo(x)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(x===r.DoubleQuote?f.Double:f.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},m.prototype.stateInAttributeValueDoubleQuotes=function(y){this.handleInAttributeValue(y,r.DoubleQuote)},m.prototype.stateInAttributeValueSingleQuotes=function(y){this.handleInAttributeValue(y,r.SingleQuote)},m.prototype.stateInAttributeValueNoQuotes=function(y){o(y)||y===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},m.prototype.stateBeforeDeclaration=function(y){y===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=y===r.Dash?n.BeforeComment:n.InDeclaration},m.prototype.stateInDeclaration=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},m.prototype.stateInProcessingInstruction=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeComment=function(y){y===r.Dash?(this.state=n.InCommentLike,this.currentSequence=h.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},m.prototype.stateInSpecialComment=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},m.prototype.stateBeforeSpecialS=function(y){var x=y|32;x===h.ScriptEnd[3]?this.startSpecial(h.ScriptEnd,4):x===h.StyleEnd[3]?this.startSpecial(h.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(y))},m.prototype.stateBeforeEntity=function(y){this.entityExcess=1,this.entityResult=0,y===r.Number?this.state=n.BeforeNumericEntity:y===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(y))},m.prototype.stateInNamedEntity=function(y){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,y),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var x=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(x){var w=(x>>14)-1;if(!this.allowLegacyEntity()&&y!==r.Semi)this.trieIndex+=w;else{var C=this.index-this.entityExcess+1;C>this.sectionStart&&this.emitPartial(this.sectionStart,C),this.entityResult=this.trieIndex,this.trieIndex+=w,this.entityExcess=0,this.sectionStart=this.index+1,w===0&&this.emitNamedEntity()}}},m.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var y=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(y){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},m.prototype.stateBeforeNumericEntity=function(y){(y|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(y))},m.prototype.emitNumericEntity=function(y){var x=this.index-this.entityExcess-1,w=x+2+ +(this.state===n.InHexEntity);w!==this.index&&(x>this.sectionStart&&this.emitPartial(this.sectionStart,x),this.sectionStart=this.index+Number(y),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},m.prototype.stateInNumericEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):c(y)?(this.entityResult=this.entityResult*10+(y-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.stateInHexEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):c(y)?(this.entityResult=this.entityResult*16+(y-r.Zero),this.entityExcess++):d(y)?(this.entityResult=this.entityResult*16+((y|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},m.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},m.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},m.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},m.prototype.parse=function(){for(;this.shouldContinue();){var y=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(y);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(y);break}case n.InSpecialTag:{this.stateInSpecialTag(y);break}case n.CDATASequence:{this.stateCDATASequence(y);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(y);break}case n.InAttributeName:{this.stateInAttributeName(y);break}case n.InCommentLike:{this.stateInCommentLike(y);break}case n.InSpecialComment:{this.stateInSpecialComment(y);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(y);break}case n.InTagName:{this.stateInTagName(y);break}case n.InClosingTagName:{this.stateInClosingTagName(y);break}case n.BeforeTagName:{this.stateBeforeTagName(y);break}case n.AfterAttributeName:{this.stateAfterAttributeName(y);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(y);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(y);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(y);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(y);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(y);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(y);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(y);break}case n.InDeclaration:{this.stateInDeclaration(y);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(y);break}case n.BeforeComment:{this.stateBeforeComment(y);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(y);break}case n.InNamedEntity:{this.stateInNamedEntity(y);break}case n.BeforeEntity:{this.stateBeforeEntity(y);break}case n.InHexEntity:{this.stateInHexEntity(y);break}case n.InNumericEntity:{this.stateInNumericEntity(y);break}default:this.stateBeforeNumericEntity(y)}this.index++}this.cleanup()},m.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},m.prototype.handleTrailingData=function(){var y=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,y,0):this.cbs.oncomment(this.sectionStart,y,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,y)},m.prototype.emitPartial=function(y,x){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(y,x):this.cbs.ontext(y,x)},m.prototype.emitCodePoint=function(y){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(y):this.cbs.ontextentity(y)},m})();t.default=v})(x0);var Zz=_t&&_t.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),eD=_t&&_t.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tD=_t&&_t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Zz(e,t,r);return eD(e,t),e};Object.defineProperty(id,"__esModule",{value:!0});id.Parser=void 0;var af=tD(x0),mC=sd,Hl=new Set(["input","option","optgroup","select","button","datalist","textarea"]),xr=new Set(["p"]),gC=new Set(["thead","tbody"]),yC=new Set(["dd","dt"]),vC=new Set(["rt","rp"]),rD=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",xr],["h1",xr],["h2",xr],["h3",xr],["h4",xr],["h5",xr],["h6",xr],["select",Hl],["input",Hl],["output",Hl],["button",Hl],["datalist",Hl],["textarea",Hl],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",yC],["dt",yC],["address",xr],["article",xr],["aside",xr],["blockquote",xr],["details",xr],["div",xr],["dl",xr],["fieldset",xr],["figcaption",xr],["figure",xr],["footer",xr],["form",xr],["header",xr],["hr",xr],["main",xr],["nav",xr],["ol",xr],["pre",xr],["section",xr],["table",xr],["ul",xr],["rt",vC],["rp",vC],["tbody",gC],["tfoot",gC]]),nD=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),xC=new Set(["math","svg"]),bC=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),oD=/\s|\//,iD=(function(){function t(e,r){r===void 0&&(r={});var n,o,s,c,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:af.default)(this.options,this),(u=(c=this.cbs).onparserinit)===null||u===void 0||u.call(c,this)}return t.prototype.ontext=function(e,r){var n,o,s=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,s),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,mC.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&nD.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,o,s;this.openTagStart=this.startIndex,this.tagname=e;var c=!this.options.xmlMode&&rD.get(e);if(c)for(;this.stack.length>0&&c.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.push(e),xC.has(e)?this.foreignContext.push(!0):bC.has(e)&&this.foreignContext.push(!1)),(s=(o=this.cbs).onopentagname)===null||s===void 0||s.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,o,s,c,u,d;this.endIndex=r;var f=this.getSlice(e,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),(xC.has(f)||bC.has(f))&&this.foreignContext.pop(),this.isVoidElement(f))!this.options.xmlMode&&f==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(c=(s=this.cbs).onopentag)===null||c===void 0||c.call(s,"br",{},!0),(d=(u=this.cbs).onclosetag)===null||d===void 0||d.call(u,"br",!1));else{var h=this.stack.lastIndexOf(f);if(h!==-1)if(this.cbs.onclosetag)for(var v=this.stack.length-h;v--;)this.cbs.onclosetag(this.stack.pop(),v!==0);else this.stack.length=h;else!this.options.xmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,mC.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===af.QuoteType.Double?'"':e===af.QuoteType.Single?"'":e===af.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(oD),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,s,c,u;this.endIndex=r,(s=(o=this.cbs).oncomment)===null||s===void 0||s.call(o,this.getSlice(e,r-n)),(u=(c=this.cbs).oncommentend)===null||u===void 0||u.call(c),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,s,c,u,d,f,h,v,m,y;this.endIndex=r;var x=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(o=this.cbs).oncdatastart)===null||s===void 0||s.call(o),(u=(c=this.cbs).ontext)===null||u===void 0||u.call(c,x),(f=(d=this.cbs).oncdataend)===null||f===void 0||f.call(d)):((v=(h=this.cbs).oncomment)===null||v===void 0||v.call(h,"[CDATA[".concat(x,"]]")),(y=(m=this.cbs).oncommentend)===null||y===void 0||y.call(m)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,o;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t})();id.Parser=iD;var xs={},_c={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(_c);var Qt={},ga=_t&&_t.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Hu=_t&&_t.__assign||function(){return Hu=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Hu.apply(this,arguments)};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.cloneNode=Qt.hasChildren=Qt.isDocument=Qt.isDirective=Qt.isComment=Qt.isText=Qt.isCDATA=Qt.isTag=Qt.Element=Qt.Document=Qt.CDATA=Qt.NodeWithChildren=Qt.ProcessingInstruction=Qt.Comment=Qt.Text=Qt.DataNode=Qt.Node=void 0;var Zn=_c,S0=(function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),C0(this,e)},t})();Qt.Node=S0;var Dh=(function(t){ga(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e})(S0);Qt.DataNode=Dh;var zT=(function(t){ga(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e})(Dh);Qt.Text=zT;var DT=(function(t){ga(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e})(Dh);Qt.Comment=DT;var FT=(function(t){ga(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=Zn.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e})(Dh);Qt.ProcessingInstruction=FT;var Fh=(function(t){ga(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e})(S0);Qt.NodeWithChildren=Fh;var HT=(function(t){ga(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e})(Fh);Qt.CDATA=HT;var UT=(function(t){ga(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e})(Fh);Qt.Document=UT;var VT=(function(t){ga(e,t);function e(r,n,o,s){o===void 0&&(o=[]),s===void 0&&(s=r==="script"?Zn.ElementType.Script:r==="style"?Zn.ElementType.Style:Zn.ElementType.Tag);var c=t.call(this,o)||this;return c.name=r,c.attribs=n,c.type=s,c}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,s;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e})(Fh);Qt.Element=VT;function WT(t){return(0,Zn.isTag)(t)}Qt.isTag=WT;function qT(t){return t.type===Zn.ElementType.CDATA}Qt.isCDATA=qT;function GT(t){return t.type===Zn.ElementType.Text}Qt.isText=GT;function XT(t){return t.type===Zn.ElementType.Comment}Qt.isComment=XT;function KT(t){return t.type===Zn.ElementType.Directive}Qt.isDirective=KT;function QT(t){return t.type===Zn.ElementType.Root}Qt.isDocument=QT;function sD(t){return Object.prototype.hasOwnProperty.call(t,"children")}Qt.hasChildren=sD;function C0(t,e){e===void 0&&(e=!1);var r;if(GT(t))r=new zT(t.data);else if(XT(t))r=new DT(t.data);else if(WT(t)){var n=e?ny(t.children):[],o=new VT(t.name,Hu({},t.attribs),n);n.forEach(function(d){return d.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=Hu({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=Hu({},t["x-attribsPrefix"])),r=o}else if(qT(t)){var n=e?ny(t.children):[],s=new HT(n);n.forEach(function(f){return f.parent=s}),r=s}else if(QT(t)){var n=e?ny(t.children):[],c=new UT(n);n.forEach(function(f){return f.parent=c}),t["x-mode"]&&(c["x-mode"]=t["x-mode"]),r=c}else if(KT(t)){var u=new FT(t.name,t.data);t["x-name"]!=null&&(u["x-name"]=t["x-name"],u["x-publicId"]=t["x-publicId"],u["x-systemId"]=t["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}Qt.cloneNode=C0;function ny(t){for(var e=t.map(function(n){return C0(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=_t&&_t.__createBinding||(Object.create?(function(u,d,f,h){h===void 0&&(h=f);var v=Object.getOwnPropertyDescriptor(d,f);(!v||("get"in v?!d.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(u,h,v)}):(function(u,d,f,h){h===void 0&&(h=f),u[h]=d[f]})),r=_t&&_t.__exportStar||function(u,d){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&e(d,u,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=_c,o=Qt;r(Qt,t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=(function(){function u(d,f,h){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(h=f,f=s),typeof d=="object"&&(f=d,d=void 0),this.callback=d??null,this.options=f??s,this.elementCB=h??null}return u.prototype.onparserinit=function(d){this.parser=d},u.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(d){this.handleCallback(d)},u.prototype.onclosetag=function(){this.lastNode=null;var d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)},u.prototype.onopentag=function(d,f){var h=this.options.xmlMode?n.ElementType.Tag:void 0,v=new o.Element(d,f,void 0,h);this.addNode(v),this.tagStack.push(v)},u.prototype.ontext=function(d){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=d,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var h=new o.Text(d);this.addNode(h),this.lastNode=h}},u.prototype.oncomment=function(d){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=d;return}var f=new o.Comment(d);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var d=new o.Text(""),f=new o.CDATA([d]);this.addNode(f),d.parent=f,this.lastNode=d},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(d,f){var h=new o.ProcessingInstruction(d,f);this.addNode(h)},u.prototype.handleCallback=function(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d},u.prototype.addNode=function(d){var f=this.tagStack[this.tagStack.length-1],h=f.children[f.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),f.children.push(d),h&&(d.prev=h,h.next=d),d.parent=f,this.lastNode=null},u})();t.DomHandler=c,t.default=c})(xs);var jf={},ya={},Rd={},YT={},Ka={},E0={};Object.defineProperty(E0,"__esModule",{value:!0});function lf(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}E0.default=new Map(lf([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(lf([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(lf([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(lf([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Gf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,s){return o.codePointAt(s)}:(function(o,s){return(o.charCodeAt(s)&64512)===55296?(o.charCodeAt(s)-55296)*1024+o.charCodeAt(s+1)-56320+65536:o.charCodeAt(s)});function r(o){for(var s="",c=0,u;(u=t.xmlReplacer.exec(o))!==null;){var d=u.index,f=o.charCodeAt(d),h=e.get(f);h!==void 0?(s+=o.substring(c,d)+h,c=d+1):(s+="".concat(o.substring(c,d),"&#x").concat((0,t.getCodePoint)(o,d).toString(16),";"),c=t.xmlReplacer.lastIndex+=+((f&64512)===55296))}return s+o.substr(c)}t.encodeXML=r,t.escape=r;function n(o,s){return function(u){for(var d,f=0,h="";d=o.exec(u);)f!==d.index&&(h+=u.substring(f,d.index)),h+=s.get(d[0].charCodeAt(0)),f=d.index+1;return h+u.substring(f)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Gf);var aD=_t&&_t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.encodeNonAsciiHTML=Ka.encodeHTML=void 0;var lD=aD(E0),JT=Gf,cD=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function uD(t){return ZT(cD,t)}Ka.encodeHTML=uD;function dD(t){return ZT(JT.xmlReplacer,t)}Ka.encodeNonAsciiHTML=dD;function ZT(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var s=o.index;r+=e.substring(n,s);var c=e.charCodeAt(s),u=lD.default.get(c);if(typeof u=="object"){if(s+1<e.length){var d=e.charCodeAt(s+1),f=typeof u.n=="number"?u.n===d?u.o:void 0:u.n.get(d);if(f!==void 0){r+=f,n=t.lastIndex+=1;continue}}u=u.v}if(u!==void 0)r+=u,n=s+1;else{var h=(0,JT.getCodePoint)(e,s);r+="&#x".concat(h.toString(16),";"),n=t.lastIndex+=+(h!==c)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=sd,r=Ka,n=Gf,o;(function(m){m[m.XML=0]="XML",m[m.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var s;(function(m){m[m.UTF8=0]="UTF8",m[m.ASCII=1]="ASCII",m[m.Extensive=2]="Extensive",m[m.Attribute=3]="Attribute",m[m.Text=4]="Text"})(s=t.EncodingMode||(t.EncodingMode={}));function c(m,y){y===void 0&&(y=o.XML);var x=typeof y=="number"?y:y.level;if(x===o.HTML){var w=typeof y=="object"?y.mode:void 0;return(0,e.decodeHTML)(m,w)}return(0,e.decodeXML)(m)}t.decode=c;function u(m,y){var x;y===void 0&&(y=o.XML);var w=typeof y=="number"?{level:y}:y;return(x=w.mode)!==null&&x!==void 0||(w.mode=e.DecodingMode.Strict),c(m,w)}t.decodeStrict=u;function d(m,y){y===void 0&&(y=o.XML);var x=typeof y=="number"?{level:y}:y;return x.mode===s.UTF8?(0,n.escapeUTF8)(m):x.mode===s.Attribute?(0,n.escapeAttribute)(m):x.mode===s.Text?(0,n.escapeText)(m):x.level===o.HTML?x.mode===s.ASCII?(0,r.encodeNonAsciiHTML)(m):(0,r.encodeHTML)(m):(0,n.encodeXML)(m)}t.encode=d;var f=Gf;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var h=Ka;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return h.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return h.encodeHTML}});var v=sd;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return v.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return v.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return v.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return v.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return v.decodeXML}})})(YT);var gc={};Object.defineProperty(gc,"__esModule",{value:!0});gc.attributeNames=gc.elementNames=void 0;gc.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));gc.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var Kl=_t&&_t.__assign||function(){return Kl=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Kl.apply(this,arguments)},pD=_t&&_t.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fD=_t&&_t.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hD=_t&&_t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pD(e,t,r);return fD(e,t),e};Object.defineProperty(Rd,"__esModule",{value:!0});Rd.render=void 0;var ds=hD(_c),Xf=YT,ek=gc,mD=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function gD(t){return t.replace(/"/g,""")}function yD(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?gD:e.xmlMode||e.encodeEntities!=="utf8"?Xf.encodeXML:Xf.escapeAttribute;return Object.keys(t).map(function(o){var s,c,u=(s=t[o])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(o=(c=ek.attributeNames.get(o))!==null&&c!==void 0?c:o),!e.emptyAttrs&&!e.xmlMode&&u===""?o:"".concat(o,'="').concat(n(u),'"')}).join(" ")}}var wC=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Hh(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=vD(r[o],e);return n}Rd.render=Hh;Rd.default=Hh;function vD(t,e){switch(t.type){case ds.Root:return Hh(t.children,e);case ds.Doctype:case ds.Directive:return SD(t);case ds.Comment:return TD(t);case ds.CDATA:return ED(t);case ds.Script:case ds.Style:case ds.Tag:return wD(t,e);case ds.Text:return CD(t,e)}}var xD=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),bD=new Set(["svg","math"]);function wD(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=ek.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&xD.has(t.parent.name)&&(e=Kl(Kl({},e),{xmlMode:!1}))),!e.xmlMode&&bD.has(t.name)&&(e=Kl(Kl({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=yD(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&wC.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=Hh(t.children,e)),(e.xmlMode||!wC.has(t.name))&&(n+="</".concat(t.name,">"))),n}function SD(t){return"<".concat(t.data,">")}function CD(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&mD.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Xf.encodeXML)(n):(0,Xf.escapeText)(n)),n}function ED(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function TD(t){return"<!--".concat(t.data,"-->")}var kD=_t&&_t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ya,"__esModule",{value:!0});ya.getOuterHTML=tk;ya.getInnerHTML=ID;ya.getText=Pf;ya.textContent=iv;ya.innerText=sv;var Fi=xs,jD=kD(Rd),PD=_c;function tk(t,e){return(0,jD.default)(t,e)}function ID(t,e){return(0,Fi.hasChildren)(t)?t.children.map(function(r){return tk(r,e)}).join(""):""}function Pf(t){return Array.isArray(t)?t.map(Pf).join(""):(0,Fi.isTag)(t)?t.name==="br"?`
|
|
339
|
+
`:Pf(t.children):(0,Fi.isCDATA)(t)?Pf(t.children):(0,Fi.isText)(t)?t.data:""}function iv(t){return Array.isArray(t)?t.map(iv).join(""):(0,Fi.hasChildren)(t)&&!(0,Fi.isComment)(t)?iv(t.children):(0,Fi.isText)(t)?t.data:""}function sv(t){return Array.isArray(t)?t.map(sv).join(""):(0,Fi.hasChildren)(t)&&(t.type===PD.ElementType.Tag||(0,Fi.isCDATA)(t))?sv(t.children):(0,Fi.isText)(t)?t.data:""}var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.getChildren=rk;Zi.getParent=nk;Zi.getSiblings=MD;Zi.getAttributeValue=RD;Zi.hasAttrib=AD;Zi.getName=_D;Zi.nextElementSibling=LD;Zi.prevElementSibling=OD;var T0=xs;function rk(t){return(0,T0.hasChildren)(t)?t.children:[]}function nk(t){return t.parent||null}function MD(t){var e,r,n=nk(t);if(n!=null)return rk(n);for(var o=[t],s=t.prev,c=t.next;s!=null;)o.unshift(s),e=s,s=e.prev;for(;c!=null;)o.push(c),r=c,c=r.next;return o}function RD(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function AD(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function _D(t){return t.name}function LD(t){for(var e,r=t.next;r!==null&&!(0,T0.isTag)(r);)e=r,r=e.next;return r}function OD(t){for(var e,r=t.prev;r!==null&&!(0,T0.isTag)(r);)e=r,r=e.prev;return r}var va={};Object.defineProperty(va,"__esModule",{value:!0});va.removeElement=Ad;va.replaceElement=$D;va.appendChild=ND;va.append=BD;va.prependChild=zD;va.prepend=DD;function Ad(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function $D(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var s=o.children;s[s.lastIndexOf(t)]=e,t.parent=null}}function ND(t,e){if(Ad(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function BD(t,e){Ad(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function zD(t,e){if(Ad(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function DD(t,e){Ad(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.filter=FD;Cs.find=ok;Cs.findOneChild=HD;Cs.findOne=ik;Cs.existsOne=sk;Cs.findAll=UD;var Qa=xs;function FD(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),ok(t,Array.isArray(e)?e:[e],r,n)}function ok(t,e,r,n){for(var o=[],s=[Array.isArray(e)?e:[e]],c=[0];;){if(c[0]>=s[0].length){if(c.length===1)return o;s.shift(),c.shift();continue}var u=s[0][c[0]++];if(t(u)&&(o.push(u),--n<=0))return o;r&&(0,Qa.hasChildren)(u)&&u.children.length>0&&(c.unshift(0),s.unshift(u.children))}}function HD(t,e){return e.find(t)}function ik(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var s=n[o];if((0,Qa.isTag)(s)&&t(s))return s;if(r&&(0,Qa.hasChildren)(s)&&s.children.length>0){var c=ik(t,s.children,!0);if(c)return c}}return null}function sk(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Qa.isTag)(r)&&t(r)||(0,Qa.hasChildren)(r)&&sk(t,r.children)})}function UD(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var s=n[0][o[0]++];(0,Qa.isTag)(s)&&t(s)&&r.push(s),(0,Qa.hasChildren)(s)&&s.children.length>0&&(o.unshift(0),n.unshift(s.children))}}var Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.testElement=WD;Es.getElements=qD;Es.getElementById=GD;Es.getElementsByTagName=XD;Es.getElementsByClassName=KD;Es.getElementsByTagType=QD;var Da=xs,_d=Cs,Kf={tag_name:function(t){return typeof t=="function"?function(e){return(0,Da.isTag)(e)&&t(e.name)}:t==="*"?Da.isTag:function(e){return(0,Da.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Da.isText)(e)&&t(e.data)}:function(e){return(0,Da.isText)(e)&&e.data===t}}};function k0(t,e){return typeof e=="function"?function(r){return(0,Da.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Da.isTag)(r)&&r.attribs[t]===e}}function VD(t,e){return function(r){return t(r)||e(r)}}function ak(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Kf,r)?Kf[r](n):k0(r,n)});return e.length===0?null:e.reduce(VD)}function WD(t,e){var r=ak(t);return r?r(e):!0}function qD(t,e,r,n){n===void 0&&(n=1/0);var o=ak(t);return o?(0,_d.filter)(o,e,r,n):[]}function GD(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,_d.findOne)(k0("id",t),e,r)}function XD(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,_d.filter)(Kf.tag_name(t),e,r,n)}function KD(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,_d.filter)(k0("class",t),e,r,n)}function QD(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,_d.filter)(Kf.tag_type(t),e,r,n)}var il={};Object.defineProperty(il,"__esModule",{value:!0});il.DocumentPosition=void 0;il.removeSubsets=YD;il.compareDocumentPosition=lk;il.uniqueSort=JD;var SC=xs;function YD(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var ii;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(ii||(il.DocumentPosition=ii={}));function lk(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,SC.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,SC.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var s=Math.min(r.length,n.length),c=0;c<s&&r[c]===n[c];)c++;if(c===0)return ii.DISCONNECTED;var u=r[c-1],d=u.children,f=r[c],h=n[c];return d.indexOf(f)>d.indexOf(h)?u===e?ii.FOLLOWING|ii.CONTAINED_BY:ii.FOLLOWING:u===t?ii.PRECEDING|ii.CONTAINS:ii.PRECEDING}function JD(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=lk(e,r);return n&ii.PRECEDING?-1:n&ii.FOLLOWING?1:0}),t}var j0={};Object.defineProperty(j0,"__esModule",{value:!0});j0.getFeed=eF;var ZD=ya,Ld=Es;function eF(t){var e=Qf(iF,t);return e?e.name==="feed"?tF(e):rF(e):null}function tF(t){var e,r=t.children,n={type:"atom",items:(0,Ld.getElementsByTagName)("entry",r).map(function(c){var u,d=c.children,f={media:ck(d)};Qn(f,"id","id",d),Qn(f,"title","title",d);var h=(u=Qf("link",d))===null||u===void 0?void 0:u.attribs.href;h&&(f.link=h);var v=Ys("summary",d)||Ys("content",d);v&&(f.description=v);var m=Ys("updated",d);return m&&(f.pubDate=new Date(m)),f})};Qn(n,"id","id",r),Qn(n,"title","title",r);var o=(e=Qf("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Qn(n,"description","subtitle",r);var s=Ys("updated",r);return s&&(n.updated=new Date(s)),Qn(n,"author","email",r,!0),n}function rF(t){var e,r,n=(r=(e=Qf("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,Ld.getElementsByTagName)("item",t.children).map(function(c){var u=c.children,d={media:ck(u)};Qn(d,"id","guid",u),Qn(d,"title","title",u),Qn(d,"link","link",u),Qn(d,"description","description",u);var f=Ys("pubDate",u)||Ys("dc:date",u);return f&&(d.pubDate=new Date(f)),d})};Qn(o,"title","title",n),Qn(o,"link","link",n),Qn(o,"description","description",n);var s=Ys("lastBuildDate",n);return s&&(o.updated=new Date(s)),Qn(o,"author","managingEditor",n,!0),o}var nF=["url","type","lang"],oF=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ck(t){return(0,Ld.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,s=nF;o<s.length;o++){var c=s[o];r[c]&&(n[c]=r[c])}for(var u=0,d=oF;u<d.length;u++){var c=d[u];r[c]&&(n[c]=parseInt(r[c],10))}return r.expression&&(n.expression=r.expression),n})}function Qf(t,e){return(0,Ld.getElementsByTagName)(t,e,!0,1)[0]}function Ys(t,e,r){return r===void 0&&(r=!1),(0,ZD.textContent)((0,Ld.getElementsByTagName)(t,e,r,1)).trim()}function Qn(t,e,r,n,o){o===void 0&&(o=!1);var s=Ys(r,n,o);s&&(t[e]=s)}function iF(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=_t&&_t.__createBinding||(Object.create?(function(o,s,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(s,c);(!d||("get"in d?!s.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(o,u,d)}):(function(o,s,c,u){u===void 0&&(u=c),o[u]=s[c]})),r=_t&&_t.__exportStar||function(o,s){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(s,c)&&e(s,o,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(ya,t),r(Zi,t),r(va,t),r(Cs,t),r(Es,t),r(il,t),r(j0,t);var n=xs;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(jf);(function(t){var e=_t&&_t.__createBinding||(Object.create?(function(j,k,I,E){E===void 0&&(E=I);var M=Object.getOwnPropertyDescriptor(k,I);(!M||("get"in M?!k.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return k[I]}}),Object.defineProperty(j,E,M)}):(function(j,k,I,E){E===void 0&&(E=I),j[E]=k[I]})),r=_t&&_t.__setModuleDefault||(Object.create?(function(j,k){Object.defineProperty(j,"default",{enumerable:!0,value:k})}):function(j,k){j.default=k}),n=_t&&_t.__importStar||function(j){if(j&&j.__esModule)return j;var k={};if(j!=null)for(var I in j)I!=="default"&&Object.prototype.hasOwnProperty.call(j,I)&&e(k,j,I);return r(k,j),k},o=_t&&_t.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=id,c=id;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return c.Parser}});var u=xs,d=xs;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return d.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return d.DomHandler}});function f(j,k){var I=new u.DomHandler(void 0,k);return new s.Parser(I,k).end(j),I.root}t.parseDocument=f;function h(j,k){return f(j,k).children}t.parseDOM=h;function v(j,k,I){var E=new u.DomHandler(j,k,I);return new s.Parser(E,k)}t.createDomStream=v;var m=x0;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(m).default}}),t.ElementType=n(_c);var y=jf,x=jf;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return x.getFeed}});var w={xmlMode:!0};function C(j,k){return k===void 0&&(k=w),(0,y.getFeed)(h(j,k))}t.parseFeed=C,t.DomUtils=n(jf)})(BT);var sF=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},P0={};Object.defineProperty(P0,"__esModule",{value:!0});/*!
|
|
340
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
341
|
+
*
|
|
342
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
343
|
+
* Released under the MIT License.
|
|
344
|
+
*/function CC(t){return Object.prototype.toString.call(t)==="[object Object]"}function aF(t){var e,r;return CC(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(CC(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}P0.isPlainObject=aF;var lF=function(e){return cF(e)&&!uF(e)};function cF(t){return!!t&&typeof t=="object"}function uF(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||fF(t)}var dF=typeof Symbol=="function"&&Symbol.for,pF=dF?Symbol.for("react.element"):60103;function fF(t){return t.$$typeof===pF}function hF(t){return Array.isArray(t)?[]:{}}function ad(t,e){return e.clone!==!1&&e.isMergeableObject(t)?yc(hF(t),t,e):t}function mF(t,e,r){return t.concat(e).map(function(n){return ad(n,r)})}function gF(t,e){if(!e.customMerge)return yc;var r=e.customMerge(t);return typeof r=="function"?r:yc}function yF(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function EC(t){return Object.keys(t).concat(yF(t))}function uk(t,e){try{return e in t}catch{return!1}}function vF(t,e){return uk(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function xF(t,e,r){var n={};return r.isMergeableObject(t)&&EC(t).forEach(function(o){n[o]=ad(t[o],r)}),EC(e).forEach(function(o){vF(t,o)||(uk(t,o)&&r.isMergeableObject(e[o])?n[o]=gF(o,r)(t[o],e[o],r):n[o]=ad(e[o],r))}),n}function yc(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||mF,r.isMergeableObject=r.isMergeableObject||lF,r.cloneUnlessOtherwiseSpecified=ad;var n=Array.isArray(e),o=Array.isArray(t),s=n===o;return s?n?r.arrayMerge(t,e,r):xF(t,e,r):ad(e,r)}yc.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return yc(n,o,r)},{})};var bF=yc,wF=bF,dk={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(_t,function(){return function(e){function r(E){return E===" "||E===" "||E===`
|
|
345
|
+
`||E==="\f"||E==="\r"}function n(E){var M,R=E.exec(e.substring(C));if(R)return M=R[0],C+=M.length,M}for(var o=e.length,s=/^[ \t\n\r\u000c]+/,c=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,v,m,y,x,w,C=0,j=[];;){if(n(c),C>=o)return j;v=n(u),m=[],v.slice(-1)===","?(v=v.replace(d,""),I()):k()}function k(){for(n(s),y="",x="in descriptor";;){if(w=e.charAt(C),x==="in descriptor")if(r(w))y&&(m.push(y),y="",x="after descriptor");else if(w===","){C+=1,y&&m.push(y),I();return}else if(w==="(")y=y+w,x="in parens";else if(w===""){y&&m.push(y),I();return}else y=y+w;else if(x==="in parens")if(w===")")y=y+w,x="in descriptor";else if(w===""){m.push(y),I();return}else y=y+w;else if(x==="after descriptor"&&!r(w))if(w===""){I();return}else x="in descriptor",C-=1;C+=1}}function I(){var E=!1,M,R,L,A,F={},G,$,P,q,V;for(A=0;A<m.length;A++)G=m[A],$=G[G.length-1],P=G.substring(0,G.length-1),q=parseInt(P,10),V=parseFloat(P),f.test(P)&&$==="w"?((M||R)&&(E=!0),q===0?E=!0:M=q):h.test(P)&&$==="x"?((M||R||L)&&(E=!0),V<0?E=!0:R=V):f.test(P)&&$==="h"?((L||R)&&(E=!0),q===0?E=!0:L=q):E=!0;E?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+G+"'."):(F.url=v,M&&(F.w=M),R&&(F.d=R),L&&(F.h=L),j.push(F))}}})})(dk);var SF=dk.exports,I0={exports:{}},Ft=String,pk=function(){return{isColorSupported:!1,reset:Ft,bold:Ft,dim:Ft,italic:Ft,underline:Ft,inverse:Ft,hidden:Ft,strikethrough:Ft,black:Ft,red:Ft,green:Ft,yellow:Ft,blue:Ft,magenta:Ft,cyan:Ft,white:Ft,gray:Ft,bgBlack:Ft,bgRed:Ft,bgGreen:Ft,bgYellow:Ft,bgBlue:Ft,bgMagenta:Ft,bgCyan:Ft,bgWhite:Ft,blackBright:Ft,redBright:Ft,greenBright:Ft,yellowBright:Ft,blueBright:Ft,magentaBright:Ft,cyanBright:Ft,whiteBright:Ft,bgBlackBright:Ft,bgRedBright:Ft,bgGreenBright:Ft,bgYellowBright:Ft,bgBlueBright:Ft,bgMagentaBright:Ft,bgCyanBright:Ft,bgWhiteBright:Ft}};I0.exports=pk();I0.exports.createColors=pk;var CF=I0.exports,EF={},TF=Object.freeze({__proto__:null,default:EF}),mi=Jz(TF);let TC=CF,kC=mi,av=class fk extends Error{constructor(e,r,n,o,s,c){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),o&&(this.source=o),c&&(this.plugin=c),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fk)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=TC.isColorSupported);let n=h=>h,o=h=>h,s=h=>h;if(e){let{bold:h,gray:v,red:m}=TC.createColors(!0);o=y=>h(m(y)),n=y=>v(y),kC&&(s=y=>kC(y))}let c=r.split(/\r?\n/),u=Math.max(this.line-3,0),d=Math.min(this.line+2,c.length),f=String(d).length;return c.slice(u,d).map((h,v)=>{let m=u+1+v,y=" "+(" "+m).slice(-f)+" | ";if(m===this.line){if(h.length>160){let w=20,C=Math.max(0,this.column-w),j=Math.max(this.column+w,this.endColumn+w),k=h.slice(C,j),I=n(y.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return o(">")+n(y)+s(k)+`
|
|
346
|
+
`+I+o("^")}let x=n(y.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(y)+s(h)+`
|
|
347
|
+
`+x+o("^")}return" "+n(y)+s(h)}).join(`
|
|
348
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
349
|
+
|
|
350
|
+
`+e+`
|
|
351
|
+
`),this.name+": "+this.message+e}};var M0=av;av.default=av;const jC={after:`
|
|
352
|
+
`,beforeClose:`
|
|
353
|
+
`,beforeComment:`
|
|
354
|
+
`,beforeDecl:`
|
|
355
|
+
`,beforeOpen:" ",beforeRule:`
|
|
356
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function kF(t){return t[0].toUpperCase()+t.slice(1)}let lv=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let s=(e.raws.between||"")+(r?";":"");this.builder(n+o+s,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let o=e.parent,s=0;for(;o&&o.type!=="root";)s+=1,o=o.parent;if(n.includes(`
|
|
357
|
+
`)){let c=this.raw(e,null,"indent");if(c.length)for(let u=0;u<s;u++)n+=c}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let s=e.nodes[o],c=this.raw(s,"before");c&&this.builder(c),this.stringify(s,r!==o||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return jC[n];let c=e.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[n]<"u")return c.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let u="raw"+kF(n);this[u]?o=this[u](c,e):c.walk(d=>{if(o=d.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=jC[n]),c.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
358
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
359
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
360
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
361
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let s=n.raws.before.split(`
|
|
362
|
+
`);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var hk=lv;lv.default=lv;let jF=hk;function cv(t,e){new jF(e).stringify(t)}var Uh=cv;cv.default=cv;var Od={};Od.isClean=Symbol("isClean");Od.my=Symbol("my");let PF=M0,IF=hk,MF=Uh,{isClean:Tu,my:RF}=Od;function uv(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],s=typeof o;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(c=>uv(c,r)):(s==="object"&&o!==null&&(o=uv(o)),r[n]=o)}return r}function ps(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let s=0;s<t.length;s++){if(n===e.line&&r===e.column){o=s;break}t[s]===`
|
|
363
|
+
`?(r=1,n+=1):r+=1}return o}let dv=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Tu]=!1,this[RF]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=uv(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new PF(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[Tu]=!0}markDirty(){if(this[Tu]){this[Tu]=!1;let e=this;for(;e=e.parent;)e[Tu]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(ps(n,this.source.start),ps(n,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,s=ps(o,this.source.start),c=s+e;for(let u=s;u<c;u++)o[u]===`
|
|
364
|
+
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:c}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:ps(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:ps(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let c=r.slice(ps(r,this.source.start),ps(r,this.source.end)).indexOf(e.word);c!==-1&&(n=this.positionInside(c),o=this.positionInside(c+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:ps(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:ps(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new IF().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},o=r==null;r=r||new Map;let s=0;for(let c in this){if(!Object.prototype.hasOwnProperty.call(this,c)||c==="parent"||c==="proxyCache")continue;let u=this[c];if(Array.isArray(u))n[c]=u.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,r):d);else if(typeof u=="object"&&u.toJSON)n[c]=u.toJSON(null,r);else if(c==="source"){if(u==null)continue;let d=r.get(u.input);d==null&&(d=s,r.set(u.input,s),s++),n[c]={end:u.end,inputId:d,start:u.start}}else n[c]=u}return o&&(n.inputs=[...r.keys()].map(c=>c.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=MF){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let s in n)o[s]=n[s];return e.warn(r,o)}};var Vh=dv;dv.default=dv;let AF=Vh,pv=class extends AF{constructor(e){super(e),this.type="comment"}};var Wh=pv;pv.default=pv;let _F=Vh,fv=class extends _F{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var qh=fv;fv.default=fv;let mk=Wh,gk=qh,LF=Vh,{isClean:yk,my:vk}=Od,R0,xk,bk,A0;function wk(t){return t.map(e=>(e.nodes&&(e.nodes=wk(e.nodes)),delete e.source,e))}function Sk(t){if(t[yk]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Sk(e)}let bs=class Ck extends LF{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(o=>typeof o=="function"?(s,c)=>o(s.toProxy(),c):o)):r==="every"||r==="some"?n=>e[r]((o,...s)=>n(o.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let c of o)this.proxyOf.nodes.splice(n+1,0,c);let s;for(let c in this.indexes)s=this.indexes[c],n<s&&(this.indexes[c]=s+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let u of s)this.proxyOf.nodes.splice(n,0,u);let c;for(let u in this.indexes)c=this.indexes[u],n<=c&&(this.indexes[u]=c+s.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=wk(xk(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new gk(e)]}else if(e.selector||e.selectors)e=[new A0(e)];else if(e.name)e=[new R0(e)];else if(e.text)e=[new mk(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[vk]||Ck.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[yk]&&Sk(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(s){throw r.addToError(s)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};bs.registerParse=t=>{xk=t};bs.registerRule=t=>{A0=t};bs.registerAtRule=t=>{R0=t};bs.registerRoot=t=>{bk=t};var sl=bs;bs.default=bs;bs.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,R0.prototype):t.type==="rule"?Object.setPrototypeOf(t,A0.prototype):t.type==="decl"?Object.setPrototypeOf(t,gk.prototype):t.type==="comment"?Object.setPrototypeOf(t,mk.prototype):t.type==="root"&&Object.setPrototypeOf(t,bk.prototype),t[vk]=!0,t.nodes&&t.nodes.forEach(e=>{bs.rebuild(e)})};let Ek=sl,Yf=class extends Ek{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var _0=Yf;Yf.default=Yf;Ek.registerAtRule(Yf);let OF=sl,Tk,kk,ld=class extends OF{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Tk(new kk,this,e).stringify()}};ld.registerLazyResult=t=>{Tk=t};ld.registerProcessor=t=>{kk=t};var L0=ld;ld.default=ld;let $F="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",NF=(t=21)=>{let e="",r=t|0;for(;r--;)e+=$F[Math.random()*64|0];return e};var BF={nanoid:NF};let{existsSync:zF,readFileSync:DF}=mi,{dirname:oy,join:FF}=mi,{SourceMapConsumer:PC,SourceMapGenerator:IC}=mi;function HF(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let hv=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=oy(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new PC(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,c=e.match(o)||e.match(s);if(c)return decodeURIComponent(e.substr(c[0].length));let u=e.match(r)||e.match(n);if(u)return HF(e.substr(u[0].length));let d=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=oy(e),zF(e))return this.mapFile=e,DF(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof PC)return IC.fromSourceMap(r).toString();if(r instanceof IC)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=FF(oy(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var jk=hv;hv.default=hv;let{nanoid:UF}=BF,{isAbsolute:mv,resolve:gv}=mi,{SourceMapConsumer:VF,SourceMapGenerator:WF}=mi,{fileURLToPath:MC,pathToFileURL:cf}=mi,RC=M0,qF=jk,iy=mi,sy=Symbol("lineToIndexCache"),GF=!!(VF&&WF),AC=!!(gv&&mv);function _C(t){if(t[sy])return t[sy];let e=t.css.split(`
|
|
365
|
+
`),r=new Array(e.length),n=0;for(let o=0,s=e.length;o<s;o++)r[o]=n,n+=e[o].length+1;return t[sy]=r,r}let Jf=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!AC||/^\w+:\/\//.test(r.from)||mv(r.from)?this.file=r.from:this.file=gv(r.from)),AC&&GF){let n=new qF(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+UF(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let s,c,u,d,f;if(r&&typeof r=="object"){let v=r,m=n;if(typeof v.offset=="number"){d=v.offset;let y=this.fromOffset(d);r=y.line,n=y.col}else r=v.line,n=v.column,d=this.fromLineAndColumn(r,n);if(typeof m.offset=="number"){u=m.offset;let y=this.fromOffset(u);c=y.line,s=y.col}else c=m.line,s=m.column,u=this.fromLineAndColumn(m.line,m.column)}else if(n)d=this.fromLineAndColumn(r,n);else{d=r;let v=this.fromOffset(d);r=v.line,n=v.col}let h=this.origin(r,n,c,s);return h?f=new RC(e,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,o.plugin):f=new RC(e,c===void 0?r:{column:n,line:r},c===void 0?n:{column:s,line:c},this.css,this.file,o.plugin),f.input={column:n,endColumn:s,endLine:c,endOffset:u,line:r,offset:d,source:this.css},this.file&&(cf&&(f.input.url=cf(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,r){return _C(this)[e-1]+r-1}fromOffset(e){let r=_C(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let s=r.length-2,c;for(;o<s;)if(c=o+(s-o>>1),e<r[c])s=c-1;else if(e>=r[c+1])o=c+1;else{o=c;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:gv(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let s=this.map.consumer(),c=s.originalPositionFor({column:r,line:e});if(!c.source)return!1;let u;typeof n=="number"&&(u=s.originalPositionFor({column:o,line:n}));let d;mv(c.source)?d=cf(c.source):d=new URL(c.source,this.map.consumer().sourceRoot||cf(this.map.mapFile));let f={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:d.toString()};if(d.protocol==="file:")if(MC)f.file=MC(d);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(c.source);return h&&(f.source=h),f}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Gh=Jf;Jf.default=Jf;iy&&iy.registerInput&&iy.registerInput(Jf);let Pk=sl,Ik,Mk,vc=class extends Pk{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of o)s.raws.before=r.raws.before}return o}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Ik(new Mk,this,e).stringify()}};vc.registerLazyResult=t=>{Ik=t};vc.registerProcessor=t=>{Mk=t};var $d=vc;vc.default=vc;Pk.registerRoot(vc);let cd={comma(t){return cd.split(t,[","],!0)},space(t){let e=[" ",`
|
|
366
|
+
`," "];return cd.split(t,e)},split(t,e,r){let n=[],o="",s=!1,c=0,u=!1,d="",f=!1;for(let h of t)f?f=!1:h==="\\"?f=!0:u?h===d&&(u=!1):h==='"'||h==="'"?(u=!0,d=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&e.includes(h)&&(s=!0),s?(o!==""&&n.push(o.trim()),o="",s=!1):o+=h;return(r||o!=="")&&n.push(o.trim()),n}};var Rk=cd;cd.default=cd;let Ak=sl,XF=Rk,Zf=class extends Ak{get selectors(){return XF.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var O0=Zf;Zf.default=Zf;Ak.registerRule(Zf);let KF=_0,QF=Wh,YF=qh,JF=Gh,ZF=jk,eH=$d,tH=O0;function ud(t,e){if(Array.isArray(t))return t.map(o=>ud(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let s={...o,__proto__:JF.prototype};s.map&&(s.map={...s.map,__proto__:ZF.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>ud(o,e))),n.source){let{inputId:o,...s}=n.source;n.source=s,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new eH(n);if(n.type==="decl")return new YF(n);if(n.type==="rule")return new tH(n);if(n.type==="comment")return new QF(n);if(n.type==="atrule")return new KF(n);throw new Error("Unknown node type: "+t.type)}var rH=ud;ud.default=ud;let{dirname:If,relative:_k,resolve:Lk,sep:Ok}=mi,{SourceMapConsumer:$k,SourceMapGenerator:Mf}=mi,{pathToFileURL:LC}=mi,nH=Gh,oH=!!($k&&Mf),iH=!!(If&&Lk&&_k&&Ok),sH=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
|
|
367
|
+
`;this.css.includes(`\r
|
|
368
|
+
`)&&(r=`\r
|
|
369
|
+
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||If(e.file),o;this.mapOpts.sourcesContent===!1?(o=new $k(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),iH&&oH&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Mf.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Mf({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Mf({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,c;this.stringify(this.root,(u,d,f)=>{if(this.css+=u,d&&f!=="end"&&(o.generated.line=e,o.generated.column=r-1,d.source&&d.source.start?(o.source=this.sourcePath(d),o.original.line=d.source.start.line,o.original.column=d.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),c=u.match(/\n/g),c?(e+=c.length,s=u.lastIndexOf(`
|
|
370
|
+
`),r=u.length-s):r+=u.length,d&&f!=="start"){let h=d.parent||{raws:{}};(!(d.type==="decl"||d.type==="atrule"&&!d.nodes)||d!==h.last||h.raws.semicolon)&&(d.source&&d.source.end?(o.source=this.sourcePath(d),o.original.line=d.source.end.line,o.original.column=d.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?If(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=If(Lk(n,this.mapOpts.annotation)));let o=_k(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new nH(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(LC){let n=LC(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Ok==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Nk=sH;const ay=39,OC=34,uf=92,$C=47,df=10,ku=32,pf=12,ff=9,hf=13,aH=91,lH=93,cH=40,uH=41,dH=123,pH=125,fH=59,hH=42,mH=58,gH=64,mf=/[\t\n\f\r "#'()/;[\\\]{}]/g,gf=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yH=/.[\r\n"'(/\\]/,NC=/[\da-f]/i;var vH=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,s,c,u,d,f,h,v,m,y,x,w=n.length,C=0,j=[],k=[];function I(){return C}function E(A){throw e.error("Unclosed "+A,C)}function M(){return k.length===0&&C>=w}function R(A){if(k.length)return k.pop();if(C>=w)return;let F=A?A.ignoreUnclosed:!1;switch(s=n.charCodeAt(C),s){case df:case ku:case ff:case hf:case pf:{d=C;do d+=1,s=n.charCodeAt(d);while(s===ku||s===df||s===ff||s===hf||s===pf);h=["space",n.slice(C,d)],C=d-1;break}case aH:case lH:case dH:case pH:case mH:case fH:case uH:{let G=String.fromCharCode(s);h=[G,G,C];break}case cH:{if(x=j.length?j.pop()[1]:"",y=n.charCodeAt(C+1),x==="url"&&y!==ay&&y!==OC&&y!==ku&&y!==df&&y!==ff&&y!==pf&&y!==hf){d=C;do{if(v=!1,d=n.indexOf(")",d+1),d===-1)if(o||F){d=C;break}else E("bracket");for(m=d;n.charCodeAt(m-1)===uf;)m-=1,v=!v}while(v);h=["brackets",n.slice(C,d+1),C,d],C=d}else d=n.indexOf(")",C+1),c=n.slice(C,d+1),d===-1||yH.test(c)?h=["(","(",C]:(h=["brackets",c,C,d],C=d);break}case ay:case OC:{f=s===ay?"'":'"',d=C;do{if(v=!1,d=n.indexOf(f,d+1),d===-1)if(o||F){d=C+1;break}else E("string");for(m=d;n.charCodeAt(m-1)===uf;)m-=1,v=!v}while(v);h=["string",n.slice(C,d+1),C,d],C=d;break}case gH:{mf.lastIndex=C+1,mf.test(n),mf.lastIndex===0?d=n.length-1:d=mf.lastIndex-2,h=["at-word",n.slice(C,d+1),C,d],C=d;break}case uf:{for(d=C,u=!0;n.charCodeAt(d+1)===uf;)d+=1,u=!u;if(s=n.charCodeAt(d+1),u&&s!==$C&&s!==ku&&s!==df&&s!==ff&&s!==hf&&s!==pf&&(d+=1,NC.test(n.charAt(d)))){for(;NC.test(n.charAt(d+1));)d+=1;n.charCodeAt(d+1)===ku&&(d+=1)}h=["word",n.slice(C,d+1),C,d],C=d;break}default:{s===$C&&n.charCodeAt(C+1)===hH?(d=n.indexOf("*/",C+2)+1,d===0&&(o||F?d=n.length:E("comment")),h=["comment",n.slice(C,d+1),C,d],C=d):(gf.lastIndex=C+1,gf.test(n),gf.lastIndex===0?d=n.length-1:d=gf.lastIndex-2,h=["word",n.slice(C,d+1),C,d],j.push(h),C=d);break}}return C++,h}function L(A){k.push(A)}return{back:L,endOfFile:M,nextToken:R,position:I}};let xH=_0,bH=Wh,wH=qh,SH=$d,BC=O0,CH=vH;const zC={empty:!0,space:!0};function EH(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let TH=class{constructor(e){this.input=e,this.root=new SH,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new xH;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,s,c=!1,u=!1,d=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?f.push(n==="("?")":"]"):n==="{"&&f.length>0?f.push("}"):n===f[f.length-1]&&f.pop(),f.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){u=!0;break}else if(n==="}"){if(d.length>0){for(s=d.length-1,o=d[s];o&&o[0]==="space";)o=d[--s];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else d.push(e);else d.push(e);if(this.tokenizer.endOfFile()){c=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(r.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(r,"params",d),c&&(e=d[d.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let s=r-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,s;for(let[c,u]of e.entries()){if(o=u,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return c}n=o}return!1}comment(e){let r=new bH;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=CH(this.input)}decl(e,r){let n=new wH;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||EH(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){n.important=!0;let h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=e.slice(0),v="";for(let m=f;m>0;m--){let y=h[m][0];if(v.trim().startsWith("!")&&y!=="space")break;v=h.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,e=h)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(n.raws.between+=c.map(f=>f[1]).join(""),c=[]),this.raw(n,"value",c.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new BC;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,o=!1,s=null,c=[],u=e[1].startsWith("--"),d=[],f=e;for(;f;){if(n=f[0],d.push(f),n==="("||n==="[")s||(s=f),c.push(n==="("?")":"]");else if(u&&o&&n==="{")s||(s=f),c.push("}");else if(c.length===0)if(n===";")if(o){this.decl(d,u);return}else break;else if(n==="{"){this.rule(d);return}else if(n==="}"){this.tokenizer.back(d.pop()),r=!0;break}else n===":"&&(o=!0);else n===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),c.length>0&&this.unclosedBracket(s),r&&o){if(!u)for(;d.length&&(f=d[d.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,u)}else this.unknownWord(d)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,o){let s,c,u=n.length,d="",f=!0,h,v;for(let m=0;m<u;m+=1)s=n[m],c=s[0],c==="space"&&m===u-1&&!o?f=!1:c==="comment"?(v=n[m-1]?n[m-1][0]:"empty",h=n[m+1]?n[m+1][0]:"empty",!zC[v]&&!zC[h]?d.slice(-1)===","?f=!1:d+=s[1]:f=!1):d+=s[1];if(!f){let m=n.reduce((y,x)=>y+x[1],"");e.raws[r]={raw:m,value:d}}e[r]=d}rule(e){e.pop();let r=new BC;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var kH=TH;let jH=sl,PH=Gh,IH=kH;function eh(t,e){let r=new PH(t,e),n=new IH(r);try{n.parse()}catch(o){throw o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
|
|
371
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
|
|
372
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
|
|
373
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var $0=eh;eh.default=eh;jH.registerParse(eh);let yv=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Bk=yv;yv.default=yv;let MH=Bk,vv=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new MH(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var N0=vv;vv.default=vv;let DC={};var zk=function(e){DC[e]||(DC[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let RH=sl,AH=L0,_H=Nk,LH=$0,FC=N0,OH=$d,$H=Uh,{isClean:Ti,my:NH}=Od,BH=zk;const zH={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},DH={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},FH={Once:!0,postcssPlugin:!0,prepare:!0},xc=0;function ju(t){return typeof t=="object"&&typeof t.then=="function"}function Dk(t){let e=!1,r=zH[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,xc,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,xc,r+"Exit"]:[r,r+"Exit"]}function HC(t){let e;return t.type==="document"?e=["Document",xc,"DocumentExit"]:t.type==="root"?e=["Root",xc,"RootExit"]:e=Dk(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function xv(t){return t[Ti]=!1,t.nodes&&t.nodes.forEach(e=>xv(e)),t}let bv={},bc=class Fk{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=xv(r);else if(r instanceof Fk||r instanceof FC)o=xv(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=LH;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(c){this.processed=!0,this.error=c}o&&!o[NH]&&RH.rebuild(o)}this.result=new FC(e,o,n),this.helpers={...bv,postcss:bv,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion){let o=n.postcssPlugin,s=n.postcssVersion,c=this.result.processor.version,u=s.split("."),d=c.split(".");(u[0]!==d[0]||parseInt(u[1])>parseInt(d[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+c+", but "+o+" uses "+s+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!DH[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!FH[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(ju(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ti];){e[Ti]=!0;let r=[HC(e)];for(;r.length>0;){let n=this.visitTick(r);if(ju(n))try{await n}catch(o){let s=r[r.length-1].node;throw this.handleError(o,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(s=>n(s,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return ju(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=$H;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new _H(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(ju(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ti];)e[Ti]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return"from"in this.opts||BH("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,o]of e){this.result.lastPlugin=n;let s;try{s=o(r,this.helpers)}catch(c){throw this.handleError(c,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(ju(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[c,u]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=c;try{return u(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(r.iterator!==0){let c=r.iterator,u;for(;u=n.nodes[n.indexes[c]];)if(n.indexes[c]+=1,!u[Ti]){u[Ti]=!0,e.push(HC(u));return}r.iterator=0,delete n.indexes[c]}let s=r.events;for(;r.eventIndex<s.length;){let c=s[r.eventIndex];if(r.eventIndex+=1,c===xc){n.nodes&&n.nodes.length&&(n[Ti]=!0,r.iterator=n.getIterator());return}else if(this.listeners[c]){r.visitors=this.listeners[c];return}}e.pop()}walkSync(e){e[Ti]=!0;let r=Dk(e);for(let n of r)if(n===xc)e.nodes&&e.each(o=>{o[Ti]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};bc.registerPostcss=t=>{bv=t};var Hk=bc;bc.default=bc;OH.registerLazyResult(bc);AH.registerLazyResult(bc);let HH=Nk,UH=$0;const VH=N0;let WH=Uh,qH=zk,wv=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=UH;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let o,s=WH;this.result=new VH(this._processor,o,this._opts),this.result.css=r;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let u=new HH(s,o,this._opts,r);if(u.isMap()){let[d,f]=u.generate();d&&(this.result.css=d),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return"from"in this._opts||qH("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var GH=wv;wv.default=wv;let XH=L0,KH=Hk,QH=GH,YH=$d,dd=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else throw typeof n=="object"&&(n.parse||n.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new QH(this,e,r):new KH(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var JH=dd;dd.default=dd;YH.registerProcessor(dd);XH.registerProcessor(dd);let Uk=_0,Vk=Wh,ZH=sl,eU=M0,Wk=qh,qk=L0,tU=rH,rU=Gh,nU=Hk,oU=Rk,iU=Vh,sU=$0,B0=JH,aU=N0,Gk=$d,Xk=O0,lU=Uh,cU=Bk;function gr(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new B0(t)}gr.plugin=function(e,r){let n=!1;function o(...c){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
374
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),tC.LANG&&tC.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
375
|
+
https://www.w3ctech.com/topic/2226`));let u=r(...c);return u.postcssPlugin=e,u.postcssVersion=new B0().version,u}let s;return Object.defineProperty(o,"postcss",{get(){return s||(s=o()),s}}),o.process=function(c,u,d){return gr([o(d)]).process(c,u)},o};gr.stringify=lU;gr.parse=sU;gr.fromJSON=tU;gr.list=oU;gr.comment=t=>new Vk(t);gr.atRule=t=>new Uk(t);gr.decl=t=>new Wk(t);gr.rule=t=>new Xk(t);gr.root=t=>new Gk(t);gr.document=t=>new qk(t);gr.CssSyntaxError=eU;gr.Declaration=Wk;gr.Container=ZH;gr.Processor=B0;gr.Document=qk;gr.Comment=Vk;gr.Warning=cU;gr.AtRule=Uk;gr.Result=aU;gr.Input=rU;gr.Rule=Xk;gr.Root=Gk;gr.Node=iU;nU.registerPostcss(gr);var uU=gr;gr.default=gr;const dU=BT,UC=sF,{isPlainObject:pU}=P0,VC=wF,fU=SF,{parse:hU}=uU,mU=["img","audio","video","picture","svg","object","map","iframe","embed"],gU=["script","style"];function ql(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function fs(t,e){return{}.hasOwnProperty.call(t,e)}function WC(t,e){const r=[];return ql(t,function(n){e(n)&&r.push(n)}),r}function yU(t){for(const e in t)if(fs(t,e))return!1;return!0}function vU(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var xU=pd;const bU=/^[^\0\t\n\f\r /<=>]+$/;function pd(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function s(O,U){const K=this;this.tag=O,this.attribs=U||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(C.length){const Y=C[C.length-1];Y.text+=K.text}},this.updateParentNodeMediaChildren=function(){C.length&&mU.includes(this.tag)&&C[C.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},pd.defaults,e),e.parser=Object.assign({},wU,e.parser);const c=function(O){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(O)>-1};gU.forEach(function(O){c(O)&&!e.allowVulnerableTags&&console.warn(`
|
|
376
|
+
|
|
377
|
+
⚠️ Your \`allowedTags\` option includes, \`${O}\`, which is inherently
|
|
378
|
+
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
379
|
+
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
380
|
+
and ensure you are accounting for this risk.
|
|
381
|
+
|
|
382
|
+
`)});const u=e.nonTextTags||["script","style","textarea","option"];let d,f;e.allowedAttributes&&(d={},f={},ql(e.allowedAttributes,function(O,U){d[U]=[];const K=[];O.forEach(function(Y){typeof Y=="string"&&Y.indexOf("*")>=0?K.push(UC(Y).replace(/\\\*/g,".*")):d[U].push(Y)}),K.length&&(f[U]=new RegExp("^("+K.join("|")+")$"))}));const h={},v={},m={};ql(e.allowedClasses,function(O,U){if(d&&(fs(d,U)||(d[U]=[]),d[U].push("class")),h[U]=O,Array.isArray(O)){const K=[];h[U]=[],m[U]=[],O.forEach(function(Y){typeof Y=="string"&&Y.indexOf("*")>=0?K.push(UC(Y).replace(/\\\*/g,".*")):Y instanceof RegExp?m[U].push(Y):h[U].push(Y)}),K.length&&(v[U]=new RegExp("^("+K.join("|")+")$"))}});const y={};let x;ql(e.transformTags,function(O,U){let K;typeof O=="function"?K=O:typeof O=="string"&&(K=pd.simpleTransform(O)),U==="*"?x=K:y[U]=K});let w,C,j,k,I,E,M=!1;L();const R=new dU.Parser({onopentag:function(O,U){if(e.onOpenTag&&e.onOpenTag(O,U),e.enforceHtmlBoundary&&O==="html"&&L(),I){E++;return}const K=new s(O,U);C.push(K);let Y=!1;const te=!!K.text;let Q;if(fs(y,O)&&(Q=y[O](O,U),K.attribs=U=Q.attribs,Q.text!==void 0&&(K.innerText=Q.text),O!==Q.tagName&&(K.name=O=Q.tagName,k[w]=Q.tagName)),x&&(Q=x(O,U),K.attribs=U=Q.attribs,O!==Q.tagName&&(K.name=O=Q.tagName,k[w]=Q.tagName)),(!c(O)||e.disallowedTagsMode==="recursiveEscape"&&!yU(j)||e.nestingLimit!=null&&w>=e.nestingLimit)&&(Y=!0,j[w]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&u.indexOf(O)!==-1&&(I=!0,E=1)),w++,Y){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(K.innerText&&!te){const de=A(K.innerText);e.textFilter?n+=e.textFilter(de,O):n+=de,M=!0}return}o=n,n=""}n+="<"+O,O==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(K.innerText=""),Y&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?ql(U,function(de,J){n+=" "+J+'="'+A(de||"",!0)+'"'}):(!d||fs(d,O)||d["*"])&&ql(U,function(de,J){if(!bU.test(J)){delete K.attribs[J];return}if(de===""&&!e.allowedEmptyAttributes.includes(J)&&(e.nonBooleanAttributes.includes(J)||e.nonBooleanAttributes.includes("*"))){delete K.attribs[J];return}let oe=!1;if(!d||fs(d,O)&&d[O].indexOf(J)!==-1||d["*"]&&d["*"].indexOf(J)!==-1||fs(f,O)&&f[O].test(J)||f["*"]&&f["*"].test(J))oe=!0;else if(d&&d[O]){for(const Z of d[O])if(pU(Z)&&Z.name&&Z.name===J){oe=!0;let pe="";if(Z.multiple===!0){const Se=de.split(" ");for(const se of Se)Z.values.indexOf(se)!==-1&&(pe===""?pe=se:pe+=" "+se)}else Z.values.indexOf(de)>=0&&(pe=de);de=pe}}if(oe){if(e.allowedSchemesAppliedToAttributes.indexOf(J)!==-1&&F(O,de)){delete K.attribs[J];return}if(O==="script"&&J==="src"){let Z=!0;try{const pe=G(de);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Se=(e.allowedScriptHostnames||[]).find(function(ae){return ae===pe.url.hostname}),se=(e.allowedScriptDomains||[]).find(function(ae){return pe.url.hostname===ae||pe.url.hostname.endsWith(`.${ae}`)});Z=Se||se}}catch{Z=!1}if(!Z){delete K.attribs[J];return}}if(O==="iframe"&&J==="src"){let Z=!0;try{const pe=G(de);if(pe.isRelativeUrl)Z=fs(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Se=(e.allowedIframeHostnames||[]).find(function(ae){return ae===pe.url.hostname}),se=(e.allowedIframeDomains||[]).find(function(ae){return pe.url.hostname===ae||pe.url.hostname.endsWith(`.${ae}`)});Z=Se||se}}catch{Z=!1}if(!Z){delete K.attribs[J];return}}if(J==="srcset")try{let Z=fU(de);if(Z.forEach(function(pe){F("srcset",pe.url)&&(pe.evil=!0)}),Z=WC(Z,function(pe){return!pe.evil}),Z.length)de=vU(WC(Z,function(pe){return!pe.evil})),K.attribs[J]=de;else{delete K.attribs[J];return}}catch{delete K.attribs[J];return}if(J==="class"){const Z=h[O],pe=h["*"],Se=v[O],se=m[O],ae=m["*"],Fe=v["*"],ze=[Se,Fe].concat(se,ae).filter(function(Oe){return Oe});if(Z&&pe?de=V(de,VC(Z,pe),ze):de=V(de,Z||pe,ze),!de.length){delete K.attribs[J];return}}if(J==="style"){if(e.parseStyleAttributes)try{const Z=hU(O+" {"+de+"}",{map:!1}),pe=$(Z,e.allowedStyles);if(de=P(pe),de.length===0){delete K.attribs[J];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+O+" {"+de+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete K.attribs[J];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+J,de&&de.length?n+='="'+A(de,!0)+'"':e.allowedEmptyAttributes.includes(J)&&(n+='=""')}else delete K.attribs[J]}),e.selfClosing.indexOf(O)!==-1?n+=" />":(n+=">",K.innerText&&!te&&!e.textFilter&&(n+=A(K.innerText),M=!0)),Y&&(n=o+A(n),o=""),K.openingTagLength=n.length-K.tagPosition},ontext:function(O){if(I)return;const U=C[C.length-1];let K;if(U&&(K=U.tag,O=U.innerText!==void 0?U.innerText:O),e.disallowedTagsMode==="completelyDiscard"&&!c(K))O="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(K==="script"||K==="style"))n+=O;else if(!M){const Y=A(O,!1);e.textFilter?n+=e.textFilter(Y,K):n+=Y}if(C.length){const Y=C[C.length-1];Y.text+=O}},onclosetag:function(O,U){if(e.onCloseTag&&e.onCloseTag(O,U),I)if(E--,!E)I=!1;else return;const K=C.pop();if(!K)return;if(K.tag!==O){C.push(K);return}I=e.enforceHtmlBoundary?O==="html":!1,w--;const Y=j[w];if(Y){if(delete j[w],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){K.updateParentNodeText();return}o=n,n=""}if(k[w]&&(O=k[w],delete k[w]),e.exclusiveFilter){const te=e.exclusiveFilter(K);if(te==="excludeTag"){Y&&(n=o,o=""),n=n.substring(0,K.tagPosition)+n.substring(K.tagPosition+K.openingTagLength);return}else if(te){n=n.substring(0,K.tagPosition);return}}if(K.updateParentNodeMediaChildren(),K.updateParentNodeText(),e.selfClosing.indexOf(O)!==-1||U&&!c(O)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){Y&&(n=o,o="");return}n+="</"+O+">",Y&&(n=o+A(n),o=""),M=!1}},e.parser);return R.write(t),R.end(),n;function L(){n="",w=0,C=[],j={},k={},I=!1,E=0}function A(O,U){return typeof O!="string"&&(O=O+""),e.parser.decodeEntities&&(O=O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),U&&(O=O.replace(/"/g,"""))),O=O.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),U&&(O=O.replace(/"/g,""")),O}function F(O,U){for(U=U.replace(/[\x00-\x20]+/g,"");;){const te=U.indexOf("<!--");if(te===-1)break;const Q=U.indexOf("-->",te+4);if(Q===-1)break;U=U.substring(0,te)+U.substring(Q+3)}const K=U.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!K)return U.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const Y=K[1].toLowerCase();return fs(e.allowedSchemesByTag,O)?e.allowedSchemesByTag[O].indexOf(Y)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(Y)===-1}function G(O){if(O=O.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),O.startsWith("relative:"))throw new Error("relative: exploit attempt");let U="relative://relative-site";for(let te=0;te<100;te++)U+=`/${te}`;const K=new URL(O,U);return{isRelativeUrl:K&&K.hostname==="relative-site"&&K.protocol==="relative:",url:K}}function $(O,U){if(!U)return O;const K=O.nodes[0];let Y;return U[K.selector]&&U["*"]?Y=VC(U[K.selector],U["*"]):Y=U[K.selector]||U["*"],Y&&(O.nodes[0].nodes=K.nodes.reduce(q(Y),[])),O}function P(O){return O.nodes[0].nodes.reduce(function(U,K){return U.push(`${K.prop}:${K.value}${K.important?" !important":""}`),U},[]).join(";")}function q(O){return function(U,K){return fs(O,K.prop)&&O[K.prop].some(function(te){return te.test(K.value)})&&U.push(K),U}}function V(O,U,K){return U?(O=O.split(/\s+/),O.filter(function(Y){return U.indexOf(Y)!==-1||K.some(function(te){return te.test(Y)})}).join(" ")):O}}const wU={decodeEntities:!0};pd.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};pd.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let s;if(r)for(s in e)o[s]=e[s];else o=e;return{tagName:t,attribs:o}}};var Kk=Yz(xU);let fd=class extends Sr{};_([z(),D({field_type:B.TEXTAREA,label:"HTML Content",description:"HTML content to be safely rendered after sanitization",placeholder:"<p>Enter HTML content...</p>"}),W(),ie(),H("design:type",String)],fd.prototype,"html",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder Text",description:"Text to display when no HTML content is available",placeholder:"Loading..."}),W(),ie(),H("design:type",String)],fd.prototype,"placeholder",void 0);fd=_([Vt("SafeSpan","1.0.0")],fd);var SU=fd;function z0(t){const{html:e,placeholder:r,...n}=t,{styleProps:o,htmlProps:s}=Mn(n);z0[zn]=!0;const u=e?Kk(e,{allowedTags:["p","br","strong","em","u","span","div","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","pre","code","a","img"],allowedAttributes:{a:["href","title","target"],img:["src","alt","title","width","height"],span:["style","class"],div:["style","class"],p:["style","class"]},allowedSchemes:["http","https","mailto"],disallowedTagsMode:"discard",allowedSchemesByTag:{a:["http","https","mailto"],img:["http","https"]},transformTags:{a:function(d,f){return f.href&&(f.href.startsWith("http://")||f.href.startsWith("https://"))?{tagName:"a",attribs:{...f,rel:"noopener noreferrer",target:"_blank"}}:{tagName:d,attribs:f}}}}):"";return!u&&!r?null:!u&&r?l.jsx("span",{...s,...o,children:r}):l.jsx("span",{...s,...o,dangerouslySetInnerHTML:{__html:u}})}class wo extends ol{getComponentSpecificProps(){return{html:this.props.html,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return l.jsx(z0,{...e})}renderWithDataBinding(){return l.jsx(CU,{...this.props})}static registerPatternHandlers(e){e.hasPattern("span.safe-content")||e.registerPattern("span.safe-content",wo.transformSafeSpan),e.hasPattern("span[data-safe]")||e.registerPattern("span[data-safe]",wo.transformSafeSpan)}static transformSafeSpan(e){const r=e.getAttribute("data-placeholder");return{tagName:"SafeSpan",props:{html:e.innerHTML,placeholder:r||void 0}}}}wo.tagName="SafeSpan";wo.version="1.0.0";function CU(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...c}=Ji(e,n,SU.getSchema(),{...r});return o?l.jsx("span",{children:"Loading..."}):s?(console.error("Error loading safe span:",s),l.jsxs("span",{children:["Error Loading Content: ",s.message]})):l.jsx(z0,{...c})}function EU({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:c,helperText:u,placeholder:d,rows:f=4,maxLength:h,showPreview:v=!0,showHelp:m=!1,...y}){const[x,w]=b.useState(!1),[C,j]=b.useState(!1),k=M=>{r==null||r(M.target.value)},I=(M,R=!0)=>{if(s)return;const L=document.activeElement;if(!L||L.tagName!=="TEXTAREA")return;const A=L.selectionStart,F=L.selectionEnd,G=e.substring(A,F);let $="";R?$=`<${M}>${G}</${M}>`:$=`<${M}>`;const P=e.substring(0,A)+$+e.substring(F);r==null||r(P),setTimeout(()=>{if(R&&!G){const q=A+M.length+2;L.setSelectionRange(q,q)}},0)},E=Kk(e||"",{allowedTags:["b","i","u","strong","em","p","br","code","pre","span","div"],allowedAttributes:{"*":["style","class"]}});return l.jsxs(ee,{...y,children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",mb:1,flexWrap:"wrap",gap:1},children:[l.jsxs(he,{variant:"body2",color:"text.secondary",children:[t,o&&l.jsx("span",{style:{color:"error.main"},children:" *"})]}),l.jsx(ee,{sx:{flexGrow:1}}),l.jsxs(z_,{size:"small",disabled:s||x,children:[l.jsx(tr,{title:"Bold",children:l.jsx(Xt,{onClick:()=>I("b"),children:l.jsx(K7,{})})}),l.jsx(tr,{title:"Italic",children:l.jsx(Xt,{onClick:()=>I("i"),children:l.jsx(Q7,{})})}),l.jsx(tr,{title:"Underline",children:l.jsx(Xt,{onClick:()=>I("u"),children:l.jsx(Y7,{})})}),l.jsx(tr,{title:"Code",children:l.jsx(Xt,{onClick:()=>I("code"),children:l.jsx(vT,{})})})]}),v&&l.jsx(tr,{title:x?"Edit Mode":"Preview Mode",children:l.jsx(Xt,{onClick:()=>w(!x),disabled:s,children:x?l.jsx(Wf,{}):l.jsx(g0,{})})}),m&&l.jsx(tr,{title:"HTML Help",children:l.jsx(Xt,{onClick:()=>j(!C),children:l.jsx(bT,{})})})]}),l.jsx(Yu,{in:C,children:l.jsx(qt,{severity:"info",sx:{mb:2},children:l.jsx(he,{variant:"body2",children:"Supported HTML tags: <b>, <i>, <u>, <strong>, <em>, <p>, <br>, <code>, <pre>"})})}),x?l.jsx(ee,{sx:{border:1,borderColor:"divider",borderRadius:1,p:2,minHeight:f*24,backgroundColor:"background.paper"},children:l.jsx(wo,{html:E,placeholder:"No content to preview"})}):l.jsx(wt,{fullWidth:!0,multiline:!0,rows:f,value:e,onChange:k,onFocus:n,placeholder:d,disabled:s,error:!!c,helperText:c||u||(h?`${e.length}/${h}`:void 0),inputProps:{maxLength:h},sx:{"& .MuiInputBase-input":{fontFamily:"monospace",fontSize:"0.875rem"}}})]})}const Qk=co({tagName:"HtmlInputField",version:"1.0.0",role:"view",View:EU});function TU({label:t="Options",options:e=[],onOptionChange:r,onAddOption:n,onChoiceFieldFocus:o,disabled:s=!1,placeholder:c="Enter option text. HTML formatting supported.",optionLabelPrefix:u="Option",rows:d=2,maxOptions:f=10,...h}){const v=x=>w=>{r==null||r(x,w)},m=x=>()=>{o==null||o(x)},y=()=>{e.length<f&&(n==null||n())};return l.jsxs(ee,{...h,children:[l.jsx(he,{variant:"h6",gutterBottom:!0,children:t}),e.length===0&&l.jsx(qt,{severity:"info",sx:{mb:2},children:'No options added yet. Click "Add Option" to get started.'}),e.map((x,w)=>l.jsx(ee,{sx:{mb:2},children:l.jsx(Qk,{label:`${u} ${w+1}`,value:x,onChange:v(w),onFocus:m(w),placeholder:c,rows:d,disabled:s,showPreview:!0,showHelp:!1})},w)),e.length<f&&l.jsx(un,{variant:"outlined",startIcon:l.jsx(gT,{}),onClick:y,disabled:s,sx:{mt:1},children:"Add Option"}),e.length>=f&&l.jsxs(he,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1},children:["Maximum number of options (",f,") reached."]})]})}const kU=co({tagName:"ChoiceInputField",version:"1.0.0",role:"view",View:TU});class Xh{}_([z(),D({field_type:B.TEXT,label:"Option Value",description:"The value for this option"}),ie(),H("design:type",Object)],Xh.prototype,"value",void 0);_([z(),D({field_type:B.TEXT,label:"Option Label",description:"The display text for this option"}),W(),ie(),H("design:type",String)],Xh.prototype,"label",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether this option is disabled"}),W(),Dt(),H("design:type",Boolean)],Xh.prototype,"disabled",void 0);let qi=class extends Et{};_([z(),D({field_type:B.TEXT,label:"Field Label",description:"The label text displayed for this select field",placeholder:"Enter field label..."}),W(),ie(),H("design:type",String)],qi.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Selected Value",description:"The currently selected value"}),W(),ie(),H("design:type",Object)],qi.prototype,"value",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Select Options",description:"Array of options available in the dropdown (JSON format)"}),W(),hn(),so({each:!0}),lo(()=>Xh),H("design:type",Array)],qi.prototype,"options",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Required",description:"Whether this field is required"}),W(),Dt(),H("design:type",Boolean)],qi.prototype,"required",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether this field is disabled"}),W(),Dt(),H("design:type",Boolean)],qi.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Error Message",description:"Error message to display when field validation fails",placeholder:"Error message..."}),W(),ie(),H("design:type",String)],qi.prototype,"error",void 0);_([z(),D({field_type:B.TEXT,label:"Helper Text",description:"Additional helpful text displayed below the field",placeholder:"Helper text..."}),W(),ie(),H("design:type",String)],qi.prototype,"helperText",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder Text",description:"Placeholder text shown when no value is selected",placeholder:"Select an option..."}),W(),ie(),H("design:type",String)],qi.prototype,"placeholder",void 0);qi=_([Vt("SelectInputField","1.0.0")],qi);function jU({label:t,value:e="",onChange:r,onFocus:n,options:o=[],required:s=!1,disabled:c=!1,error:u,helperText:d,placeholder:f,...h}){const v=oe=>{r&&r(oe.target.value)},{margin:m,padding:y,paddingX:x,paddingY:w,paddingTop:C,paddingRight:j,paddingBottom:k,paddingLeft:I,width:E,height:M,minWidth:R,maxWidth:L,minHeight:A,maxHeight:F,sx:G,style:$,span:P,xs:q,sm:V,md:O,lg:U,xl:K,background:Y,backgroundImage:te,backgroundGradient:Q,textAlign:X,className:re,...de}=h,J=t?`select-label-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0;return l.jsxs(Co,{fullWidth:!0,required:s,disabled:c,error:!!u,sx:G,style:$,className:re,...de,children:[t&&l.jsx(ys,{id:J,children:t}),l.jsxs(Vi,{labelId:J,label:t,value:e,onChange:v,onFocus:n,displayEmpty:!!f,children:[f&&l.jsx(br,{value:"",disabled:!0,children:l.jsx("em",{children:f})}),o.map((oe,Z)=>l.jsx(br,{value:oe.value,disabled:oe.disabled,children:oe.label},`${oe.value}-${Z}`))]}),(u||d)&&l.jsx(tl,{children:u||d})]})}const PU=co({tagName:"SelectInputField",version:"1.0.0",role:"view",View:jU});function IU({label:t,checked:e=!1,onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:c,helperText:u,...d}){const f=re=>{r==null||r(re.target.checked)},{margin:h,padding:v,paddingX:m,paddingY:y,paddingTop:x,paddingRight:w,paddingBottom:C,paddingLeft:j,width:k,height:I,minWidth:E,maxWidth:M,minHeight:R,maxHeight:L,sx:A,style:F,span:G,xs:$,sm:P,md:q,lg:V,xl:O,background:U,backgroundImage:K,backgroundGradient:Y,textAlign:te,className:Q,...X}=d;return l.jsxs(Co,{component:"fieldset",error:!!c,disabled:s,sx:A,style:F,className:Q,...X,children:[l.jsx(Nn,{control:l.jsx(za,{checked:e,onChange:f,onFocus:n,required:o,disabled:s}),label:t}),(c||u)&&l.jsx(tl,{children:c||u})]})}const MU=co({tagName:"SwitchInputField",version:"1.0.0",role:"view",View:IU});function RU({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:c,helperText:u,placeholder:d,type:f="text",multiline:h=!1,rows:v,maxRows:m,textFieldProps:y,...x}){const w=Se=>{r==null||r(Se.target.value)},{margin:C,padding:j,paddingX:k,paddingY:I,paddingTop:E,paddingRight:M,paddingBottom:R,paddingLeft:L,width:A,height:F,minWidth:G,maxWidth:$,minHeight:P,maxHeight:q,sx:V,style:O,span:U,xs:K,sm:Y,md:te,lg:Q,xl:X,background:re,backgroundImage:de,backgroundGradient:J,textAlign:oe,className:Z,...pe}=x;return l.jsx(wt,{...pe,fullWidth:!0,label:t,value:e,onChange:w,onFocus:n,required:o,disabled:s,error:!!c,helperText:c||u,placeholder:d,type:f,multiline:h,rows:v,maxRows:m,sx:V,style:O,className:Z,...y})}const AU=co({tagName:"TextInputField",version:"1.0.0",role:"view",View:RU});function _U({children:t,gridProps:e,...r}){const n=e;return l.jsx(ee,{...r,...n?{"data-grid-span":n.span,"data-grid-xs":n.xs,"data-grid-sm":n.sm,"data-grid-md":n.md,"data-grid-lg":n.lg,"data-grid-xl":n.xl}:{},children:t})}const LU=co({tagName:"GridCell",version:"1.0.0",role:"container",View:_U});function OU({children:t,columns:e,spacing:r="small",equalHeight:n=!1,height:o,width:s,minHeight:c,minWidth:u,maxHeight:d,maxWidth:f,gridProps:h,...v}){const m=Ln(r),y=()=>$t.Children.toArray(t).map((w,C)=>{if(!$t.isValidElement(w))return w;let j={};const k=w.props,I=k["data-grid-span"]||k.span,E=k["data-grid-xs"]||k.xs,M=k["data-grid-sm"]||k.sm,R=k["data-grid-md"]||k.md,L=k["data-grid-lg"]||k.lg,A=k["data-grid-xl"]||k.xl;if(I||E||M||R||L||A)if(I)j={size:I};else{const F={};E&&(F.xs=E),M&&(F.sm=M),R&&(F.md=R),L&&(F.lg=L),A&&(F.xl=A),j={size:F}}if(e&&Object.keys(j).length===0&&(j={size:{xs:12,sm:e>=3?6:12/Math.min(e,2),md:12/Math.min(e,3),lg:12/e}}),Object.keys(j).length>0){const F={...w.props};return delete F["data-grid-span"],delete F["data-grid-xs"],delete F["data-grid-sm"],delete F["data-grid-md"],delete F["data-grid-lg"],delete F["data-grid-xl"],l.jsx(Bn,{...j,children:$t.cloneElement(w,F)},w.key||C)}return l.jsx($t.Fragment,{children:w},w.key||C)});return l.jsx(Bn,{container:!0,spacing:m,...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{width:"100%",height:No(o,"height"),minHeight:No(c,"minHeight"),minWidth:No(u,"minWidth"),maxHeight:No(d,"maxHeight"),maxWidth:No(f,"maxWidth"),...s&&{width:No(s,"width")},...n&&{alignItems:"stretch","& > .MuiGrid-root":{display:"flex","& > *":{width:"100%",height:"100%"}}},...v.sx},children:y()})}const al=co({tagName:"GridLayout",version:"1.0.0",role:"container",View:OU});let wc=class extends Sr{};_([z(),D({field_type:B.TEXTAREA,label:"HTML Content",description:"HTML content to be transformed into React components",placeholder:"<p>Enter HTML content...</p>"}),W(),ie(),H("design:type",String)],wc.prototype,"children",void 0);_([z(),D({field_type:B.CHECKBOX,label:"Strip Headers",description:"Whether to remove header elements (h1-h6) from the HTML"}),W(),Dt(),H("design:type",Boolean)],wc.prototype,"stripHeaders",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder",description:"Fallback content to display when HTML is empty",placeholder:"No content available"}),W(),ie(),H("design:type",String)],wc.prototype,"placeholder",void 0);wc=_([Vt("Html","1.0.0")],wc);var $U=wc;function D0({children:t="",stripHeaders:e=!1,placeholder:r,component:n="div",...o}){const{styleProps:s,htmlProps:c,restProps:u}=Mn(o);if(D0[zn]=!0,!t||!t.trim())return r?l.jsx(ee,{component:n,...c,...s,...u,sx:{opacity:.6,fontStyle:"italic",...s.sx},children:r}):null;try{let d=t;e&&(d=d.replace(/<h[1-6][^>]*>.*?<\/h[1-6]>/gi,""));const f=cn.transformHTML(d);return l.jsx(ee,{component:n,...c,...s,...u,sx:{"& > *:not(:last-child)":{mb:1.5},"& h1, & h2, & h3, & h4, & h5, & h6":{mb:1.5,mt:2,"&:first-of-type":{mt:0}},"& p":{mb:1.5,lineHeight:1.6},"& ul, & ol":{mb:1.5,pl:3},...s.sx},children:f})}catch(d){return console.error("Error transforming HTML content:",d),l.jsxs(ee,{component:n,...c,...s,...u,sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)",...s.sx},children:[l.jsx("strong",{children:"HTML Transform Error:"})," ",d instanceof Error?d.message:"Unknown error",l.jsx(wo,{html:t,placeholder:"Failed to transform HTML"})]})}}class Bo extends ol{static fromJson(e){const{tagName:r,version:n,data:o}=e;if(r!==Bo.tagName)throw new Error(`Cannot deserialize: Expected tagName 'Html' but got '${r}'`);n!==Bo.version&&console.warn(`Version mismatch: Expected ${Bo.version} but got ${n}`);const{children:s,...c}=o||{};return l.jsx(Bo,{...c,children:cn.deserialize(s)})}getComponentSpecificProps(){return{children:this.props.children,stripHeaders:this.props.stripHeaders,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return l.jsx(D0,{...e})}renderWithDataBinding(){return l.jsx(NU,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.html-content")||e.registerPattern("div.html-content",Bo.transformHtmlDiv),e.hasPattern("[data-html]")||e.registerPattern("[data-html]",Bo.transformDataHtml)}static transformHtmlDiv(e){const r=e.getAttribute("data-strip-headers")==="true",n=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:e.innerHTML,stripHeaders:r,placeholder:n||void 0}}}static transformDataHtml(e){const r=e.getAttribute("data-html")||e.innerHTML,n=e.getAttribute("data-strip-headers")==="true",o=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:r,stripHeaders:n,placeholder:o||void 0}}}}Bo.tagName="Html";Bo.version="1.0.0";function NU(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...c}=Ji(e,n,$U.getSchema(),{...r});return o?l.jsx(ee,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading HTML content..."}):s?(console.error("Error loading HTML content:",s),l.jsxs(ee,{sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)"},children:[l.jsx("strong",{children:"Error Loading HTML:"})," ",s.message]})):l.jsx(D0,{...c})}class yo{static serialize(e){var r,n;if(e==null)return null;if(Array.isArray(e))return{type:"array",children:e.map(o=>yo.serialize(o))};if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return{type:"primitive",value:e};if(b.isValidElement(e)){const o=e,s=o.type,c=typeof s=="string"?s:((r=s==null?void 0:s.render)==null?void 0:r.name)||(s==null?void 0:s.name)||(s==null?void 0:s.muiName)||(s==null?void 0:s.displayName)||"Anonymous";return{type:"react-element",elementType:typeof c=="string"?((n=c.match(/^[A-Za-z]+?\(([^)]+)\)$/))==null?void 0:n[1])||c:"Anonymous",props:yo.serializeProps(o.props),key:o.key}}if(typeof e=="object"&&e!==null)try{const o={type:"object",data:{}};for(const[s,c]of Object.entries(e))o.data[s]=yo.serialize(c);return o}catch{return{type:"string",value:String(e)}}return{type:"string",value:String(e)}}static deserialize(e){var r;if(e==null)return null;if(typeof e=="object"&&e.type)switch(e.type){case"primitive":return e.value;case"string":return e.value;case"array":return((r=e.children)==null?void 0:r.map(n=>yo.deserialize(n)))||[];case"react-element":return yo.deserializeReactElement(e);case"object":{const n={};if(e.data&&typeof e.data=="object")for(const[o,s]of Object.entries(e.data))n[o]=yo.deserialize(s);return n}default:return String(e.value||e)}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:String(e)}static serializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=yo.serialize(o):typeof o=="function"?r[n]=null:r[n]=o;return r}static deserializeReactElement(e){const r=e,{elementType:n,props:o,key:s}=r;try{if(typeof n=="string"){const c=yo.deserializeProps(o);return b.createElement(n,{key:s,...c})}}catch(c){console.warn("Error deserializing React element:",c)}return b.createElement(Bo,{key:s,children:o.children})}static deserializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=yo.deserialize(o):r[n]=o;return r}static extractTextContent(e){return e?typeof e.children=="string"?e.children:e.title&&typeof e.title=="string"?e.title:e.label&&typeof e.label=="string"?e.label:e.text&&typeof e.text=="string"?e.text:null:null}}const Si=new Map,Oa=new Map;let Ul=!0;const BU="__react_node__",zU="1.0.0";let cn=class On{static setStrictMode(e){Ul=e}static isStrictMode(){return Ul}static registerComponent(e){const{tagName:r,version:n}=e;if(!r||typeof r!="string")throw new Error("Component class must have a static 'tagName' property");if(!n||typeof n!="string")throw new Error(`Component class '${r}' must have a static 'version' property`);if(typeof e.fromJson!="function")throw new Error(`Component class '${r}' must implement static 'fromJson' method`);Si.has(r)&&console.warn(`Component '${r}' is already registered. Overwriting existing registration.`),Si.set(r,e);const o=e;typeof o.registerPatternHandlers=="function"&&o.registerPatternHandlers(On)}static serialize(e){const r=On.serializeNode(e);return JSON.stringify(r)}static deserialize(e){if(typeof e=="string")try{const r=JSON.parse(e);return On.deserializeData(r)}catch{return e}return e==null?null:On.deserializeData(e)}static isSerializedComponent(e){return!!e&&typeof e=="object"&&typeof e.tagName=="string"&&typeof e.version=="string"&&"data"in e}static deserializeData(e){if(e==null)return null;if(Array.isArray(e))return e.map(r=>On.deserializeData(r));if(On.isSerializedComponent(e)){const{key:r,tagName:n,data:o}=e;try{const s=Si.get(n);if(!s){if(Ul)throw new Error(`Component '${n}' is not registered in strict mode`);const u=On.deserializeUnregisteredComponent(o);return r?$t.cloneElement(u,{key:r}):u}const c=s.fromJson(e);return r?$t.cloneElement(c,{key:r}):c}catch(s){if(Ul)throw s;console.error(`TEST: Error deserializing component '${n}':`,s)}}if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;console.warn("TEST: Unrecognized data:",e);{const r=typeof e=="object"?JSON.stringify(e,null,2):String(e);return $t.createElement(wo,{html:`<pre>${r}</pre>`})}}static serializeNode(e){if(e==null)return null;if(Array.isArray(e))return e.map(n=>On.serializeNode(n));if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="object"&&"type"in e){const n=e,o=n.key?{key:String(n.key)}:{},s=n.type;if(typeof s=="function"){const c=On.findTagNameForComponent(s);if(c){const u=Si.get(c);let d=null;const f=u;if(typeof f.toJson=="function"&&(d=f.toJson(n.props)),d!==null)return d.data&&d.data.children!==void 0&&(d.data.children=On.serializeNode(d.data.children)),{...o,...d}}else if(Ul){const u=s,d=u.displayName||u.name||"Unknown";throw new Error(`Unregistered component '${d}' cannot be serialized in strict mode`)}}}if(Ul)throw new Error(`Cannot serialize unregistered node in strict mode: ${typeof e=="object"&&e&&"type"in e?e.type:typeof e}`);return{tagName:BU,version:zU,data:yo.serialize(e)}}static deserializeUnregisteredComponent(e){return yo.deserialize(e)}static findTagNameForComponent(e){for(const[o,s]of Si.entries())if(s===e)return o;const r=e==null?void 0:e.tagName;if(typeof r=="string"&&Si.has(r))return r;const n=(e==null?void 0:e.displayName)||(e==null?void 0:e.name);if(n){const o=n.replace(/^[A-Za-z]+?\(([^)]+)\)$/,"$1").replace(/WithDataBinding$/,"");if(Si.has(o))return o;if(Si.has(n))return n}return null}static getRegisteredComponents(){return Array.from(Si.keys())}static clearRegistry(){Si.clear(),Oa.clear()}static registerPattern(e,r){Oa.has(e)&&console.warn(`Pattern '${e}' is already registered. Overwriting existing handler.`),Oa.set(e,r)}static hasPattern(e){return Oa.has(e)}static transformHTMLElement(e){for(const[r,n]of Oa)if(e.matches(r))try{const o=n(e);return On.deserialize(o)}catch(o){return console.warn(`Error transforming element with pattern '${r}':`,o),null}return null}static transformHTML(e){if(!e.trim())return[];const n=new DOMParser().parseFromString(e,"text/html");return Array.from(n.body.children).map((o,s)=>On.transformElement(o,`element-${s}`))}static transformElement(e,r){const n=On.transformHTMLElement(e);if(n)return n;const o=Array.from(e.children);if(o.some(c=>Array.from(Oa.keys()).some(u=>c.matches(u)))){const c=o.map((u,d)=>On.transformElement(u,`${r}-${d}`));return $t.createElement(e.tagName.toLowerCase(),{key:r,className:e.className||void 0,id:e.id||void 0},c)}return yo.deserialize({type:"react-element",elementType:e.tagName.toLowerCase(),props:{key:r,className:e.className||void 0,id:e.id||void 0,dangerouslySetInnerHTML:{__html:e.innerHTML}}})}static getRegisteredPatterns(){return Array.from(Oa.keys())}};function DU(){cn.registerComponent(Iz),cn.registerComponent(tc),cn.registerComponent(rc),cn.registerComponent(nr),cn.registerComponent(OT),cn.registerComponent(it),cn.registerComponent(Nz),cn.registerComponent(al),cn.registerComponent(LU),cn.registerComponent(AU),cn.registerComponent(PU),cn.registerComponent(Qk),cn.registerComponent(kU),cn.registerComponent(MU),cn.registerComponent(Ac)}DU();let hd=class extends Sr{};_([z(),D({field_type:B.TEXTAREA,label:"HTML Content",description:"Raw HTML content to transform and render",placeholder:"Enter HTML content..."}),ie(),W(),H("design:type",String)],hd.prototype,"html",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Skip Header",description:"Skip/remove header elements before rendering"}),W(),H("design:type",Boolean)],hd.prototype,"skipHeader",void 0);hd=_([Vt("Article","1.0.0")],hd);var FU=hd;function F0({html:t="",skipHeader:e=!1,...r}){const{styleProps:n,htmlProps:o,restProps:s}=Mn(r);return F0[zn]=!0,t.trim()?l.jsx(Bo,{component:"article",stripHeaders:e,placeholder:"No content available",...o,...s,...n,maxWidth:"900px",mx:"auto",px:{xs:2,sm:3,md:4},py:{xs:3,md:5},"& h1, & h2, & h3, & h4, & h5, & h6":{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeight:700,letterSpacing:"-0.02em",color:"var(--theme-text)",scrollMarginTop:"100px","&:first-of-type":{mt:0}},"& h1":{fontSize:{xs:"2rem",md:"2.75rem"},lineHeight:1.15,mb:3,mt:5},"& h2":{fontSize:{xs:"1.5rem",md:"2rem"},lineHeight:1.25,mb:2.5,mt:5,pb:1.5,borderBottom:"1px solid var(--theme-border-lighter)"},"& h3":{fontSize:{xs:"1.25rem",md:"1.5rem"},lineHeight:1.3,mb:2,mt:4},"& h4":{fontSize:{xs:"1.1rem",md:"1.25rem"},lineHeight:1.4,mb:1.5,mt:3,color:"var(--theme-text)",fontWeight:600},"& p":{fontSize:{xs:"1rem",md:"1.0625rem"},lineHeight:1.75,mb:2,color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&:last-child":{mb:0}},"& ul, & ol":{mb:3,pl:{xs:3,md:4},"& li":{mb:1.25,lineHeight:1.7,fontSize:{xs:"1rem",md:"1.0625rem"},color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&::marker":{color:"var(--theme-primary)",fontWeight:600},"& p":{mb:.5}},"& ul, & ol":{mt:1,mb:0}},"& pre":{backgroundColor:"var(--theme-surface-elevated)",color:"var(--theme-text)",borderRadius:"var(--theme-border-radius)",p:{xs:2,md:3},mb:3,overflow:"auto",fontSize:"0.9rem",lineHeight:1.6,fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',border:"1px solid var(--theme-border-light)",boxShadow:"var(--theme-elevation-2)","& code":{backgroundColor:"transparent",color:"inherit",padding:0,fontSize:"inherit",fontFamily:"inherit"}},"& code":{backgroundColor:"var(--theme-code-bg)",color:"var(--theme-error)",padding:"0.2em 0.4em",borderRadius:"var(--theme-border-radius-small)",fontSize:"0.9em",fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',fontWeight:500},"& blockquote":{borderLeft:"4px solid var(--theme-primary)",backgroundColor:"var(--theme-surface-variant)",borderRadius:"0 var(--theme-border-radius-small) var(--theme-border-radius-small) 0",pl:3,pr:3,py:2.5,my:4,ml:0,mr:0,"& p":{fontSize:{xs:"1.05rem",md:"1.125rem"},fontStyle:"italic",lineHeight:1.6,mb:1.5,color:"var(--theme-text)","&:last-child":{mb:0}},"& cite":{display:"block",fontSize:"0.9rem",fontStyle:"normal",fontWeight:500,color:"var(--theme-text)",mt:1,"&::before":{content:'"— "',color:"var(--theme-primary)"}}},"& table":{width:"100%",borderCollapse:"separate",borderSpacing:0,mb:3,fontSize:"0.95rem",overflow:"hidden",borderRadius:"var(--theme-border-radius-small)",border:"1px solid var(--theme-border-light)","& thead":{backgroundColor:"var(--theme-surface-variant)","& th":{padding:"12px 16px",textAlign:"left",fontWeight:600,color:"var(--theme-text)",borderBottom:"2px solid var(--theme-border-main)",fontSize:"0.875rem",textTransform:"uppercase",letterSpacing:"0.05em"}},"& tbody":{"& tr":{borderBottom:"1px solid var(--theme-border-lighter)",transition:"background-color 0.2s ease","&:hover":{backgroundColor:"var(--theme-surface-variant)"},"&:last-child":{borderBottom:"none"}},"& td":{padding:"12px 16px",color:"var(--theme-text)",lineHeight:1.6}}},"& strong":{fontWeight:700,color:"var(--theme-text)"},"& em":{fontStyle:"italic",color:"var(--theme-text)"},"& a":{color:"var(--theme-primary)",textDecoration:"none",fontWeight:500,borderBottom:"1px solid transparent",transition:"border-color 0.2s ease","&:hover":{borderBottomColor:"var(--theme-primary)"},"&:focus-visible":{outline:"2px solid var(--theme-primary)",outlineOffset:"2px",borderRadius:"2px"}},"& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",display:"block",my:3},"& figure":{margin:"3rem 0","& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",boxShadow:"var(--theme-elevation-2)"},"& figcaption":{textAlign:"center",fontSize:"0.875rem",color:"var(--theme-text)",mt:1.5,fontStyle:"italic"}},"& hr":{border:"none",borderTop:"1px solid var(--theme-border-light)",my:5},...n.sx,children:t}):l.jsxs(ee,{component:"article",...o,...n,sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center",opacity:.6,...n.sx},children:[l.jsx(he,{variant:"h6",color:"var(--theme-text)",children:"No Content Available"}),l.jsx(he,{variant:"body2",color:"var(--theme-text)",children:"No HTML content provided for this article"})]})}class Kh extends ol{getComponentSpecificProps(){return{html:this.props.html,skipHeader:this.props.skipHeader}}renderView(){const{...e}=this.props;return l.jsx(F0,{...e})}renderWithDataBinding(){return l.jsx(HU,{...this.props})}static registerPatternHandlers(e){e.hasPattern("article")||e.registerPattern("article",Kh.transformArticle)}static transformArticle(e){const r=e.getAttribute("data-skip-header")==="true";return{tagName:"Article",props:{html:e.innerHTML,skipHeader:r}}}}Kh.tagName="Article";Kh.version="1.0.0";function HU(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...c}=Ji(e,n,FU.getSchema(),{...r});return o?l.jsxs(ee,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[l.jsx(he,{variant:"h6",children:"Loading Article..."}),l.jsx(he,{variant:"body2",color:"var(--theme-text)",children:"Loading"})]}):s?(console.error("Error loading article:",s),l.jsxs(ee,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[l.jsx(he,{variant:"h6",children:"Error Loading Article"}),l.jsx(he,{variant:"body2",color:"var(--theme-text)",children:s.message})]})):l.jsx(F0,{...c})}let ro=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"Label",description:"Button label text",placeholder:"Enter button text..."}),W(),ie(),H("design:type",String)],ro.prototype,"label",void 0);_([z(),D({field_type:B.SELECT,label:"Variant",description:"Visual style variant",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"},{label:"Contained",value:"contained"}]}}),W(),Ve(["primary","secondary","outlined","text","contained"]),H("design:type",String)],ro.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Size",description:"Button size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ve(["small","medium","large"]),H("design:type",String)],ro.prototype,"buttonSize",void 0);_([z(),D({field_type:B.TEXT,label:"Icon",description:"Icon to display (before text)",placeholder:"Icon identifier..."}),W(),ie(),H("design:type",String)],ro.prototype,"icon",void 0);_([z(),D({field_type:B.TEXT,label:"End Icon",description:"Icon to display after text",placeholder:"End icon identifier..."}),W(),ie(),H("design:type",String)],ro.prototype,"endIcon",void 0);_([z(),D({field_type:B.URL,label:"URL",description:"Link URL - button becomes a link",placeholder:"https://..."}),W(),$h(),H("design:type",String)],ro.prototype,"href",void 0);_([z(),D({field_type:B.SELECT,label:"Target",description:"Link target (when href is provided)",validation:{options:[{label:"Blank",value:"_blank"},{label:"Self",value:"_self"},{label:"Parent",value:"_parent"},{label:"Top",value:"_top"}]}}),W(),Ve(["_blank","_self","_parent","_top"]),H("design:type",String)],ro.prototype,"target",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),H("design:type",Boolean)],ro.prototype,"disabled",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Loading",description:"Loading state - shows spinner and disables interaction"}),W(),H("design:type",Boolean)],ro.prototype,"loading",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Full Width",description:"Full width button"}),W(),H("design:type",Boolean)],ro.prototype,"fullWidth",void 0);ro=_([Vt("Action","1.0.0")],ro);let Gi=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"Title",description:"Main heading for the content block",placeholder:"Enter content title..."}),W(),ie(),H("design:type",String)],Gi.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary heading or description",placeholder:"Enter subtitle..."}),W(),ie(),H("design:type",String)],Gi.prototype,"subtitle",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Main content body (HTML supported)",placeholder:"Enter content body..."}),W(),ie(),H("design:type",Object)],Gi.prototype,"children",void 0);_([z(),D({field_type:B.REPEATER,label:"Actions",description:"Array of action buttons"}),W(),hn(),so({each:!0}),lo(()=>ro),H("design:type",Array)],Gi.prototype,"actions",void 0);_([z(),D({field_type:B.SELECT,label:"Variant",description:"Background/elevation style",validation:{options:[{label:"Default",value:"default"},{label:"Elevated",value:"elevated"},{label:"Outlined",value:"outlined"},{label:"Filled",value:"filled"}]}}),W(),Ve(["default","elevated","outlined","filled"]),H("design:type",String)],Gi.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Block Spacing",description:"Content padding size",validation:{options:[{label:"None",value:"none"},{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),Ve(["none","compact","comfortable","spacious"]),H("design:type",String)],Gi.prototype,"blockSpacing",void 0);_([z(),D({field_type:B.SELECT,label:"Content Max Width",description:"Maximum content width constraint",validation:{options:[{label:"XS",value:"xs"},{label:"SM",value:"sm"},{label:"MD",value:"md"},{label:"LG",value:"lg"},{label:"XL",value:"xl"},{label:"Full Width",value:"false"}]}}),W(),Ve(["xs","sm","md","lg","xl","false"]),H("design:type",String)],Gi.prototype,"contentMaxWidth",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Centered",description:"Center align content"}),W(),Dt(),H("design:type",Boolean)],Gi.prototype,"centered",void 0);Gi=_([Vt("Content","1.0.0")],Gi);let md=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"Label",description:'Metadata label (e.g., "followers", "posts")',placeholder:"followers"}),ie(),H("design:type",String)],md.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Value",description:'Metadata value (e.g., "1.2k", "42")',placeholder:"1.2k"}),ie(),H("design:type",String)],md.prototype,"value",void 0);md=_([Vt("MetadataItem","1.0.0")],md);let xn=class extends Sr{};_([z(),D({field_type:B.IMAGE,label:"Cover Image",description:"Large banner/cover image URL",placeholder:"Upload cover image"}),W(),ie(),H("design:type",String)],xn.prototype,"coverImage",void 0);_([z(),D({field_type:B.TEXT,label:"Cover Image Alt Text",description:"Alternative text for cover image",placeholder:"Descriptive alt text..."}),W(),ie(),H("design:type",String)],xn.prototype,"coverImageAlt",void 0);_([z(),D({field_type:B.IMAGE,label:"Profile Image",description:"Profile/avatar image URL",placeholder:"Upload profile image"}),W(),ie(),H("design:type",String)],xn.prototype,"profileImage",void 0);_([z(),D({field_type:B.TEXT,label:"Profile Image Alt Text",description:"Alternative text for profile image",placeholder:"Profile alt text..."}),W(),ie(),H("design:type",String)],xn.prototype,"profileImageAlt",void 0);_([z(),D({field_type:B.SELECT,label:"Profile Image Size",description:"Size of the profile image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ve(["small","medium","large"]),H("design:type",String)],xn.prototype,"profileImageSize",void 0);_([z(),D({field_type:B.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),W(),ie(),H("design:type",String)],xn.prototype,"overline",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ie(),H("design:type",String)],xn.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),W(),ie(),H("design:type",String)],xn.prototype,"subtitle",void 0);_([z(),D({field_type:B.REPEATER,label:"Metadata",description:"Array of metadata items (followers, posts, etc.)"}),W(),hn(),so({each:!0}),lo(()=>md),H("design:type",Array)],xn.prototype,"metadata",void 0);_([z(),D({field_type:B.REPEATER,label:"Tags",description:"Array of tag strings"}),W(),hn(),ie({each:!0}),H("design:type",Array)],xn.prototype,"tags",void 0);_([z(),D({field_type:B.REPEATER,label:"Actions",description:"Array of action buttons"}),W(),hn(),so({each:!0}),lo(()=>Wi),H("design:type",Array)],xn.prototype,"actions",void 0);_([z(),D({field_type:B.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),W(),Ar(),ao(1),rl(10),H("design:type",Number)],xn.prototype,"maxVisibleActions",void 0);_([z(),D({field_type:B.NUMBER,label:"Banner Height",description:"Height of the banner area in pixels",validation:{min:100,max:500}}),W(),Ar(),ao(100),rl(500),H("design:type",Number)],xn.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ie(),H("design:type",String)],xn.prototype,"className",void 0);_([z(),D({field_type:B.SELECT,label:"Profile Position",description:"Position of profile image relative to banner",validation:{options:[{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Overlay Center",value:"overlay-center"}]}}),W(),Ve(["bottom-left","bottom-center","overlay-center"]),H("design:type",String)],xn.prototype,"profilePosition",void 0);xn=_([Vt("PageBannerHeader","1.0.0")],xn);let Xi=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the feature item",placeholder:"feature-id"}),ie(),ma(),H("design:type",String)],Xi.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Icon",description:"Feature icon (emoji or icon name)",placeholder:"🚀 or icon-name"}),W(),ie(),H("design:type",String)],Xi.prototype,"icon",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Feature title",placeholder:"Feature title..."}),ie(),H("design:type",String)],Xi.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Description",description:"Feature description",placeholder:"Feature description..."}),ie(),H("design:type",String)],Xi.prototype,"description",void 0);_([z(),D({field_type:B.TEXT,label:"Action",description:"Optional action/link text or content",placeholder:"Learn more"}),W(),ie(),H("design:type",String)],Xi.prototype,"action",void 0);Xi=_([Vt("FeatureItem","1.0.0")],Xi);let Ya=class extends Sr{};_([z(),D({field_type:B.REPEATER,label:"Features",description:"Array of feature items"}),hn(),so({each:!0}),lo(()=>Xi),H("design:type",Array)],Ya.prototype,"features",void 0);_([z(),D({field_type:B.SELECT,label:"Columns",description:"Number of columns in the grid",validation:{options:[{label:"1 Column",value:1},{label:"2 Columns",value:2},{label:"3 Columns",value:3},{label:"4 Columns",value:4},{label:"5 Columns",value:5},{label:"6 Columns",value:6}]}}),W(),Ar(),Ve([1,2,3,4,5,6]),H("design:type",Number)],Ya.prototype,"columns",void 0);_([z(),D({field_type:B.SELECT,label:"Gap",description:"Grid gap size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),Ve(["small","medium","large"]),H("design:type",String)],Ya.prototype,"gap",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Equal Height",description:"Whether all grid items should have equal height"}),W(),Dt(),H("design:type",Boolean)],Ya.prototype,"equalHeight",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ie(),H("design:type",String)],Ya.prototype,"className",void 0);Ya=_([Vt("FeatureGrid","1.0.0")],Ya);let Xr=class extends Sr{};_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Collapsed",description:"Whether the layout is currently collapsed"}),W(),Dt(),H("design:type",Boolean)],Xr.prototype,"collapsed",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Default Collapsed",description:"Initial collapsed state for uncontrolled usage"}),W(),Dt(),H("design:type",Boolean)],Xr.prototype,"defaultCollapsed",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Main title displayed in the header",placeholder:"Enter title..."}),W(),ie(),H("design:type",String)],Xr.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Secondary text displayed below the title",placeholder:"Enter subtitle..."}),W(),ie(),H("design:type",String)],Xr.prototype,"subtitle",void 0);_([z(),D({field_type:B.TEXT,label:"Lead Icon",description:"Icon displayed before the title (icon identifier or HTML)",placeholder:"Icon identifier..."}),W(),ie(),H("design:type",String)],Xr.prototype,"leadIcon",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Header Actions",description:"Additional controls displayed in header (HTML/React content)",placeholder:"Enter header actions HTML..."}),W(),ie(),H("design:type",String)],Xr.prototype,"headerActions",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Collapsed View",description:"Summary content shown when collapsed (HTML supported)",placeholder:"Enter collapsed view content..."}),W(),ie(),H("design:type",String)],Xr.prototype,"collapsedView",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),W(),ie(),H("design:type",Object)],Xr.prototype,"children",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Footer View",description:"Always visible footer content (HTML supported)",placeholder:"Enter footer content..."}),W(),ie(),H("design:type",String)],Xr.prototype,"footerView",void 0);_([z({defaultValue:"header"}),D({field_type:B.SELECT,label:"Trigger Area",description:"Area that responds to clicks for toggle functionality",validation:{options:[{label:"Button Only",value:"button"},{label:"Header Area",value:"header"},{label:"Button and Header",value:"both"}]}}),W(),Ve(["button","header","both"]),H("design:type",String)],Xr.prototype,"triggerArea",void 0);_([z({defaultValue:"slide"}),D({field_type:B.SELECT,label:"Animation Style",description:"Animation variant for expand/collapse transitions",validation:{options:[{label:"Fade",value:"fade"},{label:"Slide",value:"slide"},{label:"Scale",value:"scale"}]}}),W(),Ve(["fade","slide","scale"]),H("design:type",String)],Xr.prototype,"animationStyle",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Persist State",description:"Save collapse state in local storage"}),W(),Dt(),H("design:type",Boolean)],Xr.prototype,"persistState",void 0);_([z(),D({field_type:B.TEXT,label:"Collapsed Icon",description:"Icon shown when content is collapsed (default: VisibilityIcon)",placeholder:"Icon identifier..."}),W(),ie(),H("design:type",String)],Xr.prototype,"collapsedIcon",void 0);_([z(),D({field_type:B.TEXT,label:"Expanded Icon",description:"Icon shown when content is expanded (default: VisibilityOffIcon)",placeholder:"Icon identifier..."}),W(),ie(),H("design:type",String)],Xr.prototype,"expandedIcon",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Divider",description:"Show divider lines between header, content, and footer sections"}),W(),Dt(),H("design:type",Boolean)],Xr.prototype,"showDivider",void 0);_([z({defaultValue:"default"}),D({field_type:B.SELECT,label:"Variant",description:"Visual style variant for the layout container",validation:{options:[{label:"Default",value:"default"},{label:"Outlined",value:"outlined"},{label:"Elevated",value:"elevated"},{label:"Filled",value:"filled"}]}}),W(),Ve(["default","outlined","elevated","filled"]),H("design:type",String)],Xr.prototype,"variant",void 0);_([z({defaultValue:"comfortable"}),D({field_type:B.SELECT,label:"Header Spacing",description:"Padding/spacing within the header area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),Ve(["compact","comfortable","spacious"]),H("design:type",String)],Xr.prototype,"headerSpacing",void 0);_([z({defaultValue:"comfortable"}),D({field_type:B.SELECT,label:"Content Spacing",description:"Padding/spacing within the content area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),Ve(["compact","comfortable","spacious"]),H("design:type",String)],Xr.prototype,"contentSpacing",void 0);Xr=_([Vt("CollapsibleLayout","1.0.0")],Xr);let na=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"Action ID",description:"Unique identifier for the action",placeholder:"action-1"}),ie(),ma(),H("design:type",String)],na.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Label",description:"Action button label",placeholder:"Button text..."}),ie(),H("design:type",String)],na.prototype,"label",void 0);_([z(),D({field_type:B.SELECT,label:"Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),W(),Ve(["contained","outlined","text"]),H("design:type",String)],na.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),W(),Ve(["primary","secondary","error"]),H("design:type",String)],na.prototype,"color",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),H("design:type",Boolean)],na.prototype,"disabled",void 0);na=_([Vt("FeatureCardAction","1.0.0")],na);let oa=class extends Sr{};_([z({type:mt.OBJECT}),D({field_type:B.FORM,label:"Feature Data",description:"Single feature item to display"}),W(),so(),lo(()=>Xi),H("design:type",Xi)],oa.prototype,"feature",void 0);_([z({type:mt.ARRAY}),D({field_type:B.REPEATER,label:"Features List",description:"List of feature strings for list variant"}),W(),hn(),ie({each:!0}),H("design:type",Array)],oa.prototype,"features",void 0);_([z({defaultValue:"standard"}),D({field_type:B.SELECT,label:"Card Type",description:"Display variant for the feature card",validation:{options:[{label:"Standard",value:"standard"},{label:"List",value:"list"}]}}),W(),Ve(["standard","list"]),H("design:type",String)],oa.prototype,"variant",void 0);_([z({type:mt.ARRAY}),D({field_type:B.REPEATER,label:"Actions",description:"Custom action buttons"}),W(),hn(),so({each:!0}),lo(()=>na),H("design:type",Array)],oa.prototype,"actions",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Title for list variant",placeholder:"Enter card title..."}),W(),ie(),H("design:type",String)],oa.prototype,"title",void 0);_([z(),D({field_type:B.NUMBER,label:"Elevation",description:"Card elevation (0-24)",validation:{min:0,max:24}}),W(),Ar(),ao(0),rl(24),H("design:type",Number)],oa.prototype,"elevation",void 0);oa=_([Vt("FeatureCard","1.0.0")],oa);let Ja=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the footer item",placeholder:"footer-item-id"}),ie(),ma(),H("design:type",String)],Ja.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Label",description:"Display text for the footer item",placeholder:"Navigation label"}),ie(),H("design:type",String)],Ja.prototype,"label",void 0);_([z(),D({field_type:B.URL,label:"URL",description:"Optional URL for links",placeholder:"https://example.com"}),W(),ie(),H("design:type",String)],Ja.prototype,"href",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"External Link",description:"Whether to open links in new tab"}),W(),Dt(),H("design:type",Boolean)],Ja.prototype,"external",void 0);Ja=_([Vt("FooterItem","1.0.0")],Ja);let Sc=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"ID",description:"Unique identifier for the footer section",placeholder:"footer-section-id"}),ie(),ma(),H("design:type",String)],Sc.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Section title/heading",placeholder:"Section title"}),W(),ie(),H("design:type",String)],Sc.prototype,"title",void 0);_([z(),D({field_type:B.REPEATER,label:"Items",description:"Array of items in this section"}),hn(),so({each:!0}),lo(()=>Ja),H("design:type",Array)],Sc.prototype,"items",void 0);Sc=_([Vt("FooterSection","1.0.0")],Sc);let Ki=class extends Sr{};_([z(),D({field_type:B.REPEATER,label:"Sections",description:"Footer sections with navigation items"}),W(),hn(),so({each:!0}),lo(()=>Sc),H("design:type",Array)],Ki.prototype,"sections",void 0);_([z(),D({field_type:B.TEXT,label:"Logo",description:"Optional logo or branding element (HTML or text)",placeholder:"Company Logo or HTML"}),W(),ie(),H("design:type",String)],Ki.prototype,"logo",void 0);_([z(),D({field_type:B.TEXT,label:"Copyright",description:"Copyright text",placeholder:"© 2025 Company Name"}),W(),ie(),H("design:type",String)],Ki.prototype,"copyright",void 0);_([z(),D({field_type:B.TEXT,label:"Legal Text",description:"Additional legal or info text",placeholder:"All rights reserved."}),W(),ie(),H("design:type",String)],Ki.prototype,"legalText",void 0);_([z(),D({field_type:B.SELECT,label:"Orientation",description:"Layout orientation",validation:{options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}]}}),W(),Ve(["vertical","horizontal"]),H("design:type",String)],Ki.prototype,"orientation",void 0);_([z(),D({field_type:B.SELECT,label:"Variant",description:"Background variant",validation:{options:[{label:"Default",value:"default"},{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"}]}}),W(),Ve(["default","contained","outlined"]),H("design:type",String)],Ki.prototype,"variant",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Show Divider",description:"Whether to show divider above footer"}),W(),Dt(),H("design:type",Boolean)],Ki.prototype,"showDivider",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-footer-class"}),W(),ie(),H("design:type",String)],Ki.prototype,"className",void 0);Ki=_([Vt("Footer","1.0.0")],Ki);let no=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"Product ID",description:"Unique product identifier",placeholder:"product-1"}),ie(),ma(),H("design:type",String)],no.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Product Name",description:"The display name of the product",placeholder:"Enter product name..."}),ie(),ma(),H("design:type",String)],no.prototype,"name",void 0);_([z(),D({field_type:B.TEXT,label:"Category",description:"Product category or type",placeholder:"e.g., Software, Hardware, Service"}),ie(),H("design:type",String)],no.prototype,"category",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Description",description:"Full product description",placeholder:"Detailed product description..."}),ie(),H("design:type",String)],no.prototype,"description",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Short Description",description:"Brief product description for compact view",placeholder:"Brief description..."}),W(),ie(),H("design:type",String)],no.prototype,"shortDescription",void 0);_([z({type:mt.ARRAY}),D({field_type:B.REPEATER,label:"Features",description:"List of key product features"}),hn(),ie({each:!0}),H("design:type",Array)],no.prototype,"features",void 0);_([z({type:mt.ARRAY}),D({field_type:B.REPEATER,label:"Technologies",description:"Technologies used in the product"}),hn(),ie({each:!0}),H("design:type",Array)],no.prototype,"technologies",void 0);_([z(),D({field_type:B.TEXT,label:"Status",description:"Current product status",placeholder:"e.g., Active, Development, Beta"}),ie(),H("design:type",String)],no.prototype,"status",void 0);_([z(),D({field_type:B.IMAGE,label:"Image URL",description:"Product image or screenshot",placeholder:"https://..."}),W(),$h(),H("design:type",String)],no.prototype,"image",void 0);_([z(),D({field_type:B.URL,label:"Product URL",description:"Live product URL (for launched products)",placeholder:"https://..."}),W(),$h(),H("design:type",String)],no.prototype,"url",void 0);no=_([Vt("Product","1.0.0")],no);let ia=class extends Sr{};_([z(),D({field_type:B.TEXT,label:"Action ID",description:"Unique action identifier",placeholder:"action-1"}),ie(),ma(),H("design:type",String)],ia.prototype,"id",void 0);_([z(),D({field_type:B.TEXT,label:"Button Label",description:"Action button text",placeholder:"Button text..."}),ie(),H("design:type",String)],ia.prototype,"label",void 0);_([z(),D({field_type:B.SELECT,label:"Button Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),W(),Ve(["contained","outlined","text"]),H("design:type",String)],ia.prototype,"variant",void 0);_([z(),D({field_type:B.SELECT,label:"Button Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),W(),Ve(["primary","secondary","error"]),H("design:type",String)],ia.prototype,"color",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),H("design:type",Boolean)],ia.prototype,"disabled",void 0);ia=_([Vt("ProductCardAction","1.0.0")],ia);let sa=class extends Sr{};_([z({type:mt.OBJECT}),D({field_type:B.FORM,label:"Product Data",description:"Product information to display"}),W(),so(),lo(()=>no),H("design:type",no)],sa.prototype,"product",void 0);_([z({defaultValue:"detailed"}),D({field_type:B.SELECT,label:"Card Variant",description:"Display variant for the product card",validation:{options:[{label:"Compact",value:"compact"},{label:"Detailed",value:"detailed"}]}}),W(),Ve(["compact","detailed"]),H("design:type",String)],sa.prototype,"variant",void 0);_([z({type:mt.ARRAY}),D({field_type:B.REPEATER,label:"Custom Actions",description:"Custom action buttons"}),W(),hn(),so({each:!0}),lo(()=>ia),H("design:type",Array)],sa.prototype,"actions",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Image",description:"Whether to display the product image"}),W(),H("design:type",Boolean)],sa.prototype,"showImage",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Technologies",description:"Whether to display technology chips"}),W(),H("design:type",Boolean)],sa.prototype,"showTechnologies",void 0);_([z({defaultValue:3}),D({field_type:B.NUMBER,label:"Max Features (Compact)",description:"Maximum features to show in compact mode",validation:{min:1,max:10}}),W(),Ar(),ao(1),rl(10),H("design:type",Number)],sa.prototype,"maxFeaturesCompact",void 0);sa=_([Vt("ProductCard","1.0.0")],sa);let aa=class extends vs{};_([z(),D({field_type:B.REPEATER,label:"Grid Items",description:"Array of items to display in the grid"}),hn(),H("design:type",Array)],aa.prototype,"items",void 0);_([z(),D({field_type:B.SELECT,label:"Columns",description:"Number of columns in the grid layout",validation:{options:[{value:1,label:"1 Column"},{value:2,label:"2 Columns (Default)"},{value:3,label:"3 Columns"},{value:4,label:"4 Columns"},{value:5,label:"5 Columns"},{value:6,label:"6 Columns"}]}}),W(),Ar(),Ve([1,2,3,4,5,6]),H("design:type",Number)],aa.prototype,"columns",void 0);_([z(),D({field_type:B.SELECT,label:"Grid Spacing",description:"Spacing between grid items",validation:{options:[{value:"none",label:"No Spacing"},{value:"tiny",label:"Tiny"},{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large (Default)"},{value:"huge",label:"Huge"}]}}),W(),Ve(["none","tiny","small","medium","large","huge"]),H("design:type",String)],aa.prototype,"spacing",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Equal Height",description:"Whether all cards should have equal height"}),W(),Dt(),H("design:type",Boolean)],aa.prototype,"equalHeight",void 0);_([z(),D({field_type:B.SELECT,label:"Card Component Type",description:"Type of card component to render for each item",validation:{options:[{value:"ProductCard",label:"Product Card"},{value:"FeatureCard",label:"Feature Card"},{value:"Custom",label:"Custom Component"}]}}),W(),Ve(["ProductCard","FeatureCard","Custom"]),H("design:type",String)],aa.prototype,"renderComponent",void 0);_([z(),D({field_type:B.FORM,label:"Item Properties",description:"Additional properties to pass to each rendered item"}),W(),n7(),H("design:type",Object)],aa.prototype,"itemProps",void 0);aa=_([Vt("CardListGrid","1.0.0")],aa);let di=class extends Sr{};_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disable the theme switcher button"}),W(),Dt(),H("design:type",Boolean)],di.prototype,"disabled",void 0);_([z({defaultValue:"medium"}),D({field_type:B.SELECT,label:"Button Size",description:"Size of the theme switcher button"}),W(),ie(),Ve(["small","medium","large"]),H("design:type",String)],di.prototype,"size",void 0);_([z(),D({field_type:B.TEXT,label:"Custom Tooltip",description:"Custom tooltip text override",placeholder:"Current theme: Light"}),W(),ie(),H("design:type",String)],di.prototype,"tooltipText",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Tooltip",description:"Show tooltip on hover"}),W(),Dt(),H("design:type",Boolean)],di.prototype,"showTooltip",void 0);_([z({defaultValue:"bottom"}),D({field_type:B.SELECT,label:"Menu Position",description:"Position of the theme selection menu"}),W(),ie(),Ve(["bottom","top","left","right"]),H("design:type",String)],di.prototype,"menuPosition",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Light Theme",description:"Show light theme option in menu"}),W(),Dt(),H("design:type",Boolean)],di.prototype,"showLightTheme",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Dark Theme",description:"Show dark theme option in menu"}),W(),Dt(),H("design:type",Boolean)],di.prototype,"showDarkTheme",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show System Theme",description:"Show system theme option in menu"}),W(),Dt(),H("design:type",Boolean)],di.prototype,"showSystemTheme",void 0);di=_([Vt("ThemeSwitcher","1.0.0")],di);var UU=di;function qC({disabled:t=!1,size:e="medium",tooltipText:r,showTooltip:n=!0,menuPosition:o="bottom",showLightTheme:s=!0,showDarkTheme:c=!0,showSystemTheme:u=!0,...d}){const{styleProps:f,htmlProps:h}=Mn(d),{currentTheme:v,actualThemeMode:m,setPreferredTheme:y}=AT(),[x,w]=b.useState(null),C=!!x,j=F=>{t||w(F.currentTarget)},k=()=>{w(null)},I=F=>{t||(y(F),k())},E=()=>{switch(m){case"dark":return l.jsx(QS,{});case"light":return l.jsx(kf,{});default:return l.jsx(kf,{})}},M=()=>r||(t?"Theme switcher disabled":`Current theme: ${v==="system"?`System (${m})`:v.charAt(0).toUpperCase()+v.slice(1)}`),R=()=>{switch(o){case"top":return{vertical:"top",horizontal:"right"};case"left":return{vertical:"bottom",horizontal:"left"};case"right":return{vertical:"bottom",horizontal:"right"};default:return{vertical:"bottom",horizontal:"right"}}},L=()=>{switch(o){case"top":return{vertical:"bottom",horizontal:"right"};case"left":return{vertical:"top",horizontal:"right"};case"right":return{vertical:"top",horizontal:"left"};default:return{vertical:"top",horizontal:"right"}}};if(!s&&!c&&!u)return l.jsx(Nr,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:l.jsx(he,{variant:"body2",color:"error",children:"Error: No theme options enabled"})});const A=l.jsxs("span",{suppressHydrationWarning:!0,children:[l.jsx(Xt,{...h,onClick:j,disabled:t,size:e,"aria-label":"theme switcher","aria-controls":C?"theme-menu":void 0,"aria-haspopup":"true","aria-expanded":C?"true":void 0,suppressHydrationWarning:!0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"},"&:disabled":{color:"var(--theme-disabled, rgba(0, 0, 0, 0.26))"},...f.sx},className:f.className,children:E()}),l.jsxs(Lh,{id:"theme-menu",anchorEl:x,open:C,onClose:k,slotProps:{paper:{"aria-labelledby":"theme-button"}},anchorOrigin:R(),transformOrigin:L(),children:[s&&l.jsxs(br,{onClick:()=>I("light"),selected:v==="light",children:[l.jsx(Ef,{children:l.jsx(kf,{fontSize:"small"})}),l.jsx(Tf,{children:"Light"})]}),c&&l.jsxs(br,{onClick:()=>I("dark"),selected:v==="dark",children:[l.jsx(Ef,{children:l.jsx(QS,{fontSize:"small"})}),l.jsx(Tf,{children:"Dark"})]}),u&&l.jsxs(br,{onClick:()=>I("system"),selected:v==="system",children:[l.jsx(Ef,{children:l.jsx(kB,{fontSize:"small"})}),l.jsx(Tf,{children:"System"})]})]})]});return n?l.jsx(tr,{title:M(),children:A}):A}function Yk(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Ji(e||"",n,UU.getSchema(),{...r});if(!e)return l.jsx(qC,{...n});const{loading:s,error:c,...u}=o;return s?l.jsx(Xt,{disabled:!0,size:"medium",children:l.jsx(kf,{})}):c?(console.error("Error loading theme switcher:",c),l.jsx(Nr,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:l.jsxs(he,{variant:"body2",color:"error",children:["Error loading theme switcher: ",c.message]})})):l.jsx(qC,{...u})}Yk[zn]=!0;const H0=b.createContext(null);function VU({children:t}){const e=jv(),r=kv(),n=s=>{(typeof s=="string"||typeof s=="number")&&e(s)},o=r?{pathname:r.pathname,search:r.search,hash:r.hash}:typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return l.jsx(H0.Provider,{value:{navigate:n,location:o},children:t})}function WU({children:t}){const e=n=>{typeof window>"u"||(typeof n=="string"?window.location.href=n:typeof n=="number"&&window.history.go(n))},r=typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return l.jsx(H0.Provider,{value:{navigate:e,location:r},children:t})}function qU({children:t}){return yd()?l.jsx(VU,{children:t}):l.jsx(WU,{children:t})}function Jk(){const t=b.useContext(H0);if(!t)throw new Error("useNavigation must be used within a NavigationProvider. Make sure your component is wrapped in QwickApp or NavigationProvider.");return t}let la=class extends Sr{};_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Disable the palette switcher button"}),W(),Dt(),H("design:type",Boolean)],la.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Button Size",description:"Size of the palette switcher button",placeholder:"medium"}),W(),ie(),H("design:type",String)],la.prototype,"buttonSize",void 0);_([z(),D({field_type:B.TEXT,label:"Tooltip Text",description:"Custom tooltip text for the palette switcher",placeholder:"Switch color palette"}),W(),ie(),H("design:type",String)],la.prototype,"tooltipText",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Active Badge",description:'Show "Active" badge on currently selected palette'}),W(),Dt(),H("design:type",Boolean)],la.prototype,"showActiveBadge",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Descriptions",description:"Show palette descriptions in menu items"}),W(),Dt(),H("design:type",Boolean)],la.prototype,"showDescriptions",void 0);la=_([Vt("PaletteSwitcher","1.0.0")],la);var GU=la;function GC({disabled:t=!1,buttonSize:e="medium",tooltipText:r,showActiveBadge:n=!0,showDescriptions:o=!0,...s}){const{styleProps:c,htmlProps:u}=Mn(s),{currentPalette:d,setPreferredPalette:f,availablePalettes:h}=MT(),[v,m]=b.useState(null),y=!!v,x=E=>{m(E.currentTarget)},w=()=>{m(null)},C=E=>{f(E),w()},j=E=>{const M=E.id===d;return l.jsx(z7,{fontSize:"small",sx:{color:E.primaryColor,filter:M?"drop-shadow(0 0 3px currentColor) brightness(1.2)":"none",transform:M?"scale(1.1)":"scale(1)",transition:"all 0.2s ease-in-out"}})},k=()=>h.find(E=>E.id===d)||h[0];if(!h||h.length===0)return l.jsx(Nr,{...u,...c,variant:"outlined",sx:{p:2,textAlign:"center",opacity:.6,...c.sx},children:l.jsx(he,{variant:"body2",color:"text.secondary",children:"No color palettes available"})});const I=`Switch color palette (current: ${k().name})`;return l.jsxs(ee,{...u,...c,children:[l.jsx(tr,{title:r||I,children:l.jsx(Xt,{onClick:x,disabled:t,size:e,"aria-label":"palette switcher","aria-controls":y?"palette-menu":void 0,"aria-haspopup":"true","aria-expanded":y?"true":void 0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"}},children:l.jsx(mB,{})})}),l.jsx(Lh,{id:"palette-menu",anchorEl:v,open:y,onClose:w,slotProps:{paper:{"aria-labelledby":"palette-button"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:h.map(E=>l.jsxs(br,{onClick:()=>C(E.id),selected:d===E.id,sx:{"&:hover":{backgroundColor:"action.hover"},"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.selected"}}},children:[l.jsx(Ef,{children:j(E)}),l.jsx(Tf,{primary:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.name,n&&d===E.id&&l.jsx(ee,{component:"span",sx:{fontSize:"0.75rem",px:1,py:.25,borderRadius:1,backgroundColor:"primary.main",color:"primary.contrastText"},children:"Active"})]}),secondary:o?E.description:void 0})]},E.id))})]})}function Zk(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Ji(e||"",n,GU.getSchema(),{...r});if(!e)return l.jsx(GC,{...n});const{loading:s,error:c,...u}=o;return s?l.jsxs(Nr,{variant:"outlined",sx:{p:2,textAlign:"center"},children:[l.jsx(he,{variant:"body2",children:"Loading PaletteSwitcher..."}),l.jsx(he,{variant:"caption",color:"text.secondary",children:"Loading palette switcher from data source..."})]}):c?(console.error("Error loading palette switcher:",c),l.jsx(Nr,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:l.jsxs(he,{variant:"body2",color:"error",children:["Error loading palette switcher: ",c.message]})})):l.jsx(GC,{...u})}Zk[zn]=!0;function Ri({children:t,PaperProps:e,...r}){return l.jsx(t0,{...r,PaperProps:{...e,sx:{backgroundColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:"var(--theme-border-radius, 8px)",...e==null?void 0:e.sx}},children:t})}function Ai({children:t,sx:e,...r}){return l.jsx(o0,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",borderBottom:"1px solid var(--theme-border)",...e},children:t})}function _i({children:t,sx:e,...r}){return l.jsx(n0,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",...e},children:t})}function Li({children:t,sx:e,...r}){return l.jsx(r0,{...r,sx:{backgroundColor:"var(--theme-surface)",borderTop:"1px solid var(--theme-border)",padding:"16px 24px",...e},children:t})}const ej=$t.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Mn(t),{label:c,value:u,onChange:d,onChangeRaw:f,type:h="text",helperText:v,required:m=!1,readOnly:y=!1,disabled:x=!1,disabledColor:w,fullWidth:C=!0,multiline:j=!1,rows:k,placeholder:I,startAdornment:E,endAdornment:M,inputProps:R}=s,L=$t.useId(),A=P=>{if(f){f(P);return}if(d){const q=h==="number"?parseInt(P.target.value)||0:P.target.value;d(q)}},F={p:1,pl:1.6,mt:3,color:x&&w?w:y?"var(--theme-text-secondary)":"var(--theme-text-primary)",backgroundColor:y?"var(--theme-surface-variant)":"transparent",borderRadius:1,"&.Mui-disabled":w?{color:w,WebkitTextFillColor:w}:void 0,"& input.Mui-disabled":w?{color:w,WebkitTextFillColor:w}:void 0,...n.sx},G={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},$={color:"var(--theme-secondary)"};return l.jsxs(Co,{ref:e,fullWidth:C,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[l.jsx(ys,{htmlFor:L,sx:G,shrink:!0,children:c}),l.jsx(_h,{id:L,type:h,value:u,onChange:A,readOnly:y,disabled:x,required:m,multiline:j,rows:k,placeholder:I,inputProps:R,sx:F,startAdornment:E?l.jsx(Zl,{position:"start",children:E}):void 0,endAdornment:M?l.jsx(Zl,{position:"end",children:M}):void 0}),v&&l.jsx(tl,{sx:$,children:v})]})});ej.displayName="FormField";ej[zn]=!0;const tj=$t.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Mn(t),{label:c,value:u,onChange:d,options:f,helperText:h,required:v=!1,disabled:m=!1,fullWidth:y=!0,size:x="small",placeholder:w}=s,C=E=>{d(E.target.value)},j={p:1,pl:1.6,...c?{mt:1,color:"var(--theme-text-primary)"}:{},backgroundColor:"var(--theme-surface-variant)",borderColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:1,...n.sx},k={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},I={color:"var(--theme-secondary)"};return l.jsxs(Co,{ref:e,fullWidth:y,size:x,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[c&&l.jsx(ys,{sx:k,shrink:!0,children:c}),l.jsxs(Vi,{value:u,onChange:C,disabled:m,required:v,displayEmpty:!!w,sx:j,children:[w&&l.jsx(br,{value:"",disabled:!0,children:w}),f.map(E=>l.jsx(br,{value:E.value,children:E.label},E.value))]}),h&&l.jsx(tl,{sx:I,children:h})]})});tj.displayName="FormSelect";tj[zn]=!0;const rj=$t.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Mn(t),{label:c,checked:u,onChange:d,helperText:f,required:h=!1,disabled:v=!1}=s,m=C=>{d(C.target.checked)},y={color:"var(--theme-primary)","&.Mui-checked":{color:"var(--theme-primary)"},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}},x={color:"var(--theme-text-primary)","& .MuiFormControlLabel-label":{color:"var(--theme-text-primary)"},"& .MuiFormControlLabel-label.Mui-disabled":{color:"var(--theme-text-disabled)"},...n.sx},w={color:"var(--theme-secondary)",marginLeft:"32px"};return l.jsxs(Co,{ref:e,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[l.jsx(Nn,{control:l.jsx(qs,{checked:u,onChange:m,required:h,disabled:v,sx:y}),label:c,sx:x}),f&&l.jsx(tl,{sx:w,children:f})]})});rj.displayName="FormCheckbox";rj[zn]=!0;const nj=$t.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Mn(t),{provider:c,siteKey:u,onVerify:d,onExpire:f,onError:h,theme:v="light",size:m="normal",action:y="submit"}=s,x=b.useRef(null),w=b.useRef(null),[C,j]=b.useState(!1),[k,I]=b.useState(null);return b.useEffect(()=>{(()=>{if((()=>{switch(c){case"recaptcha-v2":case"recaptcha-v3":return!!window.grecaptcha;case"hcaptcha":return!!window.hcaptcha;case"turnstile":return!!window.turnstile;default:return!1}})()){j(!0);return}const L=(()=>{switch(c){case"recaptcha-v2":return"https://www.google.com/recaptcha/api.js?render=explicit";case"recaptcha-v3":return`https://www.google.com/recaptcha/api.js?render=${u}`;case"hcaptcha":return"https://js.hcaptcha.com/1/api.js?render=explicit";case"turnstile":return"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";default:return""}})();if(!L){I("Unsupported CAPTCHA provider");return}const A=document.createElement("script");return A.src=L,A.async=!0,A.defer=!0,A.onload=()=>{j(!0)},A.onerror=()=>{I("Failed to load CAPTCHA script"),h==null||h(new Error("Failed to load CAPTCHA script"))},document.head.appendChild(A),()=>{document.head.removeChild(A)}})()},[c,u,h]),b.useEffect(()=>{if(!C||!x.current)return;const M=setTimeout(()=>{try{switch(c){case"recaptcha-v2":window.grecaptcha&&window.grecaptcha.render&&(w.current=window.grecaptcha.render(x.current,{sitekey:u,callback:d,"expired-callback":f,"error-callback":()=>{const R=new Error("reCAPTCHA error");I(R.message),h==null||h(R)},theme:v,size:m}));break;case"recaptcha-v3":window.grecaptcha&&window.grecaptcha.execute&&window.grecaptcha.execute(u,{action:y}).then(R=>{d(R)}).catch(R=>{I(R.message),h==null||h(R)});break;case"hcaptcha":window.hcaptcha&&window.hcaptcha.render&&(w.current=window.hcaptcha.render(x.current,{sitekey:u,callback:d,"expired-callback":f,"error-callback":()=>{const R=new Error("hCaptcha error");I(R.message),h==null||h(R)},theme:v,size:m==="normal"?"normal":"compact"}));break;case"turnstile":window.turnstile&&window.turnstile.render&&(w.current=window.turnstile.render(x.current,{sitekey:u,callback:d,"expired-callback":f,"error-callback":()=>{const R=new Error("Turnstile error");I(R.message),h==null||h(R)},theme:v,size:m==="compact"?"compact":"normal"}));break}}catch(R){const L=R instanceof Error?R:new Error("Failed to render CAPTCHA");I(L.message),h==null||h(L)}},100);return()=>{var R,L,A;if(clearTimeout(M),w.current!==null)try{switch(c){case"recaptcha-v2":(R=window.grecaptcha)==null||R.reset(w.current);break;case"hcaptcha":(L=window.hcaptcha)==null||L.remove(w.current);break;case"turnstile":(A=window.turnstile)==null||A.remove(w.current);break}}catch{}}},[C,c,u,d,f,h,v,m,y]),c==="recaptcha-v3"?null:l.jsxs(ee,{ref:e,...o,sx:{my:2,...n.sx},...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[k&&l.jsx(qt,{severity:"error",sx:{mb:2},children:k}),l.jsx("div",{ref:x})]})});nj.displayName="Captcha";nj[zn]=!0;const oj=$t.forwardRef((t,e)=>{var E;const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Mn(t),{placeholder:c,value:u,defaultValue:d,slotProps:f,InputLabelProps:h,InputProps:v,variant:m="outlined",...y}=s,x=u!=null&&u!==""||d!=null&&d!=="",w=!!c&&!x,C=((E=f==null?void 0:f.inputLabel)==null?void 0:E.shrink)??(h==null?void 0:h.shrink),j=C!==void 0?C:w,k={...f,inputLabel:{...(f==null?void 0:f.inputLabel)||{},...j?{shrink:!0}:{}}};let I=v||{};return m==="outlined"&&j&&c&&!x&&I.notched===void 0&&(I={...I,notched:!0}),oj[zn]=!0,l.jsx(wt,{ref:e,placeholder:c,value:u,defaultValue:d,variant:m,slotProps:k,InputProps:I,...y,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl}})});oj.displayName="TextField";function XC(t,e={}){const{defaultUnit:r="px",allowedUnits:n=["px","mm","cm","in","pt","pc"],allowKeywords:o=!1,fallback:s=`0${r}`}=e;if(t==null)return s;if(typeof t=="number"&&isFinite(t))return`${t}${r}`;const c=String(t).trim();return c?o&&/^(auto|inherit|initial|unset)$/.test(c)?c:/^-?\d+(\.\d+)?$/.test(c)?`${c}${r}`:new RegExp(`^-?\\d+(?:\\.\\d+)?(${n.map(d=>d.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")})$`).test(c)?c:s:s}const XU=b.createContext(null);function KU(t,e,r){const{openGraph:n=!0,removeOnUnmount:o=!1}={};b.useEffect(()=>{const s=document.title;let c=!1,u=document.querySelector('meta[name="description"]');t&&document.title!==t&&(document.title=t),e&&(u||(u=document.createElement("meta"),u.name="description",document.head.appendChild(u),c=!0),u.content!==e&&(u.content=e));let d=null,f=null;return n&&(t&&(d=document.querySelector('meta[property="og:title"]'),d||(d=document.createElement("meta"),d.setAttribute("property","og:title"),document.head.appendChild(d)),d.content!==t&&(d.content=t)),e&&(f=document.querySelector('meta[property="og:description"]'),f||(f=document.createElement("meta"),f.setAttribute("property","og:description"),document.head.appendChild(f)),f.content!==e&&(f.content=e))),()=>{var h,v,m;o&&(document.title===t&&(document.title=s),e&&u&&(c||o)&&((h=u.parentNode)==null||h.removeChild(u)),n&&(d&&o&&((v=d.parentNode)==null||v.removeChild(d)),f&&o&&((m=f.parentNode)==null||m.removeChild(f))))}},[t,e,n,o])}const QU=({renderView:t,renderPrintView:e,template:r,route:n,title:o,description:s,name:c,slug:u,printConfig:d,variant:f="default",padding:h="medium",background:v="default",maxWidth:m="large",children:y,...x})=>{const{htmlProps:w,styleProps:C}=Mn(x),[j,k]=b.useState(!1),[I,E]=b.useState(null),M={route:n??(r!=null&&r.slug?`/${r.slug}`:void 0),title:o??(r==null?void 0:r.title)??(r==null?void 0:r.name),description:s??(r==null?void 0:r.description),name:c??(r==null?void 0:r.name),slug:u??(r==null?void 0:r.slug),printConfig:{...r==null?void 0:r.printConfig,...d}};KU(M.title,M.description);const{isPrintMode:R,printConfig:L,onViewLoading:A,onViewReady:F,triggerPrint:G}=Cz(),$=b.useCallback(Y=>G({...M.printConfig,...Y}),[G,M.printConfig]);b.useLayoutEffect(()=>{R&&(j?A():F())},[R,j,A,F]),b.useEffect(()=>{if(!R)return;const Y="qwickapps-print-page-setup",te=L,Q=te.pageSize||"auto",X=te.printBackground||"transparent",re=te.printBackgroundFirstPage||X,de=document.querySelector(".page-print-header:not(.page-print-header-first-page)"),J=document.querySelector(".page-print-footer:not(.page-print-footer-first-page)"),oe=de!=null&&de.getBoundingClientRect?Math.ceil(de.getBoundingClientRect().height):0,Z=J!=null&&J.getBoundingClientRect?Math.ceil(J.getBoundingClientRect().height):0,pe=oe?`${oe}px`:XC(te.printHeaderHeight||0),Se=Z?`${Z}px`:XC(te.printFooterHeight||0),se=(Oe,Be)=>`@media print{@page{size:${Q};margin:0;} .page-print-mode{--print-header-height:${Oe};--print-footer-height:${Be};--print-background:${X};--print-background-first-page:${re};}}`;let ae=document.getElementById(Y);ae||(ae=document.createElement("style"),ae.id=Y,document.head.appendChild(ae)),ae.textContent=se(pe,Se);let Fe=null;window.ResizeObserver&&(Fe=new ResizeObserver(()=>{const Oe=de!=null&&de.getBoundingClientRect?Math.ceil(de.getBoundingClientRect().height):0,Be=J!=null&&J.getBoundingClientRect?Math.ceil(J.getBoundingClientRect().height):0,Le=se(Oe?`${Oe}px`:pe,Be?`${Be}px`:Se);ae&&ae.textContent!==Le&&(ae.textContent=Le)}),de&&Fe.observe(de),J&&Fe.observe(J));const ze=()=>{const Oe=document.getElementById(Y);Oe!=null&&Oe.parentNode&&Oe.parentNode.removeChild(Oe),Fe==null||Fe.disconnect()};return window.addEventListener("afterprint",ze,{once:!0}),()=>{window.removeEventListener("afterprint",ze),ze()}},[R,L]);const{location:P}=Jk(),q=M.route||(P==null?void 0:P.pathname)||"",V=b.useMemo(()=>({route:q,isPrintMode:R,printConfig:L,triggerPrint:$,setLoading:k,setError:E,isLoading:j,error:I}),[q,R,L,$,j,I]),O=["page",`page-variant-${f}`,`page-padding-${h}`,`page-background-${v}`,`page-max-width-${m}`,R&&"page-print-mode",R&&L.pageMargins==="0mm"&&"page-print-borderless",R&&L.pageMargins==="6mm"&&"page-print-compact",R&&L.pageMargins==="20mm"&&"page-print-large",R&&L.pageMargins==="25mm"&&"page-print-formal",R&&(L.printBackground||L.printBackgroundFirstPage)&&"has-background",C.className].filter(Boolean).join(" "),U=(R?e:t)(),K=U??y;return l.jsx(XU.Provider,{value:V,children:l.jsxs(ee,{className:O,sx:C.sx,style:C.style,...w,children:[R&&L.printHeader&&l.jsx("div",{className:"page-print-header",children:typeof L.printHeader=="string"?l.jsx(wo,{html:_u`${L.printHeader}`}):L.printHeader}),R&&L.printHeaderFirstPage&&l.jsx("div",{className:"page-print-header page-print-header-first-page",children:typeof L.printHeaderFirstPage=="string"?l.jsx(wo,{html:_u`${L.printHeaderFirstPage}`}):L.printHeaderFirstPage}),R&&!L.printHeader&&L.printTitle&&l.jsxs("div",{className:"page-print-header",children:[l.jsx("h1",{children:L.printTitle}),L.showPrintDate&&l.jsxs("div",{className:"page-print-date",children:["Printed on: ",new Date().toLocaleString()]})]}),M.name&&M.name!==M.title&&l.jsx("div",{className:"page-heading",children:l.jsx("h1",{children:M.name})}),l.jsx("div",{className:"page-content",children:K}),R&&L.printFooter&&l.jsx("div",{className:"page-print-footer",children:typeof L.printFooter=="string"?l.jsx(wo,{html:_u`${L.printFooter}`}):L.printFooter}),R&&L.printFooterFirstPage&&l.jsx("div",{className:"page-print-footer page-print-footer-first-page",children:typeof L.printFooterFirstPage=="string"?l.jsx(wo,{html:_u`${L.printFooterFirstPage}`}):L.printFooterFirstPage})]})})};class mq extends $t.Component{getPageProps(){return{}}renderView(){return this.props.children}renderPrintView(){return this.renderView()}render(){const e={...this.props,...this.getPageProps()};return l.jsx(QU,{...e,renderView:()=>this.renderView(),renderPrintView:()=>this.renderPrintView()})}}const Ci=qB.scaffold,KC={mobile:600,tablet:1024},YU=({children:t,navigationItems:e=[],appBar:r,className:n="",showAppBar:o=!0,appBarHeight:s=64,appName:c,showThemeSwitcher:u=!1,showPaletteSwitcher:d=!1,onLogoClick:f})=>{const[h,v]=b.useState("desktop"),[m,y]=b.useState(!1),[x,w]=b.useState(!1),[C,j]=b.useState(!1),{navigate:k,location:I}=Jk(),E=C?I==null?void 0:I.pathname:void 0;$t.useEffect(()=>{E&&Ci.debug("Current path changed to:",E)},[E]),b.useEffect(()=>{j(!0)},[]);const{appName:M,logo:R}=v0(),L=c||M;b.useEffect(()=>{const Q=()=>{const X=window.innerWidth;X<KC.mobile?v("mobile"):X<=KC.tablet?v("tablet"):v("desktop")};return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[]);const A=[...e].sort((Q,X)=>(Q.priority||999)-(X.priority||999)),F=()=>{switch(h){case"mobile":{const Q=A.slice(0,5),X=A.slice(5);return{primaryItems:Q,drawerItems:X}}case"tablet":{const Q=A.slice(0,7),X=A.slice(7);return{primaryItems:Q,drawerItems:X}}case"desktop":{const Q=A.slice(0,7),X=A.slice(7);return{primaryItems:Q,drawerItems:X}}default:return{primaryItems:A,drawerItems:[]}}},{primaryItems:G,drawerItems:$}=F(),P=$t.useMemo(()=>{const Q=r||{};return{...Q,title:Q.title||L,actions:Q.actions}},[r,L]),q=(P==null?void 0:P.logo)||R||l.jsx(zh,{name:(P==null?void 0:P.title)||L,size:"small"}),V=()=>{y(!m)},O=()=>{w(!x)},U=(Q,X="appbar")=>{const re=Q.active||Q.route&&E===Q.route||!Q.active&&!Q.route&&E&&E===`/${Q.id}`;Q.route&&Ci.debug(`Route matching for ${Q.id}: ${E} === ${Q.route} = ${re}`);const de=()=>{if(Q.disabled)return;if(re&&Q.route===E){Ci.debug(`Navigation prevented: Already on route ${Q.route}`);return}if(Q.onClick)try{Q.onClick()}catch(se){Ci.error("Menu item onClick error:",se)}else if(Q.route)try{if(Ci.debug(`Navigating from ${E} to ${Q.route}`),E&&E===Q.route){Ci.debug("Final check: Same route detected, skipping navigation");return}k(Q.route)}catch(se){const ae=se instanceof Error?se.message:"Unknown error";if(Ci.error("Navigation error caught:",se),Ci.error("Navigation context:",{from:E,to:Q.route,isActiveItem:re,itemId:Q.id,errorMessage:ae}),Q.route&&Q.route!==E)try{Ci.debug("Attempting fallback navigation using window.location"),window.location.pathname=Q.route}catch(Fe){Ci.error("Fallback navigation also failed:",Fe)}}},J=X!=="drawer";let oe=null;Q.icon?typeof Q.icon=="string"?oe=rv(Q.icon)||(J?l.jsx(ZS,{}):null):oe=Q.icon:J&&(oe=l.jsx(ZS,{}));const Z=l.jsxs(l.Fragment,{children:[oe&&l.jsx("span",{className:`menu-item-icon menu-item-icon-${X}`,children:oe}),l.jsx("span",{className:`menu-item-label menu-item-label-${X}`,children:Q.label}),Q.badge&&l.jsx("span",{className:"menu-item-badge",children:Q.badge})]}),pe={className:`menu-item menu-item-${X} ${re?"active":""} ${Q.disabled?"disabled":""}`,"aria-label":Q.label,"aria-current":re?"page":void 0,onClick:Q.disabled?void 0:de};return Q.href&&!Q.disabled?l.jsx("a",{href:Q.href,...pe,target:"_blank",rel:"noopener noreferrer",children:Z}):l.jsx("button",{type:"button",...pe,disabled:!!(Q.disabled||re&&Q.route===E),children:Z})},Y=(()=>{const Q=h==="mobile"?16:h==="tablet"?24:32,X=Q+(o?s:0),re=Q+(h==="mobile"?80:0),de=Q+(h==="tablet"?x?280:80:0);return{paddingTop:X,paddingBottom:re,paddingLeft:de,paddingRight:Q}})(),te=()=>l.jsx("div",{className:"appbar-logo",onClick:f,style:{cursor:f?"pointer":"default"},children:q});return l.jsxs("div",{className:`app-scaffold ${n}`,children:[o&&l.jsx("header",{className:"app-scaffold-appbar",style:{height:s},children:l.jsxs("div",{className:"appbar-content",children:[l.jsxs("div",{className:"appbar-left",children:[($.length>0||h==="tablet")&&l.jsx("button",{type:"button",className:"menu-button",onClick:h==="tablet"?O:V,"aria-label":h==="tablet"?"Toggle navigation rail":"Open drawer menu",children:l.jsxs("span",{className:"hamburger-icon",children:[l.jsx("span",{},"hamburger-line-1"),l.jsx("span",{},"hamburger-line-2"),l.jsx("span",{},"hamburger-line-3")]})},"menu-button"),(!(P!=null&&P.logoPosition)||P.logoPosition==="left")&&l.jsx(te,{},"app-logo-left")]}),l.jsxs("div",{className:"appbar-center",children:[(P==null?void 0:P.logoPosition)==="center"&&l.jsx(te,{},"app-logo-center"),h==="desktop"&&l.jsx("nav",{className:"appbar-navigation",children:G.map(Q=>l.jsx($t.Fragment,{children:U(Q,"appbar")},Q.id))},"desktop-navigation")]}),l.jsxs("div",{className:"appbar-right",children:[(P==null?void 0:P.actions)&&l.jsx("div",{className:"appbar-actions",children:P.actions},"appbar-actions"),l.jsxs("div",{className:"appbar-theme-controls",children:[u&&l.jsx(Yk,{},"theme-switcher"),d&&l.jsx(Zk,{},"palette-switcher")]},"appbar-theme-controls")]})]})}),h==="tablet"&&l.jsx("nav",{className:`navigation-rail ${x?"expanded":"collapsed"}`,children:l.jsx("div",{className:"rail-items",children:G.map(Q=>l.jsx($t.Fragment,{children:U(Q,"rail")},Q.id))})}),h==="mobile"&&G.length>0&&l.jsx("nav",{className:"bottom-navigation",children:l.jsx("div",{className:"bottom-nav-items",children:G.map(Q=>l.jsx($t.Fragment,{children:U(Q,"bottom")},Q.id))})}),m&&$.length>0&&l.jsx("div",{className:"drawer-overlay",onClick:V,children:l.jsxs("nav",{className:"navigation-drawer",onClick:Q=>Q.stopPropagation(),children:[l.jsxs("div",{className:"drawer-header",children:[l.jsx("h3",{children:"Menu"},"drawer-title"),l.jsx("button",{type:"button",className:"drawer-close",onClick:V,"aria-label":"Close drawer",children:"×"},"drawer-close-button")]}),l.jsxs("div",{className:"drawer-items",children:[l.jsxs("div",{className:"drawer-section",children:[l.jsx("h4",{children:"Navigation"},"navigation-header"),G.map(Q=>l.jsx($t.Fragment,{children:U(Q,"drawer")},Q.id))]}),$.length>0&&l.jsxs("div",{className:"drawer-section",children:[l.jsx("h4",{children:"More"},"more-header"),$.map(Q=>l.jsx($t.Fragment,{children:U(Q,"drawer")},Q.id))]})]})]})}),l.jsx("main",{className:"app-scaffold-content",style:{paddingTop:`${Y.paddingTop}px`,paddingBottom:`${Y.paddingBottom}px`,paddingLeft:`${Y.paddingLeft}px`,paddingRight:`${Y.paddingRight}px`},children:t})]})};class JU extends b.Component{constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null,errorInfo:null})},this.handleRefresh=()=>{typeof window<"u"&&window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e,errorInfo:null}}componentDidCatch(e,r){var n;this.setState({error:e,errorInfo:r}),console.error("ErrorBoundary caught an error:",e,r),this.props.onError&&this.props.onError(e,r),typeof window<"u"&&(n=window.qwickapps)!=null&&n.logError&&window.qwickapps.logError(e,r)}render(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:l.jsxs("div",{className:"error-boundary",role:"alert",style:{padding:"2rem",textAlign:"center",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",margin:"1rem",color:"#991b1b"},children:[l.jsxs("div",{style:{marginBottom:"1.5rem"},children:[l.jsx("h2",{style:{fontSize:"1.5rem",fontWeight:"bold",marginBottom:"0.5rem",color:"#991b1b"},children:"Something went wrong"}),l.jsx("p",{style:{color:"#7f1d1d",marginBottom:"1rem"},children:"An unexpected error occurred in the application. Please try again or refresh the page."})]}),l.jsxs("div",{style:{display:"flex",gap:"0.75rem",justifyContent:"center",marginBottom:"1rem"},children:[l.jsx(nr,{variant:"contained",onClick:this.handleRetry,children:"Try Again"}),l.jsx(nr,{variant:"outlined",onClick:this.handleRefresh,children:"Refresh Page"})]}),this.state.error&&l.jsxs("details",{style:{textAlign:"left",marginTop:"1rem",padding:"1rem",backgroundColor:"#f9fafb",border:"1px solid #d1d5db",borderRadius:"6px"},children:[l.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold",marginBottom:"0.5rem",color:"#374151"},children:"Error Details (Development Mode)"}),l.jsxs("pre",{style:{fontSize:"0.75rem",color:"#374151",whiteSpace:"pre-wrap",overflow:"auto"},children:[this.state.error.toString(),((e=this.state.errorInfo)==null?void 0:e.componentStack)&&l.jsxs(l.Fragment,{children:[l.jsx("br",{}),l.jsx("br",{}),"Component Stack:",this.state.errorInfo.componentStack]})]})]})]}):this.props.children}}const ZU=b.createContext(null),eV=(t,e)=>{switch(e.type){case"SET_HIGH_CONTRAST":return{...t,highContrast:e.payload};case"SET_REDUCED_MOTION":return{...t,reducedMotion:e.payload};case"SET_LARGE_TEXT":return{...t,largeText:e.payload};case"SET_FOCUS_VISIBLE":return{...t,focusVisible:e.payload};case"SET_KEYBOARD_USER":return{...t,isKeyboardUser:e.payload};case"ADD_ISSUE":return{...t,issues:[...t.issues,e.payload]};case"CLEAR_ISSUES":return{...t,issues:[]};case"SET_ANNOUNCEMENT":return{...t,lastAnnouncement:e.payload};default:return t}},tV={highContrast:!1,reducedMotion:!1,largeText:!1,focusVisible:!0,isKeyboardUser:!1,issues:[],lastAnnouncement:null,preferences:{}};class rV{constructor(){this.politeRegion=null,this.assertiveRegion=null,this.createLiveRegions()}createLiveRegions(){typeof document>"u"||(this.politeRegion=document.createElement("div"),this.politeRegion.setAttribute("aria-live","polite"),this.politeRegion.setAttribute("aria-atomic","true"),this.politeRegion.setAttribute("id","qwickapps-aria-live-polite"),this.politeRegion.style.cssText=`
|
|
383
|
+
position: absolute !important;
|
|
384
|
+
left: -10000px !important;
|
|
385
|
+
width: 1px !important;
|
|
386
|
+
height: 1px !important;
|
|
387
|
+
overflow: hidden !important;
|
|
388
|
+
`,document.body.appendChild(this.politeRegion),this.assertiveRegion=document.createElement("div"),this.assertiveRegion.setAttribute("aria-live","assertive"),this.assertiveRegion.setAttribute("aria-atomic","true"),this.assertiveRegion.setAttribute("id","qwickapps-aria-live-assertive"),this.assertiveRegion.style.cssText=`
|
|
389
|
+
position: absolute !important;
|
|
390
|
+
left: -10000px !important;
|
|
391
|
+
width: 1px !important;
|
|
392
|
+
height: 1px !important;
|
|
393
|
+
overflow: hidden !important;
|
|
394
|
+
`,document.body.appendChild(this.assertiveRegion))}announce(e,r="polite"){r==="assertive"?this.announceAssertive(e):this.announcePolite(e)}announcePolite(e){this.politeRegion&&(this.politeRegion.textContent="",setTimeout(()=>{this.politeRegion&&(this.politeRegion.textContent=e)},100))}announceAssertive(e){this.assertiveRegion&&(this.assertiveRegion.textContent="",setTimeout(()=>{this.assertiveRegion&&(this.assertiveRegion.textContent=e)},100))}}const ly=new rV,nV=({children:t,enableAudit:e=!0})=>{const[r,n]=b.useReducer(eV,tV);b.useEffect(()=>{o();const f=s();return c(),e&&u(),()=>{f&&f()}},[e]);const o=()=>{if(!(typeof window>"u")&&(window.matchMedia&&window.matchMedia("(prefers-contrast: high)").matches&&n({type:"SET_HIGH_CONTRAST",payload:!0}),window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&n({type:"SET_REDUCED_MOTION",payload:!0}),window.matchMedia)){const f=window.matchMedia("(prefers-contrast: high)"),h=window.matchMedia("(prefers-reduced-motion: reduce)"),v=y=>{n({type:"SET_HIGH_CONTRAST",payload:y.matches})},m=y=>{n({type:"SET_REDUCED_MOTION",payload:y.matches})};return f.addEventListener("change",v),h.addEventListener("change",m),()=>{f.removeEventListener("change",v),h.removeEventListener("change",m)}}},s=()=>{if(typeof document>"u")return;let f=!1;const h=m=>{m.key==="Tab"&&(f=!0,n({type:"SET_KEYBOARD_USER",payload:!0}),document.body.classList.add("keyboard-user"))},v=()=>{f&&(f=!1,n({type:"SET_KEYBOARD_USER",payload:!1}),document.body.classList.remove("keyboard-user"))};return document.addEventListener("keydown",h),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("mousedown",v)}},c=()=>{if(typeof document>"u")return;const f=document.createElement("style");f.textContent=`
|
|
395
|
+
.keyboard-user *:focus {
|
|
396
|
+
outline: 3px solid #005cee !important;
|
|
397
|
+
outline-offset: 2px !important;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.high-contrast *:focus {
|
|
401
|
+
outline: 3px solid #ffffff !important;
|
|
402
|
+
outline-offset: 2px !important;
|
|
403
|
+
box-shadow: 0 0 0 1px #000000 !important;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.reduced-motion * {
|
|
407
|
+
animation-duration: 0.01ms !important;
|
|
408
|
+
animation-iteration-count: 1 !important;
|
|
409
|
+
transition-duration: 0.01ms !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.large-text {
|
|
413
|
+
font-size: 1.2em !important;
|
|
414
|
+
}
|
|
415
|
+
`,document.head.appendChild(f)},u=()=>{typeof document>"u"||setTimeout(()=>{const f=[];document.querySelectorAll("img:not([alt])").forEach(y=>{f.push({type:"missing-alt-text",message:"Image missing alt attribute",level:"error",element:y})}),document.querySelectorAll("button:not([aria-label]):not([title])").forEach(y=>{var x;(x=y.textContent)!=null&&x.trim()||f.push({type:"unnamed-button",message:"Button missing accessible name",level:"error",element:y})}),document.querySelectorAll("input:not([aria-label]):not([title])").forEach(y=>{const x=y.getAttribute("id");x?document.querySelector(`label[for="${x}"]`)||f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y}):f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y})}),n({type:"CLEAR_ISSUES"}),f.forEach(y=>{n({type:"ADD_ISSUE",payload:y})}),f.length>0&&(console.group("🔍 Accessibility Issues Found"),f.forEach(y=>{(y.level==="error"?console.error:console.warn)(`${y.type}: ${y.message}`)}),console.groupEnd())},1e3)},d={...r,setHighContrast:f=>n({type:"SET_HIGH_CONTRAST",payload:f}),setReducedMotion:f=>n({type:"SET_REDUCED_MOTION",payload:f}),setLargeText:f=>n({type:"SET_LARGE_TEXT",payload:f}),setFocusVisible:f=>n({type:"SET_FOCUS_VISIBLE",payload:f}),announce:(f,h="polite")=>{ly.announce(f,h),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:h,timestamp:Date.now()}})},announcePolite:f=>{ly.announcePolite(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"polite",timestamp:Date.now()}})},announceAssertive:f=>{ly.announceAssertive(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"assertive",timestamp:Date.now()}})},addIssue:f=>n({type:"ADD_ISSUE",payload:f}),clearIssues:()=>n({type:"CLEAR_ISSUES"}),runAudit:u};return b.useEffect(()=>{if(typeof document>"u")return;const{highContrast:f,reducedMotion:h,largeText:v}=r;document.body.classList.toggle("high-contrast",f),document.body.classList.toggle("reduced-motion",h),document.body.classList.toggle("large-text",v)},[r.highContrast,r.reducedMotion,r.largeText]),l.jsx(ZU.Provider,{value:d,children:t})},oV=({children:t,className:e,style:r,defaultTheme:n,defaultPalette:o,appName:s,logo:c,appId:u,enableScaffolding:d,navigationItems:f=[],appBar:h,showAppBar:v=!0,appBarHeight:m=64,showThemeSwitcher:y,showPaletteSwitcher:x,onLogoClick:w,router:C,dataSource:j,config:k})=>{const I={appName:s??(k==null?void 0:k.app.name),appId:u??(k==null?void 0:k.app.id),logo:c??(k==null?void 0:k.app.logo),enableScaffolding:d??(k==null?void 0:k.ui.enableScaffolding)??!1,showThemeSwitcher:y??(k==null?void 0:k.ui.showThemeSwitcher)??!1,showPaletteSwitcher:x??(k==null?void 0:k.ui.showPaletteSwitcher)??!1,defaultTheme:n??(k==null?void 0:k.ui.defaultTheme),defaultPalette:o??(k==null?void 0:k.ui.defaultPalette)};if(!I.appName)throw new Error("QwickApp requires either appName prop or config with app.name");const[E,M]=b.useState({logo:I.logo,enableScaffolding:I.enableScaffolding,navigationItems:f,appBar:h,showAppBar:v,appBarHeight:m,showThemeSwitcher:I.showThemeSwitcher,showPaletteSwitcher:I.showPaletteSwitcher}),R=$=>{M(P=>({...P,...$}))};b.useEffect(()=>{I.logo!==E.logo&&M($=>({...$,logo:I.logo}))},[I.logo]);const L={appName:I.appName,appId:I.appId,...E,onLogoClick:w,updateConfig:R},A=E.enableScaffolding?l.jsx(YU,{appName:I.appName,navigationItems:E.navigationItems,appBar:E.appBar,showAppBar:E.showAppBar,appBarHeight:E.appBarHeight,showThemeSwitcher:E.showThemeSwitcher,showPaletteSwitcher:E.showPaletteSwitcher,onLogoClick:w,children:t}):t,F=j?l.jsx(XB,{dataSource:j,children:A}):A,G=l.jsx(JU,{children:l.jsx(nV,{children:l.jsx(qU,{children:l.jsx("div",{className:`qwick-app ${e||""}`,style:r,children:l.jsx(xz,{appId:I.appId,defaultTheme:I.defaultTheme,defaultPalette:I.defaultPalette,children:l.jsx(PT.Provider,{value:L,children:l.jsx(Sz,{children:F})})})})})})});return C?b.cloneElement(C,{},G):G},iV=({size:t=48,showBackground:e=!0,className:r="",style:n={}})=>l.jsxs("svg",{width:t,height:t,viewBox:"0 0 225 225",className:`qwick-icon ${r}`.trim(),style:n,role:"img","aria-label":"QwickApps Icon",children:[e&&l.jsx("rect",{width:"225",height:"225",rx:"48",fill:"var(--theme-surface)"}),l.jsx("g",{transform:"scale(0.9) translate(-5,-5)",children:l.jsxs("g",{transform:"translate(-128,-60)",children:[l.jsx("path",{className:"logo-first-part",fill:"#FE6D0F",d:"M0 0 C1.3480925 -0.00788544 1.3480925 -0.00788544 2.72341919 -0.01593018 C5.67419172 -0.02905871 8.62441792 -0.02041442 11.57519531 -0.01025391 C13.64251813 -0.0122774 15.70984025 -0.01519113 17.77716064 -0.01895142 C22.10443943 -0.02336572 26.43153199 -0.01697508 30.75878906 -0.00292969 C36.2773468 0.01411856 41.79546534 0.00434284 47.31400681 -0.01364708 C51.5831018 -0.02454577 55.85209467 -0.02101006 60.12119293 -0.0132637 C62.15435082 -0.01127624 64.18751828 -0.01366927 66.22066498 -0.02070236 C76.73689794 -0.04908929 86.57929633 -0.04924466 96.65332031 3.38818359 C97.54098083 3.67795074 98.42864136 3.9677179 99.34320068 4.26626587 C114.15399949 9.31896076 126.4675764 21.76744512 133.65332031 35.38818359 C137.44514211 43.9738112 139.81630642 51.43992278 139.7668457 60.84057617 C139.76699173 61.5728241 139.76713776 62.30507202 139.76728821 63.05950928 C139.76659444 65.46727515 139.75882723 67.87496257 139.75097656 70.28271484 C139.74911048 71.95708677 139.74768747 73.63145924 139.74668884 75.30583191 C139.74287867 79.7034558 139.73306121 84.10104644 139.72198486 88.49865723 C139.71173847 92.9898229 139.70718431 97.48099397 139.70214844 101.97216797 C139.69143757 110.77752174 139.6743792 119.58284852 139.65332031 128.38818359 C138.53702723 127.43704375 137.42154262 126.48495501 136.30639648 125.5324707 C135.68512375 125.002379 135.06385101 124.47228729 134.42375183 123.9261322 C132.20679827 122.00029626 130.09344729 119.97434276 127.96582031 117.95068359 C121.3544337 111.96606452 113.93765643 107.63396094 105.65332031 104.38818359 C105.64397461 103.07736816 105.63462891 101.76655273 105.625 100.41601562 C105.58487807 95.51415049 105.51905854 90.61289839 105.44580078 85.71142578 C105.41771934 83.59724858 105.39644155 81.4829689 105.38232422 79.36865234 C105.36071633 76.31473808 105.31397548 73.26203954 105.26269531 70.20849609 C105.26085236 68.80943527 105.26085236 68.80943527 105.25897217 67.3821106 C105.05613797 58.12249123 102.35361677 49.9326592 95.65332031 43.38818359 C93.37687152 41.83978825 91.12212389 40.64502905 88.65332031 39.38818359 C88.0702562 39.02808197 87.48719208 38.66798035 86.88645935 38.29696655 C83.71010797 37.00434036 80.90937194 37.11787995 77.4855957 37.09765625 C76.41412041 37.08758041 76.41412041 37.08758041 75.32099915 37.07730103 C72.96425383 37.05833326 70.60779341 37.05439768 68.25097656 37.05224609 C66.60957218 37.04581795 64.96816895 37.03908958 63.32676697 37.03207397 C59.88782087 37.02010475 56.44897522 37.01639285 53.01000977 37.01757812 C48.60705215 37.01778144 44.20473906 36.99046492 39.80193424 36.95603371 C36.41239981 36.93377976 33.02302096 36.92974009 29.63342094 36.93079758 C28.01032729 36.9284399 26.38722945 36.91960691 24.76420784 36.90413284 C22.49249412 36.88449971 20.22217644 36.89029871 17.95043945 36.90234375 C16.65900528 36.89949371 15.36757111 36.89664368 14.03700256 36.89370728 C10.0894619 37.47058336 8.4533178 38.60386481 5.65332031 41.38818359 C4.36488826 43.96504769 4.49328598 45.87037118 4.44799805 48.75585938 C4.42805283 49.87687042 4.4081076 50.99788147 4.38755798 52.15286255 C4.36248924 53.97477615 4.36248924 53.97477615 4.33691406 55.83349609 C4.31613297 57.07364471 4.29535187 58.31379333 4.27394104 59.59152222 C4.21954326 62.88930182 4.16931936 66.18711079 4.12109375 69.48498535 C4.07086797 72.84991002 4.01524033 76.21474503 3.95996094 79.57958984 C3.85188552 86.18238589 3.75285167 92.78523103 3.65332031 99.38818359 C-7.89667969 99.38818359 -19.44667969 99.38818359 -31.34667969 99.38818359 C-31.54722373 80.32312956 -31.54722373 80.32312956 -31.59082031 72.14990234 C-31.6206242 66.58894779 -31.65574998 61.02840778 -31.72387695 55.46777344 C-31.77850048 50.98085383 -31.80816368 46.4943792 -31.8210659 42.00715256 C-31.83025168 40.30161924 -31.84818881 38.59610823 -31.87532997 36.89076614 C-32.04228479 25.95844515 -31.41983501 17.49965078 -24.17089844 8.76708984 C-23.46578125 8.16767578 -22.76066406 7.56826172 -22.03417969 6.95068359 C-21.33679688 6.33322266 -20.63941406 5.71576172 -19.92089844 5.07958984 C-13.46479327 0.83756627 -7.52553047 -0.0549708 0 0 Z",transform:"translate(185.3466796875,71.61181640625)"}),l.jsx("path",{className:"logo-second-part",fill:"#03BBCA",d:"M0 0 C11.55 0 23.1 0 35 0 C35.04125 3.25875 35.0825 6.5175 35.125 9.875 C35.47125788 19.41754586 36.68077925 25.86440869 43.74900818 32.68862915 C50.89908532 38.23277376 58.35470598 37.77209826 66.97265625 37.5859375 C68.50677317 37.57472707 70.04091178 37.56619562 71.57505798 37.56021118 C75.58524366 37.53745715 79.59409585 37.47865487 83.60375977 37.4119873 C87.70635953 37.3502711 91.80917779 37.32313407 95.91210938 37.29296875 C103.94201372 37.2288942 111.97084033 37.12668322 120 37 C117.59324168 34.57863654 115.18359847 32.1601637 112.7734375 29.7421875 C111.75527954 28.71774536 111.75527954 28.71774536 110.71655273 27.67260742 C106.8829741 23.82970702 102.99745284 20.13165615 98.8515625 16.625 C95.05012274 13.28871531 91.43825451 9.70885787 88 6 C88 5.67 88 5.34 88 5 C110.75508023 4.37644173 110.75508023 4.37644173 121 8 C122.051875 8.35191406 123.10375 8.70382813 124.1875 9.06640625 C147.22737862 17.29881571 164.80240124 33.21278198 175.41943359 55.15429688 C179.68328916 64.37125249 183.15018908 73.71312925 183.09765625 83.95703125 C183.09443359 85.06884766 183.09121094 86.18066406 183.08789062 87.32617188 C183.07951172 88.47666016 183.07113281 89.62714844 183.0625 90.8125 C183.05798828 91.98232422 183.05347656 93.15214844 183.04882812 94.35742188 C183.0370693 97.23833358 183.02063426 100.11914044 183 103 C180.55229893 100.57810948 178.13689836 98.15012289 175.81640625 95.60546875 C164.49520711 83.46019619 148.63443632 75.12990963 131.85790539 74.44966316 C128.34721591 74.38623286 124.84006559 74.37663155 121.32896042 74.40841484 C118.45052331 74.43424814 115.57348925 74.42890466 112.69497681 74.41651917 C106.58815705 74.39596309 100.48178961 74.41534647 94.375 74.4375 C87.28101821 74.45873236 80.18749777 74.46298673 73.09352493 74.43699837 C70.28119532 74.43367673 67.46978403 74.45471435 64.65756226 74.47740173 C46.51926055 74.50804771 31.73862671 70.07462761 18.28125 57.27734375 C17.5284375 56.52582031 16.775625 55.77429688 16 55 C15.02546875 54.04287109 15.02546875 54.04287109 14.03125 53.06640625 C3.06105089 41.49477078 -0.55499727 26.82435381 -0.1875 11.3125 C-0.125625 7.579375 -0.06375 3.84625 0 0 Z",transform:"translate(154,171)"})]})})]}),sV=({icon:t,name:e,size:r="small",onClick:n,style:o,className:s,...c})=>{const u=(h="small")=>({tiny:20,small:32,medium:40,large:52,"extra-large":68})[h]||32,d=t||l.jsx(iV,{}),f=b.isValidElement(d)?b.cloneElement(d,{size:d.props.size||u(r),style:{position:"relative",left:"25px",zIndex:999,...d.props.style}}):d;return l.jsx(zh,{name:e,size:r,image:f,imagePosition:"start",style:{cursor:n?"pointer":"default",zIndex:1e3,...o},className:s,onClick:n,...c})};function ij(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ll=ij();function aV(t){ll=t}const sj=/[&<>"']/,lV=new RegExp(sj.source,"g"),aj=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,cV=new RegExp(aj.source,"g"),uV={"&":"&","<":"<",">":">",'"':""","'":"'"},QC=t=>uV[t];function Pn(t,e){if(e){if(sj.test(t))return t.replace(lV,QC)}else if(aj.test(t))return t.replace(cV,QC);return t}const dV=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function lj(t){return t.replace(dV,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const pV=/(^|[^\[])\^/g;function wr(t,e){t=typeof t=="string"?t:t.source,e=e||"";const r={replace:(n,o)=>(o=o.source||o,o=o.replace(pV,"$1"),t=t.replace(n,o),r),getRegex:()=>new RegExp(t,e)};return r}const fV=/[^\w:]/g,hV=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function YC(t,e,r){if(t){let n;try{n=decodeURIComponent(lj(r)).replace(fV,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!hV.test(r)&&(r=vV(e,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const yf={},mV=/^[^:]+:\/*[^/]*$/,gV=/^([^:]+:)[\s\S]*$/,yV=/^([^:]+:\/*[^/]*)[\s\S]*$/;function vV(t,e){yf[" "+t]||(mV.test(t)?yf[" "+t]=t+"/":yf[" "+t]=Rf(t,"/",!0)),t=yf[" "+t];const r=t.indexOf(":")===-1;return e.substring(0,2)==="//"?r?e:t.replace(gV,"$1")+e:e.charAt(0)==="/"?r?e:t.replace(yV,"$1")+e:t+e}const th={exec:function(){}};function JC(t,e){const r=t.replace(/\|/g,(s,c,u)=>{let d=!1,f=c;for(;--f>=0&&u[f]==="\\";)d=!d;return d?"|":" |"}),n=r.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Rf(t,e,r){const n=t.length;if(n===0)return"";let o=0;for(;o<n;){const s=t.charAt(n-o-1);if(s===e&&!r)o++;else if(s!==e&&r)o++;else break}return t.slice(0,n-o)}function xV(t,e){if(t.indexOf(e[1])===-1)return-1;const r=t.length;let n=0,o=0;for(;o<r;o++)if(t[o]==="\\")o++;else if(t[o]===e[0])n++;else if(t[o]===e[1]&&(n--,n<0))return o;return-1}function bV(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ZC(t,e){if(e<1)return"";let r="";for(;e>1;)e&1&&(r+=t),e>>=1,t+=t;return r+t}function e2(t,e,r,n){const o=e.href,s=e.title?Pn(e.title):null,c=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){n.state.inLink=!0;const u={type:"link",raw:r,href:o,title:s,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}return{type:"image",raw:r,href:o,title:s,text:Pn(c)}}function wV(t,e){const r=t.match(/^(\s+)(?:```)/);if(r===null)return e;const n=r[1];return e.split(`
|
|
416
|
+
`).map(o=>{const s=o.match(/^\s+/);if(s===null)return o;const[c]=s;return c.length>=n.length?o.slice(n.length):o}).join(`
|
|
417
|
+
`)}class U0{constructor(e){this.options=e||ll}space(e){const r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){const r=this.rules.block.code.exec(e);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Rf(n,`
|
|
418
|
+
`)}}}fences(e){const r=this.rules.block.fences.exec(e);if(r){const n=r[0],o=wV(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(e){const r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(/#$/.test(n)){const o=Rf(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:r[0]}}blockquote(e){const r=this.rules.block.blockquote.exec(e);if(r){const n=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:s,text:n}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n,o,s,c,u,d,f,h,v,m,y,x,w=r[1].trim();const C=w.length>1,j={type:"list",raw:"",ordered:C,start:C?+w.slice(0,-1):"",loose:!1,items:[]};w=C?`\\d{1,9}\\${w.slice(-1)}`:`\\${w}`,this.options.pedantic&&(w=C?w:"[*+-]");const k=new RegExp(`^( {0,3}${w})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(x=!1,!(!(r=k.exec(e))||this.rules.block.hr.test(e)));){if(n=r[0],e=e.substring(n.length),h=r[2].split(`
|
|
419
|
+
`,1)[0].replace(/^\t+/,E=>" ".repeat(3*E.length)),v=e.split(`
|
|
420
|
+
`,1)[0],this.options.pedantic?(c=2,y=h.trimLeft()):(c=r[2].search(/[^ ]/),c=c>4?1:c,y=h.slice(c),c+=r[1].length),d=!1,!h&&/^ *$/.test(v)&&(n+=v+`
|
|
421
|
+
`,e=e.substring(v.length+1),x=!0),!x){const E=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),M=new RegExp(`^ {0,${Math.min(3,c-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),R=new RegExp(`^ {0,${Math.min(3,c-1)}}(?:\`\`\`|~~~)`),L=new RegExp(`^ {0,${Math.min(3,c-1)}}#`);for(;e&&(m=e.split(`
|
|
422
|
+
`,1)[0],v=m,this.options.pedantic&&(v=v.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(R.test(v)||L.test(v)||E.test(v)||M.test(e)));){if(v.search(/[^ ]/)>=c||!v.trim())y+=`
|
|
423
|
+
`+v.slice(c);else{if(d||h.search(/[^ ]/)>=4||R.test(h)||L.test(h)||M.test(h))break;y+=`
|
|
424
|
+
`+v}!d&&!v.trim()&&(d=!0),n+=m+`
|
|
425
|
+
`,e=e.substring(m.length+1),h=v.slice(c)}}j.loose||(f?j.loose=!0:/\n *\n *$/.test(n)&&(f=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(y),o&&(s=o[0]!=="[ ] ",y=y.replace(/^\[[ xX]\] +/,""))),j.items.push({type:"list_item",raw:n,task:!!o,checked:s,loose:!1,text:y}),j.raw+=n}j.items[j.items.length-1].raw=n.trimRight(),j.items[j.items.length-1].text=y.trimRight(),j.raw=j.raw.trimRight();const I=j.items.length;for(u=0;u<I;u++)if(this.lexer.state.top=!1,j.items[u].tokens=this.lexer.blockTokens(j.items[u].text,[]),!j.loose){const E=j.items[u].tokens.filter(R=>R.type==="space"),M=E.length>0&&E.some(R=>/\n.*\n/.test(R.raw));j.loose=M}if(j.loose)for(u=0;u<I;u++)j.items[u].loose=!0;return j}}html(e){const r=this.rules.block.html.exec(e);if(r){const n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):Pn(r[0]);n.type="paragraph",n.text=o,n.tokens=this.lexer.inline(o)}return n}}def(e){const r=this.rules.block.def.exec(e);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:s}}}table(e){const r=this.rules.block.table.exec(e);if(r){const n={type:"table",header:JC(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
|
426
|
+
`):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,s,c,u,d;for(s=0;s<o;s++)/^ *-+: *$/.test(n.align[s])?n.align[s]="right":/^ *:-+: *$/.test(n.align[s])?n.align[s]="center":/^ *:-+ *$/.test(n.align[s])?n.align[s]="left":n.align[s]=null;for(o=n.rows.length,s=0;s<o;s++)n.rows[s]=JC(n.rows[s],n.header.length).map(f=>({text:f}));for(o=n.header.length,c=0;c<o;c++)n.header[c].tokens=this.lexer.inline(n.header[c].text);for(o=n.rows.length,c=0;c<o;c++)for(d=n.rows[c],u=0;u<d.length;u++)d[u].tokens=this.lexer.inline(d[u].text);return n}}}lheading(e){const r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){const r=this.rules.block.paragraph.exec(e);if(r){const n=r[1].charAt(r[1].length-1)===`
|
|
427
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){const r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:Pn(r[1])}}tag(e){const r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Pn(r[0]):r[0]}}link(e){const r=this.rules.inline.link.exec(e);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const c=Rf(n.slice(0,-1),"\\");if((n.length-c.length)%2===0)return}else{const c=xV(r[2],"()");if(c>-1){const d=(r[0].indexOf("!")===0?5:4)+r[1].length+c;r[2]=r[2].substring(0,c),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let o=r[2],s="";if(this.options.pedantic){const c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);c&&(o=c[1],s=c[3])}else s=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),e2(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return e2(n,o,n[0],this.lexer)}}emStrong(e,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=o[1]||o[2]||"";if(!s||s&&(n===""||this.rules.inline.punctuation.exec(n))){const c=o[0].length-1;let u,d,f=c,h=0;const v=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,r=r.slice(-1*e.length+c);(o=v.exec(r))!=null;){if(u=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!u)continue;if(d=u.length,o[3]||o[4]){f+=d;continue}else if((o[5]||o[6])&&c%3&&!((c+d)%3)){h+=d;continue}if(f-=d,f>0)continue;d=Math.min(d,d+f+h);const m=e.slice(0,c+o.index+(o[0].length-u.length)+d);if(Math.min(c,d)%2){const x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}const y=m.slice(2,-2);return{type:"strong",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){const r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(/\n/g," ");const o=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return o&&s&&(n=n.substring(1,n.length-1)),n=Pn(n,!0),{type:"codespan",raw:r[0],text:n}}}br(e){const r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){const r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e,r){const n=this.rules.inline.autolink.exec(e);if(n){let o,s;return n[2]==="@"?(o=Pn(this.options.mangle?r(n[1]):n[1]),s="mailto:"+o):(o=Pn(n[1]),s=o),{type:"link",raw:n[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}url(e,r){let n;if(n=this.rules.inline.url.exec(e)){let o,s;if(n[2]==="@")o=Pn(this.options.mangle?r(n[0]):n[0]),s="mailto:"+o;else{let c;do c=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(c!==n[0]);o=Pn(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e,r){const n=this.rules.inline.text.exec(e);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Pn(n[0]):n[0]:o=Pn(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}}const It={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:th,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};It._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;It._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;It.def=wr(It.def).replace("label",It._label).replace("title",It._title).getRegex();It.bullet=/(?:[*+-]|\d{1,9}[.)])/;It.listItemStart=wr(/^( *)(bull) */).replace("bull",It.bullet).getRegex();It.list=wr(It.list).replace(/bull/g,It.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+It.def.source+")").getRegex();It._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";It._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;It.html=wr(It.html,"i").replace("comment",It._comment).replace("tag",It._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();It.paragraph=wr(It._paragraph).replace("hr",It.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",It._tag).getRegex();It.blockquote=wr(It.blockquote).replace("paragraph",It.paragraph).getRegex();It.normal={...It};It.gfm={...It.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};It.gfm.table=wr(It.gfm.table).replace("hr",It.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",It._tag).getRegex();It.gfm.paragraph=wr(It._paragraph).replace("hr",It.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",It.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",It._tag).getRegex();It.pedantic={...It.normal,html:wr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",It._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:th,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:wr(It.normal._paragraph).replace("hr",It.hr).replace("heading",` *#{1,6} *[^
|
|
428
|
+
]`).replace("lheading",It.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ut={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:th,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:th,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};ut._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";ut.punctuation=wr(ut.punctuation).replace(/punctuation/g,ut._punctuation).getRegex();ut.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;ut.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;ut._comment=wr(It._comment).replace("(?:-->|$)","-->").getRegex();ut.emStrong.lDelim=wr(ut.emStrong.lDelim).replace(/punct/g,ut._punctuation).getRegex();ut.emStrong.rDelimAst=wr(ut.emStrong.rDelimAst,"g").replace(/punct/g,ut._punctuation).getRegex();ut.emStrong.rDelimUnd=wr(ut.emStrong.rDelimUnd,"g").replace(/punct/g,ut._punctuation).getRegex();ut._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;ut._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ut._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;ut.autolink=wr(ut.autolink).replace("scheme",ut._scheme).replace("email",ut._email).getRegex();ut._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ut.tag=wr(ut.tag).replace("comment",ut._comment).replace("attribute",ut._attribute).getRegex();ut._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ut._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;ut._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ut.link=wr(ut.link).replace("label",ut._label).replace("href",ut._href).replace("title",ut._title).getRegex();ut.reflink=wr(ut.reflink).replace("label",ut._label).replace("ref",It._label).getRegex();ut.nolink=wr(ut.nolink).replace("ref",It._label).getRegex();ut.reflinkSearch=wr(ut.reflinkSearch,"g").replace("reflink",ut.reflink).replace("nolink",ut.nolink).getRegex();ut.normal={...ut};ut.pedantic={...ut.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:wr(/^!?\[(label)\]\((.*?)\)/).replace("label",ut._label).getRegex(),reflink:wr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ut._label).getRegex()};ut.gfm={...ut.normal,escape:wr(ut.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};ut.gfm.url=wr(ut.gfm.url,"i").replace("email",ut.gfm._extended_email).getRegex();ut.breaks={...ut.gfm,br:wr(ut.br).replace("{2,}","*").getRegex(),text:wr(ut.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function SV(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function t2(t){let e="",r,n;const o=t.length;for(r=0;r<o;r++)n=t.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class ca{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ll,this.options.tokenizer=this.options.tokenizer||new U0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:It.normal,inline:ut.normal};this.options.pedantic?(r.block=It.pedantic,r.inline=ut.pedantic):this.options.gfm&&(r.block=It.gfm,this.options.breaks?r.inline=ut.breaks:r.inline=ut.gfm),this.tokenizer.rules=r}static get rules(){return{block:It,inline:ut}}static lex(e,r){return new ca(r).lex(e)}static lexInline(e,r){return new ca(r).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
|
429
|
+
`),this.blockTokens(e,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(e,r=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(u,d,f)=>d+" ".repeat(f.length));let n,o,s,c;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(n=u.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
|
430
|
+
`:r.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
431
|
+
`+n.raw,o.text+=`
|
|
432
|
+
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
433
|
+
`+n.raw,o.text+=`
|
|
434
|
+
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let u=1/0;const d=e.slice(1);let f;this.options.extensions.startBlock.forEach(function(h){f=h.call({lexer:this},d),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(s=e.substring(0,u+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){o=r[r.length-1],c&&o.type==="paragraph"?(o.raw+=`
|
|
435
|
+
`+n.raw,o.text+=`
|
|
436
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),c=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
|
|
437
|
+
`+n.raw,o.text+=`
|
|
438
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n,o,s,c=e,u,d,f;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(c))!=null;)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,u.index)+"["+ZC("a",u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(c))!=null;)c=c.slice(0,u.index)+"["+ZC("a",u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.escapedEmSt.exec(c))!=null;)c=c.slice(0,u.index+u[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(d||(f=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(e,c,f)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(e,t2)){e=e.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,t2))){e=e.substring(n.raw.length),r.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const v=e.slice(1);let m;this.options.extensions.startInline.forEach(function(y){m=y.call({lexer:this},v),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(s=e.substring(0,h+1))}if(n=this.tokenizer.inlineText(s,SV)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(f=n.raw.slice(-1)),d=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}}class V0{constructor(e){this.options=e||ll}code(e,r,n){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,o);s!=null&&s!==e&&(n=!0,e=s)}return e=e.replace(/\n$/,"")+`
|
|
439
|
+
`,o?'<pre><code class="'+this.options.langPrefix+Pn(o)+'">'+(n?e:Pn(e,!0))+`</code></pre>
|
|
440
|
+
`:"<pre><code>"+(n?e:Pn(e,!0))+`</code></pre>
|
|
441
|
+
`}blockquote(e){return`<blockquote>
|
|
442
|
+
${e}</blockquote>
|
|
443
|
+
`}html(e){return e}heading(e,r,n,o){if(this.options.headerIds){const s=this.options.headerPrefix+o.slug(n);return`<h${r} id="${s}">${e}</h${r}>
|
|
444
|
+
`}return`<h${r}>${e}</h${r}>
|
|
445
|
+
`}hr(){return this.options.xhtml?`<hr/>
|
|
446
|
+
`:`<hr>
|
|
447
|
+
`}list(e,r,n){const o=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+o+s+`>
|
|
448
|
+
`+e+"</"+o+`>
|
|
449
|
+
`}listitem(e){return`<li>${e}</li>
|
|
450
|
+
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
|
|
451
|
+
`}table(e,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
452
|
+
<thead>
|
|
453
|
+
`+e+`</thead>
|
|
454
|
+
`+r+`</table>
|
|
455
|
+
`}tablerow(e){return`<tr>
|
|
456
|
+
${e}</tr>
|
|
457
|
+
`}tablecell(e,r){const n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
|
|
458
|
+
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,r,n){if(e=YC(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o='<a href="'+e+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(e,r,n){if(e=YC(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o=`<img src="${e}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class cj{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,r,n){return""+n}image(e,r,n){return""+n}br(){return""}}class uj{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,r){let n=e,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do o++,n=e+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[e]=o,this.seen[n]=0),n}slug(e,r={}){const n=this.serialize(e);return this.getNextSafeSlug(n,r.dryrun)}}class ua{constructor(e){this.options=e||ll,this.options.renderer=this.options.renderer||new V0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new cj,this.slugger=new uj}static parse(e,r){return new ua(r).parse(e)}static parseInline(e,r){return new ua(r).parseInline(e)}parse(e,r=!0){let n="",o,s,c,u,d,f,h,v,m,y,x,w,C,j,k,I,E,M,R;const L=e.length;for(o=0;o<L;o++){if(y=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[y.type]&&(R=this.options.extensions.renderers[y.type].call({parser:this},y),R!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(y.type))){n+=R||"";continue}switch(y.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(y.tokens),y.depth,lj(this.parseInline(y.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(y.text,y.lang,y.escaped);continue}case"table":{for(v="",h="",u=y.header.length,s=0;s<u;s++)h+=this.renderer.tablecell(this.parseInline(y.header[s].tokens),{header:!0,align:y.align[s]});for(v+=this.renderer.tablerow(h),m="",u=y.rows.length,s=0;s<u;s++){for(f=y.rows[s],h="",d=f.length,c=0;c<d;c++)h+=this.renderer.tablecell(this.parseInline(f[c].tokens),{header:!1,align:y.align[c]});m+=this.renderer.tablerow(h)}n+=this.renderer.table(v,m);continue}case"blockquote":{m=this.parse(y.tokens),n+=this.renderer.blockquote(m);continue}case"list":{for(x=y.ordered,w=y.start,C=y.loose,u=y.items.length,m="",s=0;s<u;s++)k=y.items[s],I=k.checked,E=k.task,j="",k.task&&(M=this.renderer.checkbox(I),C?k.tokens.length>0&&k.tokens[0].type==="paragraph"?(k.tokens[0].text=M+" "+k.tokens[0].text,k.tokens[0].tokens&&k.tokens[0].tokens.length>0&&k.tokens[0].tokens[0].type==="text"&&(k.tokens[0].tokens[0].text=M+" "+k.tokens[0].tokens[0].text)):k.tokens.unshift({type:"text",text:M}):j+=M),j+=this.parse(k.tokens,C),m+=this.renderer.listitem(j,E,I);n+=this.renderer.list(m,x,w);continue}case"html":{n+=this.renderer.html(y.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(y.tokens));continue}case"text":{for(m=y.tokens?this.parseInline(y.tokens):y.text;o+1<L&&e[o+1].type==="text";)y=e[++o],m+=`
|
|
459
|
+
`+(y.tokens?this.parseInline(y.tokens):y.text);n+=r?this.renderer.paragraph(m):m;continue}default:{const A='Token with "'+y.type+'" type was not found.';if(this.options.silent){console.error(A);return}else throw new Error(A)}}}return n}parseInline(e,r){r=r||this.renderer;let n="",o,s,c;const u=e.length;for(o=0;o<u;o++){if(s=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(c=this.options.extensions.renderers[s.type].call({parser:this},s),c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){n+=c||"";continue}switch(s.type){case"escape":{n+=r.text(s.text);break}case"html":{n+=r.html(s.text);break}case"link":{n+=r.link(s.href,s.title,this.parseInline(s.tokens,r));break}case"image":{n+=r.image(s.href,s.title,s.text);break}case"strong":{n+=r.strong(this.parseInline(s.tokens,r));break}case"em":{n+=r.em(this.parseInline(s.tokens,r));break}case"codespan":{n+=r.codespan(s.text);break}case"br":{n+=r.br();break}case"del":{n+=r.del(this.parseInline(s.tokens,r));break}case"text":{n+=r.text(s.text);break}default:{const d='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(d);return}else throw new Error(d)}}}return n}}class rh{constructor(e){this.options=e||ll}preprocess(e){return e}postprocess(e){return e}}Aa(rh,"passThroughHooks",new Set(["preprocess","postprocess"]));function CV(t,e,r){return n=>{if(n.message+=`
|
|
460
|
+
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Pn(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(o);if(r){r(null,o);return}return o}if(e)return Promise.reject(n);if(r){r(n);return}throw n}}function dj(t,e){return(r,n,o)=>{typeof n=="function"&&(o=n,n=null);const s={...n};n={...Pt.defaults,...s};const c=CV(n.silent,n.async,o);if(typeof r>"u"||r===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(bV(n),n.hooks&&(n.hooks.options=n),o){const u=n.highlight;let d;try{n.hooks&&(r=n.hooks.preprocess(r)),d=t(r,n)}catch(v){return c(v)}const f=function(v){let m;if(!v)try{n.walkTokens&&Pt.walkTokens(d,n.walkTokens),m=e(d,n),n.hooks&&(m=n.hooks.postprocess(m))}catch(y){v=y}return n.highlight=u,v?c(v):o(null,m)};if(!u||u.length<3||(delete n.highlight,!d.length))return f();let h=0;Pt.walkTokens(d,function(v){v.type==="code"&&(h++,setTimeout(()=>{u(v.text,v.lang,function(m,y){if(m)return f(m);y!=null&&y!==v.text&&(v.text=y,v.escaped=!0),h--,h===0&&f()})},0))}),h===0&&f();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(u=>t(u,n)).then(u=>n.walkTokens?Promise.all(Pt.walkTokens(u,n.walkTokens)).then(()=>u):u).then(u=>e(u,n)).then(u=>n.hooks?n.hooks.postprocess(u):u).catch(c);try{n.hooks&&(r=n.hooks.preprocess(r));const u=t(r,n);n.walkTokens&&Pt.walkTokens(u,n.walkTokens);let d=e(u,n);return n.hooks&&(d=n.hooks.postprocess(d)),d}catch(u){return c(u)}}}function Pt(t,e,r){return dj(ca.lex,ua.parse)(t,e,r)}Pt.options=Pt.setOptions=function(t){return Pt.defaults={...Pt.defaults,...t},aV(Pt.defaults),Pt};Pt.getDefaults=ij;Pt.defaults=ll;Pt.use=function(...t){const e=Pt.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(r=>{const n={...r};if(n.async=Pt.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const s=e.renderers[o.name];s?e.renderers[o.name]=function(...c){let u=o.renderer.apply(this,c);return u===!1&&(u=s.apply(this,c)),u}:e.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[o.level]?e[o.level].unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),n.extensions=e),r.renderer){const o=Pt.defaults.renderer||new V0;for(const s in r.renderer){const c=o[s];o[s]=(...u)=>{let d=r.renderer[s].apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}n.renderer=o}if(r.tokenizer){const o=Pt.defaults.tokenizer||new U0;for(const s in r.tokenizer){const c=o[s];o[s]=(...u)=>{let d=r.tokenizer[s].apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}n.tokenizer=o}if(r.hooks){const o=Pt.defaults.hooks||new rh;for(const s in r.hooks){const c=o[s];rh.passThroughHooks.has(s)?o[s]=u=>{if(Pt.defaults.async)return Promise.resolve(r.hooks[s].call(o,u)).then(f=>c.call(o,f));const d=r.hooks[s].call(o,u);return c.call(o,d)}:o[s]=(...u)=>{let d=r.hooks[s].apply(o,u);return d===!1&&(d=c.apply(o,u)),d}}n.hooks=o}if(r.walkTokens){const o=Pt.defaults.walkTokens;n.walkTokens=function(s){let c=[];return c.push(r.walkTokens.call(this,s)),o&&(c=c.concat(o.call(this,s))),c}}Pt.setOptions(n)})};Pt.walkTokens=function(t,e){let r=[];for(const n of t)switch(r=r.concat(e.call(Pt,n)),n.type){case"table":{for(const o of n.header)r=r.concat(Pt.walkTokens(o.tokens,e));for(const o of n.rows)for(const s of o)r=r.concat(Pt.walkTokens(s.tokens,e));break}case"list":{r=r.concat(Pt.walkTokens(n.items,e));break}default:Pt.defaults.extensions&&Pt.defaults.extensions.childTokens&&Pt.defaults.extensions.childTokens[n.type]?Pt.defaults.extensions.childTokens[n.type].forEach(function(o){r=r.concat(Pt.walkTokens(n[o],e))}):n.tokens&&(r=r.concat(Pt.walkTokens(n.tokens,e)))}return r};Pt.parseInline=dj(ca.lexInline,ua.parseInline);Pt.Parser=ua;Pt.parser=ua.parse;Pt.Renderer=V0;Pt.TextRenderer=cj;Pt.Lexer=ca;Pt.lexer=ca.lex;Pt.Tokenizer=U0;Pt.Slugger=uj;Pt.Hooks=rh;Pt.parse=Pt;Pt.options;Pt.setOptions;Pt.use;Pt.walkTokens;Pt.parseInline;ua.parse;ca.lex;let Cc=class extends Sr{};_([z(),D({field_type:B.TEXTAREA,label:"Markdown Content",description:"Markdown content to be transformed into React components",placeholder:`# Enter Markdown content...
|
|
461
|
+
|
|
462
|
+
**Bold text** and *italic text*.`}),W(),ie(),H("design:type",String)],Cc.prototype,"children",void 0);_([z(),D({field_type:B.CHECKBOX,label:"Sanitize HTML",description:"Whether to sanitize HTML output for security"}),W(),Dt(),H("design:type",Boolean)],Cc.prototype,"sanitize",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder",description:"Fallback content to display when Markdown is empty",placeholder:"No content available"}),W(),ie(),H("design:type",String)],Cc.prototype,"placeholder",void 0);Cc=_([Vt("Markdown","1.0.0")],Cc);var EV=Cc;const TV=[{selector:"pre",transform:(t,e)=>{var s;const r=t.querySelector("code");if(!r)return null;const o={tagName:"Code",version:"1.0.0",data:{language:((s=Array.from(r.classList).find(c=>c.startsWith("language-")))==null?void 0:s.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,children:r.textContent||""}};return l.jsx(ee,{sx:{my:1.5},children:cn.deserialize(o)},e)}},{selector:"code",transform:t=>(t.closest("pre"),null)}],kV=t=>({gfm:!0,breaks:!1,pedantic:!1,sanitize:!1,smartypants:!1,renderer:new Pt.Renderer,...t});function W0({children:t="",htmlTransformConfig:e,sanitize:r=!0,sanitizeOptions:n,placeholder:o,component:s="div",markedOptions:c,...u}){const{styleProps:d,htmlProps:f,restProps:h}=Mn(u);if(W0[zn]=!0,!t||!t.trim())return o?l.jsx(ee,{component:s,...f,...d,...h,sx:{opacity:.6,fontStyle:"italic",...d.sx},children:o}):null;try{const v=kV(c),m=Pt(t,v),y=e||{rules:TV,sanitize:r,sanitizeOptions:n};return l.jsx(Bo,{transformConfig:y,sanitize:r,sanitizeOptions:n,component:s,...f,...d,...h,children:m})}catch(v){return console.error("Error processing Markdown content:",v),l.jsxs(ee,{component:s,...f,...d,...h,sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)",...d.sx},children:[l.jsx("strong",{children:"Markdown Processing Error:"})," ",v instanceof Error?v.message:"Unknown error",l.jsx(wo,{html:t,placeholder:"Failed to process Markdown"})]})}}class gd extends ol{getComponentSpecificProps(){return{children:this.props.children,sanitize:this.props.sanitize,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return l.jsx(W0,{...e})}renderWithDataBinding(){return l.jsx(jV,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.markdown-content")||e.registerPattern("div.markdown-content",gd.transformMarkdownDiv),e.hasPattern("[data-markdown]")||e.registerPattern("[data-markdown]",gd.transformDataMarkdown)}static transformMarkdownDiv(e){const r=e.getAttribute("data-sanitize")!=="false",n=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:e.textContent||"",sanitize:r,placeholder:n||void 0}}}static transformDataMarkdown(e){const r=e.getAttribute("data-markdown")||e.textContent,n=e.getAttribute("data-sanitize")!=="false",o=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:r,sanitize:n,placeholder:o||void 0}}}}gd.tagName="Markdown";gd.version="1.0.0";function jV(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...c}=Ji(e,n,EV.getSchema(),{...r});return o?l.jsx(ee,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading Markdown content..."}):s?(console.error("Error loading Markdown content:",s),l.jsxs(ee,{sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)"},children:[l.jsx("strong",{children:"Error Loading Markdown:"})," ",s.message]})):l.jsx(W0,{...c})}class PV{constructor(){this.measurements=[],this.isEnabled=!0,this.isEnabled&&this.initializeListeners()}initializeListeners(){typeof window>"u"||(window.addEventListener("theme-changed",e=>{var r;this.measureThemeSwitch("theme",(r=e.detail)==null?void 0:r.theme)}),window.addEventListener("palette-changed",e=>{var r;this.measureThemeSwitch("palette",(r=e.detail)==null?void 0:r.palette)}))}measureThemeSwitch(e,r){if(!this.isEnabled||typeof window>"u"||typeof performance>"u")return;const n=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{const s=performance.now()-n,c={type:e,value:r,duration:s,timestamp:new Date().toISOString()};this.measurements.push(c),this.measurements.length>50&&this.measurements.shift(),s>100?console.warn(`Slow ${e} switch detected:`,c):console.log(`${e} switch performance:`,`${s.toFixed(2)}ms`)})})}getStatistics(){if(!this.isEnabled||this.measurements.length===0)return null;const e=this.measurements.map(s=>s.duration),r=e.reduce((s,c)=>s+c,0)/e.length,n=Math.min(...e),o=Math.max(...e);return{totalMeasurements:this.measurements.length,averageDuration:r.toFixed(2),minDuration:n.toFixed(2),maxDuration:o.toFixed(2),recentMeasurements:this.measurements.slice(-10)}}logStatistics(){if(!this.isEnabled)return;const e=this.getStatistics();e&&(console.group("Theme Performance Statistics"),console.log("Total measurements:",e.totalMeasurements),console.log("Average duration:",e.averageDuration+"ms"),console.log("Min duration:",e.minDuration+"ms"),console.log("Max duration:",e.maxDuration+"ms"),console.log("Recent measurements:",e.recentMeasurements),console.groupEnd())}reset(){this.measurements=[]}}new PV;var r2;(function(t){t.POST="POST",t.PUT="PUT",t.PATCH="PATCH"})(r2||(r2={}));var n2;(function(t){t.NAVIGATE="navigate",t.SUBMIT="submit",t.RESET="reset",t.CANCEL="cancel"})(n2||(n2={}));class q0{constructor(e){this.app=Object.freeze({...e.app}),this.build=Object.freeze({...e.build}),this.pwa=Object.freeze({...e.pwa}),this.ui=Object.freeze({...e.ui}),this.copyright=Object.freeze({...e.copyright}),Object.freeze(this)}get viteConfig(){return{server:{port:this.build.port,host:!0},preview:{port:this.build.previewPort,host:!0},build:{outDir:this.build.outputDir},base:this.build.base,publicDir:"public",define:{__APP_NAME__:JSON.stringify(this.app.name),__APP_ID__:JSON.stringify(this.app.id),__APP_VERSION__:JSON.stringify(this.app.version)}}}get pwaManifest(){return{name:this.app.name,short_name:this.app.shortName,description:this.app.description,start_url:this.pwa.startUrl,display:this.pwa.display,orientation:this.pwa.orientation,theme_color:this.pwa.themeColor,background_color:this.pwa.backgroundColor,scope:this.pwa.scope,icons:[{src:"pwa-192x192.png",sizes:"192x192",type:"image/png"},{src:"pwa-512x512.png",sizes:"512x512",type:"image/png"}]}}toJSON(){return{app:this.app,build:this.build,pwa:this.pwa,ui:this.ui,copyright:this.copyright}}with(e){return new q0({app:{...this.app,...e.app},build:{...this.build,...e.build},pwa:{...this.pwa,...e.pwa},ui:{...this.ui,...e.ui},copyright:{...this.copyright,...e.copyright}})}}let Lu,Ou;try{typeof window>"u"&&typeof process<"u"&&(Lu=require("fs"),Ou=require("path"))}catch{}class G0{constructor(){this.config={app:{},build:{},pwa:{},ui:{},copyright:{}},this.options={}}static create(){return new G0}withConfig(e){if(!Lu||!Ou)return typeof window>"u"&&console.warn("Warning: File system operations not available in browser environment"),this;try{const r=Ou.resolve(e),n=JSON.parse(Lu.readFileSync(r,"utf-8"));n.app&&Object.assign(this.config.app,n.app),n.build&&Object.assign(this.config.build,n.build),n.pwa&&Object.assign(this.config.pwa,n.pwa),n.ui&&Object.assign(this.config.ui,n.ui),n.copyright&&Object.assign(this.config.copyright,n.copyright)}catch{console.warn(`Warning: Could not load config file: ${e}`)}return this}withOptions(e){return this.options={...this.options,...e},this}withName(e){return this.config.app.name=e,this}withId(e){return this.config.app.id=e,this}withShortName(e){return this.config.app.shortName=e,this}withDescription(e){return this.config.app.description=e,this}withVersion(e){return this.config.app.version=e,this}withLogo(e){return this.config.app.logo=e,this}withAuthor(e){return this.config.app.author=e,this}withHomepage(e){return this.config.app.homepage=e,this}withPort(e){return this.config.build.port=e,this}withPreviewPort(e){return this.config.build.previewPort=e,this}withOutputDir(e){return this.config.build.outputDir=e,this}withPublicPath(e){return this.config.build.publicPath=e,this}withBase(e){return this.config.build.base=e,this}withThemeColor(e){return this.config.pwa.themeColor=e,this}withBackgroundColor(e){return this.config.pwa.backgroundColor=e,this}withStartUrl(e){return this.config.pwa.startUrl=e,this}withScope(e){return this.config.pwa.scope=e,this}withDisplay(e){return this.config.pwa.display=e,this}withOrientation(e){return this.config.pwa.orientation=e,this}withDefaultTheme(e){return this.config.ui.defaultTheme=e,this}withDefaultPalette(e){return this.config.ui.defaultPalette=e,this}withScaffolding(e){return this.config.ui.enableScaffolding=e,this}withThemeSwitcher(e){return this.config.ui.showThemeSwitcher=e,this}withPaletteSwitcher(e){return this.config.ui.showPaletteSwitcher=e,this}withCopyright(e,r,n){return this.config.copyright.year=e,this.config.copyright.author=r,n!==void 0&&(this.config.copyright.text=n),this}withCopyrightYear(e){return this.config.copyright.year=e,this}withCopyrightAuthor(e){return this.config.copyright.author=e,this}withCopyrightText(e){return this.config.copyright.text=e,this}build(){const e=this.validate();if(e.warnings.forEach(n=>{console.warn(`⚠️ AppConfig: ${n}`)}),!e.isValid)throw new Error(`AppConfig validation failed:
|
|
463
|
+
${e.errors.map(n=>` - ${n}`).join(`
|
|
464
|
+
`)}`);const r=this.applyDefaults();return new q0(r)}validate(){const e=[],r=[];if(this.config.app.name||r.push("App name is required"),this.config.app.id||r.push("App ID is required"),this.config.copyright.year&&this.config.copyright.year!=="auto"&&(!Number.isInteger(this.config.copyright.year)||this.config.copyright.year<1900)&&e.push('Copyright year should be "auto" or a valid year >= 1900'),this.config.app.logo&&!this.options.skipValidation&&Lu&&Ou){const n=Ou.resolve(this.options.baseDir||process.cwd(),this.config.app.logo);Lu.existsSync(n)||e.push(`Logo file not found: ${this.config.app.logo} (will use default)`)}return this.config.build.port!==void 0&&(!Number.isInteger(this.config.build.port)||this.config.build.port<1||this.config.build.port>65535)&&r.push("Port must be a valid integer between 1 and 65535"),this.config.build.previewPort!==void 0&&(!Number.isInteger(this.config.build.previewPort)||this.config.build.previewPort<1||this.config.build.previewPort>65535)&&r.push("Preview port must be a valid integer between 1 and 65535"),this.config.pwa.themeColor&&!this.isValidColor(this.config.pwa.themeColor)&&e.push(`Theme color may not be valid: ${this.config.pwa.themeColor}`),this.config.pwa.backgroundColor&&!this.isValidColor(this.config.pwa.backgroundColor)&&e.push(`Background color may not be valid: ${this.config.pwa.backgroundColor}`),{warnings:e,errors:r,isValid:r.length===0}}applyDefaults(){const e={id:this.config.app.id,name:this.config.app.name,shortName:this.config.app.shortName||this.config.app.name,description:this.config.app.description||this.config.app.name,version:this.config.app.version||"1.0.0",logo:this.config.app.logo||"/favicon.ico",author:this.config.app.author,homepage:this.config.app.homepage},r={port:this.config.build.port||3e3,previewPort:this.config.build.previewPort||4173,outputDir:this.config.build.outputDir||"dist",publicPath:this.config.build.publicPath||"/",base:this.config.build.base||"/"},n={themeColor:this.config.pwa.themeColor||"#000000",backgroundColor:this.config.pwa.backgroundColor||"#ffffff",startUrl:this.config.pwa.startUrl||"/",scope:this.config.pwa.scope||"/",display:this.config.pwa.display||"standalone",orientation:this.config.pwa.orientation},o={defaultTheme:this.config.ui.defaultTheme||"light",defaultPalette:this.config.ui.defaultPalette||"default",enableScaffolding:this.config.ui.enableScaffolding??!0,showThemeSwitcher:this.config.ui.showThemeSwitcher??!1,showPaletteSwitcher:this.config.ui.showPaletteSwitcher??!1},s={year:this.config.copyright.year||"auto",author:this.config.copyright.author||e.author||e.name,text:this.config.copyright.text};return{app:e,build:r,pwa:n,ui:o,copyright:s}}isValidColor(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)||/^(black|white|red|green|blue|yellow|orange|purple|pink|gray|grey)$/i.test(e)||/^rgba?\([^)]+\)$/i.test(e)}}let ws=class extends Et{};_([z(),D({field_type:B.TEXT,label:"Field Label",description:"Label/title for the choice input field",placeholder:"Options"}),W(),ie(),H("design:type",String)],ws.prototype,"label",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Options",description:"Array of option values (HTML content supported) - JSON array format"}),W(),hn(),ie({each:!0}),H("design:type",Array)],ws.prototype,"options",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether the input fields are disabled"}),W(),Dt(),H("design:type",Boolean)],ws.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder Text",description:"Placeholder text for option inputs",placeholder:"Enter option text. HTML formatting supported."}),W(),ie(),H("design:type",String)],ws.prototype,"placeholder",void 0);_([z(),D({field_type:B.TEXT,label:"Option Label Prefix",description:'Prefix for each option label (e.g., "Option", "Choice")',placeholder:"Option"}),W(),ie(),H("design:type",String)],ws.prototype,"optionLabelPrefix",void 0);_([z({defaultValue:2}),D({field_type:B.NUMBER,label:"Input Rows",description:"Number of rows for each option input field"}),W(),Ar(),H("design:type",Number)],ws.prototype,"rows",void 0);_([z(),D({field_type:B.TEXT,label:"Add Button Text",description:"Text for the add option button",placeholder:"Add Option"}),W(),ie(),H("design:type",String)],ws.prototype,"addButtonText",void 0);ws=_([Vt("ChoiceInputField","1.0.0")],ws);let Ss=class extends $T{};_([z(),D({field_type:B.TEXTAREA,label:"Content",description:"Raw code text. If provided, React children are ignored in serialization.",placeholder:"Enter code content..."}),W(),ie(),H("design:type",String)],Ss.prototype,"content",void 0);_([z(),D({field_type:B.TEXT,label:"Language",description:"Programming language for syntax highlighting (e.g., typescript, javascript, python)",placeholder:"javascript"}),W(),ie(),H("design:type",String)],Ss.prototype,"language",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Show Copy Button",description:"Display a copy-to-clipboard button"}),W(),Dt(),H("design:type",Boolean)],Ss.prototype,"showCopy",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Show Line Numbers",description:"Display line numbers alongside the code"}),W(),Dt(),H("design:type",Boolean)],Ss.prototype,"showLineNumbers",void 0);_([z(),D({field_type:B.TEXT,label:"Title",description:"Optional title or filename to display above the code",placeholder:"File name or title"}),W(),ie(),H("design:type",String)],Ss.prototype,"title",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Wrap Long Lines",description:"Allow long lines to wrap instead of scrolling horizontally"}),W(),Dt(),H("design:type",Boolean)],Ss.prototype,"wrapLines",void 0);_([z(),D({field_type:B.TEXT,label:"Background Color",description:"Custom background color override",placeholder:"#f5f5f5"}),W(),ie(),H("design:type",String)],Ss.prototype,"codeBackground",void 0);Ss=_([Vt("Code","1.0.0")],Ss);let oo=class extends vs{};_([z(),D({field_type:B.NUMBER,label:"Span",description:"Number of columns to span (1-12)",placeholder:"12"}),W(),Ar(),Ve([1,2,3,4,5,6,7,8,9,10,11,12]),H("design:type",Number)],oo.prototype,"span",void 0);_([z(),D({field_type:B.NUMBER,label:"XS (Mobile)",description:"Columns on extra small screens (1-12)",placeholder:"12"}),W(),Ar(),Ve([1,2,3,4,5,6,7,8,9,10,11,12]),H("design:type",Number)],oo.prototype,"xs",void 0);_([z(),D({field_type:B.NUMBER,label:"SM (Tablet)",description:"Columns on small screens (1-12)",placeholder:"6"}),W(),Ar(),Ve([1,2,3,4,5,6,7,8,9,10,11,12]),H("design:type",Number)],oo.prototype,"sm",void 0);_([z(),D({field_type:B.NUMBER,label:"MD (Desktop)",description:"Columns on medium screens (1-12)",placeholder:"4"}),W(),Ar(),Ve([1,2,3,4,5,6,7,8,9,10,11,12]),H("design:type",Number)],oo.prototype,"md",void 0);_([z(),D({field_type:B.NUMBER,label:"LG (Large Desktop)",description:"Columns on large screens (1-12)",placeholder:"3"}),W(),Ar(),Ve([1,2,3,4,5,6,7,8,9,10,11,12]),H("design:type",Number)],oo.prototype,"lg",void 0);_([z(),D({field_type:B.NUMBER,label:"XL (Extra Large)",description:"Columns on extra large screens (1-12)",placeholder:"2"}),W(),Ar(),Ve([1,2,3,4,5,6,7,8,9,10,11,12]),H("design:type",Number)],oo.prototype,"xl",void 0);_([z(),D({field_type:B.TEXT,label:"Background",description:'Background color or theme color (e.g., "primary.main", "#ffffff")',placeholder:"transparent"}),W(),ie(),H("design:type",String)],oo.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Padding",description:'Internal spacing (e.g., "medium", "16px", "1rem")',placeholder:"medium"}),W(),ie(),H("design:type",String)],oo.prototype,"padding",void 0);_([z(),D({field_type:B.TEXT,label:"Margin",description:'External spacing (e.g., "small", "8px", "0.5rem")',placeholder:"0"}),W(),ie(),H("design:type",String)],oo.prototype,"margin",void 0);_([z(),D({field_type:B.TEXT,label:"Height",description:'Cell height (e.g., "200px", "medium")',placeholder:"auto"}),W(),ie(),H("design:type",String)],oo.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"Width",description:'Cell width (e.g., "100%", "300px")',placeholder:"100%"}),W(),ie(),H("design:type",String)],oo.prototype,"width",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-cell-class"}),W(),ie(),H("design:type",String)],oo.prototype,"className",void 0);oo=_([Vt("GridCell","1.0.0")],oo);let Vo=class extends vs{};_([z(),D({field_type:B.NUMBER,label:"Columns",description:"Number of equal-width columns for auto-distribution"}),W(),Ar(),ao(1),H("design:type",Number)],Vo.prototype,"columns",void 0);_([z({defaultValue:"small"}),D({field_type:B.SELECT,label:"Spacing",description:"Spacing between grid items"}),W(),ie(),Ve(["tiny","small","medium","large","huge"]),H("design:type",String)],Vo.prototype,"spacing",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Equal Height",description:"Make all grid items the same height"}),W(),Dt(),H("design:type",Boolean)],Vo.prototype,"equalHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Height",description:'Grid container height (e.g., "400px", "50vh", "medium")',placeholder:"auto"}),W(),ie(),H("design:type",String)],Vo.prototype,"height",void 0);_([z(),D({field_type:B.TEXT,label:"Width",description:'Grid container width (e.g., "100%", "800px", "large")',placeholder:"100%"}),W(),ie(),H("design:type",String)],Vo.prototype,"width",void 0);_([z(),D({field_type:B.TEXT,label:"Min Height",description:"Minimum grid container height",placeholder:"auto"}),W(),ie(),H("design:type",String)],Vo.prototype,"minHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Min Width",description:"Minimum grid container width",placeholder:"auto"}),W(),ie(),H("design:type",String)],Vo.prototype,"minWidth",void 0);_([z(),D({field_type:B.TEXT,label:"Max Height",description:"Maximum grid container height",placeholder:"none"}),W(),ie(),H("design:type",String)],Vo.prototype,"maxHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Max Width",description:"Maximum grid container width",placeholder:"none"}),W(),ie(),H("design:type",String)],Vo.prototype,"maxWidth",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-grid-class"}),W(),ie(),H("design:type",String)],Vo.prototype,"className",void 0);Vo=_([Vt("GridLayout","1.0.0")],Vo);let Wo=class extends vs{};_([z(),D({field_type:B.TEXT,label:"Title",description:"Main headline text",placeholder:"Enter hero title..."}),ie(),H("design:type",String)],Wo.prototype,"title",void 0);_([z(),D({field_type:B.TEXT,label:"Subtitle",description:"Subtitle or description text",placeholder:"Enter subtitle..."}),W(),ie(),H("design:type",String)],Wo.prototype,"subtitle",void 0);_([z(),D({field_type:B.IMAGE,label:"Background Image",description:"Background image URL",placeholder:"https://..."}),W(),$h(),H("design:type",String)],Wo.prototype,"backgroundImage",void 0);_([z(),D({field_type:B.TEXT,label:"Background Gradient",description:"Background gradient CSS value",placeholder:"linear-gradient(...)"}),W(),ie(),H("design:type",String)],Wo.prototype,"backgroundGradient",void 0);_([z({defaultValue:"default"}),D({field_type:B.SELECT,label:"Background Color",description:"Background color theme variant",validation:{options:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Surface",value:"surface"}]}}),W(),Ve(["default","primary","secondary","surface"]),H("design:type",String)],Wo.prototype,"backgroundColor",void 0);_([z({type:mt.ARRAY}),D({field_type:B.REPEATER,label:"Actions",description:"Action buttons for the hero section"}),W(),hn(),so({each:!0}),lo(()=>ro),H("design:type",Array)],Wo.prototype,"actions",void 0);_([z({defaultValue:"center"}),D({field_type:B.SELECT,label:"Text Alignment",description:"Text alignment",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]}}),W(),Ve(["left","center","right"]),H("design:type",String)],Wo.prototype,"textAlign",void 0);_([z({defaultValue:"medium"}),D({field_type:B.SELECT,label:"Block Height",description:"Block height preset",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"},{label:"Viewport",value:"viewport"}]}}),W(),Ve(["small","medium","large","viewport"]),H("design:type",String)],Wo.prototype,"blockHeight",void 0);_([z(),D({field_type:B.NUMBER,label:"Overlay Opacity",description:"Custom overlay opacity (0-1) when using background images",validation:{min:0,max:1}}),W(),Ar(),ao(0),rl(1),H("design:type",Number)],Wo.prototype,"overlayOpacity",void 0);_([z(),D({field_type:B.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-hero-class"}),W(),ie(),H("design:type",String)],Wo.prototype,"className",void 0);Wo=_([Vt("HeroBlock","1.0.0")],Wo);let nn=class extends Et{};_([z({dataType:mt.STRING}),D({field_type:B.IMAGE,label:"Image Source",description:"Image source URL or path",placeholder:"https://example.com/image.jpg"}),W(),ie(),H("design:type",String)],nn.prototype,"src",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Alt Text",description:"Alternative text for accessibility (required for images with src)",placeholder:"Describe the image for screen readers"}),W(),ie(),H("design:type",String)],nn.prototype,"alt",void 0);_([z({dataType:mt.NUMBER}),D({field_type:B.NUMBER,label:"Width",description:"Image width in pixels (optional)",placeholder:"300"}),W(),Ar(),H("design:type",Number)],nn.prototype,"width",void 0);_([z({dataType:mt.NUMBER}),D({field_type:B.NUMBER,label:"Height",description:"Image height in pixels (optional)",placeholder:"200"}),W(),Ar(),H("design:type",Number)],nn.prototype,"height",void 0);_([z({defaultValue:"cover",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Object Fit",description:"How the image should be resized to fit its container",validation:{options:[{label:"Fill",value:"fill"},{label:"Contain",value:"contain"},{label:"Cover",value:"cover"},{label:"None",value:"none"},{label:"Scale Down",value:"scale-down"}]}}),W(),ie(),Ve(["fill","contain","cover","none","scale-down"]),H("design:type",String)],nn.prototype,"objectFit",void 0);_([z({defaultValue:"center",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Object Position",description:"Position of the image within its container",validation:{options:[{label:"Center",value:"center"},{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Top Left",value:"top-left"},{label:"Top Right",value:"top-right"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ie(),Ve(["center","top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]),H("design:type",String)],nn.prototype,"objectPosition",void 0);_([z({defaultValue:"lazy",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Loading",description:"Image loading behavior",validation:{options:[{label:"Lazy (load when visible)",value:"lazy"},{label:"Eager (load immediately)",value:"eager"}]}}),W(),ie(),Ve(["lazy","eager"]),H("design:type",String)],nn.prototype,"loading",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Title",description:"Image title (tooltip text)",placeholder:"Tooltip text on hover"}),W(),ie(),H("design:type",String)],nn.prototype,"title",void 0);_([z({defaultValue:!1,dataType:mt.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Draggable",description:"Allow the image to be dragged"}),W(),Dt(),H("design:type",Boolean)],nn.prototype,"draggable",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Border Radius",description:'CSS border radius (e.g., "8px", "50%", "1rem")',placeholder:"8px"}),W(),ie(),H("design:type",String)],nn.prototype,"borderRadius",void 0);_([z({defaultValue:!1,dataType:mt.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Show Loading State",description:"Display a loading placeholder while the image loads"}),W(),Dt(),H("design:type",Boolean)],nn.prototype,"showLoading",void 0);_([z({defaultValue:!1,dataType:mt.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Show Error State",description:"Display an error message if the image fails to load"}),W(),Dt(),H("design:type",Boolean)],nn.prototype,"showError",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Fallback Image",description:"Fallback image URL to use if the main image fails to load",placeholder:"https://example.com/fallback.jpg"}),W(),ie(),H("design:type",String)],nn.prototype,"fallbackSrc",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Responsive Sizes",description:"Responsive image sizes attribute for optimized loading",placeholder:"(max-width: 768px) 100vw, 50vw"}),W(),ie(),H("design:type",String)],nn.prototype,"sizes",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Source Set",description:"Source set for responsive images (comma-separated)",placeholder:"image-320w.jpg 320w, image-640w.jpg 640w, image-1280w.jpg 1280w"}),W(),ie(),H("design:type",String)],nn.prototype,"srcSet",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Loading Placeholder",description:"Custom loading placeholder content (for advanced use)",placeholder:"Custom loading content..."}),W(),H("design:type",Object)],nn.prototype,"loadingPlaceholder",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Error Placeholder",description:"Custom error placeholder content (for advanced use)",placeholder:"Custom error content..."}),W(),H("design:type",Object)],nn.prototype,"errorPlaceholder",void 0);nn=_([Vt("Image","1.0.0")],nn);let Za=class extends vs{};_([z(),D({field_type:B.TEXT,label:"Background Color",description:"Background color (CSS color, theme path, or palette color)",placeholder:"#ffffff or primary.main"}),W(),ie(),H("design:type",String)],Za.prototype,"background",void 0);_([z(),D({field_type:B.TEXT,label:"Text Color",description:"Text color (CSS color, theme path, or palette color)",placeholder:"#000000 or text.primary"}),W(),ie(),H("design:type",String)],Za.prototype,"color",void 0);_([z(),D({field_type:B.SELECT,label:"Section Padding",description:"Vertical padding/spacing for the section",validation:{options:[{value:"none",label:"None"},{value:"tiny",label:"Tiny (8px)"},{value:"small",label:"Small (16px)"},{value:"medium",label:"Medium (32px)"},{value:"large",label:"Large (64px)"},{value:"extra-large",label:"Extra Large (96px)"}]}}),W(),Ve(["none","tiny","small","medium","large","extra-large"]),H("design:type",String)],Za.prototype,"padding",void 0);_([z(),D({field_type:B.SELECT,label:"Content Max Width",description:"Maximum width for the content container",validation:{options:[{value:"xs",label:"Extra Small (444px)"},{value:"sm",label:"Small (600px)"},{value:"md",label:"Medium (900px)"},{value:"lg",label:"Large (1200px)"},{value:"xl",label:"Extra Large (1536px)"},{value:"false",label:"Full Width"}]}}),W(),Ve(["xs","sm","md","lg","xl","false"]),H("design:type",String)],Za.prototype,"contentMaxWidth",void 0);_([z(),D({field_type:B.SELECT,label:"HTML Element",description:"HTML element type to use for the section",validation:{options:[{value:"section",label:"Section"},{value:"div",label:"Div"},{value:"article",label:"Article"},{value:"main",label:"Main"}]}}),W(),Ve(["section","div","article","main"]),H("design:type",String)],Za.prototype,"component",void 0);Za=_([Vt("Section","1.0.0")],Za);let ko=class extends Et{};_([z(),D({field_type:B.TEXT,label:"Field Label",description:"The label displayed for the text input field",placeholder:"Enter field label..."}),ie(),H("design:type",String)],ko.prototype,"label",void 0);_([z(),D({field_type:B.TEXT,label:"Value",description:"Current field value",placeholder:"Enter value..."}),W(),ie(),H("design:type",String)],ko.prototype,"value",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Required",description:"Whether the field is required"}),W(),Dt(),H("design:type",Boolean)],ko.prototype,"required",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Disabled",description:"Whether the field is disabled"}),W(),Dt(),H("design:type",Boolean)],ko.prototype,"disabled",void 0);_([z(),D({field_type:B.TEXT,label:"Error Message",description:"Error message to display if validation fails",placeholder:"Enter error message..."}),W(),ie(),H("design:type",String)],ko.prototype,"error",void 0);_([z(),D({field_type:B.TEXT,label:"Helper Text",description:"Helper text to guide the user",placeholder:"Enter helper text..."}),W(),ie(),H("design:type",String)],ko.prototype,"helperText",void 0);_([z(),D({field_type:B.TEXT,label:"Placeholder",description:"Placeholder text shown when field is empty",placeholder:"Enter placeholder text..."}),W(),ie(),H("design:type",String)],ko.prototype,"placeholder",void 0);_([z(),D({field_type:B.TEXT,label:"Input Type",description:"HTML input type (text, email, number, password, etc.)",placeholder:"text"}),W(),ie(),H("design:type",String)],ko.prototype,"type",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Multiline",description:"Whether the field supports multiple lines (textarea)"}),W(),Dt(),H("design:type",Boolean)],ko.prototype,"multiline",void 0);_([z(),D({field_type:B.NUMBER,label:"Rows",description:"Number of rows for multiline fields"}),W(),Ar(),H("design:type",Number)],ko.prototype,"rows",void 0);_([z(),D({field_type:B.NUMBER,label:"Max Rows",description:"Maximum number of rows for multiline fields"}),W(),Ar(),H("design:type",Number)],ko.prototype,"maxRows",void 0);ko=_([Vt("TextInputField","1.0.0")],ko);let Kr=class extends Sr{};_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Text Content",description:"The text content to display",placeholder:"Enter your text content here..."}),W(),ie(),H("design:type",String)],Kr.prototype,"content",void 0);_([z({defaultValue:"body1",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Typography Variant",description:"Typography variant that determines font size, weight, and line height",validation:{options:[{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"},{label:"Heading 4",value:"h4"},{label:"Heading 5",value:"h5"},{label:"Heading 6",value:"h6"},{label:"Subtitle 1",value:"subtitle1"},{label:"Subtitle 2",value:"subtitle2"},{label:"Body 1",value:"body1"},{label:"Body 2",value:"body2"},{label:"Button",value:"button"},{label:"Caption",value:"caption"},{label:"Overline",value:"overline"}]}}),W(),ie(),Ve(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),H("design:type",String)],Kr.prototype,"variant",void 0);_([z({defaultValue:"inherit",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Text Color",description:"Color variant for the text",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Text Primary",value:"textPrimary"},{label:"Text Secondary",value:"textSecondary"},{label:"Error",value:"error"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Inherit",value:"inherit"}]}}),W(),ie(),Ve(["primary","secondary","textPrimary","textSecondary","error","warning","info","success","inherit"]),H("design:type",String)],Kr.prototype,"color",void 0);_([z({defaultValue:"inherit",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Text Alignment",description:"How to align the text horizontally",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"},{label:"Inherit",value:"inherit"}]}}),W(),ie(),Ve(["left","center","right","justify","inherit"]),H("design:type",String)],Kr.prototype,"align",void 0);_([z({defaultValue:"p",dataType:mt.STRING}),D({field_type:B.SELECT,label:"HTML Element",description:"The HTML element to render (affects semantics and accessibility)",validation:{options:[{label:"Paragraph (p)",value:"p"},{label:"Span",value:"span"},{label:"Div",value:"div"},{label:"Heading 1 (h1)",value:"h1"},{label:"Heading 2 (h2)",value:"h2"},{label:"Heading 3 (h3)",value:"h3"},{label:"Heading 4 (h4)",value:"h4"},{label:"Heading 5 (h5)",value:"h5"},{label:"Heading 6 (h6)",value:"h6"},{label:"Label",value:"label"},{label:"Legend",value:"legend"}]}}),W(),ie(),Ve(["p","span","div","h1","h2","h3","h4","h5","h6","label","legend"]),H("design:type",String)],Kr.prototype,"component",void 0);_([z({defaultValue:"inherit",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Font Weight",description:"The weight (thickness) of the font",validation:{options:[{label:"Inherit",value:"inherit"},{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}]}}),W(),ie(),Ve(["inherit","lighter","normal","bold","bolder","100","200","300","400","500","600","700","800","900"]),H("design:type",String)],Kr.prototype,"fontWeight",void 0);_([z({defaultValue:"none",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Text Decoration",description:"Text decoration style",validation:{options:[{label:"None",value:"none"},{label:"Underline",value:"underline"},{label:"Overline",value:"overline"},{label:"Line Through",value:"line-through"}]}}),W(),ie(),Ve(["none","underline","overline","line-through"]),H("design:type",String)],Kr.prototype,"textDecoration",void 0);_([z({defaultValue:"none",dataType:mt.STRING}),D({field_type:B.SELECT,label:"Text Transform",description:"How to transform the text case",validation:{options:[{label:"None",value:"none"},{label:"Capitalize",value:"capitalize"},{label:"Uppercase",value:"uppercase"},{label:"Lowercase",value:"lowercase"},{label:"Inherit",value:"inherit"}]}}),W(),ie(),Ve(["none","capitalize","uppercase","lowercase","inherit"]),H("design:type",String)],Kr.prototype,"textTransform",void 0);_([z({defaultValue:!1,dataType:mt.BOOLEAN}),D({field_type:B.BOOLEAN,label:"No Wrap",description:"Prevent text from wrapping to multiple lines"}),W(),Dt(),H("design:type",Boolean)],Kr.prototype,"noWrap",void 0);_([z({defaultValue:!1,dataType:mt.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Paragraph Mode",description:"Apply paragraph spacing and formatting"}),W(),Dt(),H("design:type",Boolean)],Kr.prototype,"paragraph",void 0);_([z({defaultValue:!1,dataType:mt.BOOLEAN}),D({field_type:B.BOOLEAN,label:"Gutter Bottom",description:"Add margin bottom for spacing (useful for headings)"}),W(),Dt(),H("design:type",Boolean)],Kr.prototype,"gutterBottom",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Font Size",description:'Custom font size (overrides variant sizing, e.g., "16px", "1.2rem")',placeholder:"16px"}),W(),ie(),H("design:type",String)],Kr.prototype,"fontSize",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Line Height",description:'Custom line height (e.g., "1.5", "24px", "150%")',placeholder:"1.5"}),W(),ie(),H("design:type",String)],Kr.prototype,"lineHeight",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Letter Spacing",description:'Custom letter spacing (e.g., "0.1em", "1px")',placeholder:"0.1em"}),W(),ie(),H("design:type",String)],Kr.prototype,"letterSpacing",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXT,label:"Font Family",description:'Custom font family (e.g., "Arial, sans-serif")',placeholder:"Arial, sans-serif"}),W(),ie(),H("design:type",String)],Kr.prototype,"fontFamily",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Custom Color",description:"Custom text color (CSS color value, overrides color variant)",placeholder:"#333333 or rgb(51, 51, 51)"}),W(),ie(),H("design:type",String)],Kr.prototype,"customColor",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Max Width",description:'Maximum width for the text (e.g., "300px", "50%")',placeholder:"300px"}),W(),ie(),H("design:type",String)],Kr.prototype,"maxWidth",void 0);_([z({dataType:mt.STRING}),D({field_type:B.TEXTAREA,label:"Rich Content",description:"Rich text content with React elements (for advanced use)",placeholder:"Rich content..."}),W(),H("design:type",Object)],Kr.prototype,"children",void 0);Kr=_([Vt("Text","1.0.0")],Kr);let Qr=class extends Sr{};_([z({defaultValue:"light"}),D({field_type:B.SELECT,label:"Print Theme",description:"Theme mode to use when printing",validation:{options:[{label:"Light",value:"light"},{label:"Dark",value:"dark"}]}}),W(),Ve(["light","dark"]),H("design:type",String)],Qr.prototype,"theme",void 0);_([z({defaultValue:"default"}),D({field_type:B.SELECT,label:"Print Palette",description:"Color palette to use for print output",validation:{options:[{label:"Default",value:"default"},{label:"Autumn",value:"autumn"},{label:"Cosmic",value:"cosmic"},{label:"Ocean",value:"ocean"},{label:"Spring",value:"spring"},{label:"Winter",value:"winter"}]}}),W(),ie(),H("design:type",String)],Qr.prototype,"palette",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Hide Scaffolding",description:"Hide app scaffolding (navigation, headers) when printing"}),W(),Dt(),H("design:type",Boolean)],Qr.prototype,"hideScaffolding",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Hide Interactive Elements",description:"Hide buttons and interactive elements when printing"}),W(),Dt(),H("design:type",Boolean)],Qr.prototype,"hideInteractiveElements",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Optimize For Monochrome",description:"Optimize design for black and white printing"}),W(),Dt(),H("design:type",Boolean)],Qr.prototype,"optimizeForMonochrome",void 0);_([z(),D({field_type:B.TEXT,label:"Print Title",description:"Custom title to show when printing (optional)",placeholder:"Document Title"}),W(),ie(),H("design:type",String)],Qr.prototype,"printTitle",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show Print Date",description:"Include print date and time in printed output"}),W(),Dt(),H("design:type",Boolean)],Qr.prototype,"showPrintDate",void 0);_([z(),D({field_type:B.TEXT,label:"Print Header",description:"Custom header content for printed pages (HTML string or React component)",placeholder:"<div>Custom header content...</div>"}),W(),H("design:type",Object)],Qr.prototype,"printHeader",void 0);_([z(),D({field_type:B.TEXT,label:"Print Header (First Page)",description:"Different header for the first page only (overrides main header on page 1)",placeholder:"<div>First page header...</div>"}),W(),H("design:type",Object)],Qr.prototype,"printHeaderFirstPage",void 0);_([z(),D({field_type:B.TEXT,label:"Print Footer",description:"Custom footer content for printed pages (HTML string or React component)",placeholder:"<div>Custom footer content...</div>"}),W(),H("design:type",Object)],Qr.prototype,"printFooter",void 0);_([z(),D({field_type:B.TEXT,label:"Print Footer (First Page)",description:"Different footer for the first page only (overrides main footer on page 1)",placeholder:"<div>First page footer...</div>"}),W(),H("design:type",Object)],Qr.prototype,"printFooterFirstPage",void 0);_([z({defaultValue:"12mm"}),D({field_type:B.SELECT,label:"Page Margins",description:"Print page margins",validation:{options:[{label:"Compact (6mm)",value:"6mm"},{label:"Standard (12mm)",value:"12mm"},{label:"Large (20mm)",value:"20mm"},{label:"Formal (25mm)",value:"25mm"}]}}),W(),ie(),H("design:type",String)],Qr.prototype,"pageMargins",void 0);_([z({defaultValue:"60px"}),D({field_type:B.TEXT,label:"Print Header Height",description:"Height allocated for print header (CSS units: px, mm, etc.)",placeholder:"60px"}),W(),ie(),H("design:type",String)],Qr.prototype,"printHeaderHeight",void 0);_([z({defaultValue:"40px"}),D({field_type:B.TEXT,label:"Print Footer Height",description:"Height allocated for print footer (CSS units: px, mm, etc.)",placeholder:"40px"}),W(),ie(),H("design:type",String)],Qr.prototype,"printFooterHeight",void 0);_([z(),D({field_type:B.TEXT,label:"Print Background",description:"CSS background for all printed pages (color, gradient, or image)",placeholder:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"}),W(),ie(),H("design:type",String)],Qr.prototype,"printBackground",void 0);_([z(),D({field_type:B.TEXT,label:"Print Background (First Page)",description:"Different background for the first page only",placeholder:"url(/logo-watermark.png) no-repeat center, #ffffff"}),W(),ie(),H("design:type",String)],Qr.prototype,"printBackgroundFirstPage",void 0);Qr=_([Vt("PrintConfig","1.0.0")],Qr);let fn=class extends Et{};_([z(),D({field_type:B.TEXT,label:"Page Slug",description:'URL-friendly page identifier (e.g., "about-us")',placeholder:"page-slug"}),W(),ie(),H("design:type",String)],fn.prototype,"slug",void 0);_([z(),D({field_type:B.TEXT,label:"Page Name",description:"Human-readable page name",placeholder:"About Us"}),W(),ie(),H("design:type",String)],fn.prototype,"name",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Page Description",description:"Description of the page content (used for SEO)",placeholder:"Brief description of this page..."}),W(),ie(),H("design:type",String)],fn.prototype,"description",void 0);_([z(),D({field_type:B.TEXT,label:"Page Title",description:"HTML title tag content (defaults to name if not provided)",placeholder:"Page Title | Site Name"}),W(),ie(),H("design:type",String)],fn.prototype,"title",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Meta Keywords",description:"SEO keywords (comma-separated)",placeholder:"keyword1, keyword2, keyword3"}),W(),ie(),H("design:type",String)],fn.prototype,"metaKeywords",void 0);_([z(),D({field_type:B.TEXT,label:"Meta Author",description:"Page author information",placeholder:"Author Name"}),W(),ie(),H("design:type",String)],fn.prototype,"metaAuthor",void 0);_([z(),D({field_type:B.URL,label:"Canonical URL",description:"Canonical URL for SEO (optional)",placeholder:"https://example.com/page"}),W(),ie(),H("design:type",String)],fn.prototype,"canonicalUrl",void 0);_([z(),D({field_type:B.TEXTAREA,label:"Page Content",description:"Main page content - can include React components and HTML"}),W(),H("design:type",Object)],fn.prototype,"children",void 0);_([z(),D({field_type:B.FORM,label:"Print Configuration",description:"Configuration for print mode behavior"}),W(),so(),lo(()=>Qr),H("design:type",Qr)],fn.prototype,"printConfig",void 0);_([z(),D({field_type:B.TEXT,label:"Layout Template",description:"Layout template identifier to use for this page",placeholder:"default, fullwidth, sidebar, etc."}),W(),ie(),H("design:type",String)],fn.prototype,"layout",void 0);_([z(),D({field_type:B.TEXT,label:"Page Icon",description:"Icon identifier for page (used in navigation)",placeholder:"home, about, contact"}),W(),ie(),H("design:type",String)],fn.prototype,"icon",void 0);_([z({defaultValue:!1}),D({field_type:B.BOOLEAN,label:"Requires Authentication",description:"Whether this page requires user authentication"}),W(),H("design:type",Boolean)],fn.prototype,"requiresAuth",void 0);_([z(),D({field_type:B.TEXT,label:"Required Roles",description:"Comma-separated list of roles required to access this page",placeholder:"admin, user, moderator"}),W(),ie(),H("design:type",String)],fn.prototype,"requiredRoles",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Show in Navigation",description:"Whether to include this page in navigation menus"}),W(),H("design:type",Boolean)],fn.prototype,"showInNavigation",void 0);_([z({defaultValue:0}),D({field_type:B.NUMBER,label:"Navigation Priority",description:"Priority in navigation (lower numbers appear first)"}),W(),H("design:type",Number)],fn.prototype,"navigationPriority",void 0);_([z({defaultValue:!0}),D({field_type:B.BOOLEAN,label:"Indexable",description:"Whether search engines should index this page"}),W(),H("design:type",Boolean)],fn.prototype,"indexable",void 0);fn=_([Vt("PageTemplate","1.0.0")],fn);const IV=G0.create().withName("Control Panel").withId("com.qwickapps.control-panel").withVersion("1.0.0").withDefaultTheme("dark").withDefaultPalette("cosmic").withThemeSwitcher(!0).withPaletteSwitcher(!0).withDisplay("standalone").build(),pj=b.createContext(null);function MV({initialWidgets:t=[],children:e}){const[r,n]=b.useState(t.map(d=>({...d,visible:d.visible!==!1,priority:d.priority??100}))),o=b.useCallback(d=>{n(f=>f.some(v=>v.id===d.id)?f.map(v=>v.id===d.id?{...d,visible:d.visible!==!1,priority:d.priority??100}:v):[...f,{...d,visible:d.visible!==!1,priority:d.priority??100}])},[]),s=b.useCallback(d=>{n(f=>f.filter(h=>h.id!==d))},[]),c=b.useCallback((d,f)=>{n(h=>h.map(v=>v.id===d?{...v,visible:f??!v.visible}:v))},[]),u=b.useCallback(()=>r.filter(d=>d.visible!==!1).sort((d,f)=>(d.priority??100)-(f.priority??100)),[r]);return l.jsx(pj.Provider,{value:{widgets:r,registerWidget:o,unregisterWidget:s,toggleWidget:c,getVisibleWidgets:u},children:e})}function RV(){const t=b.useContext(pj);if(!t)throw new Error("useDashboardWidgets must be used within a DashboardWidgetProvider");return t}function AV(){const{getVisibleWidgets:t}=RV(),e=t();return e.length===0?null:l.jsx(l.Fragment,{children:e.map(r=>l.jsxs(ee,{sx:{mt:4},children:[r.title&&l.jsx(he,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:r.title}),r.component]},r.id))})}const fj=b.createContext(null);function _V({initialComponents:t=[],children:e}){const[r,n]=b.useState(()=>{const h=new Map;for(const v of t)h.set(v.name,v.component);return h}),o=b.useCallback((h,v)=>{n(m=>{const y=new Map(m);return y.set(h,v),y})},[]),s=b.useCallback(h=>{n(v=>{const m=new Map(v);for(const y of h)m.set(y.name,y.component);return m})},[]),c=b.useCallback(h=>r.get(h)??null,[r]),u=b.useCallback(h=>r.has(h),[r]),d=b.useCallback(()=>Array.from(r.keys()),[r]),f=b.useMemo(()=>({registerComponent:o,registerComponents:s,getComponent:c,hasComponent:u,getRegisteredNames:d}),[o,s,c,u,d]);return l.jsx(fj.Provider,{value:f,children:e})}function LV(){const t=b.useContext(fj);if(!t)throw new Error("useWidgetComponentRegistry must be used within a WidgetComponentRegistryProvider");return t}class OV{constructor(e=""){Aa(this,"baseUrl");this.baseUrl=e}setBaseUrl(e){this.baseUrl=e}getBaseUrl(){return this.baseUrl}async _fetch(e,r){return fetch(e,{...r,credentials:"same-origin"})}async fetch(e,r){const n=`${this.baseUrl}/api${e.startsWith("/")?e:`/${e}`}`,o=await this._fetch(n,{...r,headers:{"Content-Type":"application/json",...r==null?void 0:r.headers}});if(!o.ok){const s=await o.json().catch(()=>({}));throw new Error(s.error||s.message||`Request failed: ${o.statusText}`)}return o.json()}async detectFeatures(){const[e,r,n]=await Promise.all([this.checkEndpoint("/api/users"),this.checkEndpoint("/api/bans"),this.checkEndpoint("/api/entitlements/available")]);let o=!0;if(n)try{o=(await this.getEntitlementsStatus()).readonly}catch{}return{users:e,bans:r,entitlements:n,entitlementsReadonly:o}}async checkEndpoint(e){try{return(await this._fetch(`${this.baseUrl}${e}`,{method:"HEAD"})).status!==404}catch{return!1}}async getUsers(e={}){const r=new URLSearchParams;e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString()),e.search&&r.set("q",e.search);const n=await this._fetch(`${this.baseUrl}/api/users?${r}`);if(!n.ok)throw new Error(`Users request failed: ${n.statusText}`);return n.json()}async getUserById(e){const r=await this._fetch(`${this.baseUrl}/api/users/${e}`);if(!r.ok)throw new Error(`User request failed: ${r.statusText}`);return r.json()}async inviteUser(e){const r=await this._fetch(`${this.baseUrl}/api/users/invite`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Invite user failed: ${r.statusText}`)}return r.json()}async acceptInvitation(e){const r=await this._fetch(`${this.baseUrl}/api/users/accept-invitation/${encodeURIComponent(e)}`);if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Accept invitation failed: ${r.statusText}`)}return r.json()}async getInvitations(){const e=new URLSearchParams;e.set("status","invited"),e.set("limit","100");const r=await this._fetch(`${this.baseUrl}/api/users?${e}`);if(!r.ok)throw new Error(`Invitations request failed: ${r.statusText}`);return r.json()}async getBans(){const e=await this._fetch(`${this.baseUrl}/api/bans`);if(!e.ok)throw new Error(`Bans request failed: ${e.statusText}`);return e.json()}async banUser(e,r,n){let o;if(n){const c=new Date(n),u=new Date;o=Math.max(0,Math.floor((c.getTime()-u.getTime())/1e3))}const s=await this._fetch(`${this.baseUrl}/api/bans/email/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:r,duration:o})});if(!s.ok){const c=await s.json().catch(()=>({}));throw new Error(c.error||`Ban request failed: ${s.statusText}`)}}async unbanUser(e){const r=await this._fetch(`${this.baseUrl}/api/bans/email/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Unban request failed: ${r.statusText}`)}async checkBan(e){const r=await this._fetch(`${this.baseUrl}/api/bans/email/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Ban check failed: ${r.statusText}`);return{banned:(await r.json()).isBanned}}async getEntitlements(e){const r=await this._fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Entitlements request failed: ${r.statusText}`);return r.json()}async refreshEntitlements(e){const r=await this._fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Entitlements refresh failed: ${r.statusText}`);return r.json()}async checkEntitlement(e,r){const n=await this._fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/check/${encodeURIComponent(r)}`);if(!n.ok)throw new Error(`Entitlement check failed: ${n.statusText}`);return n.json()}async getAvailableEntitlements(){const e=await this._fetch(`${this.baseUrl}/api/entitlements/available`);if(!e.ok)throw new Error(`Available entitlements request failed: ${e.statusText}`);return(await e.json()).entitlements}async grantEntitlement(e,r){const n=await this._fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entitlement:r})});if(!n.ok){const o=await n.json().catch(()=>({}));throw new Error(o.error||`Grant entitlement failed: ${n.statusText}`)}}async revokeEntitlement(e,r){const n=await this._fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/${encodeURIComponent(r)}`,{method:"DELETE"});if(!n.ok)throw new Error(`Revoke entitlement failed: ${n.statusText}`)}async invalidateEntitlementCache(e){const r=await this._fetch(`${this.baseUrl}/api/entitlements/cache/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Cache invalidation failed: ${r.statusText}`)}async getEntitlementsStatus(){const e=await this._fetch(`${this.baseUrl}/api/entitlements/status`);if(!e.ok)throw new Error(`Entitlements status request failed: ${e.statusText}`);return e.json()}async getHealth(){const e=await this._fetch(`${this.baseUrl}/api/health`);if(!e.ok)throw new Error(`Health check failed: ${e.statusText}`);return e.json()}async getInfo(){const e=await this._fetch(`${this.baseUrl}/api/info`);if(!e.ok)throw new Error(`Info request failed: ${e.statusText}`);return e.json()}async getDiagnostics(){const e=await this._fetch(`${this.baseUrl}/api/diagnostics`);if(!e.ok)throw new Error(`Diagnostics request failed: ${e.statusText}`);return e.json()}async getConfig(){const e=await this._fetch(`${this.baseUrl}/api/config`);if(!e.ok)throw new Error(`Config request failed: ${e.statusText}`);return e.json()}async getLogs(e={}){const r=new URLSearchParams;e.source&&r.set("source",e.source),e.level&&r.set("level",e.level),e.search&&r.set("search",e.search),e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString());const n=await this._fetch(`${this.baseUrl}/api/logs?${r}`);if(!n.ok)throw new Error(`Logs request failed: ${n.statusText}`);return n.json()}async getLogSources(){const e=await this._fetch(`${this.baseUrl}/api/logs/sources`);if(!e.ok)throw new Error(`Log sources request failed: ${e.statusText}`);return(await e.json()).sources}async getPlugins(){const e=await this._fetch(`${this.baseUrl}/api/plugins`);if(!e.ok)throw new Error(`Plugins request failed: ${e.statusText}`);return e.json()}async getPluginDetail(e){const r=await this._fetch(`${this.baseUrl}/api/plugins/${encodeURIComponent(e)}`);if(!r.ok)throw r.status===404?new Error(`Plugin not found: ${e}`):new Error(`Plugin detail request failed: ${r.statusText}`);return r.json()}async getUiContributions(){const e=await this._fetch(`${this.baseUrl}/api/ui-contributions`);if(!e.ok)throw new Error(`UI contributions request failed: ${e.statusText}`);return e.json()}async getAuthConfigStatus(){const e=await this._fetch(`${this.baseUrl}/api/auth/config/status`);if(!e.ok){if(e.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config status request failed: ${e.statusText}`)}return e.json()}async getAuthConfig(){const e=await this._fetch(`${this.baseUrl}/api/auth/config`);if(!e.ok){if(e.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config request failed: ${e.statusText}`)}return e.json()}async updateAuthConfig(e){const r=await this._fetch(`${this.baseUrl}/api/auth/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Auth config update failed: ${r.statusText}`)}return r.json()}async deleteAuthConfig(){const e=await this._fetch(`${this.baseUrl}/api/auth/config`,{method:"DELETE"});if(!e.ok){const r=await e.json().catch(()=>({}));throw new Error(r.error||`Auth config delete failed: ${e.statusText}`)}return e.json()}async testAuthProvider(e){const r=await this._fetch(`${this.baseUrl}/api/auth/test-provider`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Provider test failed: ${r.statusText}`)}return r.json()}async testCurrentAuthProvider(){const e=await this._fetch(`${this.baseUrl}/api/auth/test-current`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!e.ok){const r=await e.json().catch(()=>({}));throw new Error(r.error||`Provider test failed: ${e.statusText}`)}return e.json()}async getRateLimitConfig(){const e=await this._fetch(`${this.baseUrl}/api/rate-limit/config`);if(!e.ok)throw new Error(`Rate limit config request failed: ${e.statusText}`);return e.json()}async updateRateLimitConfig(e){const r=await this._fetch(`${this.baseUrl}/api/rate-limit/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Rate limit config update failed: ${r.statusText}`)}return r.json()}async getNotificationsStats(){const e=await this._fetch(`${this.baseUrl}/api/notifications/stats`);if(!e.ok)throw new Error(`Notifications stats request failed: ${e.statusText}`);return e.json()}async getNotificationsClients(){const e=await this._fetch(`${this.baseUrl}/api/notifications/clients`);if(!e.ok)throw new Error(`Notifications clients request failed: ${e.statusText}`);return e.json()}async disconnectNotificationsClient(e){const r=await this._fetch(`${this.baseUrl}/api/notifications/clients/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Disconnect client failed: ${r.statusText}`)}return r.json()}async forceNotificationsReconnect(){const e=await this._fetch(`${this.baseUrl}/api/notifications/reconnect`,{method:"POST"});if(!e.ok){const r=await e.json().catch(()=>({}));throw new Error(r.error||`Force reconnect failed: ${e.statusText}`)}return e.json()}async getApiKeys(){const e=await this._fetch(`${this.baseUrl}/api/api-keys`);if(!e.ok)throw new Error(`API keys request failed: ${e.statusText}`);return e.json()}async createApiKey(e){const r=await this._fetch(`${this.baseUrl}/api/api-keys`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`API key creation failed: ${r.statusText}`)}return r.json()}async getApiKey(e){const r=await this._fetch(`${this.baseUrl}/api/api-keys/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`API key request failed: ${r.statusText}`);return r.json()}async updateApiKey(e,r){const n=await this._fetch(`${this.baseUrl}/api/api-keys/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok){const o=await n.json().catch(()=>({}));throw new Error(o.error||`API key update failed: ${n.statusText}`)}return n.json()}async deleteApiKey(e){const r=await this._fetch(`${this.baseUrl}/api/api-keys/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`API key deletion failed: ${r.statusText}`)}}}const jt=new OV;function $V({defaultOnly:t=!0,additionalWidgetIds:e=[]}){const[r,n]=b.useState([]),[o,s]=b.useState(!0),[c,u]=b.useState(null),{getComponent:d,hasComponent:f}=LV();if(b.useEffect(()=>{(async()=>{try{const m=await jt.getUiContributions();n(m.widgets||[]),u(null)}catch(m){u(m instanceof Error?m.message:"Failed to fetch widgets")}finally{s(!1)}})()},[]),o)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(mr,{size:24})});if(c)return l.jsx(qt,{severity:"error",sx:{mt:2},children:c});const h=r.filter(v=>t?v.showByDefault||e.includes(v.id):!0).filter(v=>f(v.component)?!0:(console.warn(`Widget "${v.id}" references unregistered component "${v.component}"`),!1)).sort((v,m)=>(v.priority??100)-(m.priority??100));return h.length===0?null:l.jsx(l.Fragment,{children:h.map(v=>{const m=d(v.component);return l.jsxs(ee,{sx:{mt:4},children:[v.title&&l.jsx(he,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:v.title}),m&&l.jsx(m,{})]},v.id)})})}function NV(t){switch(t){case"healthy":return l.jsx(Uo,{sx:{fontSize:24,color:"var(--theme-success)"}});case"degraded":return l.jsx(od,{sx:{fontSize:24,color:"var(--theme-warning)"}});case"unhealthy":return l.jsx(Xo,{sx:{fontSize:24,color:"var(--theme-error)"}});default:return l.jsx(od,{sx:{fontSize:24,color:"var(--theme-text-secondary)"}})}}function o2(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function BV(t){return t<=1?1:t===2?2:t===3?3:4}function zV(){const[t,e]=b.useState(null),[r,n]=b.useState(null);if(b.useEffect(()=>{const c=async()=>{try{const d=await jt.getHealth();e(d),n(null)}catch(d){n(d instanceof Error?d.message:"Failed to fetch health")}};c();const u=setInterval(c,1e4);return()=>clearInterval(u)},[]),r)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(ft,{children:l.jsx(it,{variant:"body2",customColor:"var(--theme-error)",content:r})})});const o=t?Object.entries(t.checks):[];if(o.length===0)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsx(it,{variant:"body2",customColor:"var(--theme-text-secondary)",content:"No health checks configured"})})});const s=BV(o.length);return l.jsx(al,{columns:s,spacing:"medium",equalHeight:!0,children:o.map(([c,u])=>l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[NV(u.status),l.jsxs(ee,{sx:{flex:1,minWidth:0},children:[l.jsx(it,{variant:"body1",fontWeight:"500",content:c.charAt(0).toUpperCase()+c.slice(1),customColor:"var(--theme-text-primary)"}),l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[l.jsx(Ut,{label:u.status,size:"small",sx:{bgcolor:o2(u.status)+"20",color:o2(u.status),fontSize:"0.75rem",height:20}}),u.latency!==void 0&&l.jsx(it,{variant:"caption",content:`${u.latency}ms`,customColor:"var(--theme-text-secondary)"})]})]})]})})},c))})}function DV(){const[t,e]=b.useState(null),[r,n]=b.useState(!0),[o,s]=b.useState(null);if(b.useEffect(()=>{(async()=>{try{const f=await jt.fetch("/ai-proxy/config");e(f)}catch(f){s(f instanceof Error?f.message:"Failed to fetch integrations")}finally{n(!1)}})()},[]),r)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",py:2},children:l.jsx(mr,{size:20})});if(o)return l.jsx(qt,{severity:"warning",sx:{py:.5,fontSize:13},children:"Unable to load integrations"});if(!t)return null;const c=t.integrations.filter(d=>d.configured).length,u=t.integrations.length;return l.jsxs(ee,{sx:{bgcolor:"var(--theme-surface)",borderRadius:2,p:2,border:"1px solid var(--theme-border)"},children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[l.jsxs(he,{variant:"subtitle2",sx:{color:"var(--theme-text-secondary)"},children:[c," of ",u," configured"]}),l.jsxs(he,{variant:"subtitle2",sx:{color:"var(--theme-text-secondary)"},children:[t.stats.totalRequests," requests"]})]}),l.jsx(ee,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:t.integrations.map(d=>l.jsxs(ee,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:1.5,bgcolor:"var(--theme-background)",borderRadius:1},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.configured?l.jsx(Uo,{sx:{color:"var(--theme-success)",fontSize:18}}):l.jsx(Xo,{sx:{color:"var(--theme-text-secondary)",fontSize:18}}),l.jsxs(ee,{children:[l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-primary)",fontWeight:500},children:d.name}),l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:d.description})]})]}),l.jsx(Ut,{label:d.configured?"Connected":"Not Configured",size:"small",sx:{bgcolor:d.configured?"var(--theme-success)20":"transparent",color:d.configured?"var(--theme-success)":"var(--theme-text-secondary)",border:d.configured?"none":"1px solid var(--theme-border)",fontWeight:500,fontSize:11}})]},d.id))})]})}const FV={supertokens:"SuperTokens",auth0:"Auth0",supabase:"Supabase",basic:"Basic Auth"};function HV(){const[t,e]=b.useState(null),[r,n]=b.useState(!0),[o,s]=b.useState(null);if(b.useEffect(()=>{(async()=>{try{const f=await jt.fetch("/auth/config/status");e(f)}catch(f){s(f instanceof Error?f.message:"Failed to fetch auth status")}finally{n(!1)}})()},[]),r)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",py:2},children:l.jsx(mr,{size:20})});if(o)return l.jsx(qt,{severity:"warning",sx:{py:.5,fontSize:13},children:"Unable to load auth status"});if(!t)return null;const c=()=>{switch(t.state){case"enabled":return l.jsx(Uo,{sx:{color:"var(--theme-success)",fontSize:32}});case"error":return l.jsx(Xo,{sx:{color:"var(--theme-error)",fontSize:32}});case"disabled":default:return l.jsx(Nh,{sx:{color:"var(--theme-text-secondary)",fontSize:32}})}},u=()=>{switch(t.state){case"enabled":return"var(--theme-success)";case"error":return"var(--theme-error)";case"disabled":default:return"var(--theme-text-secondary)"}};return l.jsxs(ee,{sx:{bgcolor:"var(--theme-surface)",borderRadius:2,p:2,border:"1px solid var(--theme-border)"},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[c(),l.jsxs(ee,{sx:{flex:1},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[l.jsx(he,{variant:"subtitle1",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:t.state==="enabled"&&t.adapter?FV[t.adapter]||t.adapter:t.state==="disabled"?"Not Configured":"Configuration Error"}),l.jsx(Ut,{label:t.state.toUpperCase(),size:"small",sx:{bgcolor:`${u()}20`,color:u(),fontWeight:600,fontSize:10,height:20}})]}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:t.state==="enabled"?"Authentication is active":t.state==="disabled"?"Set AUTH_ADAPTER environment variable":t.error||"Check configuration"})]})]}),t.missingVars&&t.missingVars.length>0&&l.jsxs(qt,{severity:"warning",sx:{mt:2,py:.5,"& .MuiAlert-message":{fontSize:12}},children:["Missing: ",t.missingVars.join(", ")]})]})}function Js({icon:t,label:e,value:r,subValue:n,color:o="var(--theme-primary)"}){return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsx(ft,{sx:{py:1.5,"&:last-child":{pb:1.5}},children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[l.jsx(ee,{sx:{color:o},children:t}),l.jsxs(ee,{sx:{flex:1,minWidth:0},children:[l.jsx(it,{variant:"h4",content:String(r),customColor:"var(--theme-text-primary)",fontWeight:"600"}),l.jsx(it,{variant:"caption",content:e,customColor:"var(--theme-text-secondary)"}),n&&l.jsx(it,{variant:"caption",content:n,customColor:"var(--theme-text-secondary)",sx:{display:"block",mt:.25}})]})]})})})}function nc(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toString()}function Sv(t){return t<1e3?`${t}ms`:t<6e4?`${(t/1e3).toFixed(0)}s`:t<36e5?`${(t/6e4).toFixed(0)}m`:`${(t/36e5).toFixed(1)}h`}function Vl(t,e=12){return t.length>e?`${t.substring(0,e)}...`:t}function UV(){const[t,e]=b.useState(null),[r,n]=b.useState(null),[o,s]=b.useState(!0);if(b.useEffect(()=>{const d=async()=>{try{const h=await jt.getNotificationsStats();e(h),n(null)}catch(h){h instanceof Error&&h.message.includes("404")?n("Notifications plugin not enabled"):n(h instanceof Error?h.message:"Failed to fetch stats")}finally{s(!1)}};d();const f=setInterval(d,5e3);return()=>clearInterval(f)},[]),o)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsx(Ic,{})})});if(r)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-border)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(qf,{sx:{color:"var(--theme-text-secondary)"}}),l.jsx(it,{variant:"body2",customColor:"var(--theme-text-secondary)",content:r})]})})});if(!t)return null;const c=t.connectionHealth.isHealthy,u=c?"var(--theme-success)":"var(--theme-warning)";return l.jsxs(ee,{children:[l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:2},children:l.jsx(ft,{sx:{py:1,"&:last-child":{pb:1}},children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[c?l.jsx(kT,{sx:{color:u,fontSize:20}}):l.jsx(qf,{sx:{color:u,fontSize:20}}),l.jsx(it,{variant:"body2",content:c?"Connected":"Reconnecting...",customColor:u,fontWeight:"500"}),t.connectionHealth.isReconnecting&&l.jsx(Ut,{label:`Attempt ${t.connectionHealth.reconnectAttempts}`,size:"small",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)",fontSize:"0.7rem",height:18}})]}),l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(it,{variant:"caption",content:`${t.channels.length} channel${t.channels.length!==1?"s":""}`,customColor:"var(--theme-text-secondary)"}),t.lastEventAt&&l.jsx(it,{variant:"caption",content:`Last event: ${Sv(t.connectionHealth.timeSinceLastEvent)} ago`,customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsxs(al,{columns:4,spacing:"small",equalHeight:!0,children:[l.jsx(Js,{icon:l.jsx(Ky,{sx:{fontSize:28}}),label:"Active Clients",value:t.currentConnections,subValue:`${t.totalConnections} total`,color:"var(--theme-primary)"}),l.jsx(Js,{icon:l.jsx(hc,{sx:{fontSize:28}}),label:"By Device",value:t.clientsByType.device,subValue:`${t.clientsByType.user} by user`,color:"var(--theme-info)"}),l.jsx(Js,{icon:l.jsx(h0,{sx:{fontSize:28}}),label:"Events Routed",value:nc(t.eventsRouted),subValue:`${nc(t.eventsProcessed)} processed`,color:"var(--theme-success)"}),l.jsx(Js,{icon:l.jsx(Xo,{sx:{fontSize:28}}),label:"Dropped",value:nc(t.eventsDroppedNoClients),subValue:`${t.eventsParseFailed} parse errors`,color:t.eventsDroppedNoClients>0?"var(--theme-warning)":"var(--theme-text-secondary)"})]})]})}function VV(){return[{name:"ServiceHealthWidget",component:zV},{name:"IntegrationStatusWidget",component:DV},{name:"AuthStatusWidget",component:HV},{name:"NotificationsStatsWidget",component:UV}]}function WV(t){switch(t){case"healthy":return l.jsx(Uo,{sx:{color:"var(--theme-success)"}});case"degraded":return l.jsx(od,{sx:{color:"var(--theme-warning)"}});case"unhealthy":return l.jsx(Xo,{sx:{color:"var(--theme-error)"}});default:return l.jsx(mr,{size:20})}}function cy(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function qV(){var m,y;const t=jv(),[e,r]=b.useState(null),[n,o]=b.useState(null),[s,c]=b.useState(!0),[u,d]=b.useState(null);if(b.useEffect(()=>{const x=async()=>{try{const[C,j]=await Promise.all([jt.getHealth(),jt.getInfo()]);r(C),o(j),d(null)}catch(C){d(C instanceof Error?C.message:"Failed to fetch data")}finally{c(!1)}};x();const w=setInterval(x,1e4);return()=>clearInterval(w)},[]),s)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})});if(u)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(ft,{children:l.jsx(he,{color:"error",children:u})})});const f=e?Object.entries(e.checks):[],h=f.filter(([,x])=>x.status==="healthy").length,v=f.length;return l.jsxs(ee,{children:[l.jsx(he,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Dashboard"}),l.jsxs(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Real-time overview of ",(n==null?void 0:n.product)||"your service"]}),l.jsx(ht,{sx:{mb:4,bgcolor:"var(--theme-surface)",border:`2px solid ${cy((e==null?void 0:e.status)||"unknown")}`},children:l.jsx(G_,{onClick:()=>t("/health"),children:l.jsxs(ft,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[WV((e==null?void 0:e.status)||"unknown"),l.jsxs(ee,{children:[l.jsxs(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Service Status: ",(m=e==null?void 0:e.status)==null?void 0:m.charAt(0).toUpperCase(),(y=e==null?void 0:e.status)==null?void 0:y.slice(1)]}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Click to view detailed health information"})]})]}),l.jsx(Ut,{label:`${h}/${v} checks passing`,sx:{bgcolor:cy((e==null?void 0:e.status)||"unknown")+"20",color:cy((e==null?void 0:e.status)||"unknown")}})]})})}),l.jsx($V,{}),l.jsx(AV,{})]})}function i2(t){switch(t.toLowerCase()){case"error":return"var(--theme-error)";case"warn":case"warning":return"var(--theme-warning)";case"info":return"var(--theme-info)";case"debug":return"var(--theme-text-secondary)";default:return"var(--theme-text-primary)"}}function GV(){const[t,e]=b.useState([]),[r,n]=b.useState([]),[o,s]=b.useState(!0),[c,u]=b.useState(null),[d,f]=b.useState(""),[h,v]=b.useState(""),[m,y]=b.useState(""),[x,w]=b.useState(1),[C,j]=b.useState(0),k=50,[I,E]=b.useState(!1),[M,R]=b.useState("desc"),L=b.useRef(null),A={total:C,errors:t.filter(V=>V.level.toLowerCase()==="error").length,warnings:t.filter(V=>["warn","warning"].includes(V.level.toLowerCase())).length,info:t.filter(V=>V.level.toLowerCase()==="info").length,debug:t.filter(V=>V.level.toLowerCase()==="debug").length},F=b.useCallback(async()=>{s(!0);try{const V=await jt.getLogs({source:d||void 0,level:h||void 0,search:m||void 0,limit:k,page:x}),O=[...V.logs].sort((U,K)=>{const Y=new Date(U.timestamp).getTime(),te=new Date(K.timestamp).getTime();return M==="desc"?te-Y:Y-te});e(O),j(V.total),u(null)}catch(V){u(V instanceof Error?V.message:"Failed to fetch logs")}finally{s(!1)}},[d,h,m,x,M]),G=async()=>{try{const V=await jt.getLogSources();n(V)}catch{}};b.useEffect(()=>{G()},[]),b.useEffect(()=>{F()},[F]),b.useEffect(()=>(I?L.current=setInterval(F,5e3):L.current&&(clearInterval(L.current),L.current=null),()=>{L.current&&clearInterval(L.current)}),[I,F]);const $=()=>{w(1),F()},P=(V,O)=>{O!==null&&R(O)},q=Math.ceil(C/k);return l.jsxs(ee,{children:[l.jsx(he,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Logs"}),l.jsx(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View and search application logs"}),l.jsxs(Bn,{container:!0,spacing:2,sx:{mb:3},children:[l.jsx(Bn,{size:{xs:6,sm:3,md:2.4},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsx(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:l.jsx(he,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:A.total.toLocaleString()})}),l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Total Logs"})]})})}),l.jsx(Bn,{size:{xs:6,sm:3,md:2.4},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Xo,{sx:{color:"var(--theme-error)",fontSize:20}}),l.jsx(he,{variant:"h5",sx:{color:"var(--theme-error)",fontWeight:600},children:A.errors})]}),l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Errors"})]})})}),l.jsx(Bn,{size:{xs:6,sm:3,md:2.4},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(od,{sx:{color:"var(--theme-warning)",fontSize:20}}),l.jsx(he,{variant:"h5",sx:{color:"var(--theme-warning)",fontWeight:600},children:A.warnings})]}),l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Warnings"})]})})}),l.jsx(Bn,{size:{xs:6,sm:3,md:2.4},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(Yy,{sx:{color:"var(--theme-info)",fontSize:20}}),l.jsx(he,{variant:"h5",sx:{color:"var(--theme-info)",fontWeight:600},children:A.info})]}),l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Info"})]})})}),l.jsx(Bn,{size:{xs:6,sm:3,md:2.4},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(N7,{sx:{color:"var(--theme-text-secondary)",fontSize:20}}),l.jsx(he,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:A.debug})]}),l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Debug"})]})})})]}),l.jsx(ht,{sx:{mb:3,bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",gap:2,flexWrap:"wrap",alignItems:"center"},children:[r.length>0&&l.jsxs(Co,{size:"small",sx:{minWidth:150},children:[l.jsx(ys,{sx:{color:"var(--theme-text-secondary)"},children:"Source"}),l.jsxs(Vi,{value:d,label:"Source",onChange:V=>f(V.target.value),sx:{color:"var(--theme-text-primary)"},children:[l.jsx(br,{value:"",children:"All Sources"}),r.map(V=>l.jsx(br,{value:V.name,children:V.name},V.name))]})]}),l.jsxs(Co,{size:"small",sx:{minWidth:120},children:[l.jsx(ys,{sx:{color:"var(--theme-text-secondary)"},children:"Level"}),l.jsxs(Vi,{value:h,label:"Level",onChange:V=>v(V.target.value),sx:{color:"var(--theme-text-primary)"},children:[l.jsx(br,{value:"",children:"All Levels"}),l.jsx(br,{value:"error",children:"Error"}),l.jsx(br,{value:"warn",children:"Warning"}),l.jsx(br,{value:"info",children:"Info"}),l.jsx(br,{value:"debug",children:"Debug"})]})]}),l.jsx(wt,{size:"small",placeholder:"Search logs...",value:m,onChange:V=>y(V.target.value),onKeyPress:V=>V.key==="Enter"&&$(),sx:{flex:1,minWidth:200,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},InputProps:{startAdornment:l.jsx(Bh,{sx:{mr:1,color:"var(--theme-text-secondary)"}})}}),l.jsxs(Q8,{value:M,exclusive:!0,onChange:P,size:"small","aria-label":"sort order",children:[l.jsx(ES,{value:"desc","aria-label":"newest first",children:l.jsx(tr,{title:"Newest First",children:l.jsx(L7,{fontSize:"small"})})}),l.jsx(ES,{value:"asc","aria-label":"oldest first",children:l.jsx(tr,{title:"Oldest First",children:l.jsx(O7,{fontSize:"small"})})})]}),l.jsx(tr,{title:I?"Pause auto-refresh":"Enable auto-refresh (5s)",children:l.jsx(Xt,{onClick:()=>E(!I),sx:{color:I?"var(--theme-success)":"var(--theme-text-secondary)",bgcolor:I?"var(--theme-success)20":"transparent"},children:I?l.jsx(gB,{}):l.jsx(mc,{})})}),l.jsx(tr,{title:"Refresh",children:l.jsx(Xt,{onClick:F,sx:{color:"var(--theme-primary)"},children:l.jsx(nl,{})})})]})})}),c&&l.jsx(ht,{sx:{mb:3,bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(ft,{children:l.jsx(he,{color:"error",children:c})})}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:o?l.jsx(ee,{sx:{display:"flex",justifyContent:"center",p:4},children:l.jsx(mr,{})}):t.length===0?l.jsx(ft,{children:l.jsx(he,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No logs found"})}):l.jsxs(l.Fragment,{children:[l.jsx(zi,{children:l.jsxs(Ni,{size:"small",children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:180},children:"Timestamp"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:100},children:"Level"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:120},children:"Component"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Message"})]})}),l.jsx(Bi,{children:t.map((V,O)=>l.jsxs(Er,{hover:!0,children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:new Date(V.timestamp).toLocaleString()}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(Ut,{label:V.level.toUpperCase(),size:"small",sx:{bgcolor:i2(V.level)+"20",color:i2(V.level),fontSize:"0.65rem",height:20}})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontSize:"0.75rem"},children:V.namespace||"-"}),l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.8rem",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:V.message})]},O))})]})}),q>1&&l.jsx(ee,{sx:{display:"flex",justifyContent:"center",p:2},children:l.jsx(q$,{count:q,page:x,onChange:(V,O)=>w(O),sx:{"& .MuiPaginationItem-root":{color:"var(--theme-text-primary)"}}})})]})})]})}function uy(t){if(t===0)return"0 B";const e=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,n)).toFixed(2))+" "+r[n]}function XV(t){const e=Math.floor(t/1e3),r=Math.floor(e/60),n=Math.floor(r/60),o=Math.floor(n/24);return o>0?`${o}d ${n%24}h ${r%60}m`:n>0?`${n}h ${r%60}m ${e%60}s`:r>0?`${r}m ${e%60}s`:`${e}s`}function KV(t,e=20){switch(t){case"healthy":return l.jsx(Uo,{sx:{color:"var(--theme-success)",fontSize:e}});case"degraded":return l.jsx(od,{sx:{color:"var(--theme-warning)",fontSize:e}});case"unhealthy":return l.jsx(Xo,{sx:{color:"var(--theme-error)",fontSize:e}});default:return l.jsx(mr,{size:e})}}function Pu(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function QV(t){return t===void 0?"-":t<1e3?`${t}ms`:`${(t/1e3).toFixed(2)}s`}function YV(){const[t,e]=b.useState(null),[r,n]=b.useState(null),[o,s]=b.useState(!0),[c,u]=b.useState(null),[d,f]=b.useState({open:!1,message:""}),h=async()=>{s(!0);try{const[y,x]=await Promise.all([jt.getDiagnostics(),jt.getHealth().catch(()=>null)]);e(y),n(x),u(null)}catch(y){u(y instanceof Error?y.message:"Failed to fetch diagnostics")}finally{s(!1)}};b.useEffect(()=>{h();const y=setInterval(h,3e4);return()=>clearInterval(y)},[]);const v=()=>{navigator.clipboard.writeText(JSON.stringify(t,null,2)),f({open:!0,message:"Diagnostics copied to clipboard"})};if(o&&!t)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})});if(c)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(ft,{children:l.jsx(he,{color:"error",children:c})})});const m=t?t.system.memory.used/t.system.memory.total*100:0;return l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsx(he,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"System"}),l.jsxs(ee,{sx:{display:"flex",gap:1},children:[l.jsx(tr,{title:"Copy diagnostics JSON",children:l.jsx(Xt,{onClick:v,sx:{color:"var(--theme-primary)"},children:l.jsx(Id,{})})}),l.jsx(tr,{title:"Refresh",children:l.jsx(Xt,{onClick:h,sx:{color:"var(--theme-primary)"},children:l.jsx(nl,{})})})]})]}),l.jsx(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"System information and diagnostics"}),l.jsxs(Bn,{container:!0,spacing:3,children:[l.jsx(Bn,{size:{xs:12,md:6},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(ft,{children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(xT,{sx:{color:"var(--theme-primary)"}}),l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"System Information"})]}),l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"QwickApps Server"}),l.jsx(Ut,{label:t!=null&&t.frameworkVersion?`v${t.frameworkVersion}`:"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Node.js"}),l.jsx(Ut,{label:t==null?void 0:t.system.nodeVersion,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Platform"}),l.jsx(Ut,{label:t==null?void 0:t.system.platform,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Architecture"}),l.jsx(Ut,{label:t==null?void 0:t.system.arch,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]})]})]})})}),l.jsx(Bn,{size:{xs:12,md:6},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(ft,{children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(CT,{sx:{color:"var(--theme-warning)"}}),l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Memory Usage"})]}),l.jsxs(ee,{sx:{mb:2},children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Used"}),l.jsx(he,{sx:{color:"var(--theme-text-primary)"},children:uy((t==null?void 0:t.system.memory.used)||0)})]}),l.jsx(Ic,{variant:"determinate",value:m,sx:{height:8,borderRadius:4,bgcolor:"var(--theme-background)","& .MuiLinearProgress-bar":{bgcolor:m>80?"var(--theme-error)":"var(--theme-warning)",borderRadius:4}}})]}),l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Total"}),l.jsx(he,{sx:{color:"var(--theme-text-primary)"},children:uy((t==null?void 0:t.system.memory.total)||0)})]}),l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Free"}),l.jsx(he,{sx:{color:"var(--theme-text-primary)"},children:uy((t==null?void 0:t.system.memory.free)||0)})]})]})]})})}),l.jsx(Bn,{size:{xs:12,md:6},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(ft,{children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(m0,{sx:{color:"var(--theme-info)"}}),l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Service Info"})]}),l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Product"}),l.jsx(he,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.product})]}),l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Version"}),l.jsx(Ut,{label:(t==null?void 0:t.version)||"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between"},children:[l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Timestamp"}),l.jsx(he,{sx:{color:"var(--theme-text-primary)",fontSize:"0.875rem"},children:t!=null&&t.timestamp?new Date(t.timestamp).toLocaleString():"N/A"})]})]})]})})}),l.jsx(Bn,{size:{xs:12,md:6},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:l.jsxs(ft,{children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(R7,{sx:{color:"var(--theme-success)"}}),l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Uptime"})]}),l.jsx(he,{variant:"h3",sx:{color:"var(--theme-success)",mb:1},children:XV((t==null?void 0:t.uptime)||0)}),l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"Service has been running without interruption"})]})})}),r&&l.jsx(Bn,{size:{xs:12},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[l.jsx(Qy,{sx:{color:Pu(r.status)}}),l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Health Checks"}),l.jsx(Ut,{label:r.status,size:"small",sx:{bgcolor:Pu(r.status)+"20",color:Pu(r.status),textTransform:"capitalize",ml:"auto"}})]}),l.jsx(zi,{children:l.jsxs(Ni,{size:"small",children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Check"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Latency"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Last Checked"})]})}),l.jsx(Bi,{children:Object.entries(r.checks).map(([y,x])=>l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[KV(x.status),l.jsx(he,{fontWeight:500,children:y})]})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(Ut,{label:x.status,size:"small",sx:{bgcolor:Pu(x.status)+"20",color:Pu(x.status),textTransform:"capitalize"}})}),l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:QV(x.latency)}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:new Date(x.lastChecked).toLocaleTimeString()})]},y))})]})})]})})}),l.jsx(Bn,{size:{xs:12},children:l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Raw Diagnostics JSON (for AI agents)"}),l.jsx(ee,{component:"pre",sx:{bgcolor:"var(--theme-background)",p:2,borderRadius:1,overflow:"auto",maxHeight:300,color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"},children:JSON.stringify(t,null,2)})]})})})]}),l.jsx(JE,{open:d.open,autoHideDuration:2e3,onClose:()=>f({...d,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:l.jsx(qt,{severity:"success",variant:"filled",children:d.message})})]})}function JV(t){switch(t){case"active":return l.jsx(Uo,{sx:{color:"var(--theme-success)",fontSize:20}});case"error":return l.jsx(Xo,{sx:{color:"var(--theme-error)",fontSize:20}});case"starting":return l.jsx(eB,{sx:{color:"var(--theme-warning)",fontSize:20}});case"stopped":return l.jsx(MB,{sx:{color:"var(--theme-text-secondary)",fontSize:20}});default:return null}}function s2(t){switch(t){case"active":return"var(--theme-success)";case"error":return"var(--theme-error)";case"starting":return"var(--theme-warning)";case"stopped":return"var(--theme-text-secondary)";default:return"var(--theme-text-secondary)"}}function ZV({counts:t}){const e=[];return t.routes>0&&e.push(`${t.routes} route${t.routes>1?"s":""}`),t.menuItems>0&&e.push(`${t.menuItems} menu item${t.menuItems>1?"s":""}`),t.pages>0&&e.push(`${t.pages} page${t.pages>1?"s":""}`),t.widgets>0&&e.push(`${t.widgets} widget${t.widgets>1?"s":""}`),e.length===0?l.jsx(he,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:"No contributions"}):l.jsx(he,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:e.join(", ")})}function eW({plugin:t}){const[e,r]=b.useState(!1),[n,o]=b.useState(null),[s,c]=b.useState(!1),[u,d]=b.useState(null),f=async()=>{if(!e&&!n&&!u){c(!0),d(null);try{const v=await jt.getPluginDetail(t.id);o(v.contributions)}catch(v){console.error("Failed to load plugin details:",v),d(v instanceof Error?v.message:"Failed to load details")}finally{c(!1)}}r(!e)},h=t.contributionCounts.routes>0||t.contributionCounts.menuItems>0||t.contributionCounts.pages>0||t.contributionCounts.widgets>0;return l.jsxs(l.Fragment,{children:[l.jsxs(Er,{sx:{"& > *":{borderBottom:e?"none":void 0},cursor:h?"pointer":"default","&:hover":{bgcolor:h?"var(--theme-background)":void 0}},onClick:h?f:void 0,children:[l.jsx(Ie,{sx:{width:50,borderColor:"var(--theme-border)"},children:h&&l.jsx(Xt,{size:"small",sx:{color:"var(--theme-text-secondary)"},children:e?l.jsx(iB,{}):l.jsx(oB,{})})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[JV(t.status),l.jsx(he,{sx:{color:"var(--theme-text-primary)",fontWeight:500},children:t.name})]})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(he,{sx:{color:"var(--theme-text-secondary)",fontFamily:"monospace",fontSize:"0.875rem"},children:t.id})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:t.version?l.jsx(Ut,{label:`v${t.version}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}}):l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:"-"})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(Ut,{label:t.status,size:"small",sx:{bgcolor:s2(t.status)+"20",color:s2(t.status),textTransform:"capitalize"}})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(ZV,{counts:t.contributionCounts})})]}),l.jsx(Er,{children:l.jsx(Ie,{style:{paddingBottom:0,paddingTop:0},colSpan:6,sx:{borderColor:"var(--theme-border)"},children:l.jsx(Yu,{in:e,timeout:"auto",unmountOnExit:!0,children:l.jsx(ee,{sx:{py:2,px:4},children:s?l.jsx(ee,{sx:{display:"flex",justifyContent:"center",py:2},children:l.jsx(mr,{size:24})}):u?l.jsx(qt,{severity:"error",sx:{mb:1},children:u}):n?l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2},children:[t.status==="error"&&t.error&&l.jsx(qt,{severity:"error",sx:{mb:1},children:t.error}),n.routes.length>0&&l.jsxs(ee,{children:[l.jsxs(he,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Routes (",n.routes.length,")"]}),l.jsx(ee,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.routes.map((v,m)=>l.jsx(Ut,{label:`${v.method.toUpperCase()} ${v.path}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"}},m))})]}),n.menuItems.length>0&&l.jsxs(ee,{children:[l.jsxs(he,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Menu Items (",n.menuItems.length,")"]}),l.jsx(ee,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.menuItems.map(v=>l.jsx(Ut,{label:`${v.label} (${v.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]}),n.pages.length>0&&l.jsxs(ee,{children:[l.jsxs(he,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Pages (",n.pages.length,")"]}),l.jsx(ee,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.pages.map(v=>l.jsx(Ut,{label:`${v.title||v.id} (${v.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]}),n.widgets.length>0&&l.jsxs(ee,{children:[l.jsxs(he,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Widgets (",n.widgets.length,")"]}),l.jsx(ee,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.widgets.map(v=>l.jsx(Ut,{label:v.title,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]})]}):null})})})})]})}function tW(){const[t,e]=b.useState([]),[r,n]=b.useState(!0),[o,s]=b.useState(null);if(b.useEffect(()=>{(async()=>{try{const f=await jt.getPlugins();e(f.plugins),s(null)}catch(f){s(f instanceof Error?f.message:"Failed to fetch plugins")}finally{n(!1)}})()},[]),r)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})});if(o)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(ft,{children:l.jsx(he,{color:"error",children:o})})});const c=t.filter(d=>d.status==="active").length,u=t.filter(d=>d.status==="error").length;return l.jsxs(ee,{children:[l.jsx(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(he,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Plugins"}),l.jsx(Ut,{icon:l.jsx(X7,{sx:{fontSize:16}}),label:`${c}/${t.length} active`,size:"small",sx:{bgcolor:c===t.length?"var(--theme-success)20":"var(--theme-warning)20",color:c===t.length?"var(--theme-success)":"var(--theme-warning)"}}),u>0&&l.jsx(Ut,{icon:l.jsx(Xo,{sx:{fontSize:16}}),label:`${u} error${u>1?"s":""}`,size:"small",sx:{bgcolor:"var(--theme-error)20",color:"var(--theme-error)"}})]})}),l.jsx(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View registered plugins and their contributions to the control panel"}),t.length===0?l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsx(he,{sx:{color:"var(--theme-text-secondary)",textAlign:"center",py:4},children:"No plugins registered"})})}):l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(zi,{children:l.jsxs(Ni,{children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:50}}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Version"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Contributions"})]})}),l.jsx(Bi,{children:t.map(d=>l.jsx(eW,{plugin:d},d.id))})]})})})]})}function rW({title:t="User Management",subtitle:e="Manage users, bans, and entitlements",features:r,headerActions:n,onUserSelect:o}){const[s,c]=b.useState({users:(r==null?void 0:r.users)??!0,bans:(r==null?void 0:r.bans)??!1,entitlements:(r==null?void 0:r.entitlements)??!1,entitlementsReadonly:(r==null?void 0:r.entitlementsReadonly)??!0}),[u,d]=b.useState(!!r),[f,h]=b.useState(0),[v,m]=b.useState([]),[y,x]=b.useState(0),[w,C]=b.useState(0),[j,k]=b.useState(25),[I,E]=b.useState(""),[M,R]=b.useState({}),[L,A]=b.useState([]),[F,G]=b.useState(0),[$,P]=b.useState([]),[q,V]=b.useState(0),[O,U]=b.useState(!0),[K,Y]=b.useState(null),[te,Q]=b.useState(null),[X,re]=b.useState(!1),[de,J]=b.useState({email:"",reason:"",expiresAt:""}),[oe,Z]=b.useState(!1),[pe,Se]=b.useState({email:"",name:"",role:"",expiresInDays:7}),[se,ae]=b.useState(null),[Fe,ze]=b.useState(!1),[Oe,Be]=b.useState(""),[Le,Ke]=b.useState(!1),[pt,ce]=b.useState(!1),[De,We]=b.useState(null),[gt,$e]=b.useState(null),[zt,vt]=b.useState([]),[fe,be]=b.useState(""),[Pe,Ae]=b.useState(!1);b.useEffect(()=>{r||jt.detectFeatures().then(we=>{c(we),d(!0)}).catch(()=>{d(!0)})},[r]),b.useEffect(()=>{u&&s.entitlements&&!s.entitlementsReadonly&&jt.getAvailableEntitlements().then(vt).catch(()=>{})},[u,s.entitlements,s.entitlementsReadonly]);const qe=b.useCallback(async()=>{var we;if(s.users){U(!0);try{const Ct=await jt.getUsers({limit:j,page:w,search:I||void 0});if(m(Ct.users||[]),x(Ct.total),Y(null),s.entitlements&&((we=Ct.users)!=null&&we.length)){const St={};await Promise.all(Ct.users.map(async or=>{try{const Qe=await jt.getEntitlements(or.email);St[or.email]=Qe.entitlements.length}catch{St[or.email]=0}})),R(or=>({...or,...St}))}}catch(Ct){Y(Ct instanceof Error?Ct.message:"Failed to fetch users")}finally{U(!1)}}},[s.users,s.entitlements,w,j,I]),Je=b.useCallback(async()=>{if(s.bans){U(!0);try{const we=await jt.getBans();A(we.bans||[]),G(we.total),Y(null)}catch(we){Y(we instanceof Error?we.message:"Failed to fetch bans")}finally{U(!1)}}},[s.bans]),Ce=b.useCallback(async()=>{if(s.users){U(!0);try{const we=await jt.getInvitations();P(we.users||[]),V(we.total),Y(null)}catch(we){Y(we instanceof Error?we.message:"Failed to fetch invitations")}finally{U(!1)}}},[s.users]);b.useEffect(()=>{u&&(f===0&&s.users?qe():f===1&&s.bans?Je():f===2&&s.users&&Ce())},[f,u,s.users,s.bans,qe,Je,Ce]),b.useEffect(()=>{u&&s.bans&&Je()},[u,s.bans,Je]),b.useEffect(()=>{if(!u)return;const we=setTimeout(()=>{f===0&&s.users&&(C(0),qe())},300);return()=>clearTimeout(we)},[I,f,u,s.users,qe]);const Ge=async()=>{try{await jt.banUser(de.email,de.reason,de.expiresAt||void 0),Q("User banned successfully"),re(!1),J({email:"",reason:"",expiresAt:""}),Je()}catch(we){Y(we instanceof Error?we.message:"Failed to ban user")}},Ue=async we=>{if(confirm("Unban this user?"))try{await jt.unbanUser(we),Q("User unbanned successfully"),Je()}catch{Y("Failed to unban user")}},Xe=async()=>{try{const we=await jt.inviteUser({email:pe.email,name:pe.name||void 0,role:pe.role||void 0,expiresInDays:pe.expiresInDays});ae({token:we.token,inviteLink:we.inviteLink}),Q("User invitation created successfully"),qe()}catch(we){Y(we instanceof Error?we.message:"Failed to invite user")}},Mt=()=>{se&&(navigator.clipboard.writeText(se.inviteLink),Q("Invite link copied to clipboard"))},Zt=()=>{Z(!1),Se({email:"",name:"",role:"",expiresInDays:7}),ae(null)},yr=async()=>{if(!Oe.trim()){$e("Please enter an email address");return}Ke(!0),$e(null),We(null);try{const we=await jt.getEntitlements(Oe);We(we)}catch(we){$e(we instanceof Error?we.message:"Failed to lookup entitlements")}finally{Ke(!1)}},Br=async()=>{if(De){ce(!0);try{const we=await jt.refreshEntitlements(Oe);We(we)}catch{$e("Failed to refresh entitlements")}finally{ce(!1)}}},Yr=async()=>{if(!(!fe||!De)){Ae(!0);try{await jt.grantEntitlement(De.identifier,fe),Q(`Entitlement "${fe}" granted`),be("");const we=await jt.refreshEntitlements(De.identifier);We(we),R(Ct=>({...Ct,[De.identifier]:we.entitlements.length}))}catch(we){Y(we instanceof Error?we.message:"Failed to grant entitlement")}finally{Ae(!1)}}},on=async we=>{if(De&&confirm(`Revoke "${we}" from ${De.identifier}?`))try{await jt.revokeEntitlement(De.identifier,we),Q(`Entitlement "${we}" revoked`);const Ct=await jt.refreshEntitlements(De.identifier);We(Ct),R(St=>({...St,[De.identifier]:Ct.entitlements.length}))}catch(Ct){Y(Ct instanceof Error?Ct.message:"Failed to revoke entitlement")}},rt=we=>{we&&(Be(we),Ke(!0),$e(null),We(null),jt.getEntitlements(we).then(We).catch(Ct=>$e(Ct instanceof Error?Ct.message:"Failed to lookup entitlements")).finally(()=>Ke(!1))),ze(!0)},bt=we=>we?new Date(we).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",Yt=zt.filter(we=>!(De!=null&&De.entitlements.includes(we.name))),dr=[];return s.users&&dr.push({label:"Users",count:y}),s.bans&&dr.push({label:"Banned",count:F}),s.users&&dr.push({label:"Invitations",count:q}),u?l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),l.jsxs(ee,{sx:{display:"flex",gap:1},children:[n,s.users&&l.jsx(nr,{variant:"primary",icon:"person_add",label:"Invite User",onClick:()=>Z(!0)}),s.entitlements&&l.jsx(nr,{variant:"outlined",icon:"person_search",label:"Lookup Entitlements",onClick:()=>rt()}),s.bans&&l.jsx(nr,{variant:"outlined",color:"error",icon:"block",label:"Ban User",onClick:()=>re(!0)})]})]}),O&&l.jsx(Ic,{sx:{mb:2}}),K&&l.jsx(qt,{severity:"error",onClose:()=>Y(null),sx:{mb:2},children:K}),te&&l.jsx(qt,{severity:"success",onClose:()=>Q(null),sx:{mb:2},children:te}),s.users&&l.jsxs(al,{columns:s.bans?3:2,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(hc,{sx:{fontSize:40,color:"var(--theme-primary)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:y.toLocaleString(),customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:"Total Users",customColor:"var(--theme-text-secondary)"})]})]})})}),s.entitlements&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ec,{sx:{fontSize:40,color:"var(--theme-success)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"body1",fontWeight:"500",content:"Entitlements",customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:s.entitlementsReadonly?"Read-only Mode":"Plugin Active",customColor:s.entitlementsReadonly?"var(--theme-warning)":"var(--theme-success)"})]})]})})}),s.bans&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(Nh,{sx:{fontSize:40,color:F>0?"var(--theme-error)":"var(--theme-text-secondary)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:F.toString(),customColor:F>0?"var(--theme-error)":"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:"Banned Users",customColor:"var(--theme-text-secondary)"})]})]})})})]}),l.jsxs(ht,{sx:{bgcolor:"var(--theme-surface)"},children:[dr.length>1&&l.jsx(B8,{value:f,onChange:(we,Ct)=>h(Ct),sx:{borderBottom:1,borderColor:"var(--theme-border)",px:2},children:dr.map((we,Ct)=>l.jsx(LN,{label:`${we.label}${we.count!==void 0?` (${we.count})`:""}`},Ct))}),l.jsxs(ft,{sx:{p:0},children:[l.jsx(ee,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:l.jsx(wt,{size:"small",placeholder:"Search by email or name...",value:I,onChange:we=>E(we.target.value),InputProps:{startAdornment:l.jsx(Zl,{position:"start",children:l.jsx(Bh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),f===0&&s.users&&l.jsxs(l.Fragment,{children:[l.jsx(zi,{children:l.jsxs(Ni,{children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),s.entitlements&&l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"center",children:"Entitlements"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Created"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsxs(Bi,{children:[v.map(we=>l.jsxs(Er,{hover:!0,sx:{cursor:o?"pointer":"default"},onClick:()=>o==null?void 0:o(we),children:[l.jsxs(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:[we.id.substring(0,8),"..."]}),l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(it,{variant:"body1",content:we.name||"--",fontWeight:"500"})}),l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:we.email}),s.entitlements&&l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},align:"center",children:l.jsx(Ut,{size:"small",icon:l.jsx(ec,{sx:{fontSize:14}}),label:M[we.email]??"...",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:bt(we.created_at)}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},align:"right",children:s.entitlements&&l.jsx(tr,{title:"View entitlements",children:l.jsx(Xt,{size:"small",onClick:Ct=>{Ct.stopPropagation(),rt(we.email)},children:l.jsx(ec,{fontSize:"small"})})})})]},we.id)),v.length===0&&!O&&l.jsx(Er,{children:l.jsx(Ie,{colSpan:s.entitlements?6:5,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:I?"No users match your search":"No users found"})})]})]})}),l.jsx(v8,{component:"div",count:y,page:w,onPageChange:(we,Ct)=>C(Ct),rowsPerPage:j,onRowsPerPageChange:we=>{k(parseInt(we.target.value,10)),C(0)},rowsPerPageOptions:[10,25,50,100],sx:{borderTop:1,borderColor:"var(--theme-border)"}})]}),f===1&&s.bans&&l.jsx(zi,{children:l.jsxs(Ni,{children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Reason"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned At"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Expires"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned By"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsxs(Bi,{children:[L.map(we=>l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(it,{variant:"body1",content:we.email,fontWeight:"500"})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:200},children:l.jsx(it,{variant:"body2",content:we.reason,noWrap:!0})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:bt(we.banned_at)}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(Ut,{size:"small",label:we.expires_at?bt(we.expires_at):"Permanent",sx:{bgcolor:we.expires_at?"var(--theme-warning)20":"var(--theme-error)20",color:we.expires_at?"var(--theme-warning)":"var(--theme-error)"}})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:we.banned_by}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},align:"right",children:l.jsx(nr,{buttonSize:"small",variant:"text",color:"success",icon:"check_circle",label:"Unban",onClick:()=>Ue(we.email)})})]},we.id)),L.length===0&&!O&&l.jsx(Er,{children:l.jsx(Ie,{colSpan:6,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:"No users are currently banned"})})]})]})}),f===2&&s.users&&l.jsx(zi,{children:l.jsxs(Ni,{children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Created"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Expires"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"})]})}),l.jsxs(Bi,{children:[$.map(we=>{const Ct=we.invitation_expires_at&&new Date(we.invitation_expires_at)<new Date;return l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(it,{variant:"body1",content:we.email,fontWeight:"500"})}),l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:we.name||"--"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:bt(we.created_at)}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:bt(we.invitation_expires_at)}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(Ut,{size:"small",label:Ct?"Expired":"Pending",sx:{bgcolor:Ct?"var(--theme-error)20":"var(--theme-warning)20",color:Ct?"var(--theme-error)":"var(--theme-warning)"}})})]},we.id)}),$.length===0&&!O&&l.jsx(Er,{children:l.jsx(Ie,{colSpan:5,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:"No pending invitations"})})]})]})})]})]}),s.users&&l.jsxs(Ri,{open:oe,onClose:Zt,maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Invite User"}),l.jsx(_i,{children:se?l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(qt,{severity:"success",children:"Invitation created successfully! Share this link with the user:"}),l.jsx(wt,{label:"Invitation Link",fullWidth:!0,value:se.inviteLink,InputProps:{readOnly:!0,endAdornment:l.jsx(Zl,{position:"end",children:l.jsx(tr,{title:"Copy to clipboard",children:l.jsx(Xt,{onClick:Mt,edge:"end",children:l.jsx(Id,{})})})})},helperText:"Click the icon to copy the link to clipboard"}),l.jsx(qt,{severity:"info",children:"The user will need to visit this link to activate their account."})]}):l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(wt,{label:"Email",fullWidth:!0,required:!0,value:pe.email,onChange:we=>Se({...pe,email:we.target.value}),placeholder:"user@example.com",type:"email"}),l.jsx(wt,{label:"Name (Optional)",fullWidth:!0,value:pe.name,onChange:we=>Se({...pe,name:we.target.value}),placeholder:"Enter user's full name"}),l.jsx(wt,{label:"Role (Optional)",fullWidth:!0,value:pe.role,onChange:we=>Se({...pe,role:we.target.value}),placeholder:"e.g., admin, editor, viewer",helperText:"Stored in user metadata for your app to use"}),l.jsx(wt,{label:"Invitation Expiry",type:"number",fullWidth:!0,value:pe.expiresInDays,onChange:we=>Se({...pe,expiresInDays:parseInt(we.target.value)||7}),InputProps:{endAdornment:l.jsx(Zl,{position:"end",children:"days"})},helperText:"How many days until the invitation expires"})]})}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Close",onClick:Zt}),!se&&l.jsx(nr,{variant:"primary",label:"Create Invitation",onClick:Xe,disabled:!pe.email})]})]}),s.bans&&l.jsxs(Ri,{open:X,onClose:()=>re(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Ban User"}),l.jsx(_i,{children:l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(wt,{label:"Email",fullWidth:!0,value:de.email,onChange:we=>J({...de,email:we.target.value}),placeholder:"Enter user email"}),l.jsx(wt,{label:"Reason",fullWidth:!0,multiline:!0,rows:3,value:de.reason,onChange:we=>J({...de,reason:we.target.value}),placeholder:"Enter reason for ban"}),l.jsx(wt,{label:"Expiration (Optional)",type:"datetime-local",fullWidth:!0,value:de.expiresAt,onChange:we=>J({...de,expiresAt:we.target.value}),InputLabelProps:{shrink:!0},helperText:"Leave empty for permanent ban"})]})}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Cancel",onClick:()=>{re(!1),J({email:"",reason:"",expiresAt:""})}}),l.jsx(nr,{variant:"primary",color:"error",label:"Ban User",onClick:Ge,disabled:!de.email||!de.reason})]})]}),s.entitlements&&l.jsxs(Ri,{open:Fe,onClose:()=>ze(!1),maxWidth:"md",fullWidth:!0,children:[l.jsx(Ai,{children:"User Entitlements"}),l.jsx(_i,{children:l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsxs(ee,{sx:{display:"flex",gap:1},children:[l.jsx(wt,{label:"Email",fullWidth:!0,value:Oe,onChange:we=>Be(we.target.value),placeholder:"Enter user email",onKeyDown:we=>we.key==="Enter"&&yr()}),l.jsx(nr,{variant:"primary",icon:"search",label:"Lookup",onClick:yr,disabled:Le})]}),Le&&l.jsx(ee,{sx:{display:"flex",justifyContent:"center",py:4},children:l.jsx(mr,{})}),gt&&l.jsx(qt,{severity:"error",children:gt}),De&&l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[l.jsxs(ee,{children:[l.jsx(it,{variant:"h6",content:De.identifier,customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:`Source: ${De.source}`,customColor:"var(--theme-text-secondary)"})]}),l.jsx(nr,{variant:"outlined",icon:"refresh",label:pt?"Refreshing...":"Refresh",onClick:Br,disabled:pt,buttonSize:"small"})]}),!s.entitlementsReadonly&&Yt.length>0&&l.jsxs(ee,{sx:{display:"flex",gap:1,mb:2,p:2,bgcolor:"var(--theme-background)",borderRadius:1},children:[l.jsx(m_,{size:"small",options:Yt,getOptionLabel:we=>we.name,value:Yt.find(we=>we.name===fe)||null,onChange:(we,Ct)=>be((Ct==null?void 0:Ct.name)||""),renderInput:we=>l.jsx(wt,{...we,label:"Grant Entitlement",placeholder:"Select entitlement"}),sx:{flex:1}}),l.jsx(nr,{variant:"primary",icon:"add",label:"Grant",onClick:Yr,disabled:!fe||Pe,buttonSize:"small"})]}),l.jsx(it,{variant:"subtitle2",content:"Current Entitlements",customColor:"var(--theme-text-secondary)",style:{marginBottom:"8px"}}),De.entitlements.length===0?l.jsx(it,{variant:"body2",content:"No entitlements found",customColor:"var(--theme-text-secondary)"}):l.jsx(ee,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:De.entitlements.map((we,Ct)=>l.jsx(Ut,{icon:l.jsx(Uo,{sx:{fontSize:16}}),label:we,onDelete:s.entitlementsReadonly?void 0:()=>on(we),deleteIcon:l.jsx(Md,{sx:{fontSize:16}}),sx:{bgcolor:"var(--theme-success)20",color:"var(--theme-success)","& .MuiChip-deleteIcon":{color:"var(--theme-error)","&:hover":{color:"var(--theme-error)"}}}},Ct))}),l.jsxs(ee,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:[l.jsx(it,{variant:"caption",content:`Data from: ${De.source==="cache"?"Cache":"Source"}`,customColor:"var(--theme-text-secondary)"}),De.cachedAt&&l.jsx(it,{variant:"caption",content:` | Cached: ${bt(De.cachedAt)}`,customColor:"var(--theme-text-secondary)"}),s.entitlementsReadonly&&l.jsx(it,{variant:"caption",content:" | Read-only mode (modifications disabled)",customColor:"var(--theme-warning)"})]})]})]})}),l.jsx(Li,{children:l.jsx(nr,{variant:"text",label:"Close",onClick:()=>ze(!1)})})]})]}):l.jsx(ee,{sx:{display:"flex",justifyContent:"center",py:8},children:l.jsx(mr,{})})}function nW({title:t="Entitlements",subtitle:e="Manage available entitlements",headerActions:r}){var de;const[n,o]=b.useState(null),[s,c]=b.useState(!0),[u,d]=b.useState([]),[f,h]=b.useState([]),[v,m]=b.useState(!0),[y,x]=b.useState(null),[w,C]=b.useState(null),[j,k]=b.useState(""),[I,E]=b.useState(!1),[M,R]=b.useState(!1),[L,A]=b.useState(!1),[F,G]=b.useState(null),[$,P]=b.useState({name:"",category:"",description:""}),[q,V]=b.useState(!1);b.useEffect(()=>{jt.getEntitlementsStatus().then(o).catch(J=>x(J instanceof Error?J.message:"Failed to get status")).finally(()=>c(!1))},[]);const O=b.useCallback(async()=>{m(!0);try{const J=await jt.getAvailableEntitlements();d(J),x(null)}catch(J){x(J instanceof Error?J.message:"Failed to fetch entitlements")}finally{m(!1)}},[]);b.useEffect(()=>{O()},[O]),b.useEffect(()=>{if(!j.trim())h(u);else{const J=j.toLowerCase();h(u.filter(oe=>{var Z,pe;return oe.name.toLowerCase().includes(J)||((Z=oe.category)==null?void 0:Z.toLowerCase().includes(J))||((pe=oe.description)==null?void 0:pe.toLowerCase().includes(J))}))}},[u,j]);const U=[...new Set(u.map(J=>J.category||"Uncategorized"))],K=async()=>{if(!$.name.trim()){x("Name is required");return}V(!0);try{C(`Entitlement "${$.name}" created`),E(!1),P({name:"",category:"",description:""}),O()}catch(J){x(J instanceof Error?J.message:"Failed to create entitlement")}finally{V(!1)}},Y=async()=>{if(F){V(!0);try{C(`Entitlement "${F.name}" updated`),R(!1),G(null),O()}catch(J){x(J instanceof Error?J.message:"Failed to update entitlement")}finally{V(!1)}}},te=async()=>{if(F){V(!0);try{C(`Entitlement "${F.name}" deleted`),A(!1),G(null),O()}catch(J){x(J instanceof Error?J.message:"Failed to delete entitlement")}finally{V(!1)}}},Q=J=>{G(J),R(!0)},X=J=>{G(J),A(!0)},re=(n==null?void 0:n.readonly)??!0;return s?l.jsx(ee,{sx:{display:"flex",justifyContent:"center",py:8},children:l.jsx(mr,{})}):l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),l.jsxs(ee,{sx:{display:"flex",gap:1},children:[r,!re&&l.jsx(nr,{variant:"primary",icon:"add",label:"Add Entitlement",onClick:()=>E(!0)})]})]}),v&&l.jsx(Ic,{sx:{mb:2}}),y&&l.jsx(qt,{severity:"error",onClose:()=>x(null),sx:{mb:2},children:y}),w&&l.jsx(qt,{severity:"success",onClose:()=>C(null),sx:{mb:2},children:w}),l.jsxs(al,{columns:3,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ec,{sx:{fontSize:40,color:"var(--theme-primary)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:u.length.toString(),customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:"Total Entitlements",customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ee,{sx:{width:40,height:40,borderRadius:1,bgcolor:"var(--theme-primary)20",display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(it,{variant:"h6",content:U.length.toString(),customColor:"var(--theme-primary)"})}),l.jsxs(ee,{children:[l.jsx(it,{variant:"body1",fontWeight:"500",content:"Categories",customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:U.slice(0,3).join(", "),customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[re?l.jsx(Jy,{sx:{fontSize:40,color:"var(--theme-warning)"}}):l.jsx(nd,{sx:{fontSize:40,color:"var(--theme-success)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"body1",fontWeight:"500",content:re?"Read-only":"Editable",customColor:re?"var(--theme-warning)":"var(--theme-success)"}),l.jsx(it,{variant:"body2",content:`Source: ${((de=n==null?void 0:n.sources[0])==null?void 0:de.name)||"Unknown"}`,customColor:"var(--theme-text-secondary)"})]})]})})})]}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{sx:{p:0},children:[l.jsx(ee,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:l.jsx(wt,{size:"small",placeholder:"Search entitlements...",value:j,onChange:J=>k(J.target.value),InputProps:{startAdornment:l.jsx(Zl,{position:"start",children:l.jsx(Bh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),l.jsx(zi,{children:l.jsxs(Ni,{children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Category"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Description"}),!re&&l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsxs(Bi,{children:[f.map(J=>l.jsxs(Er,{hover:!0,children:[l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(ec,{sx:{fontSize:18,color:"var(--theme-primary)"}}),l.jsx(it,{variant:"body1",content:J.name,fontWeight:"500"})]})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:J.category?l.jsx(Ut,{size:"small",label:J.category,sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}}):l.jsx(it,{variant:"body2",content:"--",customColor:"var(--theme-text-secondary)"})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:300},children:J.description||"--"}),!re&&l.jsxs(Ie,{sx:{borderColor:"var(--theme-border)"},align:"right",children:[l.jsx(tr,{title:"Edit",children:l.jsx(Xt,{size:"small",onClick:()=>Q(J),children:l.jsx(nd,{fontSize:"small"})})}),l.jsx(tr,{title:"Delete",children:l.jsx(Xt,{size:"small",onClick:()=>X(J),sx:{color:"var(--theme-error)"},children:l.jsx(Md,{fontSize:"small"})})})]})]},J.id)),f.length===0&&!v&&l.jsx(Er,{children:l.jsx(Ie,{colSpan:re?3:4,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:j?"No entitlements match your search":"No entitlements defined"})})]})]})})]})}),n&&n.sources.length>0&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:l.jsxs(ft,{children:[l.jsx(it,{variant:"subtitle2",content:"Entitlement Sources",customColor:"var(--theme-text-secondary)",style:{marginBottom:"12px"}}),l.jsx(ee,{sx:{display:"flex",flexDirection:"column",gap:1},children:n.sources.map((J,oe)=>l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(Ut,{size:"small",label:J.primary?"Primary":"Additional",sx:{bgcolor:J.primary?"var(--theme-primary)20":"var(--theme-text-secondary)20",color:J.primary?"var(--theme-primary)":"var(--theme-text-secondary)"}}),l.jsx(it,{variant:"body1",content:J.name,fontWeight:"500",customColor:"var(--theme-text-primary)"}),J.description&&l.jsx(it,{variant:"body2",content:`- ${J.description}`,customColor:"var(--theme-text-secondary)"}),J.readonly&&l.jsx(Ut,{size:"small",icon:l.jsx(Jy,{sx:{fontSize:14}}),label:"Read-only",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)"}})]},oe))}),n.cacheEnabled&&l.jsx(ee,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:l.jsx(it,{variant:"caption",content:`Caching: Enabled (TTL: ${n.cacheTtl}s)`,customColor:"var(--theme-text-secondary)"})})]})}),!re&&l.jsxs(Ri,{open:I,onClose:()=>E(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Add Entitlement"}),l.jsx(_i,{children:l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(wt,{label:"Name",fullWidth:!0,value:$.name,onChange:J=>P({...$,name:J.target.value}),placeholder:"e.g., premium, pro, feature:analytics",required:!0}),l.jsx(wt,{label:"Category (Optional)",fullWidth:!0,value:$.category,onChange:J=>P({...$,category:J.target.value}),placeholder:"e.g., subscription, feature, access"}),l.jsx(wt,{label:"Description (Optional)",fullWidth:!0,multiline:!0,rows:2,value:$.description,onChange:J=>P({...$,description:J.target.value}),placeholder:"Describe what this entitlement grants access to"})]})}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Cancel",onClick:()=>E(!1)}),l.jsx(nr,{variant:"primary",label:"Create",onClick:K,disabled:!$.name.trim()||q})]})]}),!re&&F&&l.jsxs(Ri,{open:M,onClose:()=>R(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Edit Entitlement"}),l.jsx(_i,{children:l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(wt,{label:"Name",fullWidth:!0,value:F.name,disabled:!0,helperText:"Name cannot be changed"}),l.jsx(wt,{label:"Category",fullWidth:!0,value:F.category||"",onChange:J=>G({...F,category:J.target.value})}),l.jsx(wt,{label:"Description",fullWidth:!0,multiline:!0,rows:2,value:F.description||"",onChange:J=>G({...F,description:J.target.value})})]})}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Cancel",onClick:()=>R(!1)}),l.jsx(nr,{variant:"primary",label:"Save",onClick:Y,disabled:q})]})]}),!re&&F&&l.jsxs(Ri,{open:L,onClose:()=>A(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Delete Entitlement"}),l.jsxs(_i,{children:[l.jsx(it,{variant:"body1",content:`Are you sure you want to delete the entitlement "${F.name}"?`,customColor:"var(--theme-text-primary)"}),l.jsx(qt,{severity:"warning",sx:{mt:2},children:"This will remove the entitlement from all users who currently have it."})]}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Cancel",onClick:()=>A(!1)}),l.jsx(nr,{variant:"primary",color:"error",label:"Delete",onClick:te,disabled:q})]})]})]})}function a2(t){switch(t){case"enabled":return"var(--theme-success)";case"error":return"var(--theme-error)";case"disabled":default:return"var(--theme-text-secondary)"}}function oW(t){switch(t){case"enabled":return l.jsx(Uo,{sx:{color:"var(--theme-success)"}});case"error":return l.jsx(Xo,{sx:{color:"var(--theme-error)"}});case"disabled":default:return l.jsx(Nh,{sx:{color:"var(--theme-text-secondary)"}})}}const l2={domain:"",clientId:"",clientSecret:"",baseUrl:"",secret:"",audience:"",scopes:["openid","profile","email"],allowedRoles:[],allowedDomains:[]},c2={url:"",anonKey:""},u2={username:"",password:"",realm:"Protected Area"},d2={connectionUri:"",apiKey:"",appName:"",apiDomain:"",websiteDomain:"",apiBasePath:"/auth",websiteBasePath:"/auth",enableEmailPassword:!0,socialProviders:{}};function iW(){var Le,Ke,pt;const[t,e]=b.useState(null),[r,n]=b.useState(!0),[o,s]=b.useState(null),[c,u]=b.useState(null),[d,f]=b.useState(!1),[h,v]=b.useState(!1),[m,y]=b.useState(!1),[x,w]=b.useState(null),[C,j]=b.useState(""),[k,I]=b.useState(l2),[E,M]=b.useState(c2),[R,L]=b.useState(u2),[A,F]=b.useState(d2),[G,$]=b.useState(!0),[P,q]=b.useState(""),[V,O]=b.useState({enabled:!1,clientId:"",clientSecret:""}),[U,K]=b.useState({enabled:!1,clientId:"",clientSecret:""}),[Y,te]=b.useState({enabled:!1,clientId:"",clientSecret:"",keyId:"",teamId:""}),[Q,X]=b.useState(!1),[re,de]=b.useState(!1),J=b.useCallback(async()=>{var ce,De,We,gt;n(!0),s(null);try{const $e=await jt.getAuthConfig();if(e($e),$e.runtimeConfig){const zt=$e.runtimeConfig;if(j(zt.adapter||""),$(zt.settings.authRequired??!0),q(((ce=zt.settings.excludePaths)==null?void 0:ce.join(", "))||""),zt.config.auth0&&I({...l2,...zt.config.auth0}),zt.config.supabase&&M({...c2,...zt.config.supabase}),zt.config.basic&&L({...u2,...zt.config.basic}),zt.config.supertokens){const vt=zt.config.supertokens;F({...d2,...vt}),(De=vt.socialProviders)!=null&&De.google&&O({enabled:!0,clientId:vt.socialProviders.google.clientId,clientSecret:vt.socialProviders.google.clientSecret}),(We=vt.socialProviders)!=null&&We.github&&K({enabled:!0,clientId:vt.socialProviders.github.clientId,clientSecret:vt.socialProviders.github.clientSecret}),(gt=vt.socialProviders)!=null&>.apple&&te({enabled:!0,clientId:vt.socialProviders.apple.clientId,clientSecret:vt.socialProviders.apple.clientSecret,keyId:vt.socialProviders.apple.keyId,teamId:vt.socialProviders.apple.teamId})}}else $e.adapter&&j($e.adapter)}catch($e){s($e instanceof Error?$e.message:"Failed to fetch auth status")}finally{n(!1)}},[]);b.useEffect(()=>{J()},[J]);const oe=(ce,De)=>{navigator.clipboard.writeText(De),u(ce),setTimeout(()=>u(null),2e3)},Z=()=>{f(!0),w(null)},pe=()=>{f(!1),w(null),J()},Se=ce=>JSON.parse(JSON.stringify(ce)),se=()=>{switch(C){case"auth0":return Se(k);case"supabase":return Se(E);case"basic":return Se(R);case"supertokens":{const ce={...A},De={};return V.enabled&&(De.google={clientId:V.clientId,clientSecret:V.clientSecret}),U.enabled&&(De.github={clientId:U.clientId,clientSecret:U.clientSecret}),Y.enabled&&(De.apple={clientId:Y.clientId,clientSecret:Y.clientSecret,keyId:Y.keyId||"",teamId:Y.teamId||""}),Object.keys(De).length>0&&(ce.socialProviders=De),Se(ce)}default:return{}}},ae=async()=>{if(C){y(!0),w(null);try{const ce=await jt.testAuthProvider({adapter:C,config:se()});w(ce)}catch(ce){w({success:!1,message:ce instanceof Error?ce.message:"Test failed"})}finally{y(!1)}}},Fe=async()=>{if(t!=null&&t.adapter){y(!0),w(null);try{const ce=await jt.testCurrentAuthProvider();w(ce)}catch(ce){w({success:!1,message:ce instanceof Error?ce.message:"Test failed"})}finally{y(!1)}}},ze=async()=>{if(C){v(!0),s(null);try{const ce={adapter:C,config:se(),settings:{authRequired:G,excludePaths:P.split(",").map(De=>De.trim()).filter(Boolean)}};await jt.updateAuthConfig(ce),f(!1),await J()}catch(ce){s(ce instanceof Error?ce.message:"Failed to save configuration")}finally{v(!1)}}},Oe=async()=>{v(!0),s(null);try{await jt.deleteAuthConfig(),de(!1),f(!1),await J()}catch(ce){s(ce instanceof Error?ce.message:"Failed to delete configuration")}finally{v(!1)}};if(r)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})});const Be=t!=null&&t.config?Object.entries(t.config):[];return l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsx(he,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Authentication"}),l.jsx(ee,{sx:{display:"flex",gap:1},children:!d&&l.jsxs(l.Fragment,{children:[l.jsx(tr,{title:"Edit Configuration",children:l.jsx(Xt,{onClick:Z,sx:{color:"var(--theme-primary)"},children:l.jsx(nd,{})})}),l.jsx(tr,{title:"Refresh",children:l.jsx(Xt,{onClick:J,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(nl,{})})})]})})]}),l.jsx(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:d?"Configure authentication provider":"Auth plugin configuration status"}),o&&l.jsx(qt,{severity:"error",sx:{mb:2},onClose:()=>s(null),children:o}),d?l.jsxs(ee,{children:[l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Provider Selection"}),l.jsxs(Co,{fullWidth:!0,sx:{mb:2},children:[l.jsx(ys,{sx:{color:"var(--theme-text-secondary)"},children:"Auth Provider"}),l.jsxs(Vi,{value:C,onChange:ce=>j(ce.target.value),label:"Auth Provider",sx:{color:"var(--theme-text-primary)"},children:[l.jsx(br,{value:"",children:l.jsx("em",{children:"None (Disabled)"})}),l.jsx(br,{value:"supertokens",children:"SuperTokens"}),l.jsx(br,{value:"auth0",children:"Auth0"}),l.jsx(br,{value:"supabase",children:"Supabase"}),l.jsx(br,{value:"basic",children:"Basic Auth"})]})]}),l.jsxs(ee,{sx:{display:"flex",gap:2,alignItems:"center"},children:[l.jsx(Nn,{control:l.jsx(za,{checked:G,onChange:ce=>$(ce.target.checked),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Auth Required",sx:{color:"var(--theme-text-primary)"}}),l.jsx(wt,{label:"Exclude Paths (comma-separated)",value:P,onChange:ce=>q(ce.target.value),size:"small",sx:{flex:1,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},placeholder:"/api/health, /api/public/*"})]})]})}),C==="auth0"&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Auth0 Configuration"}),l.jsxs(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[l.jsx(wt,{label:"Domain",value:k.domain,onChange:ce=>I({...k,domain:ce.target.value}),required:!0,placeholder:"your-tenant.auth0.com",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Client ID",value:k.clientId,onChange:ce=>I({...k,clientId:ce.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Client Secret",type:"password",value:k.clientSecret,onChange:ce=>I({...k,clientSecret:ce.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Base URL",value:k.baseUrl,onChange:ce=>I({...k,baseUrl:ce.target.value}),required:!0,placeholder:"https://your-app.com",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Session Secret",type:"password",value:k.secret,onChange:ce=>I({...k,secret:ce.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"API Audience (optional)",value:k.audience||"",onChange:ce=>I({...k,audience:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),C==="supabase"&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Supabase Configuration"}),l.jsxs(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[l.jsx(wt,{label:"Project URL",value:E.url,onChange:ce=>M({...E,url:ce.target.value}),required:!0,placeholder:"https://your-project.supabase.co",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Anon Key",type:"password",value:E.anonKey,onChange:ce=>M({...E,anonKey:ce.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),C==="basic"&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Basic Auth Configuration"}),l.jsxs(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr 1fr"},gap:2},children:[l.jsx(wt,{label:"Username",value:R.username,onChange:ce=>L({...R,username:ce.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Password",type:"password",value:R.password,onChange:ce=>L({...R,password:ce.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Realm (optional)",value:R.realm||"",onChange:ce=>L({...R,realm:ce.target.value}),placeholder:"Protected Area",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),C==="supertokens"&&l.jsxs(l.Fragment,{children:[l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"SuperTokens Configuration"}),l.jsxs(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[l.jsx(wt,{label:"Connection URI",value:A.connectionUri,onChange:ce=>F({...A,connectionUri:ce.target.value}),required:!0,placeholder:"http://localhost:3567",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"API Key (optional)",type:"password",value:A.apiKey||"",onChange:ce=>F({...A,apiKey:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"App Name",value:A.appName,onChange:ce=>F({...A,appName:ce.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"API Domain",value:A.apiDomain,onChange:ce=>F({...A,apiDomain:ce.target.value}),required:!0,placeholder:"http://localhost:3000",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Website Domain",value:A.websiteDomain,onChange:ce=>F({...A,websiteDomain:ce.target.value}),required:!0,placeholder:"http://localhost:3000",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"API Base Path",value:A.apiBasePath||"/auth",onChange:ce=>F({...A,apiBasePath:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]}),l.jsx(ee,{sx:{mt:2},children:l.jsx(Nn,{control:l.jsx(za,{checked:A.enableEmailPassword??!0,onChange:ce=>F({...A,enableEmailPassword:ce.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Enable Email/Password Auth",sx:{color:"var(--theme-text-primary)"}})})]})}),l.jsxs(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:[l.jsx(ft,{sx:{pb:Q?2:0},children:l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer"},onClick:()=>X(!Q),children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Social Login Providers"}),Q?l.jsx(W7,{}):l.jsx(q7,{})]})}),l.jsx(Yu,{in:Q,children:l.jsxs(ft,{sx:{pt:0},children:[l.jsx($y,{sx:{mb:2}}),l.jsxs(ee,{sx:{mb:3},children:[l.jsx(Nn,{control:l.jsx(za,{checked:V.enabled,onChange:ce=>O({...V,enabled:ce.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Google",sx:{color:"var(--theme-text-primary)",mb:1}}),V.enabled&&l.jsxs(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[l.jsx(wt,{label:"Client ID",size:"small",value:V.clientId,onChange:ce=>O({...V,clientId:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Client Secret",size:"small",type:"password",value:V.clientSecret,onChange:ce=>O({...V,clientSecret:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]}),l.jsxs(ee,{sx:{mb:3},children:[l.jsx(Nn,{control:l.jsx(za,{checked:U.enabled,onChange:ce=>K({...U,enabled:ce.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"GitHub",sx:{color:"var(--theme-text-primary)",mb:1}}),U.enabled&&l.jsxs(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[l.jsx(wt,{label:"Client ID",size:"small",value:U.clientId,onChange:ce=>K({...U,clientId:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Client Secret",size:"small",type:"password",value:U.clientSecret,onChange:ce=>K({...U,clientSecret:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]}),l.jsxs(ee,{children:[l.jsx(Nn,{control:l.jsx(za,{checked:Y.enabled,onChange:ce=>te({...Y,enabled:ce.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Apple",sx:{color:"var(--theme-text-primary)",mb:1}}),Y.enabled&&l.jsxs(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[l.jsx(wt,{label:"Client ID",size:"small",value:Y.clientId,onChange:ce=>te({...Y,clientId:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Client Secret",size:"small",type:"password",value:Y.clientSecret,onChange:ce=>te({...Y,clientSecret:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Key ID",size:"small",value:Y.keyId||"",onChange:ce=>te({...Y,keyId:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),l.jsx(wt,{label:"Team ID",size:"small",value:Y.teamId||"",onChange:ce=>te({...Y,teamId:ce.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})]})})]})]}),x&&l.jsxs(qt,{severity:x.success?"success":"error",sx:{mb:3},children:[l.jsx(he,{variant:"body2",sx:{fontWeight:600},children:x.success?"Connection Successful":"Connection Failed"}),l.jsx(he,{variant:"body2",children:x.message}),((Le=x.details)==null?void 0:Le.latency)&&l.jsxs(he,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",x.details.latency,"ms"]})]}),l.jsxs(ee,{sx:{display:"flex",gap:2,justifyContent:"space-between"},children:[l.jsxs(ee,{sx:{display:"flex",gap:2},children:[l.jsx(un,{variant:"outlined",startIcon:l.jsx(Xy,{}),onClick:pe,disabled:h,sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Cancel"}),(t==null?void 0:t.runtimeConfig)&&l.jsx(un,{variant:"outlined",color:"error",startIcon:l.jsx(Md,{}),onClick:()=>de(!0),disabled:h,children:"Reset to Env Vars"})]}),l.jsxs(ee,{sx:{display:"flex",gap:2},children:[l.jsx(un,{variant:"outlined",startIcon:m?l.jsx(mr,{size:16}):l.jsx(mc,{}),onClick:ae,disabled:!C||m||h,sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:"Test Connection"}),l.jsx(un,{variant:"contained",startIcon:h?l.jsx(mr,{size:16,sx:{color:"white"}}):l.jsx(f0,{}),onClick:ze,disabled:h,sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary-dark)"}},children:"Save Configuration"})]})]})]}):l.jsxs(l.Fragment,{children:[l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[oW((t==null?void 0:t.state)||"disabled"),l.jsxs(ee,{sx:{flex:1},children:[l.jsxs(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Status:"," ",l.jsx(Ut,{label:((Ke=t==null?void 0:t.state)==null?void 0:Ke.toUpperCase())||"UNKNOWN",size:"small",sx:{bgcolor:`${a2((t==null?void 0:t.state)||"disabled")}20`,color:a2((t==null?void 0:t.state)||"disabled"),fontWeight:600}})]}),(t==null?void 0:t.adapter)&&l.jsxs(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)",mt:.5},children:["Adapter: ",l.jsx("strong",{children:t.adapter})]})]}),(t==null?void 0:t.state)==="enabled"&&(t==null?void 0:t.adapter)&&l.jsx(un,{variant:"outlined",size:"small",startIcon:m?l.jsx(mr,{size:14}):l.jsx(mc,{}),onClick:Fe,disabled:m,sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:"Test Connection"})]}),x&&!d&&l.jsxs(qt,{severity:x.success?"success":"error",sx:{mb:2},children:[l.jsx(he,{variant:"body2",sx:{fontWeight:600},children:x.success?"Connection Successful":"Connection Failed"}),l.jsx(he,{variant:"body2",children:x.message}),((pt=x.details)==null?void 0:pt.latency)&&l.jsxs(he,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",x.details.latency,"ms"]})]}),(t==null?void 0:t.state)==="enabled"&&!(t!=null&&t.runtimeConfig)&&l.jsxs(qt,{severity:"success",sx:{mb:2},children:[l.jsx(he,{variant:"body2",sx:{fontWeight:600},children:"Configured via Environment Variables"}),l.jsx(he,{variant:"body2",children:'Authentication is configured using environment variables. Click "Edit" to override with runtime configuration (requires PostgreSQL).'})]}),(t==null?void 0:t.runtimeConfig)&&l.jsx(Ut,{label:"Runtime Configuration Active",size:"small",sx:{bgcolor:"var(--theme-primary)",color:"white",mb:2}}),(t==null?void 0:t.state)==="error"&&t.error&&l.jsx(qt,{severity:"error",sx:{mb:2},children:t.error}),(t==null?void 0:t.missingVars)&&t.missingVars.length>0&&l.jsxs(qt,{severity:"warning",sx:{mb:2},children:[l.jsx(he,{variant:"body2",sx:{fontWeight:600,mb:1},children:"Missing environment variables:"}),l.jsx(ee,{component:"ul",sx:{m:0,pl:2},children:t.missingVars.map(ce=>l.jsx("li",{children:l.jsx("code",{children:ce})},ce))})]}),(t==null?void 0:t.state)==="disabled"&&l.jsxs(qt,{severity:"info",children:[l.jsxs(he,{variant:"body2",children:["Authentication is disabled. Click the edit button to configure a provider, or set the"," ",l.jsx("code",{children:"AUTH_ADAPTER"})," environment variable."]}),l.jsxs(he,{variant:"body2",sx:{mt:1},children:["Valid options: ",l.jsx("code",{children:"supertokens"}),", ",l.jsx("code",{children:"auth0"}),", ",l.jsx("code",{children:"supabase"}),","," ",l.jsx("code",{children:"basic"})]})]})]})}),Be.length>0&&l.jsxs(ht,{sx:{bgcolor:"var(--theme-surface)"},children:[l.jsx(ft,{sx:{pb:0},children:l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Current Configuration"})}),l.jsx(zi,{children:l.jsxs(Ni,{size:"small",children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Variable"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Value"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:60},children:"Actions"})]})}),l.jsx(Bi,{children:Be.map(([ce,De])=>l.jsxs(Er,{children:[l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(he,{sx:{color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:13},children:ce})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(he,{sx:{color:De.includes("*")?"var(--theme-text-secondary)":"var(--theme-text-primary)",fontFamily:"monospace",fontSize:13},children:De})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(tr,{title:c===ce?"Copied!":"Copy value",children:l.jsx(Xt,{size:"small",onClick:()=>oe(ce,De),sx:{color:c===ce?"var(--theme-success)":"var(--theme-text-secondary)"},children:l.jsx(Id,{fontSize:"small"})})})})]},ce))})]})})]}),(t==null?void 0:t.state)==="enabled"&&Be.length===0&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsx(he,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No configuration details available"})})})]}),l.jsxs(t0,{open:re,onClose:()=>de(!1),children:[l.jsx(o0,{children:"Reset to Environment Variables?"}),l.jsx(n0,{children:l.jsx(he,{children:"This will delete the runtime configuration from the database. The auth plugin will fall back to environment variables on the next request."})}),l.jsxs(r0,{children:[l.jsx(un,{onClick:()=>de(!1),children:"Cancel"}),l.jsx(un,{onClick:Oe,color:"error",disabled:h,children:h?l.jsx(mr,{size:20}):"Reset"})]})]})]})}function dy(t){return t<1e3?`${t}ms`:t<6e4?`${t/1e3}s`:t<36e5?`${t/6e4}m`:`${t/36e5}h`}function sW(){const[t,e]=b.useState(null),[r,n]=b.useState(!0),[o,s]=b.useState(!1),[c,u]=b.useState(null),[d,f]=b.useState(null),[h,v]=b.useState(6e4),[m,y]=b.useState(100),[x,w]=b.useState("sliding-window"),[C,j]=b.useState(!0),[k,I]=b.useState(3e5),E=async()=>{n(!0),u(null);try{const L=await jt.getRateLimitConfig();e(L),v(L.windowMs),y(L.maxRequests),w(L.strategy),j(L.cleanupEnabled),I(L.cleanupIntervalMs)}catch(L){u(L instanceof Error?L.message:"Failed to fetch config")}finally{n(!1)}};b.useEffect(()=>{E()},[]);const M=async()=>{s(!0),u(null),f(null);try{const L=await jt.updateRateLimitConfig({windowMs:h,maxRequests:m,strategy:x,cleanupEnabled:C,cleanupIntervalMs:k});e(L.config),f("Configuration saved successfully"),setTimeout(()=>f(null),3e3)}catch(L){u(L instanceof Error?L.message:"Failed to save config")}finally{s(!1)}},R=t&&(h!==t.windowMs||m!==t.maxRequests||x!==t.strategy||C!==t.cleanupEnabled||k!==t.cleanupIntervalMs);return r?l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})}):c&&!t?l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:l.jsx(ft,{children:l.jsx(he,{color:"error",children:c})})}):l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(TT,{sx:{color:"var(--theme-primary)",fontSize:32}}),l.jsx(he,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Rate Limits"})]}),l.jsxs(ee,{sx:{display:"flex",gap:1},children:[l.jsx(tr,{title:"Refresh",children:l.jsx(Xt,{onClick:E,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(nl,{})})}),l.jsx(un,{variant:"contained",startIcon:o?l.jsx(mr,{size:16,color:"inherit"}):l.jsx(f0,{}),onClick:M,disabled:o||!R,sx:{minWidth:100},children:o?"Saving...":"Save"})]})]}),l.jsx(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Configure rate limiting defaults for your API"}),d&&l.jsx(qt,{severity:"success",sx:{mb:3},children:d}),c&&t&&l.jsx(qt,{severity:"error",sx:{mb:3},children:c}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"System Status"}),l.jsxs(ee,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(m0,{sx:{color:"var(--theme-text-secondary)"}}),l.jsxs(ee,{children:[l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Store"}),l.jsx(he,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.store})]})]}),l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(B7,{sx:{color:t!=null&&t.cacheAvailable?"var(--theme-success)":"var(--theme-warning)"}}),l.jsxs(ee,{children:[l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Cache"}),l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(he,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.cache}),l.jsx(Ut,{label:t!=null&&t.cacheAvailable?"Available":"Unavailable",size:"small",sx:{bgcolor:t!=null&&t.cacheAvailable?"var(--theme-success)20":"var(--theme-warning)20",color:t!=null&&t.cacheAvailable?"var(--theme-success)":"var(--theme-warning)"}})]})]})]})]})]})}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:3},children:"Default Rate Limit Settings"}),l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:3},children:[l.jsxs(Co,{fullWidth:!0,children:[l.jsx(ys,{sx:{color:"var(--theme-text-secondary)"},children:"Strategy"}),l.jsxs(Vi,{value:x,label:"Strategy",onChange:L=>w(L.target.value),sx:{color:"var(--theme-text-primary)","& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--theme-border)"}},children:[l.jsx(br,{value:"sliding-window",children:"Sliding Window - Smooth rate limiting with weighted overlap"}),l.jsx(br,{value:"fixed-window",children:"Fixed Window - Simple discrete time windows"}),l.jsx(br,{value:"token-bucket",children:"Token Bucket - Allows bursts while maintaining average rate"})]})]}),l.jsxs(ee,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[l.jsx(wt,{label:"Window (ms)",type:"number",value:h,onChange:L=>v(Math.max(1e3,parseInt(L.target.value)||6e4)),helperText:`= ${dy(h)}`,sx:{flex:1,minWidth:200},InputProps:{inputProps:{min:1e3,step:1e3}}}),l.jsx(wt,{label:"Max Requests",type:"number",value:m,onChange:L=>y(Math.max(1,parseInt(L.target.value)||100)),helperText:"Per window per key",sx:{flex:1,minWidth:200},InputProps:{inputProps:{min:1}}})]}),l.jsx(qt,{severity:"info",sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(he,{variant:"body2",children:[l.jsx("strong",{children:"Current limit:"})," ",m," requests per ",dy(h)," using ",x," strategy"]})})]})]})}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:3},children:"Cleanup Job"}),l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:3},children:[l.jsx(Nn,{control:l.jsx(za,{checked:C,onChange:L=>j(L.target.checked),color:"primary"}),label:"Enable automatic cleanup of expired rate limits",sx:{color:"var(--theme-text-primary)"}}),C&&l.jsx(wt,{label:"Cleanup Interval (ms)",type:"number",value:k,onChange:L=>I(Math.max(6e4,parseInt(L.target.value)||3e5)),helperText:`= ${dy(k)}`,sx:{maxWidth:300},InputProps:{inputProps:{min:6e4,step:6e4}}})]})]})})]})}function aW(){const[t,e]=b.useState(null),[r,n]=b.useState([]),[o,s]=b.useState(!0),[c,u]=b.useState(null),[d,f]=b.useState(null),[h,v]=b.useState(null),[m,y]=b.useState(!1),[x,w]=b.useState(null),C=b.useRef(!0),j=b.useCallback(async()=>{try{const[R,L]=await Promise.all([jt.getNotificationsStats(),jt.getNotificationsClients()]);C.current&&(e(R),n(L.clients),u(null))}catch(R){C.current&&(R instanceof Error&&R.message.includes("404")?u("Notifications plugin not enabled"):u(R instanceof Error?R.message:"Failed to fetch data"))}finally{C.current&&s(!1)}},[]);b.useEffect(()=>{C.current=!0,j();const R=setInterval(j,5e3);return()=>{C.current=!1,clearInterval(R)}},[j]);const k=async R=>{v(R.id),w(null);try{await jt.disconnectNotificationsClient(R.id),C.current&&(f(`Client ${Vl(R.id)} disconnected`),setTimeout(()=>{C.current&&f(null)},3e3),await j())}catch(L){C.current&&u(L instanceof Error?L.message:"Failed to disconnect client")}finally{C.current&&v(null)}},I=async()=>{y(!0);try{const R=await jt.forceNotificationsReconnect();C.current&&(f(R.message),setTimeout(()=>{C.current&&f(null)},3e3),await j())}catch(R){C.current&&u(R instanceof Error?R.message:"Failed to force reconnect")}finally{C.current&&y(!1)}};if(o)return l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})});if(c&&!t)return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-border)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(qf,{sx:{color:"var(--theme-text-secondary)"}}),l.jsx(he,{sx:{color:"var(--theme-text-secondary)"},children:c})]})})});const E=(t==null?void 0:t.connectionHealth.isHealthy)??!1,M=E?"var(--theme-success)":"var(--theme-warning)";return l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(ET,{sx:{color:"var(--theme-primary)",fontSize:32}}),l.jsx(he,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Notifications"})]}),l.jsxs(ee,{sx:{display:"flex",gap:1},children:[l.jsx(tr,{title:"Refresh",children:l.jsx(Xt,{onClick:j,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(nl,{})})}),l.jsx(un,{variant:"outlined",startIcon:m?l.jsx(mr,{size:16}):l.jsx(wB,{}),onClick:I,disabled:m,sx:{borderColor:"var(--theme-border)"},children:m?"Reconnecting...":"Force Reconnect"})]})]}),l.jsx(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Manage realtime notification connections and SSE clients"}),d&&l.jsx(qt,{severity:"success",sx:{mb:3},children:d}),c&&t&&l.jsx(qt,{severity:"error",sx:{mb:3},children:c}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsx(ft,{sx:{py:1.5,"&:last-child":{pb:1.5}},children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1},children:[E?l.jsx(kT,{sx:{color:M,fontSize:20}}):l.jsx(qf,{sx:{color:M,fontSize:20}}),l.jsx(he,{sx:{color:M,fontWeight:500},children:E?"Connected":"Reconnecting..."}),(t==null?void 0:t.connectionHealth.isReconnecting)&&l.jsx(Ut,{label:`Attempt ${t.connectionHealth.reconnectAttempts}`,size:"small",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)",fontSize:"0.7rem",height:18}})]}),l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsxs(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:[t==null?void 0:t.channels.length," channel",(t==null?void 0:t.channels.length)!==1?"s":""]}),(t==null?void 0:t.lastEventAt)&&l.jsxs(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:["Last event: ",Sv(t.connectionHealth.timeSinceLastEvent)," ago"]})]})]})})}),l.jsxs(al,{columns:4,spacing:"small",equalHeight:!0,children:[l.jsx(Js,{icon:l.jsx(Ky,{sx:{fontSize:28}}),label:"Active Clients",value:(t==null?void 0:t.currentConnections)??0,subValue:`${(t==null?void 0:t.totalConnections)??0} total`,color:"var(--theme-primary)"}),l.jsx(Js,{icon:l.jsx(hc,{sx:{fontSize:28}}),label:"By Device",value:(t==null?void 0:t.clientsByType.device)??0,subValue:`${(t==null?void 0:t.clientsByType.user)??0} by user`,color:"var(--theme-info)"}),l.jsx(Js,{icon:l.jsx(h0,{sx:{fontSize:28}}),label:"Events Routed",value:nc((t==null?void 0:t.eventsRouted)??0),subValue:`${nc((t==null?void 0:t.eventsProcessed)??0)} processed`,color:"var(--theme-success)"}),l.jsx(Js,{icon:l.jsx(Xo,{sx:{fontSize:28}}),label:"Dropped",value:nc((t==null?void 0:t.eventsDroppedNoClients)??0),subValue:`${(t==null?void 0:t.eventsParseFailed)??0} parse errors`,color:((t==null?void 0:t.eventsDroppedNoClients)??0)>0?"var(--theme-warning)":"var(--theme-text-secondary)"})]}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Connected Clients"}),r.length===0?l.jsx(he,{sx:{color:"var(--theme-text-secondary)",py:4,textAlign:"center"},children:"No clients currently connected"}):l.jsx(zi,{component:Nr,sx:{bgcolor:"transparent",boxShadow:"none"},children:l.jsxs(Ni,{size:"small",children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Client ID"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Device ID"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"User ID"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Connected"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Duration"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsx(Bi,{children:r.map(R=>l.jsxs(Er,{hover:!0,children:[l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(tr,{title:R.id,children:l.jsx("code",{style:{fontSize:"0.85em"},children:Vl(R.id)})})}),l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:R.deviceId?l.jsx(tr,{title:R.deviceId,children:l.jsx(Ut,{size:"small",icon:l.jsx(Ky,{sx:{fontSize:14}}),label:Vl(R.deviceId),sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})}):l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"—"})}),l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:R.userId?l.jsx(tr,{title:R.userId,children:l.jsx(Ut,{size:"small",icon:l.jsx(hc,{sx:{fontSize:14}}),label:Vl(R.userId),sx:{bgcolor:"var(--theme-info)20",color:"var(--theme-info)"}})}):l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"—"})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:new Date(R.connectedAt).toLocaleTimeString()}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:Sv(R.durationMs)}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},align:"right",children:l.jsx(tr,{title:"Disconnect client",children:l.jsx(Xt,{size:"small",onClick:()=>w(R),disabled:h===R.id,sx:{color:"var(--theme-error)"},children:h===R.id?l.jsx(mr,{size:18}):l.jsx(lB,{fontSize:"small"})})})})]},R.id))})]})})]})}),l.jsxs(t0,{open:!!x,onClose:()=>w(null),"aria-labelledby":"disconnect-dialog-title",children:[l.jsx(o0,{id:"disconnect-dialog-title",children:"Disconnect Client?"}),l.jsx(n0,{children:l.jsxs(XL,{children:["Are you sure you want to disconnect this client?",(x==null?void 0:x.deviceId)&&l.jsxs(l.Fragment,{children:[l.jsx("br",{}),l.jsx("strong",{children:"Device:"})," ",Vl(x.deviceId)]}),(x==null?void 0:x.userId)&&l.jsxs(l.Fragment,{children:[l.jsx("br",{}),l.jsx("strong",{children:"User:"})," ",Vl(x.userId)]}),l.jsx("br",{}),l.jsx("br",{}),"The client will receive a disconnect event and the connection will be closed. The client may automatically reconnect."]})}),l.jsxs(r0,{children:[l.jsx(un,{onClick:()=>w(null),children:"Cancel"}),l.jsx(un,{onClick:()=>x&&k(x),color:"error",autoFocus:!0,children:"Disconnect"})]})]})]})}function lW(){const[t,e]=b.useState(null),[r,n]=b.useState(!0),[o,s]=b.useState(null),[c,u]=b.useState(null),[d,f]=b.useState({}),h=b.useCallback(async()=>{n(!0),s(null);try{const m=await jt.fetch("/ai-proxy/config");e(m)}catch(m){s(m instanceof Error?m.message:"Failed to fetch integrations config")}finally{n(!1)}},[]);b.useEffect(()=>{h()},[h]);const v=async m=>{u(m),f(y=>({...y,[m]:{success:!1,message:"Testing..."}}));try{const y=await jt.fetch(`/ai-proxy/test/${m}`,{method:"POST"});f(x=>({...x,[m]:y}))}catch(y){f(x=>({...x,[m]:{success:!1,message:y instanceof Error?y.message:"Test failed"}}))}finally{u(null)}};return r?l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})}):l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[l.jsx(he,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"AI Integrations"}),l.jsx(tr,{title:"Refresh",children:l.jsx(Xt,{onClick:h,sx:{color:"var(--theme-text-secondary)"},children:l.jsx(nl,{})})})]}),l.jsx(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Manage AI service connections for QwickBot"}),o&&l.jsx(qt,{severity:"error",sx:{mb:3},onClose:()=>s(null),children:o}),t&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:3},children:[l.jsxs(ee,{children:[l.jsx(he,{variant:"h3",sx:{color:"var(--theme-primary)",fontWeight:600},children:t.stats.totalRequests}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Total API Requests"})]}),l.jsxs(ee,{sx:{borderLeft:"1px solid var(--theme-border)",pl:3},children:[l.jsx(he,{variant:"h3",sx:{color:"var(--theme-success)",fontWeight:600},children:t.integrations.filter(m=>m.configured).length}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Configured Services"})]})]})})}),l.jsx(ee,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:3},children:t==null?void 0:t.integrations.map(m=>{const y=d[m.id],x=c===m.id;return l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:2},children:[l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:m.name}),l.jsx(Ut,{label:m.configured?"Configured":"Not Configured",size:"small",sx:{bgcolor:m.configured?"var(--theme-success)20":"var(--theme-error)20",color:m.configured?"var(--theme-success)":"var(--theme-error)",fontWeight:500}})]}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:m.description})]}),m.configured?l.jsx(Uo,{sx:{color:"var(--theme-success)"}}):l.jsx(Xo,{sx:{color:"var(--theme-error)"}})]}),l.jsxs(ee,{sx:{mb:2,p:1.5,bgcolor:"var(--theme-background)",borderRadius:1},children:[l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)",display:"block",mb:.5},children:"API Key"}),l.jsx(he,{sx:{fontFamily:"monospace",fontSize:13,color:m.configured?"var(--theme-text-primary)":"var(--theme-text-secondary)"},children:m.apiKey})]}),y&&l.jsx(ee,{sx:{mb:2},children:x?l.jsx(Ic,{sx:{height:4,borderRadius:2}}):l.jsxs(qt,{severity:y.success?"success":"error",sx:{py:.5,"& .MuiAlert-message":{fontSize:13}},children:[y.message,y.latency!==void 0&&l.jsxs(he,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",y.latency,"ms"]})]})}),l.jsxs(ee,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[l.jsx(un,{size:"small",startIcon:l.jsx(hB,{}),href:m.docsUrl,target:"_blank",sx:{color:"var(--theme-text-secondary)","&:hover":{color:"var(--theme-primary)"}},children:"Docs"}),l.jsx(un,{size:"small",variant:"outlined",startIcon:x?l.jsx(mr,{size:14}):l.jsx(mc,{}),onClick:()=>v(m.id),disabled:!m.configured||x,sx:{borderColor:"var(--theme-border)",color:"var(--theme-text-primary)","&:hover":{borderColor:"var(--theme-primary)"}},children:"Test Connection"})]})]})},m.id)})}),t&&t.integrations.some(m=>!m.configured)&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Setup Instructions"}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)",mb:2},children:"Add the following environment variables to configure the AI services:"}),l.jsx(ee,{component:"pre",sx:{p:2,bgcolor:"var(--theme-background)",borderRadius:1,overflow:"auto",fontFamily:"monospace",fontSize:13,color:"var(--theme-text-primary)"},children:`# Groq - for chat (https://console.groq.com)
|
|
465
|
+
GROQ_API_KEY=your_groq_api_key
|
|
466
|
+
|
|
467
|
+
# Gemini - for vision (https://ai.google.dev)
|
|
468
|
+
GEMINI_API_KEY=your_gemini_api_key`})]})})]})}function cW({title:t="API Keys",subtitle:e="Manage API keys for programmatic access"}){const[r,n]=b.useState([]),[o,s]=b.useState(!0),[c,u]=b.useState(null),[d,f]=b.useState(null),[h,v]=b.useState(!1),[m,y]=b.useState(!1),[x,w]=b.useState({name:"",key_type:"pat",scopes:["read"],expires_at:""}),[C,j]=b.useState(null),[k,I]=b.useState(!0),[E,M]=b.useState(!1),[R,L]=b.useState(!1),[A,F]=b.useState(null),[G,$]=b.useState({name:"",scopes:[],is_active:!0}),[P,q]=b.useState(!1),[V,O]=b.useState(null),U=b.useCallback(async()=>{s(!0);try{const se=await jt.getApiKeys();n(se.keys||[]),u(null)}catch(se){u(se instanceof Error?se.message:"Failed to fetch API keys")}finally{s(!1)}},[]);b.useEffect(()=>{U()},[U]);const K=async()=>{y(!0);try{const se=await jt.createApiKey(x);j(se),v(!1),w({name:"",key_type:"pat",scopes:["read"],expires_at:""}),U()}catch(se){u(se instanceof Error?se.message:"Failed to create API key")}finally{y(!1)}},Y=(se,ae)=>{O({id:se,name:ae}),q(!0)},te=async()=>{if(V)try{await jt.deleteApiKey(V.id),f(`API key "${V.name}" deleted`),q(!1),O(null),U()}catch(se){u(se instanceof Error?se.message:"Failed to delete API key")}},Q=()=>{q(!1),O(null)},X=se=>{F(se),$({name:se.name,scopes:[...se.scopes],is_active:se.is_active}),L(!0)},re=async()=>{if(A)try{await jt.updateApiKey(A.id,G),f(`API key "${A.name}" updated`),L(!1),F(null),U()}catch(se){u(se instanceof Error?se.message:"Failed to update API key")}},de=se=>{navigator.clipboard.writeText(se).then(()=>{M(!0),setTimeout(()=>M(!1),2e3)})},J=()=>{j(null),I(!0),M(!1)},oe=se=>{w(ae=>({...ae,scopes:ae.scopes.includes(se)?ae.scopes.filter(Fe=>Fe!==se):[...ae.scopes,se]}))},Z=se=>{$(ae=>({...ae,scopes:ae.scopes.includes(se)?ae.scopes.filter(Fe=>Fe!==se):[...ae.scopes,se]}))},pe=se=>se?new Date(se).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",Se=se=>{switch(se){case"read":return"var(--theme-info)";case"write":return"var(--theme-warning)";case"admin":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}};return l.jsxs(ee,{children:[l.jsxs(ee,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),l.jsx(nr,{variant:"primary",icon:"add",label:"Create API Key",onClick:()=>v(!0)})]}),o&&l.jsx(Ic,{sx:{mb:2}}),c&&l.jsx(qt,{severity:"error",onClose:()=>u(null),sx:{mb:2},children:c}),d&&l.jsx(qt,{severity:"success",onClose:()=>f(null),sx:{mb:2},children:d}),l.jsxs(al,{columns:3,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(ST,{sx:{fontSize:40,color:"var(--theme-primary)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:r.length.toString(),customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:"Total Keys",customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(Uo,{sx:{fontSize:40,color:"var(--theme-success)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:r.filter(se=>se.is_active).length.toString(),customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:"Active Keys",customColor:"var(--theme-text-secondary)"})]})]})})}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{children:l.jsxs(ee,{sx:{display:"flex",alignItems:"center",gap:2},children:[l.jsx(Xy,{sx:{fontSize:40,color:r.filter(se=>!se.is_active).length>0?"var(--theme-error)":"var(--theme-text-secondary)"}}),l.jsxs(ee,{children:[l.jsx(it,{variant:"h4",content:r.filter(se=>!se.is_active).length.toString(),customColor:"var(--theme-text-primary)"}),l.jsx(it,{variant:"body2",content:"Inactive Keys",customColor:"var(--theme-text-secondary)"})]})]})})})]}),l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsx(ft,{sx:{p:0},children:l.jsx(zi,{children:l.jsxs(Ni,{children:[l.jsx(Di,{children:l.jsxs(Er,{children:[l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Prefix"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Type"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Scopes"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Last Used"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Expires"}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),l.jsxs(Bi,{children:[r.map(se=>l.jsxs(Er,{hover:!0,children:[l.jsx(Ie,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:l.jsx(it,{variant:"body1",content:se.name,fontWeight:"500"})}),l.jsxs(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.85rem"},children:[se.key_prefix,"..."]}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(Ut,{size:"small",label:se.key_type.toUpperCase(),sx:{bgcolor:se.key_type==="m2m"?"var(--theme-info)20":"var(--theme-success)20",color:se.key_type==="m2m"?"var(--theme-info)":"var(--theme-success)"}})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(ee,{sx:{display:"flex",gap:.5,flexWrap:"wrap"},children:se.scopes.map(ae=>l.jsx(Ut,{size:"small",label:ae,sx:{bgcolor:`${Se(ae)}20`,color:Se(ae),fontSize:"0.7rem"}},ae))})}),l.jsx(Ie,{sx:{borderColor:"var(--theme-border)"},children:l.jsx(Ut,{size:"small",icon:se.is_active?l.jsx(Uo,{sx:{fontSize:14}}):l.jsx(Xy,{sx:{fontSize:14}}),label:se.is_active?"Active":"Inactive",sx:{bgcolor:se.is_active?"var(--theme-success)20":"var(--theme-error)20",color:se.is_active?"var(--theme-success)":"var(--theme-error)"}})}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:pe(se.last_used_at)}),l.jsx(Ie,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:pe(se.expires_at)}),l.jsxs(Ie,{sx:{borderColor:"var(--theme-border)"},align:"right",children:[l.jsx(tr,{title:"Edit",children:l.jsx(Xt,{size:"small",onClick:()=>X(se),children:l.jsx(nd,{fontSize:"small"})})}),l.jsx(tr,{title:"Delete",children:l.jsx(Xt,{size:"small",onClick:()=>Y(se.id,se.name),sx:{color:"var(--theme-error)"},children:l.jsx(Md,{fontSize:"small"})})})]})]},se.id)),r.length===0&&!o&&l.jsx(Er,{children:l.jsx(Ie,{colSpan:8,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:"No API keys found. Create one to get started."})})]})]})})})}),l.jsxs(Ri,{open:h,onClose:()=>v(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Create API Key"}),l.jsx(_i,{children:l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(wt,{label:"Key Name",fullWidth:!0,value:x.name,onChange:se=>w({...x,name:se.target.value}),placeholder:"Enter a descriptive name",helperText:"Choose a name that helps you identify this key"}),l.jsxs(Co,{fullWidth:!0,children:[l.jsx(ys,{children:"Key Type"}),l.jsxs(Vi,{value:x.key_type,label:"Key Type",onChange:se=>w({...x,key_type:se.target.value}),children:[l.jsx(br,{value:"pat",children:"PAT (Personal Access Token)"}),l.jsx(br,{value:"m2m",children:"M2M (Machine-to-Machine)"})]}),l.jsx(tl,{children:"PAT for personal use, M2M for service-to-service communication"})]}),l.jsxs(Co,{component:"fieldset",children:[l.jsx(it,{variant:"subtitle2",content:"Scopes",customColor:"var(--theme-text-primary)"}),l.jsxs(Zw,{children:[l.jsx(Nn,{control:l.jsx(qs,{checked:x.scopes.includes("read"),onChange:()=>oe("read")}),label:"Read - View data and resources"}),l.jsx(Nn,{control:l.jsx(qs,{checked:x.scopes.includes("write"),onChange:()=>oe("write")}),label:"Write - Create and update resources"}),l.jsx(Nn,{control:l.jsx(qs,{checked:x.scopes.includes("admin"),onChange:()=>oe("admin")}),label:"Admin - Full administrative access"})]})]}),l.jsx(wt,{label:"Expiration (Optional)",type:"datetime-local",fullWidth:!0,value:x.expires_at,onChange:se=>w({...x,expires_at:se.target.value}),InputLabelProps:{shrink:!0},helperText:"Leave empty for no expiration (90 days default)"})]})}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Cancel",onClick:()=>v(!1)}),l.jsx(nr,{variant:"primary",label:"Create Key",onClick:K,disabled:m||!x.name||x.scopes.length===0})]})]}),l.jsxs(Ri,{open:!!C,onClose:J,maxWidth:"md",fullWidth:!0,children:[l.jsx(Ai,{children:"API Key Created"}),l.jsxs(_i,{children:[l.jsx(qt,{severity:"warning",sx:{mb:2},children:l.jsx(it,{variant:"body2",content:"Save this key now. You won't be able to see it again!",fontWeight:"500"})}),l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2},children:[l.jsxs(ee,{children:[l.jsx(it,{variant:"subtitle2",content:"Key Name",customColor:"var(--theme-text-secondary)"}),l.jsx(it,{variant:"body1",content:(C==null?void 0:C.name)||"",fontWeight:"500"})]}),l.jsxs(ee,{children:[l.jsx(it,{variant:"subtitle2",content:"API Key",customColor:"var(--theme-text-secondary)"}),l.jsxs(ee,{sx:{display:"flex",gap:1,alignItems:"center",mt:1},children:[l.jsx(wt,{fullWidth:!0,value:(C==null?void 0:C.key)||"",type:k?"text":"password",InputProps:{readOnly:!0,sx:{fontFamily:"monospace",fontSize:"0.9rem"}}}),l.jsx(tr,{title:k?"Hide":"Show",children:l.jsx(Xt,{onClick:()=>I(!k),children:k?l.jsx(Wf,{}):l.jsx(g0,{})})}),l.jsx(tr,{title:E?"Copied!":"Copy",children:l.jsx(Xt,{onClick:()=>de((C==null?void 0:C.key)||""),children:l.jsx(Id,{})})})]})]}),l.jsxs(ee,{children:[l.jsx(it,{variant:"subtitle2",content:"Scopes",customColor:"var(--theme-text-secondary)"}),l.jsx(ee,{sx:{display:"flex",gap:.5,flexWrap:"wrap",mt:1},children:C==null?void 0:C.scopes.map(se=>l.jsx(Ut,{size:"small",label:se,sx:{bgcolor:`${Se(se)}20`,color:Se(se)}},se))})]})]})]}),l.jsx(Li,{children:l.jsx(nr,{variant:"primary",label:"I've Saved the Key",onClick:J})})]}),l.jsxs(Ri,{open:R,onClose:()=>L(!1),maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Edit API Key"}),l.jsx(_i,{children:l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[l.jsx(wt,{label:"Key Name",fullWidth:!0,value:G.name,onChange:se=>$({...G,name:se.target.value})}),l.jsxs(Co,{component:"fieldset",children:[l.jsx(it,{variant:"subtitle2",content:"Scopes",customColor:"var(--theme-text-primary)"}),l.jsxs(Zw,{children:[l.jsx(Nn,{control:l.jsx(qs,{checked:G.scopes.includes("read"),onChange:()=>Z("read")}),label:"Read - View data and resources"}),l.jsx(Nn,{control:l.jsx(qs,{checked:G.scopes.includes("write"),onChange:()=>Z("write")}),label:"Write - Create and update resources"}),l.jsx(Nn,{control:l.jsx(qs,{checked:G.scopes.includes("admin"),onChange:()=>Z("admin")}),label:"Admin - Full administrative access"})]})]}),l.jsx(Nn,{control:l.jsx(qs,{checked:G.is_active,onChange:se=>$({...G,is_active:se.target.checked})}),label:"Active (key can be used for authentication)"})]})}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Cancel",onClick:()=>L(!1)}),l.jsx(nr,{variant:"primary",label:"Update Key",onClick:re,disabled:!G.name||G.scopes.length===0})]})]}),l.jsxs(Ri,{open:P,onClose:Q,maxWidth:"sm",fullWidth:!0,children:[l.jsx(Ai,{children:"Delete API Key"}),l.jsxs(_i,{children:[l.jsx(qt,{severity:"warning",sx:{mb:2},children:"This action cannot be undone. The API key will be permanently deleted."}),l.jsx(it,{variant:"body1",content:`Are you sure you want to delete the API key "${V==null?void 0:V.name}"?`,customColor:"var(--theme-text-primary)"})]}),l.jsxs(Li,{children:[l.jsx(nr,{variant:"text",label:"Cancel",onClick:Q}),l.jsx(nr,{variant:"primary",label:"Delete",onClick:te,sx:{bgcolor:"var(--theme-error)","&:hover":{bgcolor:"var(--theme-error)"}}})]})]})]})}function uW({pluginId:t,title:e,route:r}){const[n,o]=b.useState(!0),[s,c]=b.useState(null),[u,d]=b.useState(null);return b.useEffect(()=>{(async()=>{try{const h=await fetch(`${jt.baseUrl}/api${r}`);if(h.ok){const v=await h.json();d(v),c(null)}else h.status===404?(d(null),c(null)):c(`Failed to load page: ${h.statusText}`)}catch(h){c(h instanceof Error?h.message:"Failed to load page")}finally{o(!1)}})()},[r]),n?l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:l.jsx(mr,{})}):l.jsxs(ee,{children:[l.jsx(he,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:e}),l.jsxs(he,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Plugin: ",t]}),s&&l.jsx(qt,{severity:"error",sx:{mb:3},children:s}),(u==null?void 0:u.cards)&&u.cards.length>0&&l.jsx(ee,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:2,mb:4},children:u.cards.map((f,h)=>l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h4",sx:{color:f.color||"var(--theme-text-primary)"},children:f.value}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:f.title}),f.subtitle&&l.jsx(he,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:f.subtitle})]})},h))}),(u==null?void 0:u.sections)&&u.sections.length>0&&l.jsx(ee,{sx:{display:"flex",flexDirection:"column",gap:3},children:u.sections.map((f,h)=>l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:f.title}),l.jsx(he,{variant:"body2",sx:{color:"var(--theme-text-secondary)",whiteSpace:"pre-wrap"},children:f.content})]})},h))}),!u&&!s&&l.jsx(ht,{sx:{bgcolor:"var(--theme-surface)"},children:l.jsxs(ft,{children:[l.jsx(he,{variant:"body1",sx:{color:"var(--theme-text-secondary)"},children:"This plugin page is available. Configure the plugin to add content here."}),l.jsxs(he,{variant:"body2",sx:{mt:2,color:"var(--theme-text-secondary)"},children:["API endpoint: ",l.jsxs("code",{children:["/api",r]})]})]})})]})}function dW(){const t=jv();return l.jsxs(ee,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"50vh",textAlign:"center"},children:[l.jsx(he,{variant:"h1",sx:{color:"var(--theme-primary)",mb:2},children:"404"}),l.jsx(he,{variant:"h5",sx:{color:"var(--theme-text-primary)",mb:1},children:"Page Not Found"}),l.jsx(he,{sx:{color:"var(--theme-text-secondary)",mb:4},children:"The page you're looking for doesn't exist or has been moved."}),l.jsx(un,{variant:"contained",startIcon:l.jsx(wT,{}),onClick:()=>t("/"),sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary)"}},children:"Back to Dashboard"})]})}const p2=[{id:"dashboard",label:"Dashboard",route:"/",icon:"dashboard"},{id:"plugins",label:"Plugins",route:"/plugins",icon:"extension"},{id:"logs",label:"Logs",route:"/logs",icon:"article"},{id:"system",label:"System",route:"/system",icon:"settings"}],pW={users:{id:"users",label:"Users",route:"/users",icon:"people"},"api-keys":{id:"api-keys",label:"API Keys",route:"/api-keys",icon:"key"}},fW=new Set(["/","/plugins","/logs","/system","/users","/entitlements","/auth","/rate-limits","/notifications","/integrations","/api-keys"]),hW="1.0.0",hj=window.__APP_BASE_PATH__??"";jt.setBaseUrl(hj);const mW=l.jsx(ee,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:2},children:l.jsxs(it,{variant:"caption",customColor:"var(--theme-text-secondary)",children:["Built with"," ",l.jsx(GO,{href:"https://qwickapps.com/products/qwickapps-server",target:"_blank",rel:"noopener noreferrer",sx:{color:"primary.main"},children:"QwickApps Server"})," ","v",hW]})});function gW(){const[t,e]=b.useState(p2),[r,n]=b.useState(new Set),[o,s]=b.useState([]),[c,u]=b.useState("Control Panel"),[d,f]=b.useState(),[h,v]=b.useState(!0);b.useEffect(()=>{(async()=>{try{const[w,C]=await Promise.allSettled([jt.getInfo(),jt.getUiContributions()]);if(w.status==="fulfilled"?(u(w.value.logoName),f(w.value.logoIconUrl)):console.warn("Failed to fetch product info:",w.reason),C.status==="fulfilled"){const{plugins:j,menuItems:k}=C.value,I=new Set(j.map(R=>R.id));n(I),s(k);const E=[...p2];for(const[R,L]of Object.entries(pW))I.has(R)&&E.push(L);const M=[...k].sort((R,L)=>(R.order??100)-(L.order??100));for(const R of M)E.some(L=>L.route===R.route)||E.push({id:R.id,label:R.label,route:R.route,icon:R.icon||"extension"});e(E)}else console.warn("Failed to fetch UI contributions:",C.reason)}finally{v(!1)}})()},[]);const m=d?l.jsx("img",{src:d,alt:c,style:{width:32,height:32,objectFit:"contain"}}):void 0,y=l.jsx(sV,{icon:m,name:c});return h?l.jsx(ee,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",bgcolor:"var(--theme-background, #1a1a2e)"}}):l.jsx(s3,{basename:hj||void 0,children:l.jsx(_V,{initialComponents:VV(),children:l.jsx(MV,{children:l.jsx(oV,{config:IV,logo:y,footerContent:mW,enableScaffolding:!0,navigationItems:t,showThemeSwitcher:!0,showPaletteSwitcher:!0,children:l.jsxs(n3,{children:[l.jsx(Kn,{path:"/",element:l.jsx(qV,{})}),l.jsx(Kn,{path:"/plugins",element:l.jsx(tW,{})}),l.jsx(Kn,{path:"/logs",element:l.jsx(GV,{})}),l.jsx(Kn,{path:"/system",element:l.jsx(YV,{})}),r.has("users")&&l.jsx(Kn,{path:"/users",element:l.jsx(rW,{})}),r.has("entitlements")&&l.jsx(Kn,{path:"/entitlements",element:l.jsx(nW,{})}),r.has("auth")&&l.jsx(Kn,{path:"/auth",element:l.jsx(iW,{})}),r.has("rate-limit")&&l.jsx(Kn,{path:"/rate-limits",element:l.jsx(sW,{})}),r.has("notifications")&&l.jsx(Kn,{path:"/notifications",element:l.jsx(aW,{})}),r.has("ai-proxy")&&l.jsx(Kn,{path:"/integrations",element:l.jsx(lW,{})}),r.has("api-keys")&&l.jsx(Kn,{path:"/api-keys",element:l.jsx(cW,{})}),o.filter(x=>!fW.has(x.route)).map(x=>l.jsx(Kn,{path:x.route,element:l.jsx(uW,{pluginId:x.pluginId,title:x.label,route:x.route})},x.id)),l.jsx(Kn,{path:"*",element:l.jsx(dW,{})})]})})})})})}u4.createRoot(document.getElementById("root")).render(l.jsx($t.StrictMode,{children:l.jsx(gW,{})}));
|
|
469
|
+
//# sourceMappingURL=index-5nX8fM1a.js.map
|